@mavea/mavea 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +6 -2
- package/bin/mavea.mjs +40 -8
- package/dist/.vite/manifest.json +393 -393
- package/dist/assets/{AnnotationLayer-Cccb12ps.js → AnnotationLayer-BsAcAd59.js} +0 -0
- package/dist/assets/{AppCommandPalette-DdOPNZ0e.js → AppCommandPalette-Cucwjk5N.js} +1 -1
- package/dist/assets/{CheckLogRail-BibJTid0.js → CheckLogRail-vq2lZ7a5.js} +1 -1
- package/dist/assets/ConversationVideoStudio-Df892wqs.js +1 -0
- package/dist/assets/{CourseLessonReader-D29Kix4f.js → CourseLessonReader-DKQimh2S.js} +2 -2
- package/dist/assets/{CoursesApp-DcDsS_ZS.js → CoursesApp-LeqL6dWT.js} +1 -1
- package/dist/assets/{DashPresent-BDWgO9am.js → DashPresent-DZcRdu6R.js} +1 -1
- package/dist/assets/{DashboardDetail-BrnAdWfy.js → DashboardDetail-2XL-J4rS.js} +2 -2
- package/dist/assets/{DashboardLoopGate-NxMcQ4rD.js → DashboardLoopGate-B95S4oKR.js} +2 -2
- package/dist/assets/DashboardLoopRuntime-Wzk85QXi.js +1 -0
- package/dist/assets/{DashboardsApp-DxyMn3x_.js → DashboardsApp-ZGuT2QBi.js} +2 -2
- package/dist/assets/{DeepZoomApp-nNjqoyYE.js → DeepZoomApp-CPOsar8c.js} +1 -1
- package/dist/assets/{DelegatePanel-DN_ZL0j7.js → DelegatePanel-BkTtUMSl.js} +1 -1
- package/dist/assets/{DemoGallery-DrSlMsnu.js → DemoGallery-BcQ9yz2u.js} +1 -1
- package/dist/assets/{DropSelect-GwIXHA5o.js → DropSelect-GKioj__f.js} +1 -1
- package/dist/assets/{ExportModal-DBUjC71U.js → ExportModal-1pWr-c7I.js} +1 -1
- package/dist/assets/{ExtractionPreview-D4M6eXqb.js → ExtractionPreview-TKyfEqwM.js} +1 -1
- package/dist/assets/{FeatureUseNotice-Bda9jr3W.js → FeatureUseNotice-pQe4YHgJ.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-DAO849RC.js → FlagshipCommandPalette-D1pv3hfZ.js} +1 -1
- package/dist/assets/{FlagshipShowcase-g2x-1c70.js → FlagshipShowcase-CCFFcaL7.js} +1 -1
- package/dist/assets/{FlashcardsApp-BUKzCr65.js → FlashcardsApp-Dbe-8UkQ.js} +1 -1
- package/dist/assets/{GalleryApp-ot_A7ZF-.js → GalleryApp-CCLYcEqn.js} +1 -1
- package/dist/assets/{HonestByDesign-DgZFEpEx.js → HonestByDesign-ByOR1sRQ.js} +1 -1
- package/dist/assets/{HowItWorks-DPFpdeGE.js → HowItWorks-Dllc30ph.js} +1 -1
- package/dist/assets/{LegalApp-C56kWdmK.js → LegalApp-CpblxmmB.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-BBTHuW_M.js → LegalMarkdownDocument-CmxHsXlb.js} +1 -1
- package/dist/assets/{LegalPageShell-hMA-7JLf.js → LegalPageShell-CDD6D6T_.js} +1 -1
- package/dist/assets/{LibraryOverlay-DSUWcUe4.js → LibraryOverlay-CHmubwG3.js} +1 -1
- package/dist/assets/{LiveApp-B62EMybC.js → LiveApp-CSbjhgzM.js} +4 -4
- package/dist/assets/{LiveSettings-BITIaMoT.js → LiveSettings-B4T6x41n.js} +3 -3
- package/dist/assets/{MindMapViewerDrawer-CKdJtHno.js → MindMapViewerDrawer-BLRBWsTz.js} +1 -1
- package/dist/assets/{MindShape-B3lg_z4X.js → MindShape-CaDuLyGa.js} +1 -1
- package/dist/assets/{PinToDashboard-DpQjBLPa.js → PinToDashboard-ChK2Ou73.js} +1 -1
- package/dist/assets/{PlanReview-CrTbmMAd.js → PlanReview-Dg6VE0xF.js} +1 -1
- package/dist/assets/{PresentationDeck-CfYadu9V.js → PresentationDeck-oEd6TXdN.js} +1 -1
- package/dist/assets/{PrismApp-bRKK_3JA.js → PrismApp-Bju264hL.js} +2 -2
- package/dist/assets/{PrismBriefingPlayer-ChJj6hSS.js → PrismBriefingPlayer-BY0RREUu.js} +2 -2
- package/dist/assets/{PrismOverlay-Pp6ZKmTc.js → PrismOverlay-DOWyOUVW.js} +3 -3
- package/dist/assets/{PrismWorkbench-BCV7r4Oa.js → PrismWorkbench-9RonO2uv.js} +1 -1
- package/dist/assets/{PrivacyApp-A2Bu6LVd.js → PrivacyApp-CBPMqUEA.js} +1 -1
- package/dist/assets/{ReplayCard-B6NYiYzQ.js → ReplayCard-BnX73r9n.js} +2 -2
- package/dist/assets/{ReplayOverlay-BJKtJ-vc.js → ReplayOverlay-B-Ok0mEs.js} +1 -1
- package/dist/assets/{RippleApp-BXt7tenS.js → RippleApp-BnIUhIA0.js} +2 -2
- package/dist/assets/{RippleOverlay-BSxubBwj.js → RippleOverlay-C9W7uVOp.js} +2 -2
- package/dist/assets/{SeeDontRead-0He5hS2C.js → SeeDontRead-ByW9HnOj.js} +1 -1
- package/dist/assets/{ShareModal-xYdZWJxy.js → ShareModal-Mo-dkgAZ.js} +2 -2
- package/dist/assets/{ShipCourse-Dg6kCWyH.js → ShipCourse-CT_F9oJH.js} +1 -1
- package/dist/assets/{SignatureLoop-QPwB2oNN.js → SignatureLoop-DejFTZ-Y.js} +1 -1
- package/dist/assets/{SynthesisApp-DrCq6NDa.js → SynthesisApp-6W04mrMU.js} +2 -2
- package/dist/assets/{SynthesisOverlay-DCa-2Pz_.js → SynthesisOverlay-DDyFFiO8.js} +1 -1
- package/dist/assets/{TermsApp-zcPDYfuh.js → TermsApp-ZzlhrXhd.js} +1 -1
- package/dist/assets/{TopicCanvas-Bw4bMFpe.js → TopicCanvas-CkqP92SC.js} +2 -2
- package/dist/assets/{TourPrism-DbinDupp.js → TourPrism-Cng4h9Ly.js} +1 -1
- package/dist/assets/{TrackerTile-CrT9u1I4.js → TrackerTile-DuUsFQTj.js} +2 -2
- package/dist/assets/{TwoSurfaces-L0CDuyOZ.js → TwoSurfaces-BeYMvVuX.js} +1 -1
- package/dist/assets/{WorldOverlay-BcjqG1BR.js → WorldOverlay-DeVpS8HE.js} +1 -1
- package/dist/assets/{WowFeatures-CwBk4ZMO.js → WowFeatures-D58JgpLg.js} +1 -1
- package/dist/assets/{ZoomDeck-DlnesweX.js → ZoomDeck-CPG2XQhr.js} +1 -1
- package/dist/assets/{backup-685QrAjt.js → backup-CtEvuZoL.js} +1 -1
- package/dist/assets/canvas-Ct-O9Jok.js +1 -0
- package/dist/assets/{capture-DgJLQ_0-.js → capture-CgaD86-q.js} +1 -1
- package/dist/assets/{catalog-Db9GWM6N.js → catalog-DfIYAG3v.js} +1 -1
- package/dist/assets/{confirmAdd-CZ829Mbx.js → confirmAdd-CxWIORcu.js} +1 -1
- package/dist/assets/{dashboardEvents-CiayRLrH.js → dashboardEvents-D1OP4ARB.js} +1 -1
- package/dist/assets/{deepen-DAeHHFiI.js → deepen-BhP9OmH3.js} +1 -1
- package/dist/assets/{effort-jJe4iMIq.js → effort-Bqti44UZ.js} +1 -1
- package/dist/assets/{generateBeats-COflu5Zi.js → generateBeats-CtffeoEa.js} +1 -1
- package/dist/assets/{generateLive-DGwnpIip.js → generateLive-D5M8v38b.js} +1 -1
- package/dist/assets/{index-LiHcEJt_.js → index-CdUH6Eo9.js} +3 -3
- package/dist/assets/{kokoro-DXRj0KQX.js → kokoro-D15HDMcP.js} +1 -1
- package/dist/assets/{liveSchema-DyfND6P2.js → liveSchema-B8Y9HZxd.js} +1 -1
- package/dist/assets/{loader-DgMLGfAC.js → loader-ChcXMM9W.js} +2 -2
- package/dist/assets/{notes-DzIAEESd.js → notes-BG5pIVAJ.js} +1 -1
- package/dist/assets/{perfProbe-ezVn1mOu.js → perfProbe-DaLsQQBb.js} +1 -1
- package/dist/assets/{pin-BPGVDgnq.js → pin-BcKMUOiV.js} +1 -1
- package/dist/assets/{portal-B9DmFo6J.js → portal-BIN_aqvw.js} +1 -1
- package/dist/assets/{prewarm-BgUqAJbF.js → prewarm-CyvSJKv4.js} +1 -1
- package/dist/assets/{quietHours-DyynzDyC.js → quietHours-D1nboK5q.js} +1 -1
- package/dist/assets/{registry-BlujNlQJ.js → registry-BFQQpjO2.js} +1 -1
- package/dist/assets/{registry-D06LKiUk.js → registry-C8FuGbOr.js} +1 -1
- package/dist/assets/{registry-CEV5h2cu.css → registry-CIcGBgtK.css} +1 -1
- package/dist/assets/{registry-BJEvFgoL.js → registry-CcHxIYQN.js} +1 -1
- package/dist/assets/{registry-BT6ydF33.js → registry-DPBJYRmC.js} +1 -1
- package/dist/assets/registry-DdVZGvkL.js +48 -0
- package/dist/assets/{registry-7tKTrzeZ.js → registry-DdgeK4fY.js} +1 -1
- package/dist/assets/{registry-Bl7zAWKt.js → registry-Dt0wu9rC.js} +1 -1
- package/dist/assets/{relate-aQFFr11O.js → relate-CqYpFpsO.js} +1 -1
- package/dist/assets/{replay-CalqEgdW.js → replay-NognvQfM.js} +1 -1
- package/dist/assets/{select-wEtBn9U6.js → select-Dp-OeZfq.js} +1 -1
- package/dist/assets/shard054-CNzJxw2V.js +1 -0
- package/dist/assets/{useDashboardLoop-ifcuVRo-.js → useDashboardLoop-C3iCNS8X.js} +3 -3
- package/dist/assets/{useStudy-CySgE3Cx.js → useStudy-CwCIyiTb.js} +1 -1
- package/dist/assets/{walkSync-DBne70gg.js → walkSync-DC9iE0BX.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/ConversationVideoStudio-DMIPUCcq.js +0 -1
- package/dist/assets/DashboardLoopRuntime-Dsy9u1wa.js +0 -1
- package/dist/assets/canvas-C3O7MEA3.js +0 -1
- package/dist/assets/registry-KRYoVMCh.js +0 -48
- package/dist/assets/shard054-BoC-LNYu.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{l as i,u as a}from"./index-LiHcEJt_.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{r as c}from"./format-q0LwBjID.js";import{a as l,n as u}from"./scale-Bcgfo6Hp.js";import"./lib-u95BsX_B.js";import{n as d}from"./motion-DxHSlPN6.js";import{t as f}from"./registry-types-D3q_LrlV.js";import{t as p}from"./useInterval-DDgFrel2.js";var m=[[/thunder|lightning|\bstorm/,`storm`],[/snow|sleet|flurr|blizzard|\bice\b|wintry/,`snow`],[/rain|drizzle|shower|precip|pour/,`rain`],[/wind|breez|gust|gale/,`wind`],[/cloud|overcast|fog|mist|haze|smoke/,`cloud`],[/sun|clear|fair|\bhot\b|warm/,`sun`]],h=[[/walk|\bfoot\b|pedestrian|stroll/,`walk`],[/subway|metro|underground|\btube\b/,`subway`],[/train|\brail|tram|streetcar/,`train`],[/bus|coach|shuttle/,`bus`],[/bike|bicycl|cycl|scooter/,`bike`],[/ferry|boat|ship|water taxi/,`ferry`],[/car|driv|taxi|\bcab\b|rideshare|uber|lyft/,`car`]];function g(e,t,n){if(e&&e in o)return o[e];let r=(e??``).toLowerCase();for(let[e,n]of t)if(e.test(r))return o[n];return o[n]}var _=e=>g(e,m,`sun`),v=e=>g(e,h,`walk`),y=r(),b={width:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function x({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,unit:i,asOf:a,days:c,summary:l,footer:u,delay:d}){let f=o[t]||o.sun,p=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`fc-meta`,children:[r&&(0,y.jsx)(`span`,{children:r}),i&&(0,y.jsxs)(`span`,{children:[`°`,i]})]}),a&&(0,y.jsx)(`div`,{className:`fc-asof`,children:a}),(0,y.jsx)(`div`,{className:`fc-grid`,children:p.map((e,t)=>{let n=_(e.icon||e.condition);return(0,y.jsxs)(`div`,{className:`fc-day`,children:[(0,y.jsx)(`div`,{className:`fc-label`,children:e.label}),(0,y.jsx)(`div`,{className:`fc-icon`,children:(0,y.jsx)(n,{className:`ic`})}),(0,y.jsx)(`div`,{className:`fc-condition`,style:b,title:e.condition,children:e.condition}),(e.hi!==void 0||e.lo!==void 0)&&(0,y.jsxs)(`div`,{className:`fc-temps`,children:[e.hi!==void 0&&(0,y.jsx)(`span`,{className:`fc-hi`,children:e.hi}),e.lo!==void 0&&(0,y.jsx)(`span`,{className:`fc-lo`,children:e.lo})]}),e.precipitation&&(0,y.jsx)(`div`,{className:`fc-precip`,children:e.precipitation})]},t)})}),l&&(0,y.jsx)(`div`,{className:`fc-summary`,children:l}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var S=e=>Number.isFinite(e)?Math.round(e):null;function C({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,tempF:i,feelsLikeF:a,condition:c,hi:l,lo:u,asOf:d,hourly:f,tiles:p,footer:m,delay:h}){let g=o[t]||o.sun,v=_(c),b=f??[],x=p??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`wn-location`,children:r}),(0,y.jsxs)(`div`,{className:`wn-hero`,children:[(0,y.jsx)(`div`,{className:`wn-hero-icon`,children:(0,y.jsx)(v,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`wn-hero-main`,children:[(0,y.jsxs)(`span`,{className:`wn-hero-temp tab-num`,"data-mark":`underline`,children:[S(i)??`—`,`°`]}),(0,y.jsxs)(`div`,{className:`wn-hero-meta`,children:[(0,y.jsx)(`span`,{className:`wn-condition`,children:c}),S(a)!==null&&(0,y.jsxs)(`span`,{className:`wn-feels`,children:[`Feels like `,S(a),`°`]}),(S(l)!==null||S(u)!==null)&&(0,y.jsxs)(`span`,{className:`wn-hilo`,children:[S(l)!==null&&(0,y.jsxs)(`span`,{className:`wn-hi`,children:[`H `,S(l),`°`]}),S(u)!==null&&(0,y.jsxs)(`span`,{className:`wn-lo`,children:[`L `,S(u),`°`]})]})]})]})]}),d&&(0,y.jsxs)(`div`,{className:`wn-asof`,children:[`As of `,d]}),b.length>0&&(0,y.jsx)(`div`,{className:`wn-hourly-scroll`,children:(0,y.jsx)(`div`,{className:`wn-hourly`,children:b.map((e,t)=>{let n=_(e.icon||void 0);return(0,y.jsxs)(`div`,{className:`wn-hour m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`wn-hour-time`,children:e.time}),(0,y.jsx)(n,{className:`ic wn-hour-icon`}),(0,y.jsxs)(`span`,{className:`wn-hour-temp tab-num`,children:[S(e.tempF)??`—`,`°`]}),S(e.precipPct)!==null&&S(e.precipPct)>0&&(0,y.jsxs)(`span`,{className:`wn-hour-precip`,children:[S(e.precipPct),`%`]})]},t)})})}),x.length>0&&(0,y.jsx)(`div`,{className:`wn-tiles`,children:x.map((e,t)=>{let n=e.icon?o[e.icon]:void 0;return(0,y.jsxs)(`div`,{className:`wn-tile m-stagger-item m-fade-rise`,style:{"--i":t},children:[n&&(0,y.jsx)(n,{className:`ic wn-tile-icon`}),(0,y.jsx)(`span`,{className:`wn-tile-label`,children:e.label}),(0,y.jsx)(`span`,{className:`wn-tile-value tab-num`,children:e.value})]},t)})}),m&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(m)})]})}var w=[`var(--danger)`,`var(--warning)`,`var(--insight)`,`var(--presence)`,`var(--text-muted)`];function T({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rows:r,caption:i,footer:a,delay:c}){let l=o[t]||o.layers,u=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsx)(`div`,{className:`tl-caption`,children:i}),(0,y.jsx)(`div`,{className:`tl-rows`,children:u.map((e,t)=>{let n=e.color??w[t%w.length],r=e.items??[];return(0,y.jsxs)(`div`,{className:`tl-row m-stagger-item m-fade-rise`,style:{"--i":t,"--tier-c":n},children:[(0,y.jsx)(`div`,{className:`tl-rail`,title:e.tier,children:e.tier}),(0,y.jsx)(`div`,{className:`tl-items`,children:r.length>0?r.map((e,t)=>(0,y.jsx)(`span`,{className:`tl-chip`,children:e},t)):(0,y.jsx)(`span`,{className:`tl-empty`,children:`—`})})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var E={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};function D({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,employer:r,payPeriod:i,payDate:a,grossPay:c,earnings:l,deductions:u,netPay:d,ytdNet:f,footer:p,delay:m}){let h=o[t]||o.doc,g=l??[],_=u??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(r||i||a)&&(0,y.jsxs)(`div`,{className:`ps-header`,children:[r&&(0,y.jsx)(`div`,{className:`ps-employer`,children:r}),(0,y.jsxs)(`div`,{className:`ps-period-row`,children:[i&&(0,y.jsx)(`span`,{className:`ps-period`,children:i}),a&&(0,y.jsxs)(`span`,{className:`ps-paydate`,children:[`Paid `,a]})]})]}),(0,y.jsxs)(`div`,{className:`ps-gross-row`,children:[(0,y.jsx)(`span`,{children:`Gross pay`}),(0,y.jsx)(`span`,{style:E,children:c})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Earnings`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:g.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsx)(`span`,{className:`ps-line-amt`,style:E,children:e.amount})]},t))})]}),_.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Deductions`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:_.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line ps-line--deduction m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`ps-line-amt ps-deduction-amt`,style:E,children:[`−`,e.amount]})]},t))})]}),(0,y.jsxs)(`div`,{className:`ps-net-row`,children:[(0,y.jsx)(`span`,{children:`Net pay`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...E,color:`var(--presence)`},children:d})]}),f&&(0,y.jsxs)(`div`,{className:`ps-ytd-row`,children:[(0,y.jsx)(`span`,{children:`Year-to-date net`}),(0,y.jsx)(`span`,{style:E,children:f})]}),p&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(p)})]})}var O=t();function k(e,t){if(t<=1)return`var(--presence)`;let n=e/(t-1);return n<=.5?`color-mix(in oklab, var(--warning) ${Math.round(n/.5*100)}%, var(--insight))`:`color-mix(in oklab, var(--danger) ${Math.round((n-.5)/.5*100)}%, var(--warning))`}function A(e,t){return t+Math.round(Math.abs(e)).toLocaleString()}function j(e,t){let n=A(e.min,t);return e.max===void 0?`${n}+`:`${n}–${A(e.max,t)}`}function M(e,t){for(let n=e.length-1;n>=0;n--)if(t>=e[n].min)return e[n];return e[0]}function ee(e,t){let n=0;for(let r of e){if(t<=r.min)break;let e=r.max===void 0?t:Math.min(r.max,t);n+=Math.max(0,e-r.min)*(r.rate/100)}return n}function te({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bands:r,income:i,filingStatus:a,effectiveRate:c,marginalRate:l,currency:u=`$`,footer:d,delay:f}){let p=o[t]||o.chart,m=Number.isFinite(i)?Math.max(0,i):0,h=(0,O.useMemo)(()=>{let e=[...(r??[]).filter(e=>Number.isFinite(e?.min)&&Number.isFinite(e?.rate)).map(e=>Number.isFinite(e.max)?e:{...e,max:void 0})].sort((e,t)=>e.min-t.min);if(e.length===0)return null;let t=e.map(e=>e.max).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):e[0].min,i=Math.max(m,n,1)*1.08,a=M(e,m),o=ee(e,m);return{sorted:e,scaleMax:i,current:a,effective:c??(m>0?o/m*100:0),marginal:l??a?.rate??e[0].rate,needlePct:Math.min(100,Math.max(0,m/i*100))}},[r,m,c,l]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),h?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`tb-header`,children:[a&&(0,y.jsx)(`span`,{className:`tb-filing`,children:a}),(0,y.jsxs)(`span`,{className:`tb-income`,children:[`Income `,(0,y.jsx)(`span`,{className:`tab-num`,children:A(m,u)})]})]}),(0,y.jsxs)(`div`,{className:`tb-barwrap`,children:[(0,y.jsx)(`div`,{className:`tb-bracket-bar`,role:`img`,"aria-label":`Income tax brackets up to ${A(h.scaleMax,u)}`,children:h.sorted.map((e,t)=>{let n=e.max??h.scaleMax,r=e.min/h.scaleMax*100,i=Math.max(0,(n-e.min)/h.scaleMax*100),a=e===h.current;return(0,y.jsx)(`span`,{className:`tb-seg${a?` current`:``}`,style:{left:`${r}%`,width:`${i}%`,background:k(t,h.sorted.length)},title:`${e.rate}% · ${j(e,u)}`},t)})}),(0,y.jsxs)(`div`,{className:`tb-needle`,style:{left:`${h.needlePct}%`},children:[(0,y.jsx)(`span`,{className:`tb-needle-line`}),(0,y.jsx)(`span`,{className:`tb-needle-tag`,children:`You`})]})]}),(0,y.jsx)(`div`,{className:`tb-legend`,children:h.sorted.map((e,t)=>(0,y.jsxs)(`span`,{className:`tb-leg-item m-stagger-item m-fade-rise${e===h.current?` current`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`tb-leg-dot`,style:{background:k(t,h.sorted.length)}}),(0,y.jsx)(`span`,{className:`tb-leg-range`,children:j(e,u)}),(0,y.jsxs)(`span`,{className:`tb-leg-rate tab-num`,children:[e.rate,`%`]})]},t))}),(0,y.jsxs)(`div`,{className:`tb-rates`,children:[(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Effective rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,children:[h.effective.toFixed(1),`%`]})]}),(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Marginal rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,"data-mark":`underline`,children:[h.marginal,`%`]})]})]})]}):(0,y.jsx)(`div`,{className:`tb-note`,children:`No bracket data was given for this chart.`}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function ne({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,venue:r,subtitle:i,sections:a,footer:c,delay:l}){let u=o[t]||o.sparkle,d=a??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`mc-header`,children:[r&&(0,y.jsx)(`div`,{className:`mc-venue`,children:r}),i&&(0,y.jsx)(`div`,{className:`mc-subtitle`,children:i})]}),(0,y.jsx)(`div`,{className:`mc-sections`,children:d.map((e,t)=>{let n=e.items??[];return(0,y.jsxs)(`div`,{className:`mc-section`,children:[(0,y.jsx)(`div`,{className:`mc-section-name`,children:e.name}),(0,y.jsx)(`div`,{className:`mc-items`,children:n.map((e,n)=>(0,y.jsxs)(`div`,{className:`mc-item m-stagger-item m-fade-rise`,style:{"--i":t*8+n},children:[(0,y.jsxs)(`div`,{className:`mc-item-row`,children:[(0,y.jsx)(`span`,{className:`mc-item-name`,children:e.name}),e.price&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{className:`mc-leader`,"aria-hidden":`true`}),(0,y.jsx)(`span`,{className:`mc-price`,children:e.price})]})]}),e.desc&&(0,y.jsx)(`div`,{className:`mc-desc`,children:e.desc}),e.tags&&e.tags.length>0&&(0,y.jsx)(`div`,{className:`mc-tags`,children:e.tags.map((e,t)=>(0,y.jsx)(`span`,{className:`mc-tag`,children:e},t))})]},n))})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var N=n();function P(e){let t=(0,N.c)(6),{x1:n,y1:r,x2:i,y2:a,className:o}=e,s=(0,O.useRef)(null);d(s);let c;return t[0]!==o||t[1]!==n||t[2]!==i||t[3]!==r||t[4]!==a?(c=(0,y.jsx)(`line`,{ref:s,x1:n,y1:r,x2:i,y2:a,className:o}),t[0]=o,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=c):c=t[5],c}var F=96,I=36,re=16,ie=20,ae=108,L=128,oe=108,se=14,ce=16,le=[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`];function ue(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function de(e,t){return e&&t?`${e}–${t}`:e?`b. ${e}`:t?`d. ${t}`:``}function fe(e,t){let n=new Map;for(let t of e)n.set(t.id,0);for(let t=0;t<e.length+1;t++){let t=!1;for(let r of e){if(!r.parents)continue;let e=r.parents.map(e=>n.get(e)).filter(e=>e!=null);if(e.length===0)continue;let i=Math.max(...e)+1;i>(n.get(r.id)??0)&&(n.set(r.id,i),t=!0)}if(!t)break}for(let r of e)if(r.partner&&t.has(r.partner)){let e=Math.max(n.get(r.id)??0,n.get(r.partner)??0);n.set(r.id,e),n.set(r.partner,e)}for(let r of e)if(r.parents?.length===2&&t.has(r.parents[0])&&t.has(r.parents[1])){let[e,t]=r.parents,i=Math.max(n.get(e)??0,n.get(t)??0);n.set(e,i),n.set(t,i)}return n}function pe(e,t){let n=new Map;for(let r of e){let e=(r.parents??[]).filter(e=>t.has(e)&&e!==r.id);if(e.length===0)continue;let i=[...e].sort().join(`\0`),a=n.get(i)??{parentIds:e,childIds:[]};a.childIds.push(r.id),n.set(i,a)}return[...n.values()]}function me({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],rootId:i,footer:a,delay:c}){let l=o[t]??o.share,u=(0,O.useMemo)(()=>{if(r.length===0)return null;let e=new Map;for(let t of r)e.set(t.id,t);let t=fe(r,e),n=pe(r,e),i=new Map;for(let e of n)e.parentIds.length===2&&(i.set(e.parentIds[0],e.parentIds[1]),i.set(e.parentIds[1],e.parentIds[0]));for(let t of r)t.partner&&e.has(t.partner)&&!i.has(t.id)&&(i.set(t.id,t.partner),i.set(t.partner,t.id));let a=new Map;for(let e of n){if(e.parentIds.length!==2)continue;let[t,n]=e.parentIds,r=a.get(t)??new Set;r.add(n),a.set(t,r);let i=a.get(n)??new Set;i.add(t),a.set(n,i)}let o=r.reduce((e,n)=>Math.max(e,t.get(n.id)??0),0),s=Array.from({length:o+1},()=>[]);for(let e of r)s[t.get(e.id)??0].push(e);let c=new Map;s.forEach(n=>{let r=0,a=new Set;for(let o of n){if(a.has(o.id))continue;c.set(o.id,r),a.add(o.id),r+=1;let n=i.get(o.id);n&&e.has(n)&&(t.get(n)??0)===(t.get(o.id)??0)&&!a.has(n)&&(c.set(n,r),a.add(n),r+=1)}});for(let e=o;e>=1;e--){for(let r of n){if(r.childIds.reduce((e,n)=>Math.max(e,t.get(n)??0),-1)!==e)continue;let n=r.childIds.map(e=>c.get(e)??0),i=(Math.min(...n)+Math.max(...n))/2;if(r.parentIds.length===2){let e=oe/L/2;c.set(r.parentIds[0],i-e),c.set(r.parentIds[1],i+e)}else c.set(r.parentIds[0],i)}let r=s[e-1].slice().sort((e,t)=>(c.get(e.id)??0)-(c.get(t.id)??0));for(let e=1;e<r.length;e++){let t=c.get(r[e-1].id)??0,n=c.get(r[e].id)??0,a=i.get(r[e-1].id)===r[e].id?oe/L:1;n-t<a&&c.set(r[e].id,t+a)}}let l=r.map(e=>c.get(e.id)??0),u=Math.min(...l,0),d=Math.max(...l,0),f=e=>82+(e-u)*L,p=e=>36+e*ae,m=r.map(e=>{let n=t.get(e.id)??0;return{...e,gen:n,cx:f(c.get(e.id)??0),cy:p(n)}}),h=new Map;for(let e of m)h.set(e.id,e);return{placed:m,placedById:h,groups:n,matedInGroup:a,partnerOf:i,rows:s,maxGen:o,W:144+(d-u)*L,H:36+o*ae+I/2+re,rowY:p}},[r]);if(!u)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-note`,children:`No family data was given for this tree.`})]});let{placed:d,placedById:f,groups:p,matedInGroup:m,partnerOf:h,rows:g,W:_,H:v,rowY:b}=u;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-wrap`,children:(0,y.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`ft-svg`,role:`img`,"aria-label":e,children:[g.map((e,t)=>e.length?(0,y.jsx)(`text`,{x:ie/2,y:b(t)+4,className:`ft-gen`,textAnchor:`middle`,children:le[t]??t+1},`gen${t}`):null),p.map((e,t)=>{let n=e.childIds.map(e=>f.get(e)).filter(e=>!!e);if(n.length===0)return null;let r=n[0].cy,i,a;if(e.parentIds.length===2){let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]);if(!t||!n)return null;i=(t.cx+n.cx)/2,a=t.cy}else{let t=f.get(e.parentIds[0]);if(!t)return null;i=t.cx,a=t.cy}let o=(a+r)/2,s=n.map(e=>e.cx),c=Math.min(...s),l=Math.max(...s);return(0,y.jsxs)(`g`,{className:`ft-links`,children:[e.parentIds.length===2&&(()=>{let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]),[r,i]=t.cx<=n.cx?[t,n]:[n,t];return(0,y.jsx)(P,{x1:r.cx+F/2,y1:r.cy,x2:i.cx-F/2,y2:i.cy,className:`ft-line`})})(),(0,y.jsx)(P,{x1:i,y1:a,x2:i,y2:o,className:`ft-line`}),n.length>1&&(0,y.jsx)(P,{x1:c,y1:o,x2:l,y2:o,className:`ft-line`}),n.map(e=>(0,y.jsx)(P,{x1:e.cx,y1:o,x2:e.cx,y2:e.cy-I/2,className:`ft-line`},e.id))]},`grp${t}`)}),d.map(e=>{let t=h.get(e.id);if(!t||e.id>t||m.get(e.id)?.has(t))return null;let n=f.get(e.id),r=f.get(t);if(!n||!r||n.cy!==r.cy)return null;let[i,a]=n.cx<r.cx?[n,r]:[r,n];return(0,y.jsx)(P,{x1:i.cx+F/2,y1:i.cy,x2:a.cx-F/2,y2:a.cy,className:`ft-line`},`mp${e.id}`)}),d.map((e,t)=>{let n=de(e.birth,e.death),r=ue(e.name,se),a=n?`${e.name} (${n})`:e.name,o=!!i&&e.id===i;return(0,y.jsxs)(`g`,{className:`ft-card m-stagger-item m-scale-in${o?` ft-card--root`:``}${e.death?` ft-card--deceased`:``}`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`rect`,{x:e.cx-F/2,y:e.cy-I/2,width:F,height:I,rx:8,className:`ft-card-rect`}),(0,y.jsx)(`text`,{x:e.cx,y:e.cy+(n?-4:3),textAnchor:`middle`,className:`ft-card-name`,children:r}),n&&(0,y.jsx)(`text`,{x:e.cx,y:e.cy+11,textAnchor:`middle`,className:`ft-card-dates`,children:ue(n,ce)})]},e.id)})]})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(a)})]})}var R=20,z=30,B=15;function V(e){return Number.isFinite(e.seats)?Math.max(0,e.seats):0}function he(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}function ge(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function H(e){return Math.min(52,24+e*2.2)}function U(e){return{w:Math.min(150,56+e*5),h:46}}function W(e){return Math.max(5,9-Math.max(0,e-12)*.15)}function G(e){if(e.shape===`rect`){let{w:t,h:n}=U(V(e));return Math.max(t,n)/2+B+W(V(e))}return H(V(e))+B+W(V(e))}function _e(e,t,n,r,i){let a=n/2,o=r/2,s=2*(n+r),c=(i%s+s)%s;return c<=n?{x:e-a+c,y:t-o-B}:(c-=n,c<=r?{x:e+a+B,y:t-o+c}:(c-=r,c<=n?{x:e+a-c,y:t+o+B}:(c-=n,{x:e-a-B,y:t+o-c})))}function ve(e,t,n,r){let i=Math.max(1,V(e));if(e.shape===`rect`){let{w:a,h:o}=U(V(e)),s=2*(a+o);return _e(t,n,a,o,r/i*s)}let a=H(V(e))+B,o=r/i*Math.PI*2-Math.PI/2;return{x:t+a*Math.cos(o),y:n+a*Math.sin(o)}}function ye({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,venue:r,tables:i=[],assignments:a=[],footer:c,delay:l}){let u=o[t]||o.table,d=(0,O.useMemo)(()=>{if(i.length===0)return null;let e=new Map;for(let t of a)e.set(`${t.tableId}:${t.seatIndex}`,t.guest);let t=i.every(e=>e.x!==void 0&&e.y!==void 0),n=new Map;if(t){let e=i.map(e=>e.x),t=i.map(e=>e.y),r=Math.min(...e),a=Math.max(...e),o=Math.min(...t),s=Math.max(...t),c=a-r||1,l=s-o||1,u=Math.max(...i.map(G))*2+z,d=Math.max(1,Math.ceil(Math.sqrt(i.length))),f=d*u,p=Math.ceil(i.length/d)*u,m=Math.max(...i.map(G));i.forEach(e=>{n.set(e.id,{x:R+m+(e.x-r)/c*f,y:R+m+(e.y-o)/l*p})})}else{let e=Math.max(1,Math.ceil(Math.sqrt(i.length))),t=Math.max(...i.map(G)),r=t*2+z;i.forEach((i,a)=>{let o=a%e,s=Math.floor(a/e);n.set(i.id,{x:R+t+o*r,y:R+t+s*r})})}let r=Math.max(...i.map(G)),o=Math.max(1,Math.ceil(Math.sqrt(i.length))),s=Math.ceil(i.length/o),c=r*2+z;return{pos:n,guestAt:e,W:40+r*2+(o-1)*c,H:40+r*2+(s-1)*c,totalSeats:i.reduce((e,t)=>e+Math.max(0,V(t)),0),assignedSeats:a.length}},[i,a]);if(!d)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sc-note`,children:`No seating data was given.`})]});let{pos:f,guestAt:p,W:m,H:h,totalSeats:g,assignedSeats:_}=d;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sc-summary`,children:[r&&(0,y.jsx)(`span`,{className:`sc-venue`,children:r}),(0,y.jsxs)(`span`,{className:`sc-count tab-num`,children:[_,` of `,g,` seated`]})]}),(0,y.jsx)(`div`,{className:`sc-wrap`,children:(0,y.jsx)(`svg`,{viewBox:`0 0 ${m} ${h}`,className:`sc-svg`,role:`img`,"aria-label":e,children:i.map((e,t)=>{let n=f.get(e.id);if(!n)return null;let r=e.shape===`rect`,i=H(V(e)),{w:a,h:o}=U(V(e)),s=W(V(e)),c=ge(e.label,r?14:9);return(0,y.jsxs)(`g`,{className:`sc-table m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:e.label}),r?(0,y.jsx)(`rect`,{x:n.x-a/2,y:n.y-o/2,width:a,height:o,rx:6,className:`sc-table-shape`}):(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:i,className:`sc-table-shape`}),(0,y.jsx)(`text`,{x:n.x,y:n.y+3,textAnchor:`middle`,className:`sc-table-label`,children:c}),Array.from({length:Math.max(0,V(e))},(t,r)=>{let i=ve(e,n.x,n.y,r),a=p.get(`${e.id}:${r}`);return(0,y.jsxs)(`g`,{children:[a&&(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`circle`,{cx:i.x,cy:i.y,r:s,className:a?`sc-seat sc-seat--filled`:`sc-seat sc-seat--empty`}),a&&s>=6.5&&(0,y.jsx)(`text`,{x:i.x,y:i.y+s*.34,textAnchor:`middle`,className:`sc-seat-initials`,style:{fontSize:s*.9},children:he(a)})]},r)})]},e.id)})})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}var be=520,xe=320,Se=260,Ce=160,we=16,K={family:{color:`var(--presence)`},ally:{color:`var(--insight)`,dash:`5 3`},rival:{color:`var(--danger)`,dash:`1.5 3`},romance:{color:`var(--presence-soft)`},colleague:{color:`var(--warning)`},other:{color:`var(--text-muted)`,dash:`2 3`}},q={family:`Family`,ally:`Ally`,rival:`Rival`,romance:`Romance`,colleague:`Colleague`,other:`Other`},Te=`M0 3.4 C0 1.1 -2.3 -0.5 -4 0.3 C-5.7 1.1 -5.7 3.4 -4 5.1 L0 9.1 L4 5.1 C5.7 3.4 5.7 1.1 4 0.3 C2.3 -0.5 0 1.1 0 3.4 Z`;function Ee(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function De({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],ties:i=[],layout:a=`circle`,footer:c,delay:l}){let u=o[t]||o.share,[d,f]=(0,O.useState)(null),p=(0,O.useMemo)(()=>{let e=new Map;if(a===`grid`){let t=Math.ceil(Math.sqrt(r.length)),n=440/Math.max(1,t-1||1),i=Math.ceil(r.length/t),a=240/Math.max(1,i-1||1);r.forEach((r,i)=>{let o=i%t,s=Math.floor(i/t);e.set(r.id,{x:40+o*n,y:40+s*a})})}else r.forEach((t,n)=>{let i=n/Math.max(1,r.length)*Math.PI*2-Math.PI/2;e.set(t.id,{x:Se+120*Math.cos(i),y:Ce+120*Math.sin(i)})});let t=new Map;return r.forEach(e=>t.set(e.id,new Set)),i.forEach(e=>{t.get(e.source)?.add(e.target),t.get(e.target)?.add(e.source)}),{pos:e,adj:t}},[r,i,a]),m=d?p.adj.get(d):null,h=e=>!d||e.source===d||e.target===d,g=e=>!d||e===d||!!m?.has(e),_=(0,O.useMemo)(()=>r.length?r.reduce((e,t)=>(p.adj.get(t.id)?.size??0)>(p.adj.get(e.id)?.size??0)?t:e,r[0]).id:null,[r,p.adj]),v=(0,O.useMemo)(()=>[...new Set(i.map(e=>e.kind))].filter(e=>e in K),[i]);return r.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`rm-note`,children:`No relationship data was given.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 ${be} ${xe}`,width:`100%`,className:`rm-svg`,children:[i.map((e,t)=>{let n=p.pos.get(e.source),r=p.pos.get(e.target);if(!n||!r)return null;let i=K[e.kind]??K.other,a=h(e),o=(n.x+r.x)/2,s=(n.y+r.y)/2;return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{className:`rm-edge m-stagger-item m-scale-in`,x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:i.color,strokeDasharray:i.dash,opacity:a?.9:.2,style:{"--i":t},children:(0,y.jsx)(`title`,{children:e.label?`${q[e.kind]} · ${e.label}`:q[e.kind]})}),e.kind===`romance`&&(0,y.jsx)(`path`,{d:Te,fill:i.color,opacity:a?1:.3,transform:`translate(${o} ${s})`})]},t)}),r.map((e,t)=>{let n=p.pos.get(e.id);if(!n)return null;let r=g(e.id),i=d===e.id,a=Ee(e.name,12);return(0,y.jsxs)(`g`,{className:`rm-node m-stagger-item m-scale-in`,style:{"--i":t},onMouseEnter:()=>f(e.id),onMouseLeave:()=>f(null),children:[(0,y.jsx)(`title`,{children:e.role?`${e.name} · ${e.role}`:e.name}),i&&(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:22,className:`rm-node-halo`}),(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:we,className:`rm-node-dot`,opacity:r?1:.32,"data-mark":e.id===_?`circle`:void 0}),(0,y.jsx)(`text`,{x:n.x,y:n.y+we+13,textAnchor:`middle`,className:`rm-node-label`,opacity:r?1:.32,children:a})]},e.id)})]}),v.length>0&&(0,y.jsx)(`ul`,{className:`rm-legend`,"aria-label":`Relationship key`,children:v.map(e=>(0,y.jsxs)(`li`,{className:`rm-leg-item`,children:[e===`romance`?(0,y.jsx)(`svg`,{viewBox:`-6 -1 12 11`,className:`rm-leg-heart`,"aria-hidden":`true`,children:(0,y.jsx)(`path`,{d:Te,transform:`translate(0 0)`,fill:K[e].color})}):(0,y.jsx)(`svg`,{viewBox:`0 0 20 8`,className:`rm-leg-swatch`,"aria-hidden":`true`,children:(0,y.jsx)(`line`,{x1:1,y1:4,x2:19,y2:4,stroke:K[e].color,strokeDasharray:K[e].dash,strokeWidth:2,strokeLinecap:`round`})}),q[e]]},e))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}function Oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,meetingDate:r,attendees:i,discussionPoints:a,decisions:c,actionItems:l,footer:u,delay:d}){let f=o[t]||o.doc,p=i??[],m=a??[],h=c??[],g=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`mn-date`,children:r}),p.length>0&&(0,y.jsx)(`div`,{className:`mn-attendees`,children:p.map((e,t)=>(0,y.jsx)(`span`,{className:`mn-attendee`,children:e},t))}),m.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Discussion`}),(0,y.jsx)(`ul`,{className:`mn-bullets`,children:m.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet`,children:e},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Decisions`}),(0,y.jsx)(`ul`,{className:`mn-bullets mn-bullets--decided`,children:h.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet mn-bullet--decided`,children:e},t))})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Action items`}),(0,y.jsx)(`ul`,{className:`mn-actions`,children:g.map((e,t)=>(0,y.jsxs)(`li`,{className:`mn-action m-stagger-item m-fade-rise${e.done?` done`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`mn-action-check`,"aria-hidden":`true`,children:e.done?(0,y.jsx)(o.check,{className:`ic`}):null}),(0,y.jsx)(`span`,{className:`mn-action-task`,children:e.task}),(e.owner||e.dueDate)&&(0,y.jsxs)(`span`,{className:`mn-action-badges`,children:[e.owner&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--owner`,children:e.owner}),e.dueDate&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--due`,children:e.dueDate})]})]},t))})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var ke=`M0 -5 L1.23 -1.7 L4.76 -1.55 L2 0.65 L2.94 4.05 L0 2.1 L-2.94 4.05 L-2 0.65 L-4.76 -1.55 L-1.23 -1.7 Z`;function Ae(e){let t=(0,N.c)(3),{className:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(`path`,{d:ke}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,y.jsx)(`svg`,{viewBox:`-5 -5 10 10`,className:n,"aria-hidden":`true`,children:r}),t[1]=n,t[2]=i),i}function je({title:e,icon:t=`sparkle`,iconColor:n=`var(--warning)`,behavior:r,people:i,days:a,marks:c,rewardAt:l,footer:u,delay:d}){let f=o[t]||o.sparkle,p=a??[],m=c??[],h=!!i&&i.length>0,g=h?i:[``],_=new Set(m.filter(e=>e.earned).map(e=>`${e.person??``}:${e.day}`)),v=m.filter(e=>e.earned).length,b=l!==void 0&&l>0,x=b?Math.min(100,v/l*100):0;return p.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sk-note`,children:`No days were given for this chart.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`sk-behavior`,children:r}),(0,y.jsx)(`div`,{className:`sk-scroll`,children:(0,y.jsxs)(`div`,{className:`sk-grid${h?` sk-grid--labeled`:``}`,style:{"--sk-cols":p.length},children:[h&&(0,y.jsx)(`span`,{className:`sk-corner`,"aria-hidden":`true`}),p.map((e,t)=>(0,y.jsx)(`span`,{className:`sk-day`,children:e},t)),g.map((t,n)=>(0,y.jsxs)(`div`,{className:`sk-row`,style:{display:`contents`},children:[h&&(0,y.jsx)(`span`,{className:`sk-person`,children:t}),p.map((r,i)=>{let a=_.has(`${t}:${r}`);return(0,y.jsx)(`span`,{className:`sk-cell m-stagger-item m-scale-in${a?` earned`:``}`,style:{"--i":n*p.length+i},title:`${t||e} · ${r}${a?` · earned`:``}`,children:a?(0,y.jsx)(Ae,{className:`sk-star`}):(0,y.jsx)(`span`,{className:`sk-empty`})},i)})]},n))]})}),b&&(0,y.jsxs)(`div`,{className:`sk-reward`,children:[(0,y.jsxs)(`div`,{className:`sk-reward-row`,children:[(0,y.jsx)(`span`,{children:`Toward the reward`}),(0,y.jsxs)(`span`,{className:`tab-num`,children:[Math.min(v,l),` of `,l]})]}),(0,y.jsx)(`div`,{className:`sk-reward-bar`,role:`progressbar`,"aria-valuenow":Math.round(x),children:(0,y.jsx)(`span`,{className:`sk-reward-fill`,style:{width:`${x}%`}})})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Me({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,items:i,footer:a,delay:c}){let l=o[t]||o.clock,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`ag-date`,children:r}),(0,y.jsx)(`div`,{className:`ag-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`ag-item${e.done?` done`:``}`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsx)(`div`,{className:`ag-time`,children:e.time??``}),(0,y.jsxs)(`div`,{className:`ag-body`,children:[(0,y.jsx)(`div`,{className:`ag-title`,children:e.title}),e.location&&(0,y.jsx)(`div`,{className:`ag-location`,children:e.location}),e.note&&(0,y.jsx)(`div`,{className:`ag-note`,children:e.note})]}),e.duration&&(0,y.jsx)(`div`,{className:`ag-dur`,children:e.duration})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ne({title:e,icon:t=`spark`,iconColor:n=`var(--warning)`,category:r,items:i,footer:a,delay:c}){let l=o[t]||o.spark,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`fc-meta`,children:(0,y.jsx)(`span`,{children:r})}),(0,y.jsx)(`div`,{className:`pk-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`pk-item`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsxs)(`div`,{className:`pk-rank`,children:[`#`,t+1]}),(0,y.jsxs)(`div`,{className:`pk-body`,children:[(0,y.jsx)(`div`,{className:`pk-name`,children:e.name}),e.tagline&&(0,y.jsx)(`div`,{className:`pk-tagline`,children:e.tagline}),e.why&&(0,y.jsx)(`div`,{className:`pk-why`,children:e.why}),(e.price||e.rating||e.badge)&&(0,y.jsxs)(`div`,{className:`pk-meta`,children:[e.price&&(0,y.jsx)(`span`,{className:`pk-price`,children:e.price}),e.rating&&(0,y.jsx)(`span`,{className:`pk-rating`,children:e.rating}),e.badge&&(0,y.jsx)(`span`,{className:`pk-badge`,children:e.badge})]})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Pe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,principal:r,rate:i,term:a,monthlyPayment:c,rows:l,footer:u,delay:d}){let f=o[t]||o.table,p=l??[],m=p.length-1,h=[{label:`Principal`,value:r},{label:`Rate`,value:i},{label:`Term`,value:a},{label:`Monthly payment`,value:c,highlight:!0}];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`am-summary`,children:h.map(e=>(0,y.jsxs)(`div`,{className:`am-field${e.highlight?` highlight`:``}`,children:[(0,y.jsx)(`span`,{className:`am-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`am-field-value`,...e.highlight?{"data-mark":`underline`}:{},children:e.value})]},e.label))}),(0,y.jsx)(`div`,{style:{overflowX:`auto`},children:(0,y.jsxs)(`table`,{className:`am-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{children:`Period`}),(0,y.jsx)(`th`,{children:`Payment`}),(0,y.jsx)(`th`,{children:`Principal`}),(0,y.jsx)(`th`,{children:`Interest`}),(0,y.jsx)(`th`,{children:`Balance`})]})}),(0,y.jsx)(`tbody`,{children:p.map((e,t)=>{let n=t===0||t===m;return(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`td`,{style:{fontWeight:n?500:void 0},children:e.period}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.payment}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.principal}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.interest}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.balance})]},t)})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Fe({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,baseTime:r,rows:i,footer:a,delay:c}){let l=o[t]||o.globe,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsxs)(`div`,{className:`tz-base`,children:[`Reference: `,r]}),(0,y.jsx)(`div`,{className:`tz-rows`,children:u.map((e,t)=>{let n=u.findIndex(e=>e.isHome),r=e.isHome||n===-1&&t===0;return(0,y.jsxs)(`div`,{className:e.isHome?`tz-row home`:`tz-row`,children:[(0,y.jsx)(`span`,{className:`tz-city`,children:e.city}),(0,y.jsx)(`span`,{className:`tz-offset`,children:e.offset}),(0,y.jsx)(`span`,{className:`tz-time`,...r?{"data-mark":`underline`}:{},children:e.localTime??e.timezone})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ie({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,origin:r,destination:i,totalTime:a,totalDistance:c,steps:l,footer:u,delay:d}){let f=o[t]||o.globe,p=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`tr-endpoints`,children:[(0,y.jsx)(`span`,{className:`tr-origin`,children:r}),(0,y.jsx)(`span`,{className:`tr-arrow`,children:`→`}),(0,y.jsx)(`span`,{className:`tr-dest`,children:i})]}),(a||c)&&(0,y.jsxs)(`div`,{className:`tr-total`,children:[a&&(0,y.jsx)(`span`,{children:a}),a&&c&&(0,y.jsx)(`span`,{children:`·`}),c&&(0,y.jsx)(`span`,{children:c})]}),(0,y.jsx)(`div`,{className:`tr-steps`,children:p.map((e,t)=>{let n=t===p.length-1,r=v(e.mode);return(0,y.jsxs)(`div`,{className:`tr-step${n?` tr-step--arrival`:``}`,style:{position:`relative`,paddingLeft:28},children:[!n&&(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:9,top:22,bottom:0,width:2,background:`var(--grid-line)`,borderRadius:1}}),(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:2,top:10,width:16,height:16,borderRadius:`50%`,background:n?`var(--presence)`:`color-mix(in oklab, var(--presence) 18%, var(--surface))`,border:`2px solid var(--presence)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}}),(0,y.jsx)(`div`,{className:`tr-mode-ic`,style:{position:`absolute`,left:32},children:(0,y.jsx)(r,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`tr-body`,style:{paddingLeft:20},children:[(0,y.jsx)(`div`,{className:`tr-instruction`,style:n?{fontWeight:700,color:`var(--presence)`}:void 0,...n?{"data-mark":`underline`}:{},children:e.instruction}),(e.line||e.duration||e.distance)&&(0,y.jsxs)(`div`,{className:`tr-meta`,children:[e.line&&(0,y.jsx)(`span`,{className:`tr-line-badge`,children:e.line}),e.duration&&(0,y.jsx)(`span`,{children:e.duration}),e.distance&&(0,y.jsx)(`span`,{children:e.distance})]})]})]},t)})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Le({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,merchant:r,date:i,lines:a,subtotal:c,tax:l,total:u,footer:d,delay:f}){let p=o[t]||o.cart,m=a??[],h={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{style:{marginBottom:12},children:[r&&(0,y.jsx)(`div`,{className:`rc-merchant`,children:r}),i&&(0,y.jsx)(`div`,{className:`rc-date`,children:i})]}),(0,y.jsx)(`div`,{className:`rc-lines`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`rc-line`,children:[(0,y.jsx)(`span`,{className:`rc-item`,children:e.item}),e.qty!==void 0&&(0,y.jsxs)(`span`,{className:`rc-qty`,children:[`×`,e.qty]}),e.unit!==void 0&&(0,y.jsx)(`span`,{className:`rc-unit`,style:h,children:e.unit}),(0,y.jsx)(`span`,{className:`rc-total`,style:h,children:e.total})]},t))}),(0,y.jsxs)(`div`,{className:`rc-subtotals`,children:[c!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Subtotal`}),(0,y.jsx)(`span`,{style:h,children:c})]}),l!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Tax`}),(0,y.jsx)(`span`,{style:h,children:l})]}),(0,y.jsxs)(`div`,{className:`rc-grand`,children:[(0,y.jsx)(`span`,{children:`Total`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...h,color:`var(--presence)`},children:u})]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Re={flex:1,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function ze({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,people:r,expenses:i,settlements:a,footer:c,delay:l}){let u=o[t]||o.layers,d=i??[],f=a??[],p=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0&&(0,y.jsx)(`div`,{className:`su-people`,children:p.map(e=>(0,y.jsx)(`span`,{className:`su-person-chip`,children:e},e))}),d.length>0&&(0,y.jsx)(`div`,{className:`su-expenses`,children:d.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-exp-row`,children:[(0,y.jsx)(`span`,{className:`su-exp-desc`,children:e.description}),(0,y.jsxs)(`span`,{className:`su-exp-paid`,children:[`paid by `,e.paidBy]}),(0,y.jsx)(`span`,{className:`su-exp-amt`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.amount})]},t))}),(0,y.jsx)(`div`,{className:`su-divider`,children:`Who pays who`}),(0,y.jsx)(`div`,{className:`su-settlements`,children:f.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-settle`,children:[(0,y.jsx)(`span`,{className:`su-from`,style:Re,title:e.from,children:e.from}),(0,y.jsx)(`span`,{className:`su-arrow`,"aria-hidden":!0,children:`→`}),(0,y.jsx)(`span`,{className:`su-to`,style:Re,title:e.to,children:e.to}),(0,y.jsx)(`span`,{className:`su-amt-pill`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},...t===0?{"data-mark":`underline`}:{},children:e.amount})]},t))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Be({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:r,items:i,footer:a,delay:c}){let l=o[t]??o.chart,u=(0,O.useMemo)(()=>[...i??[]].sort((e,t)=>t.value-e.value),[i]),d=(0,O.useMemo)(()=>u.reduce((e,t)=>Math.max(e,t.value),0)||1,[u]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`bb-metric`,children:r}),(0,y.jsx)(`div`,{className:`bb-items`,children:u.map((e,t)=>{let n=e.value/d*100,r=t===0,i=r?{width:`${n}%`,background:`var(--presence)`}:{width:`${n}%`,background:`color-mix(in oklab, var(--presence) 85%, transparent)`};return(0,y.jsxs)(`div`,{className:`bb-item`,children:[(0,y.jsx)(`span`,{className:`bb-badge`,children:e.badge??`${t+1}`}),(0,y.jsx)(`span`,{className:`bb-label`,title:e.label,children:e.label}),(0,y.jsx)(`div`,{className:`bb-bar-track`,role:`presentation`,children:(0,y.jsx)(`div`,{className:`bb-bar-fill`,style:i,...r?{"data-mark":`circle`}:{}})}),(0,y.jsx)(`span`,{className:`bb-value`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.bar??e.value})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ve({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,servings:r,prepTime:i,cookTime:a,difficulty:c,ingredients:l,steps:u,tips:d,footer:f,delay:p}){let m=o[t]||o.sparkle,[h,g]=(0,O.useState)(!1),_=c===`easy`?`var(--insight)`:c===`hard`?`var(--warning)`:`var(--text-muted)`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`rc2-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[`Serves `,r]}),i&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` Prep `,i]}),a&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.sun,{className:`ic`,style:{width:11,height:11}}),` Cook `,a]}),c&&(0,y.jsx)(`span`,{className:`rc2-chip`,style:{color:_},children:c.charAt(0).toUpperCase()+c.slice(1)})]}),(0,y.jsxs)(`div`,{className:`rc2-body`,children:[(0,y.jsxs)(`div`,{className:`rc2-ingredients`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Ingredients`}),(0,y.jsx)(`ul`,{className:`rc2-ing-list`,children:l.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-ing`,children:[(e.qty||e.unit)&&(0,y.jsxs)(`span`,{className:`rc2-qty`,children:[e.qty,e.unit?`\xA0`+e.unit:``]}),(0,y.jsx)(`span`,{className:`rc2-ing-name`,children:e.name})]},t))})]}),(0,y.jsxs)(`div`,{className:`rc2-steps`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Steps`}),(0,y.jsx)(`ol`,{className:`rc2-step-list`,children:u.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-step`,children:[(0,y.jsx)(`span`,{className:`rc2-step-num`,children:t+1}),(0,y.jsx)(`span`,{className:`rc2-step-text`,children:e})]},t))})]})]}),d&&d.length>0&&(0,y.jsxs)(`div`,{className:`rc2-tips-section`,children:[(0,y.jsxs)(`button`,{className:`rc2-tips-toggle`,onClick:()=>g(!h),children:[(0,y.jsx)(o.sparkle,{className:`ic`,style:{width:12,height:12}}),h?`Hide tips`:`${d.length} pro tip${d.length>1?`s`:``}`]}),h&&(0,y.jsx)(`ul`,{className:`rc2-tips-list`,children:d.map((e,t)=>(0,y.jsx)(`li`,{className:`rc2-tip`,children:e},t))})]}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function He({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,goal:r,weeks:i,sessions:a,footer:c,delay:l}){let u=o[t]||o.chart,[d,f]=(0,O.useState)(0),p=a[d];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`wp-header`,children:[r&&(0,y.jsx)(`span`,{className:`wp-goal`,children:r}),i&&(0,y.jsxs)(`span`,{className:`wp-weeks`,children:[i,`-week plan`]})]}),(0,y.jsx)(`div`,{className:`wp-tabs`,children:a.map((e,t)=>(0,y.jsx)(`button`,{className:`wp-tab${t===d?` active`:``}`,onClick:()=>f(t),children:e.day},t))}),p&&(0,y.jsxs)(`div`,{className:`wp-session`,children:[p.focus&&(0,y.jsx)(`div`,{className:`wp-focus`,children:p.focus}),(0,y.jsx)(`div`,{className:`wp-exercises`,children:(p.exercises??[]).map((e,t)=>(0,y.jsxs)(`div`,{className:`wp-exercise`,children:[(0,y.jsx)(`div`,{className:`wp-ex-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`wp-ex-badges`,children:[e.sets!==void 0&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.sets,` sets`]}),e.reps&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.reps,` reps`]}),e.duration&&(0,y.jsx)(`span`,{className:`wp-badge`,children:e.duration}),e.rest&&(0,y.jsxs)(`span`,{className:`wp-badge wp-badge--rest`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:10,height:10}}),` `,e.rest]})]}),e.note&&(0,y.jsx)(`div`,{className:`wp-ex-note`,children:e.note})]},t))})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ue(e){let t=parseInt(e.split(`:`)[0]??`0`,10);if(!isNaN(t))return t>=6&&t<20?`sun`:`moon`;let n=e.toLowerCase();return n.includes(`morning`)||n.includes(`noon`)||n.includes(`afternoon`)||n.includes(`pm`)?`sun`:n.includes(`night`)||n.includes(`evening`)?`moon`:`clock`}function We({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,medications:r,startDate:i,footer:a,delay:c}){let l=o[t]||o.bell;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsxs)(`div`,{className:`ms-start`,children:[`Starting `,i]}),(0,y.jsx)(`div`,{className:`ms-meds`,children:r.map((e,t)=>(0,y.jsxs)(`div`,{className:`ms-med`,children:[(0,y.jsxs)(`div`,{className:`ms-med-header`,children:[(0,y.jsx)(`div`,{className:`ms-med-name`,children:e.name}),(0,y.jsx)(`div`,{className:`ms-med-dose`,children:e.dose})]}),(0,y.jsxs)(`div`,{className:`ms-times`,children:[e.times.map((e,t)=>{let n=Ue(e),r=o[n];return(0,y.jsxs)(`span`,{className:`ms-time-chip`,children:[(0,y.jsx)(r,{className:`ic`,style:{width:11,height:11}}),` `,e]},t)}),e.withFood&&(0,y.jsx)(`span`,{className:`ms-food-chip`,children:`with food`})]}),(e.frequency||e.notes)&&(0,y.jsxs)(`div`,{className:`ms-meta`,children:[e.frequency&&(0,y.jsx)(`span`,{className:`ms-freq`,children:e.frequency}),e.notes&&(0,y.jsx)(`span`,{className:`ms-note`,children:e.notes})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ge({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,calories:r,protein:i,carbs:a,fat:c,fiber:l,items:u,footer:d,delay:f}){let p=o[t]||o.chart,m=i*4,h=a*4,g=c*9,_=m+h+g||1,v=[{label:`Protein`,value:i,color:`var(--presence)`,pct:m/_*100},{label:`Carbs`,value:a,color:`var(--insight)`,pct:h/_*100},{label:`Fat`,value:c,color:`var(--warning)`,pct:g/_*100},...l===void 0?[]:[{label:`Fiber`,value:l,color:`var(--text-muted)`,pct:0}]];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`mb-calorie`,children:[(0,y.jsx)(`span`,{className:`mb-cal-num`,children:r.toLocaleString()}),(0,y.jsx)(`span`,{className:`mb-cal-unit`,children:`kcal`})]}),(0,y.jsx)(`div`,{className:`mb-stack`,children:v.slice(0,3).map((e,t)=>(0,y.jsx)(`div`,{className:`mb-stack-seg m-stagger-item m-scale-in`,style:{width:`${e.pct}%`,background:e.color,"--i":t},title:`${e.label}: ${e.value}g`},e.label))}),(0,y.jsx)(`div`,{className:`mb-macros`,children:v.map(e=>(0,y.jsxs)(`div`,{className:`mb-macro`,children:[(0,y.jsx)(`span`,{className:`mb-macro-dot`,style:{background:e.color}}),(0,y.jsx)(`span`,{className:`mb-macro-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-macro-value`,children:[e.value,`g`]}),e.pct>0&&(0,y.jsxs)(`span`,{className:`mb-macro-pct`,children:[Math.round(e.pct),`%`]})]},e.label))}),u&&u.length>0&&(0,y.jsxs)(`div`,{className:`mb-items`,children:[(0,y.jsx)(`div`,{className:`mb-items-label`,children:`Per item`}),u.map((e,t)=>(0,y.jsxs)(`div`,{className:`mb-item`,children:[(0,y.jsx)(`span`,{className:`mb-item-name`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-item-stats`,children:[e.calories!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-cal`,children:[e.calories,` kcal`]}),e.protein!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`P `,e.protein,`g`]}),e.carbs!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`C `,e.carbs,`g`]}),e.fat!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`F `,e.fat,`g`]})]})]},t))]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Ke=e=>e.trim().toLowerCase();function qe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,columns:r,rows:i,summary:a,caption:c,footer:l,delay:u}){let d=o[t]||o.clock,f=r??[],p=i??[],m=`minmax(60px, 0.55fr) repeat(${Math.max(f.length,1)}, minmax(78px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`pg-caption`,children:c}),(0,y.jsx)(`div`,{className:`pg-scroll`,children:(0,y.jsxs)(`div`,{className:`pg-grid`,style:{gridTemplateColumns:m},children:[(0,y.jsx)(`div`,{className:`pg-corner`,"aria-hidden":`true`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-colhead`,children:e},`h${t}`)),p.map((e,t)=>{let n=new Map;return(e.cells??[]).forEach(e=>{e?.col&&n.set(Ke(e.col),e)}),(0,y.jsxs)(O.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot`,children:e.slot}),f.map((e,r)=>{let i=n.get(Ke(e));if(!i||!i.label)return(0,y.jsx)(`div`,{className:`pg-cell pg-cell--free`,children:(0,y.jsx)(`span`,{className:`pg-cell-free`,children:`free`})},`c${t}-${r}`);let a=i.accent?{borderInlineStartColor:i.accent,borderInlineStartWidth:3}:void 0;return(0,y.jsxs)(`div`,{className:`pg-cell${i.done?` done`:``}`,style:a,children:[(0,y.jsx)(`span`,{className:`pg-cell-label`,style:i.accent?{color:i.accent}:void 0,children:i.label}),i.sub&&(0,y.jsx)(`span`,{className:`pg-cell-sub`,children:i.sub})]},`c${t}-${r}`)})]},`r${t}`)}),a&&a.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot pg-slot--sum`,children:`Total`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-cell--sum`,children:a[t]??``},`s${t}`))]})]})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var Je={fixed:`var(--presence)`,flexible:`var(--warning)`,savings:`var(--insight)`};function J(e,t){let n=Math.abs(e),r=n.toLocaleString(void 0,{maximumFractionDigits:n%1==0?0:2});return(e<0?`-`:``)+t+r}function Ye({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,income:r,unit:i=`$`,incomeLabel:a=`Money in`,envelopes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.chart,p=c??[],m=Number(r)||0,h=m-p.reduce((e,t)=>e+(Number(t.amount)||0),0),g=h<0,_=e=>m>0?Math.min(100,Math.max(0,e/m*100)):0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),l&&(0,y.jsx)(`div`,{className:`ba-caption`,children:l}),(0,y.jsxs)(`div`,{className:`ba-income`,children:[(0,y.jsx)(`span`,{className:`ba-income-label`,children:a}),(0,y.jsx)(`span`,{className:`ba-income-val`,children:J(m,i)})]}),(0,y.jsx)(`div`,{className:`ba-envelopes`,children:p.map((e,t)=>{let n=e.accent??(e.group?Je[e.group]:`var(--presence)`),r=Number(e.amount)||0;return(0,y.jsxs)(`div`,{className:`ba-env`,children:[(0,y.jsxs)(`div`,{className:`ba-env-top`,children:[(0,y.jsxs)(`span`,{className:`ba-env-label`,children:[e.label,e.group&&(0,y.jsx)(`span`,{className:`ba-env-tag`,children:e.group})]}),(0,y.jsx)(`span`,{className:`ba-env-amt`,children:J(r,i)})]}),(0,y.jsx)(`div`,{className:`ba-bar`,children:(0,y.jsx)(`span`,{className:`ba-bar-fill m-stagger-item m-scale-in`,style:{width:_(r)+`%`,background:n,"--i":t}})}),e.note&&(0,y.jsx)(`div`,{className:`ba-env-note`,children:e.note})]},t)})}),(0,y.jsxs)(`div`,{className:`ba-remaining${g?` over`:``}`,children:[(0,y.jsx)(`span`,{className:`ba-rem-label`,children:g?`Over by`:`Left to allocate`}),(0,y.jsx)(`span`,{className:`ba-rem-val`,children:J(Math.abs(h),i)})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Xe={easy:`Easy`,medium:`Medium`,hard:`Hard`};function Ze({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,time:r,difficulty:i,warning:a,tools:c,steps:l,footer:u,delay:d}){let f=o[t]||o.check,p=l??[],m=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`hts-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`hts-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` `,r]}),i&&(0,y.jsx)(`span`,{className:`hts-chip hts-diff hts-diff--${i}`,children:Xe[i]??i})]}),a&&(0,y.jsxs)(`div`,{className:`hts-warning`,children:[(0,y.jsx)(o.alert,{className:`ic`}),(0,y.jsx)(`span`,{children:a})]}),m.length>0&&(0,y.jsxs)(`div`,{className:`hts-tools`,children:[(0,y.jsx)(`span`,{className:`hts-tools-label`,children:`You’ll need`}),(0,y.jsx)(`div`,{className:`hts-tools-chips`,children:m.map((e,t)=>(0,y.jsx)(`span`,{className:`hts-tool`,children:e},t))})]}),(0,y.jsx)(`ol`,{className:`hts-steps`,children:p.map((e,t)=>(0,y.jsxs)(`li`,{className:`hts-step`,children:[(0,y.jsx)(`span`,{className:`hts-num`,children:t+1}),(0,y.jsxs)(`div`,{className:`hts-body`,children:[(0,y.jsx)(`div`,{className:`hts-action`,children:e.action}),e.detail&&(0,y.jsx)(`div`,{className:`hts-detail`,children:e.detail}),e.caution&&(0,y.jsxs)(`div`,{className:`hts-caution`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:11,height:11}}),` `,e.caution]}),e.tip&&(0,y.jsx)(`div`,{className:`hts-tip`,children:e.tip}),e.check&&(0,y.jsxs)(`div`,{className:`hts-check`,children:[(0,y.jsx)(o.check,{className:`ic`,style:{width:11,height:11}}),` Done when:`,` `,e.check]})]})]},t))}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Qe={"+":1,"-":1,"*":2,"/":2,"^":3};function $e(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===` `||r===` `||r===`
|
|
1
|
+
import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{l as i,u as a}from"./index-CdUH6Eo9.js";import{n as o}from"./icons-gLFQTv74.js";import{t as s}from"./richText-BkxJhl9N.js";import{r as c}from"./format-q0LwBjID.js";import{a as l,n as u}from"./scale-Bcgfo6Hp.js";import"./lib-u95BsX_B.js";import{n as d}from"./motion-DxHSlPN6.js";import{t as f}from"./registry-types-D3q_LrlV.js";import{t as p}from"./useInterval-DDgFrel2.js";var m=[[/thunder|lightning|\bstorm/,`storm`],[/snow|sleet|flurr|blizzard|\bice\b|wintry/,`snow`],[/rain|drizzle|shower|precip|pour/,`rain`],[/wind|breez|gust|gale/,`wind`],[/cloud|overcast|fog|mist|haze|smoke/,`cloud`],[/sun|clear|fair|\bhot\b|warm/,`sun`]],h=[[/walk|\bfoot\b|pedestrian|stroll/,`walk`],[/subway|metro|underground|\btube\b/,`subway`],[/train|\brail|tram|streetcar/,`train`],[/bus|coach|shuttle/,`bus`],[/bike|bicycl|cycl|scooter/,`bike`],[/ferry|boat|ship|water taxi/,`ferry`],[/car|driv|taxi|\bcab\b|rideshare|uber|lyft/,`car`]];function g(e,t,n){if(e&&e in o)return o[e];let r=(e??``).toLowerCase();for(let[e,n]of t)if(e.test(r))return o[n];return o[n]}var _=e=>g(e,m,`sun`),v=e=>g(e,h,`walk`),y=r(),b={width:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function x({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,unit:i,asOf:a,days:c,summary:l,footer:u,delay:d}){let f=o[t]||o.sun,p=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`fc-meta`,children:[r&&(0,y.jsx)(`span`,{children:r}),i&&(0,y.jsxs)(`span`,{children:[`°`,i]})]}),a&&(0,y.jsx)(`div`,{className:`fc-asof`,children:a}),(0,y.jsx)(`div`,{className:`fc-grid`,children:p.map((e,t)=>{let n=_(e.icon||e.condition);return(0,y.jsxs)(`div`,{className:`fc-day`,children:[(0,y.jsx)(`div`,{className:`fc-label`,children:e.label}),(0,y.jsx)(`div`,{className:`fc-icon`,children:(0,y.jsx)(n,{className:`ic`})}),(0,y.jsx)(`div`,{className:`fc-condition`,style:b,title:e.condition,children:e.condition}),(e.hi!==void 0||e.lo!==void 0)&&(0,y.jsxs)(`div`,{className:`fc-temps`,children:[e.hi!==void 0&&(0,y.jsx)(`span`,{className:`fc-hi`,children:e.hi}),e.lo!==void 0&&(0,y.jsx)(`span`,{className:`fc-lo`,children:e.lo})]}),e.precipitation&&(0,y.jsx)(`div`,{className:`fc-precip`,children:e.precipitation})]},t)})}),l&&(0,y.jsx)(`div`,{className:`fc-summary`,children:l}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var S=e=>Number.isFinite(e)?Math.round(e):null;function C({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,location:r,tempF:i,feelsLikeF:a,condition:c,hi:l,lo:u,asOf:d,hourly:f,tiles:p,footer:m,delay:h}){let g=o[t]||o.sun,v=_(c),b=f??[],x=p??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`wn-location`,children:r}),(0,y.jsxs)(`div`,{className:`wn-hero`,children:[(0,y.jsx)(`div`,{className:`wn-hero-icon`,children:(0,y.jsx)(v,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`wn-hero-main`,children:[(0,y.jsxs)(`span`,{className:`wn-hero-temp tab-num`,"data-mark":`underline`,children:[S(i)??`—`,`°`]}),(0,y.jsxs)(`div`,{className:`wn-hero-meta`,children:[(0,y.jsx)(`span`,{className:`wn-condition`,children:c}),S(a)!==null&&(0,y.jsxs)(`span`,{className:`wn-feels`,children:[`Feels like `,S(a),`°`]}),(S(l)!==null||S(u)!==null)&&(0,y.jsxs)(`span`,{className:`wn-hilo`,children:[S(l)!==null&&(0,y.jsxs)(`span`,{className:`wn-hi`,children:[`H `,S(l),`°`]}),S(u)!==null&&(0,y.jsxs)(`span`,{className:`wn-lo`,children:[`L `,S(u),`°`]})]})]})]})]}),d&&(0,y.jsxs)(`div`,{className:`wn-asof`,children:[`As of `,d]}),b.length>0&&(0,y.jsx)(`div`,{className:`wn-hourly-scroll`,children:(0,y.jsx)(`div`,{className:`wn-hourly`,children:b.map((e,t)=>{let n=_(e.icon||void 0);return(0,y.jsxs)(`div`,{className:`wn-hour m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`wn-hour-time`,children:e.time}),(0,y.jsx)(n,{className:`ic wn-hour-icon`}),(0,y.jsxs)(`span`,{className:`wn-hour-temp tab-num`,children:[S(e.tempF)??`—`,`°`]}),S(e.precipPct)!==null&&S(e.precipPct)>0&&(0,y.jsxs)(`span`,{className:`wn-hour-precip`,children:[S(e.precipPct),`%`]})]},t)})})}),x.length>0&&(0,y.jsx)(`div`,{className:`wn-tiles`,children:x.map((e,t)=>{let n=e.icon?o[e.icon]:void 0;return(0,y.jsxs)(`div`,{className:`wn-tile m-stagger-item m-fade-rise`,style:{"--i":t},children:[n&&(0,y.jsx)(n,{className:`ic wn-tile-icon`}),(0,y.jsx)(`span`,{className:`wn-tile-label`,children:e.label}),(0,y.jsx)(`span`,{className:`wn-tile-value tab-num`,children:e.value})]},t)})}),m&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(m)})]})}var w=[`var(--danger)`,`var(--warning)`,`var(--insight)`,`var(--presence)`,`var(--text-muted)`];function T({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rows:r,caption:i,footer:a,delay:c}){let l=o[t]||o.layers,u=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsx)(`div`,{className:`tl-caption`,children:i}),(0,y.jsx)(`div`,{className:`tl-rows`,children:u.map((e,t)=>{let n=e.color??w[t%w.length],r=e.items??[];return(0,y.jsxs)(`div`,{className:`tl-row m-stagger-item m-fade-rise`,style:{"--i":t,"--tier-c":n},children:[(0,y.jsx)(`div`,{className:`tl-rail`,title:e.tier,children:e.tier}),(0,y.jsx)(`div`,{className:`tl-items`,children:r.length>0?r.map((e,t)=>(0,y.jsx)(`span`,{className:`tl-chip`,children:e},t)):(0,y.jsx)(`span`,{className:`tl-empty`,children:`—`})})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var E={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};function D({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,employer:r,payPeriod:i,payDate:a,grossPay:c,earnings:l,deductions:u,netPay:d,ytdNet:f,footer:p,delay:m}){let h=o[t]||o.doc,g=l??[],_=u??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(m||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(r||i||a)&&(0,y.jsxs)(`div`,{className:`ps-header`,children:[r&&(0,y.jsx)(`div`,{className:`ps-employer`,children:r}),(0,y.jsxs)(`div`,{className:`ps-period-row`,children:[i&&(0,y.jsx)(`span`,{className:`ps-period`,children:i}),a&&(0,y.jsxs)(`span`,{className:`ps-paydate`,children:[`Paid `,a]})]})]}),(0,y.jsxs)(`div`,{className:`ps-gross-row`,children:[(0,y.jsx)(`span`,{children:`Gross pay`}),(0,y.jsx)(`span`,{style:E,children:c})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Earnings`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:g.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsx)(`span`,{className:`ps-line-amt`,style:E,children:e.amount})]},t))})]}),_.length>0&&(0,y.jsxs)(`div`,{className:`ps-section`,children:[(0,y.jsx)(`div`,{className:`ps-section-label`,children:`Deductions`}),(0,y.jsx)(`div`,{className:`ps-lines`,children:_.map((e,t)=>(0,y.jsxs)(`div`,{className:`ps-line ps-line--deduction m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`ps-line-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`ps-line-amt ps-deduction-amt`,style:E,children:[`−`,e.amount]})]},t))})]}),(0,y.jsxs)(`div`,{className:`ps-net-row`,children:[(0,y.jsx)(`span`,{children:`Net pay`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...E,color:`var(--presence)`},children:d})]}),f&&(0,y.jsxs)(`div`,{className:`ps-ytd-row`,children:[(0,y.jsx)(`span`,{children:`Year-to-date net`}),(0,y.jsx)(`span`,{style:E,children:f})]}),p&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(p)})]})}var O=t();function k(e,t){if(t<=1)return`var(--presence)`;let n=e/(t-1);return n<=.5?`color-mix(in oklab, var(--warning) ${Math.round(n/.5*100)}%, var(--insight))`:`color-mix(in oklab, var(--danger) ${Math.round((n-.5)/.5*100)}%, var(--warning))`}function A(e,t){return t+Math.round(Math.abs(e)).toLocaleString()}function j(e,t){let n=A(e.min,t);return e.max===void 0?`${n}+`:`${n}–${A(e.max,t)}`}function M(e,t){for(let n=e.length-1;n>=0;n--)if(t>=e[n].min)return e[n];return e[0]}function ee(e,t){let n=0;for(let r of e){if(t<=r.min)break;let e=r.max===void 0?t:Math.min(r.max,t);n+=Math.max(0,e-r.min)*(r.rate/100)}return n}function te({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bands:r,income:i,filingStatus:a,effectiveRate:c,marginalRate:l,currency:u=`$`,footer:d,delay:f}){let p=o[t]||o.chart,m=Number.isFinite(i)?Math.max(0,i):0,h=(0,O.useMemo)(()=>{let e=[...(r??[]).filter(e=>Number.isFinite(e?.min)&&Number.isFinite(e?.rate)).map(e=>Number.isFinite(e.max)?e:{...e,max:void 0})].sort((e,t)=>e.min-t.min);if(e.length===0)return null;let t=e.map(e=>e.max).filter(e=>Number.isFinite(e)),n=t.length?Math.max(...t):e[0].min,i=Math.max(m,n,1)*1.08,a=M(e,m),o=ee(e,m);return{sorted:e,scaleMax:i,current:a,effective:c??(m>0?o/m*100:0),marginal:l??a?.rate??e[0].rate,needlePct:Math.min(100,Math.max(0,m/i*100))}},[r,m,c,l]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),h?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`tb-header`,children:[a&&(0,y.jsx)(`span`,{className:`tb-filing`,children:a}),(0,y.jsxs)(`span`,{className:`tb-income`,children:[`Income `,(0,y.jsx)(`span`,{className:`tab-num`,children:A(m,u)})]})]}),(0,y.jsxs)(`div`,{className:`tb-barwrap`,children:[(0,y.jsx)(`div`,{className:`tb-bracket-bar`,role:`img`,"aria-label":`Income tax brackets up to ${A(h.scaleMax,u)}`,children:h.sorted.map((e,t)=>{let n=e.max??h.scaleMax,r=e.min/h.scaleMax*100,i=Math.max(0,(n-e.min)/h.scaleMax*100),a=e===h.current;return(0,y.jsx)(`span`,{className:`tb-seg${a?` current`:``}`,style:{left:`${r}%`,width:`${i}%`,background:k(t,h.sorted.length)},title:`${e.rate}% · ${j(e,u)}`},t)})}),(0,y.jsxs)(`div`,{className:`tb-needle`,style:{left:`${h.needlePct}%`},children:[(0,y.jsx)(`span`,{className:`tb-needle-line`}),(0,y.jsx)(`span`,{className:`tb-needle-tag`,children:`You`})]})]}),(0,y.jsx)(`div`,{className:`tb-legend`,children:h.sorted.map((e,t)=>(0,y.jsxs)(`span`,{className:`tb-leg-item m-stagger-item m-fade-rise${e===h.current?` current`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`tb-leg-dot`,style:{background:k(t,h.sorted.length)}}),(0,y.jsx)(`span`,{className:`tb-leg-range`,children:j(e,u)}),(0,y.jsxs)(`span`,{className:`tb-leg-rate tab-num`,children:[e.rate,`%`]})]},t))}),(0,y.jsxs)(`div`,{className:`tb-rates`,children:[(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Effective rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,children:[h.effective.toFixed(1),`%`]})]}),(0,y.jsxs)(`div`,{className:`tb-rate`,children:[(0,y.jsx)(`span`,{className:`tb-rate-label`,children:`Marginal rate`}),(0,y.jsxs)(`span`,{className:`tb-rate-value tab-num`,"data-mark":`underline`,children:[h.marginal,`%`]})]})]})]}):(0,y.jsx)(`div`,{className:`tb-note`,children:`No bracket data was given for this chart.`}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function ne({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,venue:r,subtitle:i,sections:a,footer:c,delay:l}){let u=o[t]||o.sparkle,d=a??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`mc-header`,children:[r&&(0,y.jsx)(`div`,{className:`mc-venue`,children:r}),i&&(0,y.jsx)(`div`,{className:`mc-subtitle`,children:i})]}),(0,y.jsx)(`div`,{className:`mc-sections`,children:d.map((e,t)=>{let n=e.items??[];return(0,y.jsxs)(`div`,{className:`mc-section`,children:[(0,y.jsx)(`div`,{className:`mc-section-name`,children:e.name}),(0,y.jsx)(`div`,{className:`mc-items`,children:n.map((e,n)=>(0,y.jsxs)(`div`,{className:`mc-item m-stagger-item m-fade-rise`,style:{"--i":t*8+n},children:[(0,y.jsxs)(`div`,{className:`mc-item-row`,children:[(0,y.jsx)(`span`,{className:`mc-item-name`,children:e.name}),e.price&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{className:`mc-leader`,"aria-hidden":`true`}),(0,y.jsx)(`span`,{className:`mc-price`,children:e.price})]})]}),e.desc&&(0,y.jsx)(`div`,{className:`mc-desc`,children:e.desc}),e.tags&&e.tags.length>0&&(0,y.jsx)(`div`,{className:`mc-tags`,children:e.tags.map((e,t)=>(0,y.jsx)(`span`,{className:`mc-tag`,children:e},t))})]},n))})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var N=n();function P(e){let t=(0,N.c)(6),{x1:n,y1:r,x2:i,y2:a,className:o}=e,s=(0,O.useRef)(null);d(s);let c;return t[0]!==o||t[1]!==n||t[2]!==i||t[3]!==r||t[4]!==a?(c=(0,y.jsx)(`line`,{ref:s,x1:n,y1:r,x2:i,y2:a,className:o}),t[0]=o,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=c):c=t[5],c}var F=96,I=36,re=16,ie=20,ae=108,L=128,oe=108,se=14,ce=16,le=[`I`,`II`,`III`,`IV`,`V`,`VI`,`VII`,`VIII`,`IX`,`X`];function ue(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function de(e,t){return e&&t?`${e}–${t}`:e?`b. ${e}`:t?`d. ${t}`:``}function fe(e,t){let n=new Map;for(let t of e)n.set(t.id,0);for(let t=0;t<e.length+1;t++){let t=!1;for(let r of e){if(!r.parents)continue;let e=r.parents.map(e=>n.get(e)).filter(e=>e!=null);if(e.length===0)continue;let i=Math.max(...e)+1;i>(n.get(r.id)??0)&&(n.set(r.id,i),t=!0)}if(!t)break}for(let r of e)if(r.partner&&t.has(r.partner)){let e=Math.max(n.get(r.id)??0,n.get(r.partner)??0);n.set(r.id,e),n.set(r.partner,e)}for(let r of e)if(r.parents?.length===2&&t.has(r.parents[0])&&t.has(r.parents[1])){let[e,t]=r.parents,i=Math.max(n.get(e)??0,n.get(t)??0);n.set(e,i),n.set(t,i)}return n}function pe(e,t){let n=new Map;for(let r of e){let e=(r.parents??[]).filter(e=>t.has(e)&&e!==r.id);if(e.length===0)continue;let i=[...e].sort().join(`\0`),a=n.get(i)??{parentIds:e,childIds:[]};a.childIds.push(r.id),n.set(i,a)}return[...n.values()]}function me({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],rootId:i,footer:a,delay:c}){let l=o[t]??o.share,u=(0,O.useMemo)(()=>{if(r.length===0)return null;let e=new Map;for(let t of r)e.set(t.id,t);let t=fe(r,e),n=pe(r,e),i=new Map;for(let e of n)e.parentIds.length===2&&(i.set(e.parentIds[0],e.parentIds[1]),i.set(e.parentIds[1],e.parentIds[0]));for(let t of r)t.partner&&e.has(t.partner)&&!i.has(t.id)&&(i.set(t.id,t.partner),i.set(t.partner,t.id));let a=new Map;for(let e of n){if(e.parentIds.length!==2)continue;let[t,n]=e.parentIds,r=a.get(t)??new Set;r.add(n),a.set(t,r);let i=a.get(n)??new Set;i.add(t),a.set(n,i)}let o=r.reduce((e,n)=>Math.max(e,t.get(n.id)??0),0),s=Array.from({length:o+1},()=>[]);for(let e of r)s[t.get(e.id)??0].push(e);let c=new Map;s.forEach(n=>{let r=0,a=new Set;for(let o of n){if(a.has(o.id))continue;c.set(o.id,r),a.add(o.id),r+=1;let n=i.get(o.id);n&&e.has(n)&&(t.get(n)??0)===(t.get(o.id)??0)&&!a.has(n)&&(c.set(n,r),a.add(n),r+=1)}});for(let e=o;e>=1;e--){for(let r of n){if(r.childIds.reduce((e,n)=>Math.max(e,t.get(n)??0),-1)!==e)continue;let n=r.childIds.map(e=>c.get(e)??0),i=(Math.min(...n)+Math.max(...n))/2;if(r.parentIds.length===2){let e=oe/L/2;c.set(r.parentIds[0],i-e),c.set(r.parentIds[1],i+e)}else c.set(r.parentIds[0],i)}let r=s[e-1].slice().sort((e,t)=>(c.get(e.id)??0)-(c.get(t.id)??0));for(let e=1;e<r.length;e++){let t=c.get(r[e-1].id)??0,n=c.get(r[e].id)??0,a=i.get(r[e-1].id)===r[e].id?oe/L:1;n-t<a&&c.set(r[e].id,t+a)}}let l=r.map(e=>c.get(e.id)??0),u=Math.min(...l,0),d=Math.max(...l,0),f=e=>82+(e-u)*L,p=e=>36+e*ae,m=r.map(e=>{let n=t.get(e.id)??0;return{...e,gen:n,cx:f(c.get(e.id)??0),cy:p(n)}}),h=new Map;for(let e of m)h.set(e.id,e);return{placed:m,placedById:h,groups:n,matedInGroup:a,partnerOf:i,rows:s,maxGen:o,W:144+(d-u)*L,H:36+o*ae+I/2+re,rowY:p}},[r]);if(!u)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-note`,children:`No family data was given for this tree.`})]});let{placed:d,placedById:f,groups:p,matedInGroup:m,partnerOf:h,rows:g,W:_,H:v,rowY:b}=u;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`ft-wrap`,children:(0,y.jsxs)(`svg`,{viewBox:`0 0 ${_} ${v}`,className:`ft-svg`,role:`img`,"aria-label":e,children:[g.map((e,t)=>e.length?(0,y.jsx)(`text`,{x:ie/2,y:b(t)+4,className:`ft-gen`,textAnchor:`middle`,children:le[t]??t+1},`gen${t}`):null),p.map((e,t)=>{let n=e.childIds.map(e=>f.get(e)).filter(e=>!!e);if(n.length===0)return null;let r=n[0].cy,i,a;if(e.parentIds.length===2){let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]);if(!t||!n)return null;i=(t.cx+n.cx)/2,a=t.cy}else{let t=f.get(e.parentIds[0]);if(!t)return null;i=t.cx,a=t.cy}let o=(a+r)/2,s=n.map(e=>e.cx),c=Math.min(...s),l=Math.max(...s);return(0,y.jsxs)(`g`,{className:`ft-links`,children:[e.parentIds.length===2&&(()=>{let t=f.get(e.parentIds[0]),n=f.get(e.parentIds[1]),[r,i]=t.cx<=n.cx?[t,n]:[n,t];return(0,y.jsx)(P,{x1:r.cx+F/2,y1:r.cy,x2:i.cx-F/2,y2:i.cy,className:`ft-line`})})(),(0,y.jsx)(P,{x1:i,y1:a,x2:i,y2:o,className:`ft-line`}),n.length>1&&(0,y.jsx)(P,{x1:c,y1:o,x2:l,y2:o,className:`ft-line`}),n.map(e=>(0,y.jsx)(P,{x1:e.cx,y1:o,x2:e.cx,y2:e.cy-I/2,className:`ft-line`},e.id))]},`grp${t}`)}),d.map(e=>{let t=h.get(e.id);if(!t||e.id>t||m.get(e.id)?.has(t))return null;let n=f.get(e.id),r=f.get(t);if(!n||!r||n.cy!==r.cy)return null;let[i,a]=n.cx<r.cx?[n,r]:[r,n];return(0,y.jsx)(P,{x1:i.cx+F/2,y1:i.cy,x2:a.cx-F/2,y2:a.cy,className:`ft-line`},`mp${e.id}`)}),d.map((e,t)=>{let n=de(e.birth,e.death),r=ue(e.name,se),a=n?`${e.name} (${n})`:e.name,o=!!i&&e.id===i;return(0,y.jsxs)(`g`,{className:`ft-card m-stagger-item m-scale-in${o?` ft-card--root`:``}${e.death?` ft-card--deceased`:``}`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`rect`,{x:e.cx-F/2,y:e.cy-I/2,width:F,height:I,rx:8,className:`ft-card-rect`}),(0,y.jsx)(`text`,{x:e.cx,y:e.cy+(n?-4:3),textAnchor:`middle`,className:`ft-card-name`,children:r}),n&&(0,y.jsx)(`text`,{x:e.cx,y:e.cy+11,textAnchor:`middle`,className:`ft-card-dates`,children:ue(n,ce)})]},e.id)})]})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(a)})]})}var R=20,z=30,B=15;function V(e){return Number.isFinite(e.seats)?Math.max(0,e.seats):0}function he(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}function ge(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function H(e){return Math.min(52,24+e*2.2)}function U(e){return{w:Math.min(150,56+e*5),h:46}}function W(e){return Math.max(5,9-Math.max(0,e-12)*.15)}function G(e){if(e.shape===`rect`){let{w:t,h:n}=U(V(e));return Math.max(t,n)/2+B+W(V(e))}return H(V(e))+B+W(V(e))}function _e(e,t,n,r,i){let a=n/2,o=r/2,s=2*(n+r),c=(i%s+s)%s;return c<=n?{x:e-a+c,y:t-o-B}:(c-=n,c<=r?{x:e+a+B,y:t-o+c}:(c-=r,c<=n?{x:e+a-c,y:t+o+B}:(c-=n,{x:e-a-B,y:t+o-c})))}function ve(e,t,n,r){let i=Math.max(1,V(e));if(e.shape===`rect`){let{w:a,h:o}=U(V(e)),s=2*(a+o);return _e(t,n,a,o,r/i*s)}let a=H(V(e))+B,o=r/i*Math.PI*2-Math.PI/2;return{x:t+a*Math.cos(o),y:n+a*Math.sin(o)}}function ye({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,venue:r,tables:i=[],assignments:a=[],footer:c,delay:l}){let u=o[t]||o.table,d=(0,O.useMemo)(()=>{if(i.length===0)return null;let e=new Map;for(let t of a)e.set(`${t.tableId}:${t.seatIndex}`,t.guest);let t=i.every(e=>e.x!==void 0&&e.y!==void 0),n=new Map;if(t){let e=i.map(e=>e.x),t=i.map(e=>e.y),r=Math.min(...e),a=Math.max(...e),o=Math.min(...t),s=Math.max(...t),c=a-r||1,l=s-o||1,u=Math.max(...i.map(G))*2+z,d=Math.max(1,Math.ceil(Math.sqrt(i.length))),f=d*u,p=Math.ceil(i.length/d)*u,m=Math.max(...i.map(G));i.forEach(e=>{n.set(e.id,{x:R+m+(e.x-r)/c*f,y:R+m+(e.y-o)/l*p})})}else{let e=Math.max(1,Math.ceil(Math.sqrt(i.length))),t=Math.max(...i.map(G)),r=t*2+z;i.forEach((i,a)=>{let o=a%e,s=Math.floor(a/e);n.set(i.id,{x:R+t+o*r,y:R+t+s*r})})}let r=Math.max(...i.map(G)),o=Math.max(1,Math.ceil(Math.sqrt(i.length))),s=Math.ceil(i.length/o),c=r*2+z;return{pos:n,guestAt:e,W:40+r*2+(o-1)*c,H:40+r*2+(s-1)*c,totalSeats:i.reduce((e,t)=>e+Math.max(0,V(t)),0),assignedSeats:a.length}},[i,a]);if(!d)return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sc-note`,children:`No seating data was given.`})]});let{pos:f,guestAt:p,W:m,H:h,totalSeats:g,assignedSeats:_}=d;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sc-summary`,children:[r&&(0,y.jsx)(`span`,{className:`sc-venue`,children:r}),(0,y.jsxs)(`span`,{className:`sc-count tab-num`,children:[_,` of `,g,` seated`]})]}),(0,y.jsx)(`div`,{className:`sc-wrap`,children:(0,y.jsx)(`svg`,{viewBox:`0 0 ${m} ${h}`,className:`sc-svg`,role:`img`,"aria-label":e,children:i.map((e,t)=>{let n=f.get(e.id);if(!n)return null;let r=e.shape===`rect`,i=H(V(e)),{w:a,h:o}=U(V(e)),s=W(V(e)),c=ge(e.label,r?14:9);return(0,y.jsxs)(`g`,{className:`sc-table m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,y.jsx)(`title`,{children:e.label}),r?(0,y.jsx)(`rect`,{x:n.x-a/2,y:n.y-o/2,width:a,height:o,rx:6,className:`sc-table-shape`}):(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:i,className:`sc-table-shape`}),(0,y.jsx)(`text`,{x:n.x,y:n.y+3,textAnchor:`middle`,className:`sc-table-label`,children:c}),Array.from({length:Math.max(0,V(e))},(t,r)=>{let i=ve(e,n.x,n.y,r),a=p.get(`${e.id}:${r}`);return(0,y.jsxs)(`g`,{children:[a&&(0,y.jsx)(`title`,{children:a}),(0,y.jsx)(`circle`,{cx:i.x,cy:i.y,r:s,className:a?`sc-seat sc-seat--filled`:`sc-seat sc-seat--empty`}),a&&s>=6.5&&(0,y.jsx)(`text`,{x:i.x,y:i.y+s*.34,textAnchor:`middle`,className:`sc-seat-initials`,style:{fontSize:s*.9},children:he(a)})]},r)})]},e.id)})})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}var be=520,xe=320,Se=260,Ce=160,we=16,K={family:{color:`var(--presence)`},ally:{color:`var(--insight)`,dash:`5 3`},rival:{color:`var(--danger)`,dash:`1.5 3`},romance:{color:`var(--presence-soft)`},colleague:{color:`var(--warning)`},other:{color:`var(--text-muted)`,dash:`2 3`}},q={family:`Family`,ally:`Ally`,rival:`Rival`,romance:`Romance`,colleague:`Colleague`,other:`Other`},Te=`M0 3.4 C0 1.1 -2.3 -0.5 -4 0.3 C-5.7 1.1 -5.7 3.4 -4 5.1 L0 9.1 L4 5.1 C5.7 3.4 5.7 1.1 4 0.3 C2.3 -0.5 0 1.1 0 3.4 Z`;function Ee(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function De({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,people:r=[],ties:i=[],layout:a=`circle`,footer:c,delay:l}){let u=o[t]||o.share,[d,f]=(0,O.useState)(null),p=(0,O.useMemo)(()=>{let e=new Map;if(a===`grid`){let t=Math.ceil(Math.sqrt(r.length)),n=440/Math.max(1,t-1||1),i=Math.ceil(r.length/t),a=240/Math.max(1,i-1||1);r.forEach((r,i)=>{let o=i%t,s=Math.floor(i/t);e.set(r.id,{x:40+o*n,y:40+s*a})})}else r.forEach((t,n)=>{let i=n/Math.max(1,r.length)*Math.PI*2-Math.PI/2;e.set(t.id,{x:Se+120*Math.cos(i),y:Ce+120*Math.sin(i)})});let t=new Map;return r.forEach(e=>t.set(e.id,new Set)),i.forEach(e=>{t.get(e.source)?.add(e.target),t.get(e.target)?.add(e.source)}),{pos:e,adj:t}},[r,i,a]),m=d?p.adj.get(d):null,h=e=>!d||e.source===d||e.target===d,g=e=>!d||e===d||!!m?.has(e),_=(0,O.useMemo)(()=>r.length?r.reduce((e,t)=>(p.adj.get(t.id)?.size??0)>(p.adj.get(e.id)?.size??0)?t:e,r[0]).id:null,[r,p.adj]),v=(0,O.useMemo)(()=>[...new Set(i.map(e=>e.kind))].filter(e=>e in K),[i]);return r.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`rm-note`,children:`No relationship data was given.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`svg`,{role:`img`,"aria-label":e,viewBox:`0 0 ${be} ${xe}`,width:`100%`,className:`rm-svg`,children:[i.map((e,t)=>{let n=p.pos.get(e.source),r=p.pos.get(e.target);if(!n||!r)return null;let i=K[e.kind]??K.other,a=h(e),o=(n.x+r.x)/2,s=(n.y+r.y)/2;return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{className:`rm-edge m-stagger-item m-scale-in`,x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:i.color,strokeDasharray:i.dash,opacity:a?.9:.2,style:{"--i":t},children:(0,y.jsx)(`title`,{children:e.label?`${q[e.kind]} · ${e.label}`:q[e.kind]})}),e.kind===`romance`&&(0,y.jsx)(`path`,{d:Te,fill:i.color,opacity:a?1:.3,transform:`translate(${o} ${s})`})]},t)}),r.map((e,t)=>{let n=p.pos.get(e.id);if(!n)return null;let r=g(e.id),i=d===e.id,a=Ee(e.name,12);return(0,y.jsxs)(`g`,{className:`rm-node m-stagger-item m-scale-in`,style:{"--i":t},onMouseEnter:()=>f(e.id),onMouseLeave:()=>f(null),children:[(0,y.jsx)(`title`,{children:e.role?`${e.name} · ${e.role}`:e.name}),i&&(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:22,className:`rm-node-halo`}),(0,y.jsx)(`circle`,{cx:n.x,cy:n.y,r:we,className:`rm-node-dot`,opacity:r?1:.32,"data-mark":e.id===_?`circle`:void 0}),(0,y.jsx)(`text`,{x:n.x,y:n.y+we+13,textAnchor:`middle`,className:`rm-node-label`,opacity:r?1:.32,children:a})]},e.id)})]}),v.length>0&&(0,y.jsx)(`ul`,{className:`rm-legend`,"aria-label":`Relationship key`,children:v.map(e=>(0,y.jsxs)(`li`,{className:`rm-leg-item`,children:[e===`romance`?(0,y.jsx)(`svg`,{viewBox:`-6 -1 12 11`,className:`rm-leg-heart`,"aria-hidden":`true`,children:(0,y.jsx)(`path`,{d:Te,transform:`translate(0 0)`,fill:K[e].color})}):(0,y.jsx)(`svg`,{viewBox:`0 0 20 8`,className:`rm-leg-swatch`,"aria-hidden":`true`,children:(0,y.jsx)(`line`,{x1:1,y1:4,x2:19,y2:4,stroke:K[e].color,strokeDasharray:K[e].dash,strokeWidth:2,strokeLinecap:`round`})}),q[e]]},e))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:s(c)})]})}function Oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,meetingDate:r,attendees:i,discussionPoints:a,decisions:c,actionItems:l,footer:u,delay:d}){let f=o[t]||o.doc,p=i??[],m=a??[],h=c??[],g=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`mn-date`,children:r}),p.length>0&&(0,y.jsx)(`div`,{className:`mn-attendees`,children:p.map((e,t)=>(0,y.jsx)(`span`,{className:`mn-attendee`,children:e},t))}),m.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Discussion`}),(0,y.jsx)(`ul`,{className:`mn-bullets`,children:m.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet`,children:e},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Decisions`}),(0,y.jsx)(`ul`,{className:`mn-bullets mn-bullets--decided`,children:h.map((e,t)=>(0,y.jsx)(`li`,{className:`mn-bullet mn-bullet--decided`,children:e},t))})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`mn-section`,children:[(0,y.jsx)(`div`,{className:`mn-section-label`,children:`Action items`}),(0,y.jsx)(`ul`,{className:`mn-actions`,children:g.map((e,t)=>(0,y.jsxs)(`li`,{className:`mn-action m-stagger-item m-fade-rise${e.done?` done`:``}`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`mn-action-check`,"aria-hidden":`true`,children:e.done?(0,y.jsx)(o.check,{className:`ic`}):null}),(0,y.jsx)(`span`,{className:`mn-action-task`,children:e.task}),(e.owner||e.dueDate)&&(0,y.jsxs)(`span`,{className:`mn-action-badges`,children:[e.owner&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--owner`,children:e.owner}),e.dueDate&&(0,y.jsx)(`span`,{className:`mn-badge mn-badge--due`,children:e.dueDate})]})]},t))})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var ke=`M0 -5 L1.23 -1.7 L4.76 -1.55 L2 0.65 L2.94 4.05 L0 2.1 L-2.94 4.05 L-2 0.65 L-4.76 -1.55 L-1.23 -1.7 Z`;function Ae(e){let t=(0,N.c)(3),{className:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(`path`,{d:ke}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,y.jsx)(`svg`,{viewBox:`-5 -5 10 10`,className:n,"aria-hidden":`true`,children:r}),t[1]=n,t[2]=i),i}function je({title:e,icon:t=`sparkle`,iconColor:n=`var(--warning)`,behavior:r,people:i,days:a,marks:c,rewardAt:l,footer:u,delay:d}){let f=o[t]||o.sparkle,p=a??[],m=c??[],h=!!i&&i.length>0,g=h?i:[``],_=new Set(m.filter(e=>e.earned).map(e=>`${e.person??``}:${e.day}`)),v=m.filter(e=>e.earned).length,b=l!==void 0&&l>0,x=b?Math.min(100,v/l*100):0;return p.length===0?(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`sk-note`,children:`No days were given for this chart.`})]}):(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`sk-behavior`,children:r}),(0,y.jsx)(`div`,{className:`sk-scroll`,children:(0,y.jsxs)(`div`,{className:`sk-grid${h?` sk-grid--labeled`:``}`,style:{"--sk-cols":p.length},children:[h&&(0,y.jsx)(`span`,{className:`sk-corner`,"aria-hidden":`true`}),p.map((e,t)=>(0,y.jsx)(`span`,{className:`sk-day`,children:e},t)),g.map((t,n)=>(0,y.jsxs)(`div`,{className:`sk-row`,style:{display:`contents`},children:[h&&(0,y.jsx)(`span`,{className:`sk-person`,children:t}),p.map((r,i)=>{let a=_.has(`${t}:${r}`);return(0,y.jsx)(`span`,{className:`sk-cell m-stagger-item m-scale-in${a?` earned`:``}`,style:{"--i":n*p.length+i},title:`${t||e} · ${r}${a?` · earned`:``}`,children:a?(0,y.jsx)(Ae,{className:`sk-star`}):(0,y.jsx)(`span`,{className:`sk-empty`})},i)})]},n))]})}),b&&(0,y.jsxs)(`div`,{className:`sk-reward`,children:[(0,y.jsxs)(`div`,{className:`sk-reward-row`,children:[(0,y.jsx)(`span`,{children:`Toward the reward`}),(0,y.jsxs)(`span`,{className:`tab-num`,children:[Math.min(v,l),` of `,l]})]}),(0,y.jsx)(`div`,{className:`sk-reward-bar`,role:`progressbar`,"aria-valuenow":Math.round(x),children:(0,y.jsx)(`span`,{className:`sk-reward-fill`,style:{width:`${x}%`}})})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Me({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,items:i,footer:a,delay:c}){let l=o[t]||o.clock,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`ag-date`,children:r}),(0,y.jsx)(`div`,{className:`ag-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`ag-item${e.done?` done`:``}`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsx)(`div`,{className:`ag-time`,children:e.time??``}),(0,y.jsxs)(`div`,{className:`ag-body`,children:[(0,y.jsx)(`div`,{className:`ag-title`,children:e.title}),e.location&&(0,y.jsx)(`div`,{className:`ag-location`,children:e.location}),e.note&&(0,y.jsx)(`div`,{className:`ag-note`,children:e.note})]}),e.duration&&(0,y.jsx)(`div`,{className:`ag-dur`,children:e.duration})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ne({title:e,icon:t=`spark`,iconColor:n=`var(--warning)`,category:r,items:i,footer:a,delay:c}){let l=o[t]||o.spark,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`fc-meta`,children:(0,y.jsx)(`span`,{children:r})}),(0,y.jsx)(`div`,{className:`pk-items`,children:u.map((e,t)=>(0,y.jsxs)(`div`,{className:`pk-item`,...t===0?{"data-mark":`circle`}:{},children:[(0,y.jsxs)(`div`,{className:`pk-rank`,children:[`#`,t+1]}),(0,y.jsxs)(`div`,{className:`pk-body`,children:[(0,y.jsx)(`div`,{className:`pk-name`,children:e.name}),e.tagline&&(0,y.jsx)(`div`,{className:`pk-tagline`,children:e.tagline}),e.why&&(0,y.jsx)(`div`,{className:`pk-why`,children:e.why}),(e.price||e.rating||e.badge)&&(0,y.jsxs)(`div`,{className:`pk-meta`,children:[e.price&&(0,y.jsx)(`span`,{className:`pk-price`,children:e.price}),e.rating&&(0,y.jsx)(`span`,{className:`pk-rating`,children:e.rating}),e.badge&&(0,y.jsx)(`span`,{className:`pk-badge`,children:e.badge})]})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Pe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,principal:r,rate:i,term:a,monthlyPayment:c,rows:l,footer:u,delay:d}){let f=o[t]||o.table,p=l??[],m=p.length-1,h=[{label:`Principal`,value:r},{label:`Rate`,value:i},{label:`Term`,value:a},{label:`Monthly payment`,value:c,highlight:!0}];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`am-summary`,children:h.map(e=>(0,y.jsxs)(`div`,{className:`am-field${e.highlight?` highlight`:``}`,children:[(0,y.jsx)(`span`,{className:`am-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`am-field-value`,...e.highlight?{"data-mark":`underline`}:{},children:e.value})]},e.label))}),(0,y.jsx)(`div`,{style:{overflowX:`auto`},children:(0,y.jsxs)(`table`,{className:`am-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{children:`Period`}),(0,y.jsx)(`th`,{children:`Payment`}),(0,y.jsx)(`th`,{children:`Principal`}),(0,y.jsx)(`th`,{children:`Interest`}),(0,y.jsx)(`th`,{children:`Balance`})]})}),(0,y.jsx)(`tbody`,{children:p.map((e,t)=>{let n=t===0||t===m;return(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`td`,{style:{fontWeight:n?500:void 0},children:e.period}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.payment}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.principal}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.interest}),(0,y.jsx)(`td`,{style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontWeight:n?500:void 0},children:e.balance})]},t)})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Fe({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,baseTime:r,rows:i,footer:a,delay:c}){let l=o[t]||o.globe,u=i??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsxs)(`div`,{className:`tz-base`,children:[`Reference: `,r]}),(0,y.jsx)(`div`,{className:`tz-rows`,children:u.map((e,t)=>{let n=u.findIndex(e=>e.isHome),r=e.isHome||n===-1&&t===0;return(0,y.jsxs)(`div`,{className:e.isHome?`tz-row home`:`tz-row`,children:[(0,y.jsx)(`span`,{className:`tz-city`,children:e.city}),(0,y.jsx)(`span`,{className:`tz-offset`,children:e.offset}),(0,y.jsx)(`span`,{className:`tz-time`,...r?{"data-mark":`underline`}:{},children:e.localTime??e.timezone})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ie({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,origin:r,destination:i,totalTime:a,totalDistance:c,steps:l,footer:u,delay:d}){let f=o[t]||o.globe,p=l??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`tr-endpoints`,children:[(0,y.jsx)(`span`,{className:`tr-origin`,children:r}),(0,y.jsx)(`span`,{className:`tr-arrow`,children:`→`}),(0,y.jsx)(`span`,{className:`tr-dest`,children:i})]}),(a||c)&&(0,y.jsxs)(`div`,{className:`tr-total`,children:[a&&(0,y.jsx)(`span`,{children:a}),a&&c&&(0,y.jsx)(`span`,{children:`·`}),c&&(0,y.jsx)(`span`,{children:c})]}),(0,y.jsx)(`div`,{className:`tr-steps`,children:p.map((e,t)=>{let n=t===p.length-1,r=v(e.mode);return(0,y.jsxs)(`div`,{className:`tr-step${n?` tr-step--arrival`:``}`,style:{position:`relative`,paddingLeft:28},children:[!n&&(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:9,top:22,bottom:0,width:2,background:`var(--grid-line)`,borderRadius:1}}),(0,y.jsx)(`span`,{"aria-hidden":`true`,style:{position:`absolute`,left:2,top:10,width:16,height:16,borderRadius:`50%`,background:n?`var(--presence)`:`color-mix(in oklab, var(--presence) 18%, var(--surface))`,border:`2px solid var(--presence)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0}}),(0,y.jsx)(`div`,{className:`tr-mode-ic`,style:{position:`absolute`,left:32},children:(0,y.jsx)(r,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`tr-body`,style:{paddingLeft:20},children:[(0,y.jsx)(`div`,{className:`tr-instruction`,style:n?{fontWeight:700,color:`var(--presence)`}:void 0,...n?{"data-mark":`underline`}:{},children:e.instruction}),(e.line||e.duration||e.distance)&&(0,y.jsxs)(`div`,{className:`tr-meta`,children:[e.line&&(0,y.jsx)(`span`,{className:`tr-line-badge`,children:e.line}),e.duration&&(0,y.jsx)(`span`,{children:e.duration}),e.distance&&(0,y.jsx)(`span`,{children:e.distance})]})]})]},t)})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}function Le({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,merchant:r,date:i,lines:a,subtotal:c,tax:l,total:u,footer:d,delay:f}){let p=o[t]||o.cart,m=a??[],h={fontFamily:`var(--font-mono, ui-monospace, monospace)`,fontVariantNumeric:`tabular-nums`};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{style:{marginBottom:12},children:[r&&(0,y.jsx)(`div`,{className:`rc-merchant`,children:r}),i&&(0,y.jsx)(`div`,{className:`rc-date`,children:i})]}),(0,y.jsx)(`div`,{className:`rc-lines`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`rc-line`,children:[(0,y.jsx)(`span`,{className:`rc-item`,children:e.item}),e.qty!==void 0&&(0,y.jsxs)(`span`,{className:`rc-qty`,children:[`×`,e.qty]}),e.unit!==void 0&&(0,y.jsx)(`span`,{className:`rc-unit`,style:h,children:e.unit}),(0,y.jsx)(`span`,{className:`rc-total`,style:h,children:e.total})]},t))}),(0,y.jsxs)(`div`,{className:`rc-subtotals`,children:[c!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Subtotal`}),(0,y.jsx)(`span`,{style:h,children:c})]}),l!==void 0&&(0,y.jsxs)(`div`,{className:`rc-subtotal-row`,children:[(0,y.jsx)(`span`,{children:`Tax`}),(0,y.jsx)(`span`,{style:h,children:l})]}),(0,y.jsxs)(`div`,{className:`rc-grand`,children:[(0,y.jsx)(`span`,{children:`Total`}),(0,y.jsx)(`span`,{"data-mark":`underline`,style:{...h,color:`var(--presence)`},children:u})]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Re={flex:1,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function ze({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,people:r,expenses:i,settlements:a,footer:c,delay:l}){let u=o[t]||o.layers,d=i??[],f=a??[],p=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0&&(0,y.jsx)(`div`,{className:`su-people`,children:p.map(e=>(0,y.jsx)(`span`,{className:`su-person-chip`,children:e},e))}),d.length>0&&(0,y.jsx)(`div`,{className:`su-expenses`,children:d.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-exp-row`,children:[(0,y.jsx)(`span`,{className:`su-exp-desc`,children:e.description}),(0,y.jsxs)(`span`,{className:`su-exp-paid`,children:[`paid by `,e.paidBy]}),(0,y.jsx)(`span`,{className:`su-exp-amt`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.amount})]},t))}),(0,y.jsx)(`div`,{className:`su-divider`,children:`Who pays who`}),(0,y.jsx)(`div`,{className:`su-settlements`,children:f.map((e,t)=>(0,y.jsxs)(`div`,{className:`su-settle`,children:[(0,y.jsx)(`span`,{className:`su-from`,style:Re,title:e.from,children:e.from}),(0,y.jsx)(`span`,{className:`su-arrow`,"aria-hidden":!0,children:`→`}),(0,y.jsx)(`span`,{className:`su-to`,style:Re,title:e.to,children:e.to}),(0,y.jsx)(`span`,{className:`su-amt-pill`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},...t===0?{"data-mark":`underline`}:{},children:e.amount})]},t))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Be({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,metric:r,items:i,footer:a,delay:c}){let l=o[t]??o.chart,u=(0,O.useMemo)(()=>[...i??[]].sort((e,t)=>t.value-e.value),[i]),d=(0,O.useMemo)(()=>u.reduce((e,t)=>Math.max(e,t.value),0)||1,[u]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`bb-metric`,children:r}),(0,y.jsx)(`div`,{className:`bb-items`,children:u.map((e,t)=>{let n=e.value/d*100,r=t===0,i=r?{width:`${n}%`,background:`var(--presence)`}:{width:`${n}%`,background:`color-mix(in oklab, var(--presence) 85%, transparent)`};return(0,y.jsxs)(`div`,{className:`bb-item`,children:[(0,y.jsx)(`span`,{className:`bb-badge`,children:e.badge??`${t+1}`}),(0,y.jsx)(`span`,{className:`bb-label`,title:e.label,children:e.label}),(0,y.jsx)(`div`,{className:`bb-bar-track`,role:`presentation`,children:(0,y.jsx)(`div`,{className:`bb-bar-fill`,style:i,...r?{"data-mark":`circle`}:{}})}),(0,y.jsx)(`span`,{className:`bb-value`,style:{fontFamily:`var(--font-mono, ui-monospace, monospace)`},children:e.bar??e.value})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ve({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,servings:r,prepTime:i,cookTime:a,difficulty:c,ingredients:l,steps:u,tips:d,footer:f,delay:p}){let m=o[t]||o.sparkle,[h,g]=(0,O.useState)(!1),_=c===`easy`?`var(--insight)`:c===`hard`?`var(--warning)`:`var(--text-muted)`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`rc2-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[`Serves `,r]}),i&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` Prep `,i]}),a&&(0,y.jsxs)(`span`,{className:`rc2-chip`,children:[(0,y.jsx)(o.sun,{className:`ic`,style:{width:11,height:11}}),` Cook `,a]}),c&&(0,y.jsx)(`span`,{className:`rc2-chip`,style:{color:_},children:c.charAt(0).toUpperCase()+c.slice(1)})]}),(0,y.jsxs)(`div`,{className:`rc2-body`,children:[(0,y.jsxs)(`div`,{className:`rc2-ingredients`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Ingredients`}),(0,y.jsx)(`ul`,{className:`rc2-ing-list`,children:l.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-ing`,children:[(e.qty||e.unit)&&(0,y.jsxs)(`span`,{className:`rc2-qty`,children:[e.qty,e.unit?`\xA0`+e.unit:``]}),(0,y.jsx)(`span`,{className:`rc2-ing-name`,children:e.name})]},t))})]}),(0,y.jsxs)(`div`,{className:`rc2-steps`,children:[(0,y.jsx)(`div`,{className:`rc2-section-label`,children:`Steps`}),(0,y.jsx)(`ol`,{className:`rc2-step-list`,children:u.map((e,t)=>(0,y.jsxs)(`li`,{className:`rc2-step`,children:[(0,y.jsx)(`span`,{className:`rc2-step-num`,children:t+1}),(0,y.jsx)(`span`,{className:`rc2-step-text`,children:e})]},t))})]})]}),d&&d.length>0&&(0,y.jsxs)(`div`,{className:`rc2-tips-section`,children:[(0,y.jsxs)(`button`,{className:`rc2-tips-toggle`,onClick:()=>g(!h),children:[(0,y.jsx)(o.sparkle,{className:`ic`,style:{width:12,height:12}}),h?`Hide tips`:`${d.length} pro tip${d.length>1?`s`:``}`]}),h&&(0,y.jsx)(`ul`,{className:`rc2-tips-list`,children:d.map((e,t)=>(0,y.jsx)(`li`,{className:`rc2-tip`,children:e},t))})]}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function He({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,goal:r,weeks:i,sessions:a,footer:c,delay:l}){let u=o[t]||o.chart,[d,f]=(0,O.useState)(0),p=a[d];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`wp-header`,children:[r&&(0,y.jsx)(`span`,{className:`wp-goal`,children:r}),i&&(0,y.jsxs)(`span`,{className:`wp-weeks`,children:[i,`-week plan`]})]}),(0,y.jsx)(`div`,{className:`wp-tabs`,children:a.map((e,t)=>(0,y.jsx)(`button`,{className:`wp-tab${t===d?` active`:``}`,onClick:()=>f(t),children:e.day},t))}),p&&(0,y.jsxs)(`div`,{className:`wp-session`,children:[p.focus&&(0,y.jsx)(`div`,{className:`wp-focus`,children:p.focus}),(0,y.jsx)(`div`,{className:`wp-exercises`,children:(p.exercises??[]).map((e,t)=>(0,y.jsxs)(`div`,{className:`wp-exercise`,children:[(0,y.jsx)(`div`,{className:`wp-ex-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`wp-ex-badges`,children:[e.sets!==void 0&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.sets,` sets`]}),e.reps&&(0,y.jsxs)(`span`,{className:`wp-badge`,children:[e.reps,` reps`]}),e.duration&&(0,y.jsx)(`span`,{className:`wp-badge`,children:e.duration}),e.rest&&(0,y.jsxs)(`span`,{className:`wp-badge wp-badge--rest`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:10,height:10}}),` `,e.rest]})]}),e.note&&(0,y.jsx)(`div`,{className:`wp-ex-note`,children:e.note})]},t))})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function Ue(e){let t=parseInt(e.split(`:`)[0]??`0`,10);if(!isNaN(t))return t>=6&&t<20?`sun`:`moon`;let n=e.toLowerCase();return n.includes(`morning`)||n.includes(`noon`)||n.includes(`afternoon`)||n.includes(`pm`)?`sun`:n.includes(`night`)||n.includes(`evening`)?`moon`:`clock`}function We({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,medications:r,startDate:i,footer:a,delay:c}){let l=o[t]||o.bell;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),i&&(0,y.jsxs)(`div`,{className:`ms-start`,children:[`Starting `,i]}),(0,y.jsx)(`div`,{className:`ms-meds`,children:r.map((e,t)=>(0,y.jsxs)(`div`,{className:`ms-med`,children:[(0,y.jsxs)(`div`,{className:`ms-med-header`,children:[(0,y.jsx)(`div`,{className:`ms-med-name`,children:e.name}),(0,y.jsx)(`div`,{className:`ms-med-dose`,children:e.dose})]}),(0,y.jsxs)(`div`,{className:`ms-times`,children:[e.times.map((e,t)=>{let n=Ue(e),r=o[n];return(0,y.jsxs)(`span`,{className:`ms-time-chip`,children:[(0,y.jsx)(r,{className:`ic`,style:{width:11,height:11}}),` `,e]},t)}),e.withFood&&(0,y.jsx)(`span`,{className:`ms-food-chip`,children:`with food`})]}),(e.frequency||e.notes)&&(0,y.jsxs)(`div`,{className:`ms-meta`,children:[e.frequency&&(0,y.jsx)(`span`,{className:`ms-freq`,children:e.frequency}),e.notes&&(0,y.jsx)(`span`,{className:`ms-note`,children:e.notes})]})]},t))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Ge({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,calories:r,protein:i,carbs:a,fat:c,fiber:l,items:u,footer:d,delay:f}){let p=o[t]||o.chart,m=i*4,h=a*4,g=c*9,_=m+h+g||1,v=[{label:`Protein`,value:i,color:`var(--presence)`,pct:m/_*100},{label:`Carbs`,value:a,color:`var(--insight)`,pct:h/_*100},{label:`Fat`,value:c,color:`var(--warning)`,pct:g/_*100},...l===void 0?[]:[{label:`Fiber`,value:l,color:`var(--text-muted)`,pct:0}]];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`mb-calorie`,children:[(0,y.jsx)(`span`,{className:`mb-cal-num`,children:r.toLocaleString()}),(0,y.jsx)(`span`,{className:`mb-cal-unit`,children:`kcal`})]}),(0,y.jsx)(`div`,{className:`mb-stack`,children:v.slice(0,3).map((e,t)=>(0,y.jsx)(`div`,{className:`mb-stack-seg m-stagger-item m-scale-in`,style:{width:`${e.pct}%`,background:e.color,"--i":t},title:`${e.label}: ${e.value}g`},e.label))}),(0,y.jsx)(`div`,{className:`mb-macros`,children:v.map(e=>(0,y.jsxs)(`div`,{className:`mb-macro`,children:[(0,y.jsx)(`span`,{className:`mb-macro-dot`,style:{background:e.color}}),(0,y.jsx)(`span`,{className:`mb-macro-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-macro-value`,children:[e.value,`g`]}),e.pct>0&&(0,y.jsxs)(`span`,{className:`mb-macro-pct`,children:[Math.round(e.pct),`%`]})]},e.label))}),u&&u.length>0&&(0,y.jsxs)(`div`,{className:`mb-items`,children:[(0,y.jsx)(`div`,{className:`mb-items-label`,children:`Per item`}),u.map((e,t)=>(0,y.jsxs)(`div`,{className:`mb-item`,children:[(0,y.jsx)(`span`,{className:`mb-item-name`,children:e.label}),(0,y.jsxs)(`span`,{className:`mb-item-stats`,children:[e.calories!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-cal`,children:[e.calories,` kcal`]}),e.protein!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`P `,e.protein,`g`]}),e.carbs!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`C `,e.carbs,`g`]}),e.fat!==void 0&&(0,y.jsxs)(`span`,{className:`mb-item-macro`,children:[`F `,e.fat,`g`]})]})]},t))]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var Ke=e=>e.trim().toLowerCase();function qe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,columns:r,rows:i,summary:a,caption:c,footer:l,delay:u}){let d=o[t]||o.clock,f=r??[],p=i??[],m=`minmax(60px, 0.55fr) repeat(${Math.max(f.length,1)}, minmax(78px, 1fr))`;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`pg-caption`,children:c}),(0,y.jsx)(`div`,{className:`pg-scroll`,children:(0,y.jsxs)(`div`,{className:`pg-grid`,style:{gridTemplateColumns:m},children:[(0,y.jsx)(`div`,{className:`pg-corner`,"aria-hidden":`true`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-colhead`,children:e},`h${t}`)),p.map((e,t)=>{let n=new Map;return(e.cells??[]).forEach(e=>{e?.col&&n.set(Ke(e.col),e)}),(0,y.jsxs)(O.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot`,children:e.slot}),f.map((e,r)=>{let i=n.get(Ke(e));if(!i||!i.label)return(0,y.jsx)(`div`,{className:`pg-cell pg-cell--free`,children:(0,y.jsx)(`span`,{className:`pg-cell-free`,children:`free`})},`c${t}-${r}`);let a=i.accent?{borderInlineStartColor:i.accent,borderInlineStartWidth:3}:void 0;return(0,y.jsxs)(`div`,{className:`pg-cell${i.done?` done`:``}`,style:a,children:[(0,y.jsx)(`span`,{className:`pg-cell-label`,style:i.accent?{color:i.accent}:void 0,children:i.label}),i.sub&&(0,y.jsx)(`span`,{className:`pg-cell-sub`,children:i.sub})]},`c${t}-${r}`)})]},`r${t}`)}),a&&a.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`pg-slot pg-slot--sum`,children:`Total`}),f.map((e,t)=>(0,y.jsx)(`div`,{className:`pg-cell--sum`,children:a[t]??``},`s${t}`))]})]})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}var Je={fixed:`var(--presence)`,flexible:`var(--warning)`,savings:`var(--insight)`};function J(e,t){let n=Math.abs(e),r=n.toLocaleString(void 0,{maximumFractionDigits:n%1==0?0:2});return(e<0?`-`:``)+t+r}function Ye({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,income:r,unit:i=`$`,incomeLabel:a=`Money in`,envelopes:c,caption:l,footer:u,delay:d}){let f=o[t]||o.chart,p=c??[],m=Number(r)||0,h=m-p.reduce((e,t)=>e+(Number(t.amount)||0),0),g=h<0,_=e=>m>0?Math.min(100,Math.max(0,e/m*100)):0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),l&&(0,y.jsx)(`div`,{className:`ba-caption`,children:l}),(0,y.jsxs)(`div`,{className:`ba-income`,children:[(0,y.jsx)(`span`,{className:`ba-income-label`,children:a}),(0,y.jsx)(`span`,{className:`ba-income-val`,children:J(m,i)})]}),(0,y.jsx)(`div`,{className:`ba-envelopes`,children:p.map((e,t)=>{let n=e.accent??(e.group?Je[e.group]:`var(--presence)`),r=Number(e.amount)||0;return(0,y.jsxs)(`div`,{className:`ba-env`,children:[(0,y.jsxs)(`div`,{className:`ba-env-top`,children:[(0,y.jsxs)(`span`,{className:`ba-env-label`,children:[e.label,e.group&&(0,y.jsx)(`span`,{className:`ba-env-tag`,children:e.group})]}),(0,y.jsx)(`span`,{className:`ba-env-amt`,children:J(r,i)})]}),(0,y.jsx)(`div`,{className:`ba-bar`,children:(0,y.jsx)(`span`,{className:`ba-bar-fill m-stagger-item m-scale-in`,style:{width:_(r)+`%`,background:n,"--i":t}})}),e.note&&(0,y.jsx)(`div`,{className:`ba-env-note`,children:e.note})]},t)})}),(0,y.jsxs)(`div`,{className:`ba-remaining${g?` over`:``}`,children:[(0,y.jsx)(`span`,{className:`ba-rem-label`,children:g?`Over by`:`Left to allocate`}),(0,y.jsx)(`span`,{className:`ba-rem-val`,children:J(Math.abs(h),i)})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Xe={easy:`Easy`,medium:`Medium`,hard:`Hard`};function Ze({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,time:r,difficulty:i,warning:a,tools:c,steps:l,footer:u,delay:d}){let f=o[t]||o.check,p=l??[],m=c??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`hts-meta`,children:[r&&(0,y.jsxs)(`span`,{className:`hts-chip`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:11,height:11}}),` `,r]}),i&&(0,y.jsx)(`span`,{className:`hts-chip hts-diff hts-diff--${i}`,children:Xe[i]??i})]}),a&&(0,y.jsxs)(`div`,{className:`hts-warning`,children:[(0,y.jsx)(o.alert,{className:`ic`}),(0,y.jsx)(`span`,{children:a})]}),m.length>0&&(0,y.jsxs)(`div`,{className:`hts-tools`,children:[(0,y.jsx)(`span`,{className:`hts-tools-label`,children:`You’ll need`}),(0,y.jsx)(`div`,{className:`hts-tools-chips`,children:m.map((e,t)=>(0,y.jsx)(`span`,{className:`hts-tool`,children:e},t))})]}),(0,y.jsx)(`ol`,{className:`hts-steps`,children:p.map((e,t)=>(0,y.jsxs)(`li`,{className:`hts-step`,children:[(0,y.jsx)(`span`,{className:`hts-num`,children:t+1}),(0,y.jsxs)(`div`,{className:`hts-body`,children:[(0,y.jsx)(`div`,{className:`hts-action`,children:e.action}),e.detail&&(0,y.jsx)(`div`,{className:`hts-detail`,children:e.detail}),e.caution&&(0,y.jsxs)(`div`,{className:`hts-caution`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:11,height:11}}),` `,e.caution]}),e.tip&&(0,y.jsx)(`div`,{className:`hts-tip`,children:e.tip}),e.check&&(0,y.jsxs)(`div`,{className:`hts-check`,children:[(0,y.jsx)(o.check,{className:`ic`,style:{width:11,height:11}}),` Done when:`,` `,e.check]})]})]},t))}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Qe={"+":1,"-":1,"*":2,"/":2,"^":3};function $e(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===` `||r===` `||r===`
|
|
2
2
|
`){n++;continue}if(r>=`0`&&r<=`9`||r===`.`){let r=n+1;for(;r<e.length&&(e[r]>=`0`&&e[r]<=`9`||e[r]===`.`);)r++;t.push(e.slice(n,r)),n=r;continue}if(/[a-zA-Z_]/.test(r)){let r=n+1;for(;r<e.length&&/[a-zA-Z0-9_]/.test(e[r]);)r++;t.push(e.slice(n,r)),n=r;continue}if(`+-*/^()`.includes(r)){t.push(r),n++;continue}return null}return t}var et=e=>e[0]>=`0`&&e[0]<=`9`||e[0]===`.`;function tt(e,t){let n=$e(e||``);if(!n||!n.length)return NaN;let r=[],i=[],a=null;for(let e of n)if(et(e)||/[a-zA-Z_]/.test(e[0]))r.push(e),a=`val`;else if(e===`(`)i.push(e),a=`lparen`;else if(e===`)`){for(;i.length&&i[i.length-1]!==`(`;)r.push(i.pop());if(!i.length)return NaN;i.pop(),a=`val`}else{let t=e;(t===`-`||t===`+`)&&(a===null||a===`op`||a===`lparen`)&&(t=t===`-`?`u-`:`u+`);let n=e=>e===`u-`||e===`u+`?4:Qe[e]??0,o=t===`^`||t===`u-`||t===`u+`;for(;i.length;){let e=i[i.length-1];if(e===`(`)break;if(n(e)>n(t)||n(e)===n(t)&&!o)r.push(i.pop());else break}i.push(t),a=`op`}for(;i.length;){let e=i.pop();if(e===`(`)return NaN;r.push(e)}let o=[];for(let e of r)if(e===`u-`){if(!o.length)return NaN;o.push(-o.pop())}else if(e===`u+`){if(!o.length)return NaN}else if(e in Qe){if(o.length<2)return NaN;let t=o.pop(),n=o.pop();o.push(e===`+`?n+t:e===`-`?n-t:e===`*`?n*t:e===`/`?n/t:n**+t)}else if(et(e)){let t=Number(e);if(!isFinite(t))return NaN;o.push(t)}else{let n=t[e];if(typeof n!=`number`||!isFinite(n))return NaN;o.push(n)}return o.length===1&&isFinite(o[0])?o[0]:NaN}function nt(e,t){return isFinite(e)?e.toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:t}):`—`}function rt(e,t,n){if(typeof n==`number`&&n>0)return n;let r=Math.abs(t-e)||1;return r<=2?.01:r<=20?.1:r<=200?1:Math.max(1,Math.round(r/200))}function it({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,inputs:r,formula:i,output:a,caveat:c,footer:l,delay:u}){let d=o[t]||o.sliders,f=(0,O.useMemo)(()=>r??[],[r]),[p,m]=(0,O.useState)(()=>{let e={};for(let t of f)e[t.key]=typeof t.value==`number`?t.value:t.min;return e}),h=(0,O.useMemo)(()=>tt(i||``,p),[i,p]),g=a?.decimals??0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`lc-output`,children:[(0,y.jsx)(`span`,{className:`lc-out-label`,children:a?.label}),(0,y.jsxs)(`span`,{className:`lc-out-val`,children:[a?.prefix||``,nt(h,g),a?.unit?(0,y.jsxs)(`span`,{className:`lc-out-unit`,children:[` `,a.unit]}):null]})]}),(0,y.jsx)(`div`,{className:`lc-levers`,children:f.map(e=>{let t=p[e.key]??e.min;return(0,y.jsxs)(`div`,{className:`lc-lever`,children:[(0,y.jsxs)(`div`,{className:`lc-lever-top`,children:[(0,y.jsx)(`span`,{className:`lc-lever-label`,children:e.label}),(0,y.jsxs)(`span`,{className:`lc-lever-val`,children:[e.prefix||``,nt(t,t%1==0?0:2),e.unit?` ${e.unit}`:``]})]}),(0,y.jsx)(`input`,{type:`range`,className:`lc-range`,min:e.min,max:e.max,step:rt(e.min,e.max,e.step),value:t,"aria-label":e.label,onChange:t=>m(n=>({...n,[e.key]:Number(t.target.value)}))})]},e.key)})}),c&&(0,y.jsxs)(`div`,{className:`lc-caveat`,children:[(0,y.jsx)(o.alert,{className:`ic`}),` `,(0,y.jsx)(`span`,{children:c})]}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}function at(e){let t=Math.max(0,Math.floor(e/1e3));return[{v:Math.floor(t/86400),u:`days`},{v:Math.floor(t%86400/3600),u:`hrs`},{v:Math.floor(t%3600/60),u:`min`},{v:t%60,u:`sec`}]}function ot({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,target:r,label:c,dueWhat:l,consequence:u,footer:d,delay:f}){let m=o[t]||o.clock,[h,g]=(0,O.useState)(()=>Date.now()),[_,v]=(0,O.useState)(i);(0,O.useEffect)(()=>a(e=>{v(e),e||g(Date.now())}),[]),p(()=>g(Date.now()),_?null:1e3);let b=Date.parse(r),x=!Number.isNaN(b),S=x?b-h:0,C=x&&S<=0,w=at(S);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`cd-label`,children:c}),x?C?(0,y.jsx)(`div`,{className:`cd-past`,children:`Passed`}):(0,y.jsx)(`div`,{className:`cd-grid`,role:`timer`,children:w.map((e,t)=>(0,y.jsxs)(`div`,{className:`cd-cell`,children:[(0,y.jsx)(`span`,{className:`cd-num cd-num-pulse`,children:String(e.v).padStart(2,`0`)},e.v),(0,y.jsx)(`span`,{className:`cd-unit`,children:e.u})]},t))}):(0,y.jsx)(`div`,{className:`cd-note`,children:`No valid date was given for this countdown.`}),(l||u)&&(0,y.jsxs)(`div`,{className:`cd-meta`,children:[l&&(0,y.jsxs)(`div`,{className:`cd-due`,children:[(0,y.jsx)(`span`,{className:`cd-tag`,children:`Due`}),` `,l]}),u&&(0,y.jsxs)(`div`,{className:`cd-consequence`,children:[(0,y.jsx)(o.alert,{className:`ic`}),(0,y.jsx)(`span`,{children:u})]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function st({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,entries:r,unit:i,step:a=1,footer:c,delay:l}){let u=o[t]||o.spark,d=r??[],[f,p]=(0,O.useState)(()=>d.map(e=>Number(e.score)||0)),m=(e,t)=>p(n=>n.map((n,r)=>r===e?Math.max(0,n+t):n)),h=d.map((e,t)=>({e,i:t,v:f[t]??0})).sort((e,t)=>t.v-e.v),g=h.length?h[0].v:0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`ul`,{className:`lvs-list`,children:h.map(({e,i:t,v:n},r)=>{let o=n===g&&n>0,s=e.color||`var(--presence)`;return(0,y.jsxs)(`li`,{className:`lvs-row m-stagger-item m-fade-rise`+(o?` lead`:``),style:{"--i":r},children:[(0,y.jsx)(`span`,{className:`lvs-rank`,children:r+1}),(0,y.jsx)(`span`,{className:`lvs-dot`,style:{background:s},"aria-hidden":`true`}),(0,y.jsx)(`span`,{className:`lvs-name`,children:e.name}),(0,y.jsxs)(`span`,{className:`lvs-score`,children:[n,i?(0,y.jsxs)(`span`,{className:`lvs-unit`,children:[` `,i]}):null]}),(0,y.jsxs)(`span`,{className:`lvs-btns`,children:[(0,y.jsx)(`button`,{type:`button`,className:`lvs-btn`,"aria-label":`Subtract ${a} from ${e.name}`,onClick:()=>m(t,-a),children:`−`}),(0,y.jsx)(`button`,{type:`button`,className:`lvs-btn lvs-btn--add`,"aria-label":`Add ${a} to ${e.name}`,onClick:()=>m(t,a),children:`+`})]})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function ct(e){let t=Number(e);return Number.isFinite(t)?Math.min(5,Math.max(1,t)):1}function lt({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,people:r,assignments:i,footer:a,delay:c}){let l=o[t]||o.layers,u=(r??[]).filter(e=>typeof e==`string`&&e.trim().length>0),d=(i??[]).filter(e=>!!e&&typeof e.task==`string`&&typeof e.who==`string`),f=[...u],p=new Map;for(let e of f)p.set(e,[]);for(let e of d)p.has(e.who)||(p.set(e.who,[]),f.push(e.who)),p.get(e.who).push(e);let m=e=>(p.get(e)??[]).reduce((e,t)=>e+ct(t.weight),0),h=f.reduce((e,t)=>Math.max(e,m(t)),0);return f.length===0?null:(0,y.jsxs)(`div`,{className:`card reveal alp-card`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`alp-grid`,children:f.map(e=>{let t=p.get(e)??[],n=m(e),r=h>0?Math.round(n/h*100):0;return(0,y.jsxs)(`div`,{className:`alp-col${h>0&&n===h?` alp-col--lead`:``}`,children:[(0,y.jsxs)(`div`,{className:`alp-col-head`,children:[(0,y.jsx)(`span`,{className:`alp-name`,children:e}),(0,y.jsxs)(`span`,{className:`alp-count`,children:[t.length,` `,t.length===1?`task`:`tasks`]})]}),(0,y.jsx)(`div`,{className:`alp-load`,role:`img`,"aria-label":`Load ${n} of ${h}`,title:`Load ${n}`,children:(0,y.jsx)(`span`,{className:`alp-load-fill`,style:{width:r+`%`}})}),t.length>0?(0,y.jsx)(`ul`,{className:`alp-tasks`,children:t.map((e,t)=>{let n=ct(e.weight);return(0,y.jsxs)(`li`,{className:`alp-task`,children:[(0,y.jsx)(`span`,{className:`alp-task-label`,children:e.task}),e.weight!=null&&(0,y.jsx)(`span`,{className:`alp-task-wt`,"aria-label":`effort ${n} of 5`,title:`Effort ${n}/5`,children:Array.from({length:5},(e,t)=>(0,y.jsx)(`span`,{className:`alp-pip${t<n?` alp-pip--on`:``}`,"aria-hidden":!0},t))})]},t)})}):(0,y.jsx)(`div`,{className:`alp-empty`,children:`No tasks yet`})]},e)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function ut({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,servingSize:r,servings:i,calories:a,nutrients:c,allergens:l,caption:u,footer:d,delay:f}){let p=o[t]||o.doc,m=c.some(e=>e.dv!==void 0);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`nl-caption`,children:u}),(0,y.jsxs)(`div`,{className:`nl-panel`,children:[(0,y.jsx)(`div`,{className:`nl-heading`,children:`Nutrition Facts`}),(0,y.jsxs)(`div`,{className:`nl-serving-row`,children:[i&&(0,y.jsxs)(`span`,{className:`nl-servings`,children:[i,` servings per container`]}),(0,y.jsxs)(`div`,{className:`nl-serving`,children:[(0,y.jsx)(`span`,{children:`Serving size`}),(0,y.jsx)(`strong`,{children:r})]})]}),(0,y.jsx)(`div`,{className:`nl-rule nl-rule--thick`}),(0,y.jsxs)(`div`,{className:`nl-cal-row`,children:[(0,y.jsx)(`span`,{className:`nl-cal-label`,children:`Calories`}),(0,y.jsx)(`span`,{className:`nl-cal-num`,children:a.toLocaleString()})]}),(0,y.jsx)(`div`,{className:`nl-rule nl-rule--med`}),m&&(0,y.jsx)(`div`,{className:`nl-dv-head`,children:`% Daily Value*`}),(0,y.jsx)(`ul`,{className:`nl-nutrients`,children:c.map((e,t)=>(0,y.jsxs)(`li`,{className:`nl-nutrient${e.indent?` nl-nutrient--sub`:``}${e.bold?` nl-nutrient--bold`:``}`,children:[(0,y.jsx)(`span`,{className:`nl-n-name`,children:e.name}),(0,y.jsx)(`span`,{className:`nl-n-amount`,children:e.amount}),(0,y.jsx)(`span`,{className:`nl-n-dv`,children:e.dv===void 0?``:`${e.dv}%`})]},t))}),l&&l.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`nl-rule nl-rule--thick`}),(0,y.jsxs)(`div`,{className:`nl-allergens`,children:[(0,y.jsx)(`strong`,{children:`Contains:`}),` `,l.join(`, `)]})]}),m&&(0,y.jsx)(`div`,{className:`nl-foot`,children:`* Percent Daily Values are based on a 2,000 calorie diet.`})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var dt={flex:1,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`};function ft({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,quantity:r,from:i,equivalents:a,category:l,caption:u,footer:d,delay:f}){let p=o[t]||o.table;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`uc-caption`,children:u}),(0,y.jsxs)(`div`,{className:`uc-from`,children:[(0,y.jsx)(`span`,{className:`uc-from-qty`,children:c(r)}),(0,y.jsx)(`span`,{className:`uc-from-unit`,children:i}),l&&(0,y.jsx)(`span`,{className:`uc-category`,children:l})]}),(0,y.jsx)(`ul`,{className:`uc-rows`,children:a.map((e,t)=>(0,y.jsxs)(`li`,{className:`uc-row`,children:[(0,y.jsx)(`span`,{className:`uc-eq`,children:`=`}),(0,y.jsx)(`span`,{className:`uc-val`,children:e.value}),(0,y.jsx)(`span`,{className:`uc-unit`,style:dt,title:e.unit,children:e.unit})]},t))}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function pt({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,context:r,groups:i,caption:a,footer:c,delay:l}){let u=o[t]||o.check,d=i.flatMap(e=>e.items),f=d.length,p=d.filter(e=>e.packed).length,m=f>0?p/f*100:0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,y.jsx)(`div`,{className:`pl-caption`,children:a}),(0,y.jsxs)(`div`,{className:`pl-overall`,children:[r&&(0,y.jsx)(`span`,{className:`pl-context`,children:r}),(0,y.jsxs)(`span`,{className:`pl-overall-count`,children:[p,` / `,f,` packed`]})]}),(0,y.jsx)(`div`,{className:`pl-bar`,role:`progressbar`,"aria-valuenow":Math.round(m),children:(0,y.jsx)(`span`,{className:`pl-bar-fill`,style:{width:`${m}%`}})}),(0,y.jsx)(`div`,{className:`pl-groups`,children:i.map((e,t)=>{let n=e.items.length,r=e.items.filter(e=>e.packed).length,i=n>0?r/n*100:0;return(0,y.jsxs)(`div`,{className:`pl-group`,children:[(0,y.jsxs)(`div`,{className:`pl-group-head`,children:[(0,y.jsx)(`span`,{className:`pl-group-name`,children:e.name}),(0,y.jsxs)(`span`,{className:`pl-group-count`,children:[r,`/`,n]})]}),(0,y.jsx)(`div`,{className:`pl-group-bar`,children:(0,y.jsx)(`span`,{className:`pl-group-bar-fill`,style:{width:`${i}%`}})}),(0,y.jsx)(`ul`,{className:`pl-items`,children:e.items.map((e,t)=>(0,y.jsxs)(`li`,{className:`pl-item${e.packed?` packed`:``}`,children:[(0,y.jsx)(`span`,{className:`pl-check`,"aria-hidden":!0,children:e.packed?(0,y.jsx)(o.check,{className:`ic`}):null}),(0,y.jsx)(`span`,{className:`pl-item-label`,children:e.label}),e.count!==void 0&&e.count>1&&(0,y.jsxs)(`span`,{className:`pl-item-count`,children:[e.count,`×`]})]},t))})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Y=40;function mt(e){return e<=13?1:e<=27?2:3}function ht({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,week:r,trimester:i,fruitSize:a,lengthCm:c,weightG:l,milestones:u,caption:d,footer:f,delay:p}){let m=o[t]||o.clock,h=Math.max(0,Math.min(Y,r)),g=h/Y*100,_=i??mt(h),v=Math.max(0,Y-h),b=28+h/Y*28;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),d&&(0,y.jsx)(`div`,{className:`pw-caption`,children:d}),(0,y.jsxs)(`div`,{className:`pw-head`,children:[(0,y.jsxs)(`div`,{className:`pw-week`,children:[(0,y.jsx)(`span`,{className:`pw-week-num`,children:h}),(0,y.jsx)(`span`,{className:`pw-week-unit`,children:`weeks`})]}),(0,y.jsxs)(`div`,{className:`pw-tri`,children:[(0,y.jsxs)(`span`,{className:`pw-tri-label`,children:[`Trimester `,_]}),(0,y.jsxs)(`span`,{className:`pw-togo`,children:[v,` weeks to go`]})]})]}),(0,y.jsxs)(`div`,{className:`pw-bar`,role:`progressbar`,"aria-valuenow":h,"aria-valuemax":Y,children:[(0,y.jsx)(`span`,{className:`pw-bar-fill`,style:{width:`${g}%`}}),(0,y.jsxs)(`span`,{className:`pw-bar-marks`,"aria-hidden":!0,children:[(0,y.jsx)(`span`,{className:`pw-bar-tick`,style:{left:`${13/Y*100}%`}}),(0,y.jsx)(`span`,{className:`pw-bar-tick`,style:{left:`${27/Y*100}%`}})]})]}),(0,y.jsxs)(`div`,{className:`pw-bar-legend`,children:[(0,y.jsx)(`span`,{children:`1st`}),(0,y.jsx)(`span`,{children:`2nd`}),(0,y.jsx)(`span`,{children:`3rd`})]}),(a||c!==void 0||l!==void 0)&&(0,y.jsxs)(`div`,{className:`pw-stats`,children:[a&&(0,y.jsxs)(`div`,{className:`pw-fruit`,children:[(0,y.jsx)(`span`,{className:`pw-fruit-disc`,style:{width:b,height:b},"aria-hidden":!0}),(0,y.jsxs)(`div`,{className:`pw-fruit-text`,children:[(0,y.jsx)(`span`,{className:`pw-stat-label`,children:`Size of a`}),(0,y.jsx)(`span`,{className:`pw-fruit-name`,children:a})]})]}),(0,y.jsxs)(`div`,{className:`pw-measures`,children:[c!==void 0&&(0,y.jsxs)(`div`,{className:`pw-measure`,children:[(0,y.jsx)(`span`,{className:`pw-stat-label`,children:`Length`}),(0,y.jsxs)(`span`,{className:`pw-stat-val`,children:[c,` cm`]})]}),l!==void 0&&(0,y.jsxs)(`div`,{className:`pw-measure`,children:[(0,y.jsx)(`span`,{className:`pw-stat-label`,children:`Weight`}),(0,y.jsxs)(`span`,{className:`pw-stat-val`,children:[l,` g`]})]})]})]}),u&&u.length>0&&(0,y.jsx)(`ul`,{className:`pw-milestones`,children:u.map((e,t)=>(0,y.jsx)(`li`,{className:`pw-milestone`,children:e},t))}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(f)})]})}function gt({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,cycleLength:r,periodDays:i,currentDay:a,fertileWindow:c,ovulationDay:l,caption:u,footer:d,delay:f}){let p=o[t]||o.clock,m=Math.max(1,Math.round(r)),h=Math.max(0,Math.min(m,Math.round(i))),g=c&&[Math.max(1,Math.min(m,c[0])),Math.max(1,Math.min(m,c[1]))].sort((e,t)=>e-t),_=l===void 0?void 0:Math.max(1,Math.min(m,Math.round(l))),v=a===void 0?void 0:Math.max(1,Math.min(m,Math.round(a))),b=304/m,x=e=>8+(e-1)*b,S=e=>e<=h?`period`:g&&e>=g[0]&&e<=g[1]?`fertile`:`plain`,C=Array.from({length:m},(e,t)=>t+1),w=v===void 0?void 0:x(v)+b/2;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),u&&(0,y.jsx)(`div`,{className:`ct-caption`,children:u}),(0,y.jsxs)(`svg`,{className:`ct-band`,viewBox:`0 0 320 64`,preserveAspectRatio:`none`,role:`img`,"aria-label":`Cycle of ${m} days, ${h} period days`,children:[C.map(e=>{let t=S(e);return(0,y.jsx)(`rect`,{className:`ct-day ct-day--${t}`,x:x(e)+.6,y:26,width:Math.max(.5,b-1.2),height:18,rx:2},e)}),_!==void 0&&(0,y.jsx)(`circle`,{className:`ct-ovulation`,cx:x(_)+b/2,cy:35,r:Math.min(b,18)/2-.5}),w!==void 0&&(0,y.jsxs)(`g`,{className:`ct-today`,children:[(0,y.jsx)(`line`,{x1:w,y1:18,x2:w,y2:46}),(0,y.jsx)(`text`,{x:w,y:15,textAnchor:w<16?`start`:w>304?`end`:`middle`,className:`ct-today-label`,children:`Today`})]}),(0,y.jsx)(`text`,{x:x(1)+b/2,y:60,className:`ct-axis`,children:`1`}),(0,y.jsx)(`text`,{x:x(m)+b/2,y:60,className:`ct-axis ct-axis--end`,children:m})]}),(0,y.jsxs)(`div`,{className:`ct-legend`,children:[(0,y.jsxs)(`span`,{className:`ct-leg ct-leg--period`,children:[`Period · days 1–`,h]}),g&&(0,y.jsxs)(`span`,{className:`ct-leg ct-leg--fertile`,children:[`Fertile · days `,g[0],`–`,g[1]]}),_!==void 0&&(0,y.jsxs)(`span`,{className:`ct-leg ct-leg--ov`,children:[`Ovulation · day `,_]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function _t({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,contractions:r,rule:i,caption:a,footer:c,delay:l}){let u=o[t]||o.clock,d=r??[],f=d.reduce((e,t)=>Math.max(e,t.durationSec||0),0)||1,p=d.map(e=>e.intervalMin).filter(e=>e!==void 0),m=p.reduce((e,t)=>Math.max(e,t),0)||1,h=d.length?Math.round(d.reduce((e,t)=>e+(t.durationSec||0),0)/d.length):0,g=p.length?Math.round(p.reduce((e,t)=>e+t,0)/p.length*10)/10:void 0,_=e=>{let t=Math.floor(e/60),n=e%60;return t>0?`${t}m ${String(n).padStart(2,`0`)}s`:`${n}s`};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),a&&(0,y.jsx)(`div`,{className:`cn-caption`,children:a}),(0,y.jsxs)(`div`,{className:`cn-readouts`,children:[(0,y.jsxs)(`div`,{className:`cn-readout`,children:[(0,y.jsx)(`span`,{className:`cn-ro-val`,children:_(h)}),(0,y.jsx)(`span`,{className:`cn-ro-label`,children:`avg duration`})]}),(0,y.jsxs)(`div`,{className:`cn-readout`,children:[(0,y.jsx)(`span`,{className:`cn-ro-val`,children:g===void 0?`—`:`${g} min`}),(0,y.jsx)(`span`,{className:`cn-ro-label`,children:`avg apart`})]}),(0,y.jsxs)(`div`,{className:`cn-readout`,children:[(0,y.jsx)(`span`,{className:`cn-ro-val`,children:d.length}),(0,y.jsx)(`span`,{className:`cn-ro-label`,children:`logged`})]})]}),d.length>0&&(0,y.jsx)(`div`,{className:`cn-strip`,role:`img`,"aria-label":`${d.length} contractions`,children:d.map((e,t)=>{let n=28+e.durationSec/f*40,r=e.intervalMin===void 0?0:e.intervalMin/m*100;return(0,y.jsxs)(`div`,{className:`cn-slot`,style:{flexGrow:t<d.length-1?Math.max(.4,r/100+.4):.4},children:[(0,y.jsx)(`div`,{className:`cn-bar`,style:{height:n},title:`${e.start} · ${_(e.durationSec)}`}),(0,y.jsx)(`span`,{className:`cn-bar-time`,children:e.start}),e.intervalMin!==void 0&&t<d.length-1&&(0,y.jsxs)(`span`,{className:`cn-gap-label`,style:{top:t%2==0?`18%`:`62%`},children:[e.intervalMin,`m`]})]},t)})}),i&&(0,y.jsxs)(`div`,{className:`cn-rule`,children:[(0,y.jsx)(o.bell,{className:`ic`}),(0,y.jsxs)(`span`,{children:[`Go in at the `,(0,y.jsx)(`strong`,{children:i}),` rule — contractions `,i.split(`-`)[0],` min apart, ~`,i.split(`-`)[1],` min each, for `,i.split(`-`)[2],` hour.`]})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}function vt(e){return e<=6?{nameSize:11,timeSize:10,maxChars:12}:e<=9?{nameSize:9.5,timeSize:8.5,maxChars:9}:e<=13?{nameSize:8,timeSize:7.2,maxChars:7}:{nameSize:7,timeSize:6.4,maxChars:5}}function yt(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function bt(e){let t=e.trim().toLowerCase();if(t===`noon`||t===`midday`)return 720;if(t===`midnight`)return 0;let n=t.match(/^(\d{1,2})(?::(\d{1,2}))?\s*(am|pm)?/);if(!n)return null;let r=Number(n[1]),i=n[2]?Number(n[2]):0,a=n[3];return r>23||i>59?null:(a===`pm`&&r<12&&(r+=12),a===`am`&&r===12&&(r=0),r*60+i)}function xt({title:e,icon:t=`sun`,iconColor:n=`var(--warning)`,date:r,location:i,slots:a,next:c,sunArc:l=!0,caption:u,footer:d,delay:f}){let p=o[t]||o.sun,m=(a??[]).map(e=>({...e,mins:bt(e.time)})).filter(e=>e.mins!==null),h=vt(m.length),g=m.map(e=>e.mins),_=g.length?Math.min(...g):360,v=g.length?Math.max(...g):1080,b=(v>_?v:_+720)-_,x=e=>(e-_)/b,S=c?.trim().toLowerCase(),C=S?m.findIndex(e=>e.name.trim().toLowerCase()===S):-1,w=C>0?m[C].mins-m[C-1].mins:null,T=w!==null&&w>0?w>=60?`${Math.floor(w/60)}h ${w%60}m`.replace(` 0m`,``):`${w}m`:null,E=e=>22+e*276,D=E(0),O=E(1),k=e=>{let t=1-e;return t*t*116+2*t*e*-56+e*e*116};return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(r||i)&&(0,y.jsxs)(`div`,{className:`pt-meta`,children:[r&&(0,y.jsx)(`span`,{className:`pt-date`,children:r}),r&&i&&(0,y.jsx)(`span`,{className:`pt-dot`,"aria-hidden":`true`}),i&&(0,y.jsxs)(`span`,{className:`pt-loc`,children:[(0,y.jsx)(o.globe,{className:`ic`}),` `,i]})]}),u&&(0,y.jsx)(`div`,{className:`pt-caption`,children:u}),l&&m.length>0&&(0,y.jsxs)(`svg`,{className:`pt-arc`,viewBox:`0 0 320 150`,role:`img`,"aria-label":`Day arc of devotional times from dawn to dusk`,children:[(0,y.jsx)(`line`,{className:`pt-horizon`,x1:0,y1:116,x2:320,y2:116}),(0,y.jsx)(`path`,{className:`pt-curve`,d:`M ${D} 116 Q ${(D+O)/2} -56 ${O} 116`,fill:`none`}),m.map((e,t)=>{let n=x(e.mins),r=E(n),i=k(n),a=t===C,o=i<64,s=yt(e.name,h.maxChars),c=s!==e.name;return(0,y.jsxs)(`g`,{className:`pt-slot${a?` is-next`:``}`,children:[(0,y.jsx)(`line`,{className:`pt-stem`,x1:r,y1:i,x2:r,y2:116}),(0,y.jsx)(`circle`,{className:`pt-dot`,cx:r,cy:i,r:a?6:3.6}),a&&(0,y.jsx)(`circle`,{className:`pt-halo`,cx:r,cy:i,r:11}),(0,y.jsxs)(`text`,{className:`pt-name`,x:r,y:o?i+18:i-14,textAnchor:`middle`,fontSize:h.nameSize,children:[s,c&&(0,y.jsx)(`title`,{children:e.name})]}),(0,y.jsx)(`text`,{className:`pt-time`,x:r,y:o?i+30:i-4,textAnchor:`middle`,fontSize:h.timeSize,children:e.time})]},t)})]}),(0,y.jsx)(`div`,{className:`pt-list`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`pt-row${t===C?` is-next`:``}`,children:[(0,y.jsx)(`span`,{className:`pt-row-name`,children:e.name}),(0,y.jsx)(`span`,{className:`pt-row-time`,children:e.time}),t===C&&(0,y.jsx)(`span`,{className:`pt-next-tag`,children:T?`Up next · ${T}`:`Up next`})]},t))}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}var St={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,oxidizer:`Oxidizer`,irritant:`Irritant`},Ct=new Set([`corrosive`,`toxic`]);function wt(e){let t=(0,N.c)(5),{duration:n,temp:r,small:i}=e;if(!n&&!r)return null;let a=`labp-cond${i?` labp-cond--sm`:``}`,o=n&&r?` · `:``,s;return t[0]!==n||t[1]!==a||t[2]!==o||t[3]!==r?(s=(0,y.jsxs)(`span`,{className:a,children:[n,o,r]}),t[0]=n,t[1]=a,t[2]=o,t[3]=r,t[4]=s):s=t[4],s}function Tt({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,reagents:r,equipment:i,steps:a,cycles:c,footer:l,delay:u}){let d=o[t]||o.sparkle,f=Array.isArray(r)?r:[],p=Array.isArray(i)?i:[],m=Array.isArray(a)?a:[],h=c&&Array.isArray(c.steps)?c.steps:[],g=c&&Number.isFinite(c.repeat)&&c.repeat>0?Math.round(c.repeat):0,_=h.length>0&&g>0,v=f.length>0||p.length>0;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:v?`labp-body`:`labp-body labp-body--full`,children:[v&&(0,y.jsxs)(`div`,{className:`labp-sidebar`,children:[f.length>0&&(0,y.jsxs)(`div`,{className:`labp-section`,children:[(0,y.jsx)(`div`,{className:`labp-section-label`,children:`Reagents`}),(0,y.jsx)(`ul`,{className:`labp-reagent-list`,children:f.map((e,t)=>(0,y.jsxs)(`li`,{className:`labp-reagent`,children:[(0,y.jsxs)(`div`,{className:`labp-reagent-row`,children:[(e.amount||e.conc)&&(0,y.jsxs)(`span`,{className:`labp-reagent-qty`,children:[e.amount,e.amount&&e.conc?` · `:``,e.conc]}),(0,y.jsx)(`span`,{className:`labp-reagent-name`,children:e.name})]}),e.hazard&&St[e.hazard]&&(0,y.jsxs)(`span`,{className:Ct.has(e.hazard)?`labp-hazard labp-hazard--danger`:`labp-hazard labp-hazard--warning`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:10,height:10}}),St[e.hazard]]})]},t))})]}),p.length>0&&(0,y.jsxs)(`div`,{className:`labp-section`,children:[(0,y.jsx)(`div`,{className:`labp-section-label`,children:`Equipment`}),(0,y.jsx)(`ul`,{className:`labp-equip-list`,children:p.map((e,t)=>(0,y.jsx)(`li`,{className:`labp-equip`,children:e},t))})]})]}),(0,y.jsxs)(`div`,{className:`labp-procedure`,children:[(0,y.jsx)(`div`,{className:`labp-section-label`,children:`Procedure`}),(0,y.jsx)(`ol`,{className:`labp-step-list`,children:m.map((e,t)=>(0,y.jsxs)(`li`,{className:`labp-step m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`labp-step-num`,children:t+1}),(0,y.jsxs)(`div`,{className:`labp-step-body`,children:[(0,y.jsxs)(`div`,{className:`labp-step-row`,children:[(0,y.jsx)(`span`,{className:`labp-step-text`,children:e.text}),(0,y.jsx)(wt,{duration:e.duration,temp:e.temp})]}),e.caution&&(0,y.jsxs)(`div`,{className:`labp-caution`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:11,height:11}}),` `,e.caution]})]})]},t))}),_&&(0,y.jsxs)(`div`,{className:`labp-cycle`,children:[(0,y.jsxs)(`div`,{className:`labp-cycle-header`,children:[(0,y.jsx)(o.refresh,{className:`ic`}),(0,y.jsxs)(`span`,{children:[`Repeat ×`,g]})]}),(0,y.jsx)(`ol`,{className:`labp-cycle-list`,children:h.map((e,t)=>(0,y.jsxs)(`li`,{className:`labp-cycle-step`,children:[(0,y.jsx)(`span`,{className:`labp-cycle-num`,children:t+1}),(0,y.jsx)(`span`,{className:`labp-cycle-text`,children:e.text}),(0,y.jsx)(wt,{duration:e.duration,temp:e.temp,small:!0})]},t))})]})]})]}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(l)})]})}function Et({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,personName:r,relation:i,medications:a,appointments:c,contacts:l,footer:u,delay:d}){let f=o[t]||o.shield,p=Array.isArray(a)?a:[],m=Array.isArray(c)?c:[],h=Array.isArray(l)?l:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`cg-person`,children:[(0,y.jsx)(`span`,{className:`cg-person-name`,children:r}),(0,y.jsx)(`span`,{className:`cg-person-relation`,children:i})]}),(0,y.jsxs)(`div`,{className:`cg-sections`,children:[p.length>0&&(0,y.jsxs)(`div`,{className:`cg-section`,children:[(0,y.jsxs)(`div`,{className:`cg-section-label`,children:[(0,y.jsx)(o.bell,{className:`ic`,style:{width:12,height:12}}),` Medications`]}),(0,y.jsx)(`ul`,{className:`cg-list`,children:p.map((e,t)=>{let n=Array.isArray(e?.times)?e.times:[];return(0,y.jsxs)(`li`,{className:`cg-med-row`,children:[(0,y.jsx)(`span`,{className:`cg-med-name`,children:e?.name}),(0,y.jsx)(`span`,{className:`cg-med-times`,children:n.map((e,t)=>(0,y.jsx)(`span`,{className:`cg-time-chip`,children:e},t))}),e?.takenBy&&(0,y.jsx)(`span`,{className:`cg-taken-by`,children:e.takenBy})]},t)})})]}),m.length>0&&(0,y.jsxs)(`div`,{className:`cg-section`,children:[(0,y.jsxs)(`div`,{className:`cg-section-label`,children:[(0,y.jsx)(o.clock,{className:`ic`,style:{width:12,height:12}}),` Appointments`]}),(0,y.jsx)(`ul`,{className:`cg-list`,children:m.map((e,t)=>(0,y.jsxs)(`li`,{className:`cg-appt-row`,children:[(0,y.jsx)(`span`,{className:`cg-appt-date`,children:e?.date}),(0,y.jsxs)(`span`,{className:`cg-appt-body`,children:[(0,y.jsx)(`span`,{className:`cg-appt-provider`,children:e?.provider}),(0,y.jsx)(`span`,{className:`cg-appt-purpose`,children:e?.purpose})]})]},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`cg-section`,children:[(0,y.jsxs)(`div`,{className:`cg-section-label`,children:[(0,y.jsx)(o.mail,{className:`ic`,style:{width:12,height:12}}),` Care team`]}),(0,y.jsx)(`ul`,{className:`cg-contact-list`,children:h.map((e,t)=>(0,y.jsxs)(`li`,{className:`cg-contact`,children:[(0,y.jsx)(`span`,{className:`cg-contact-name`,children:e?.name}),(0,y.jsx)(`span`,{className:`cg-contact-role`,children:e?.role}),(0,y.jsx)(`span`,{className:`cg-contact-phone`,children:e?.phone})]},t))})]})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(u)})]})}var Dt=[`linear-gradient(160deg, var(--presence), var(--presence-deep))`,`linear-gradient(160deg, var(--insight), var(--presence-deep))`,`linear-gradient(160deg, var(--warning), var(--presence-deep))`,`linear-gradient(160deg, var(--presence-soft), var(--insight))`,`linear-gradient(160deg, var(--insight-soft), var(--presence))`],Ot={reading:`Reading`,queued:`Queued`,done:`Done`};function kt(e){return e===`reading`?`var(--presence)`:e===`done`?`var(--insight)`:`var(--text-muted)`}function At({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,books:r,footer:i,delay:a}){let c=o[t]||o.doc,l=Array.isArray(r)?r:[],[u,d]=(0,O.useState)(new Set),f=e=>d(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`ul`,{className:`rl-books`,children:l.map((e,t)=>{let n=e?.status&&Ot[e.status]?e.status:`queued`,r=Number.isFinite(e?.rating)?Math.min(5,Math.max(0,e?.rating)):void 0,i=Array.isArray(e?.discussionQuestions)?(e?.discussionQuestions??[]).filter(e=>typeof e==`string`&&!!e):[],a=u.has(t);return(0,y.jsxs)(`li`,{className:`rl-book m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`span`,{className:`rl-cover`,"aria-hidden":`true`,style:{background:Dt[t%Dt.length]}}),(0,y.jsxs)(`div`,{className:`rl-book-body`,children:[(0,y.jsxs)(`div`,{className:`rl-book-head`,children:[(0,y.jsx)(`span`,{className:`rl-book-title`,children:e?.title}),(0,y.jsx)(`span`,{className:`rl-status-pill`,style:{color:kt(n)},children:Ot[n]})]}),(0,y.jsxs)(`div`,{className:`rl-book-meta`,children:[(0,y.jsx)(`span`,{className:`rl-author`,children:e?.author}),r!==void 0&&(0,y.jsxs)(`span`,{className:`rl-stars`,"aria-hidden":`true`,children:[(0,y.jsx)(`span`,{className:`rl-stars-fill`,style:{width:r/5*100+`%`},children:`★★★★★`}),(0,y.jsx)(`span`,{className:`rl-stars-track`,children:`★★★★★`})]})]}),i.length>0&&(0,y.jsxs)(`div`,{className:`rl-questions-section`,children:[(0,y.jsxs)(`button`,{className:`rl-questions-toggle`,onClick:()=>f(t),children:[(0,y.jsx)(o.chat,{className:`ic`,style:{width:12,height:12}}),a?`Hide discussion questions`:`${i.length} discussion question${i.length>1?`s`:``}`]}),a&&(0,y.jsx)(`ol`,{className:`rl-questions-list`,children:i.map((e,t)=>(0,y.jsx)(`li`,{className:`rl-question`,children:e},t))})]})]})]},t)})}),i&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(i)})]})}function jt({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,pours:r,notes:i,rating:a,footer:c,delay:l}){let u=o[t]||o.sparkle,d=Array.isArray(r)?r:[],f=Number.isFinite(a)?Math.min(5,Math.max(0,a)):void 0,p=[];return i?.aroma&&p.push({label:`Aroma`,text:i.aroma}),i?.taste&&p.push({label:`Taste`,text:i.taste}),i?.finish&&p.push({label:`Finish`,text:i.finish}),(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),f!==void 0&&(0,y.jsxs)(`div`,{className:`cc-rating`,children:[(0,y.jsxs)(`span`,{className:`cc-stars`,"aria-hidden":`true`,children:[(0,y.jsx)(`span`,{className:`cc-stars-fill`,style:{width:f/5*100+`%`},children:`★★★★★`}),(0,y.jsx)(`span`,{className:`cc-stars-track`,children:`★★★★★`})]}),(0,y.jsx)(`span`,{className:`cc-rating-val tab-num`,children:f.toFixed(1)})]}),(0,y.jsx)(`div`,{className:`cc-section-label`,children:`Build`}),(0,y.jsx)(`ol`,{className:`cc-pour-list`,children:d.map((e,t)=>(0,y.jsxs)(`li`,{className:`cc-pour`,children:[(0,y.jsx)(`span`,{className:`cc-pour-num`,children:t+1}),e?.qty&&(0,y.jsx)(`span`,{className:`cc-pour-qty`,children:e.qty}),(0,y.jsx)(`span`,{className:`cc-pour-item`,children:e?.item})]},t))}),p.length>0&&(0,y.jsx)(`div`,{className:`cc-notes`,children:p.map(e=>(0,y.jsxs)(`div`,{className:`cc-note-row`,children:[(0,y.jsx)(`span`,{className:`cc-note-label`,children:e.label}),(0,y.jsx)(`span`,{className:`cc-note-text`,children:e.text})]},e.label))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Mt=320,Nt=150,Pt=30,X=12,Ft=280,Z=116;function It(e){if(!e)return null;let t=e.trim().match(/^(\d{1,2}):([0-5]\d)$/);return t?Number(t[1])*60+Number(t[2]):null}function Lt(e){return Number.isFinite(e?.distance)?Math.max(0,e.distance):0}function Rt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,unit:r=`mi`,entries:i,footer:a,delay:c}){let f=o[t]||o.chart,p=Array.isArray(i)?i:[],m=(0,O.useRef)(null),h=(0,O.useRef)(null);d(m,{delay:c}),d(h,{delay:(c||0)+120});let g=(0,O.useMemo)(()=>{let e=Array.isArray(i)?i:[];if(e.length<2)return null;let t=e.map(Lt),[n,r]=u(0,Math.max(...t,1)),a=r-n||1,o=e=>X+(1-(e-n)/a)*Z,s=l(n,r,(r-n)/4||1),c=e.map(e=>It(e.pace)),d=c.filter(e=>e!==null),f=d.length>=2,p=f?Math.min(...d):0,m=(f?Math.max(...d):1)-p||1,h=e=>X+(e-p)/m*Z,g=e.length,_=e=>Pt+(g>1?e/(g-1)*Ft:Ft/2),v=t.map((e,t)=>({x:_(t),y:o(e)})),y=f?c.map((e,t)=>e===null?null:{x:_(t),y:h(e)}).filter(e=>e!==null):[],b=e=>e.map((e,t)=>`${t===0?`M`:`L`}${e.x} ${e.y}`).join(` `);return{yTicks:s,dMax:r,distPts:v,pacePts:y,hasPace:f,distPath:b(v),pacePath:b(y)}},[i]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`ul`,{className:`rn-entries`,children:p.map((e,t)=>(0,y.jsxs)(`li`,{className:`rn-entry`,children:[(0,y.jsx)(`span`,{className:`rn-date`,children:e?.date}),(0,y.jsxs)(`span`,{className:`rn-body`,children:[e?.route&&(0,y.jsx)(`span`,{className:`rn-route`,children:e.route}),Number.isFinite(e?.elevationGainM)&&e?.elevationGainM>0&&(0,y.jsxs)(`span`,{className:`rn-elev`,children:[`+`,Math.round(e.elevationGainM),`m`]})]}),(0,y.jsxs)(`span`,{className:`rn-stats`,children:[(0,y.jsxs)(`span`,{className:`rn-distance tab-num`,children:[Number.isFinite(e?.distance)?e.distance:`—`,` `,r]}),e?.pace&&(0,y.jsxs)(`span`,{className:`rn-pace tab-num`,children:[e.pace,`/`,r]})]})]},t))}),g&&(0,y.jsxs)(`div`,{className:`rn-chart-wrap`,children:[(0,y.jsxs)(`svg`,{viewBox:`0 0 ${Mt} ${Nt}`,className:`rn-chart`,role:`img`,"aria-label":`${e} distance and pace trend`,children:[g.yTicks.map((e,t)=>{let n=X+(1-e/g.dMax)*Z;return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{x1:Pt,y1:n,x2:310,y2:n,className:`rn-grid`}),(0,y.jsx)(`text`,{x:25,y:n+3,textAnchor:`end`,className:`rn-tick`,children:e})]},t)}),g.hasPace&&(0,y.jsx)(`path`,{ref:h,d:g.pacePath,fill:`none`,stroke:`var(--warning)`,strokeWidth:1.8,strokeDasharray:`4 3`,strokeLinejoin:`round`,strokeLinecap:`round`}),(0,y.jsx)(`path`,{ref:m,d:g.distPath,fill:`none`,stroke:`var(--presence)`,strokeWidth:2.2,strokeLinejoin:`round`,strokeLinecap:`round`}),g.distPts.map((e,t)=>(0,y.jsx)(`circle`,{cx:e.x,cy:e.y,r:2.6,fill:`var(--presence)`},t))]}),(0,y.jsxs)(`div`,{className:`rn-legend`,children:[(0,y.jsxs)(`span`,{className:`rn-leg`,children:[(0,y.jsx)(`i`,{className:`solid`}),` Distance (`,r,`)`]}),g.hasPace&&(0,y.jsxs)(`span`,{className:`rn-leg`,children:[(0,y.jsx)(`i`,{className:`dashed`}),` Pace (faster is higher)`]})]})]}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function zt(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}function Bt({title:e,icon:t=`eye`,iconColor:n=`var(--presence)`,name:r,role:i,goals:a,frustrations:c,quote:l,behaviors:u,footer:d,delay:f}){let p=o[t]||o.eye,m=Array.isArray(a)?a:[],h=Array.isArray(c)?c:[],g=Array.isArray(u)?u:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`up-header`,children:[(0,y.jsx)(`span`,{className:`up-portrait`,"aria-hidden":`true`,children:zt(r||`?`)}),(0,y.jsxs)(`div`,{className:`up-identity`,children:[(0,y.jsx)(`span`,{className:`up-name`,children:r}),i&&(0,y.jsx)(`span`,{className:`up-role`,children:i})]})]}),l&&(0,y.jsxs)(`div`,{className:`up-quote`,children:[`“`,l,`”`]}),(m.length>0||h.length>0)&&(0,y.jsxs)(`div`,{className:`up-columns`,children:[m.length>0&&(0,y.jsxs)(`div`,{className:`up-col up-col--goals`,children:[(0,y.jsxs)(`div`,{className:`up-col-label`,children:[(0,y.jsx)(o.check,{className:`ic`,style:{width:12,height:12}}),` Goals`]}),(0,y.jsx)(`ul`,{className:`up-list`,children:m.map((e,t)=>(0,y.jsx)(`li`,{children:e},t))})]}),h.length>0&&(0,y.jsxs)(`div`,{className:`up-col up-col--frustrations`,children:[(0,y.jsxs)(`div`,{className:`up-col-label`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:12,height:12}}),` Frustrations`]}),(0,y.jsx)(`ul`,{className:`up-list`,children:h.map((e,t)=>(0,y.jsx)(`li`,{children:e},t))})]})]}),g.length>0&&(0,y.jsxs)(`div`,{className:`up-behaviors`,children:[(0,y.jsx)(`div`,{className:`up-col-label`,children:`Observed behaviors`}),(0,y.jsx)(`div`,{className:`up-behavior-chips`,children:g.map((e,t)=>(0,y.jsx)(`span`,{className:`up-behavior-chip`,children:e},t))})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(d)})]})}function Vt(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:((t[0]?.[0]||``)+(t[1]?.[0]||t[0]?.[1]||``)).toUpperCase()}var Ht={done:`Done`,live:`Live`,next:`Up next`,pending:`Pending`};function Ut({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,eventDate:r,cues:i,footer:a,delay:c}){let l=o[t]||o.clock,u=Array.isArray(i)?i:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`ro-date`,children:r}),(0,y.jsx)(`ol`,{className:`ro-cues`,children:u.map((e,t)=>{let n=e?.state&&Ht[e.state]?e.state:`pending`,r=n===`live`;return(0,y.jsxs)(`li`,{className:`ro-cue ro-cue--${n}`,...r?{"data-mark":`circle`}:{},children:[(0,y.jsx)(`span`,{className:`ro-time`,children:e?.time}),(0,y.jsxs)(`span`,{className:`ro-rail`,"aria-hidden":`true`,children:[(0,y.jsx)(`span`,{className:`ro-dot`}),t<u.length-1&&(0,y.jsx)(`span`,{className:`ro-line`})]}),(0,y.jsxs)(`span`,{className:`ro-body`,children:[(0,y.jsxs)(`span`,{className:`ro-cue-head`,children:[(0,y.jsx)(`span`,{className:`ro-cue-text`,children:e?.cue}),(0,y.jsx)(`span`,{className:`ro-state-pill`,children:Ht[n]})]}),(0,y.jsxs)(`span`,{className:`ro-meta`,children:[e?.duration&&(0,y.jsx)(`span`,{className:`ro-duration`,children:e.duration}),e?.owner&&(0,y.jsxs)(`span`,{className:`ro-owner`,title:e.owner,children:[(0,y.jsx)(`span`,{className:`ro-owner-chip`,children:Vt(e.owner)}),e.owner]})]})]})]},t)})}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}function Wt({title:e,icon:t=`mic`,iconColor:n=`var(--presence)`,guest:r,topics:i,chapters:a,footer:c,delay:l}){let u=o[t]||o.mic,d=Array.isArray(i)?i:[],f=Array.isArray(a)?a:[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsxs)(`div`,{className:`pp-guest`,children:[(0,y.jsx)(o.chat,{className:`ic`,style:{width:13,height:13}}),(0,y.jsx)(`span`,{className:`pp-guest-label`,children:`Guest`}),(0,y.jsx)(`span`,{className:`pp-guest-name`,children:r})]}),d.length>0&&(0,y.jsx)(`ol`,{className:`pp-topics`,children:d.map((e,t)=>{let n=f[t];return(0,y.jsxs)(`li`,{className:`pp-topic`,children:[(0,y.jsx)(`span`,{className:`pp-topic-num`,children:t+1}),(0,y.jsx)(`span`,{className:`pp-topic-text`,children:e}),n?.timecode&&(0,y.jsx)(`span`,{className:`pp-timecode`,children:n.timecode})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(c)})]})}var Gt=320,Kt=116,qt=24,Q=66;function Jt(e){let t=Date.parse(e);if(!Number.isNaN(t))return t/864e5;let n=e.trim().toLowerCase().match(/(\d+(?:\.\d+)?)\s*(day|week|month|year)/);if(!n)return null;let r=Number(n[1]),i=n[2];return r*(i===`day`?1:i===`week`?7:i===`month`?30.44:365.25)}function Yt(e){return e<=5?{fontSize:9,maxChars:14}:e<=9?{fontSize:8,maxChars:10}:{fontSize:7,maxChars:7}}function Xt(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function Zt(e){return e===`done`?`var(--insight)`:e===`overdue`?`var(--danger)`:`var(--warning)`}var Qt={done:`Done`,due:`Due`,overdue:`Overdue`};function $t({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,doses:r,footer:i,delay:a}){let c=o[t]||o.shield,l=Array.isArray(r)?r:[],u=l.map((e,t)=>({dose:e,i:t,t:e?.dueAt?Jt(e.dueAt):null})).filter(e=>e.t!==null),d=u.map(e=>e.t),f=d.length?Math.min(...d):0,p=d.length?Math.max(...d):1,m=(p>f?p:f+1)-f,h=e=>qt+(e-f)/m*272;return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(a||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length>0&&(0,y.jsxs)(`svg`,{className:`vx-axis`,viewBox:`0 0 ${Gt} ${Kt}`,role:`img`,"aria-label":`Vaccination doses plotted by due date`,children:[(0,y.jsx)(`line`,{className:`vx-line`,x1:qt,y1:Q,x2:296,y2:Q}),(()=>{let e=Yt(u.length);return u.map(({dose:t,i:n},r)=>{let i=h(u[r].t),a=r%2==1,o=Zt(t.status),s=Xt(t.vaccine??``,e.maxChars),c=s!==(t.vaccine??``);return(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{x1:i,y1:Q,x2:i,y2:a?82:50,stroke:o,strokeWidth:1.5}),(0,y.jsx)(`circle`,{cx:i,cy:Q,r:4,fill:o}),(0,y.jsxs)(`text`,{x:i,y:a?96:44,textAnchor:`middle`,className:`vx-label`,fontSize:e.fontSize,fill:o,children:[s,c&&(0,y.jsx)(`title`,{children:t.vaccine})]}),(0,y.jsx)(`text`,{x:i,y:a?108:56,textAnchor:`middle`,className:`vx-due`,fontSize:e.fontSize-1,children:t.dueAt})]},n)})})()]}),(0,y.jsx)(`ul`,{className:`vx-list`,children:l.map((e,t)=>{let n=e?.status??`due`,r=Zt(n);return(0,y.jsxs)(`li`,{className:`vx-item`,children:[(0,y.jsx)(`span`,{className:`vx-dot`,style:{background:r}}),(0,y.jsx)(`span`,{className:`vx-vaccine`,children:e?.vaccine}),(0,y.jsx)(`span`,{className:`vx-dueat`,children:e?.dueAt}),(0,y.jsx)(`span`,{className:`vx-status`,style:{color:r},children:Qt[n]??n}),e?.note&&(0,y.jsx)(`span`,{className:`vx-note`,children:e.note})]},t)})}),i&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(i)})]})}var en=340,tn=190,nn=44,rn=14,an=282,on=152,sn=90,cn=[`var(--warning)`,`var(--presence)`,`var(--insight)`],ln={62:`Early`,67:`Full`,70:`Delayed`};function un(e){return Number.isFinite(e?.monthlyBenefit)?Math.max(0,e?.monthlyBenefit):0}function dn(e){return`$`+Math.round(e).toLocaleString()}function fn({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,ages:r,breakeven:i,footer:a,delay:c}){let f=o[t]||o.chart,p=Array.isArray(r)?r:[],m=(0,O.useRef)(null),h=(0,O.useRef)(null),g=(0,O.useRef)(null),_=[m,h,g];d(m,{delay:c}),d(h,{delay:(c||0)+100}),d(g,{delay:(c||0)+200});let v=i&&Number.isFinite(i.age)?i.age:null,b=(0,O.useMemo)(()=>{let e=(Array.isArray(r)?r:[]).filter(e=>!!e&&(e.age===62||e.age===67||e.age===70));if(e.length===0)return null;let t=v===null?sn:Math.min(130,Math.max(sn,v+2)),n=e.map((e,n)=>{let r=un(e),i=[];for(let n=e.age;n<=t;n++)i.push({age:n,total:r*12*(n-e.age)});return{age:e.age,monthly:r,color:cn[n%cn.length],points:i}}),i=n.flatMap(e=>e.points.map(e=>e.total)),[a,o]=u(0,Math.max(...i,1)),s=o-a||1,c=e=>nn+(e-62)/(t-62||1)*an,d=e=>rn+(1-(e-a)/s)*on,f=l(a,o,(o-a)/4||1);return{series:n,paths:n.map(e=>({...e,d:e.points.map((e,t)=>`${t===0?`M`:`L`}${c(e.age)} ${d(e.total)}`).join(` `)})),yTicks:f,y:d,breakevenX:v!==null&&v>=62&&v<=t?c(v):null}},[r,v]);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),p.length>0&&(0,y.jsx)(`div`,{className:`cac-kpis`,children:p.map((e,t)=>{let n=e?.age;return(0,y.jsxs)(`div`,{className:`cac-kpi`,children:[(0,y.jsx)(`span`,{className:`cac-kpi-label`,children:n===void 0?`—`:ln[n]??`Age ${n}`}),(0,y.jsx)(`span`,{className:`cac-kpi-age tab-num`,children:n??`—`}),(0,y.jsxs)(`span`,{className:`cac-kpi-value tab-num`,children:[dn(un(e)),`/mo`]})]},t)})}),b&&(0,y.jsxs)(`svg`,{viewBox:`0 0 ${en} ${tn}`,className:`cac-chart`,role:`img`,"aria-label":`${e} cumulative payout by claiming age`,children:[b.yTicks.map((e,t)=>(0,y.jsxs)(`g`,{children:[(0,y.jsx)(`line`,{x1:nn,y1:b.y(e),x2:326,y2:b.y(e),className:`cac-grid`}),(0,y.jsx)(`text`,{x:38,y:b.y(e)+3,textAnchor:`end`,className:`cac-tick`,children:e>=1e3?`${Math.round(e/1e3)}k`:Math.round(e)})]},t)),b.breakevenX!==null&&(0,y.jsx)(`line`,{x1:b.breakevenX,y1:rn,x2:b.breakevenX,y2:166,className:`cac-breakeven`}),b.paths.map((e,t)=>(0,y.jsx)(`path`,{ref:_[t%_.length],d:e.d,fill:`none`,stroke:e.color,strokeWidth:2,strokeLinejoin:`round`,strokeLinecap:`round`},e.age)),b.breakevenX!==null&&(0,y.jsx)(`circle`,{cx:b.breakevenX,cy:166,r:3.5,fill:`var(--text-primary)`})]}),b?.breakevenX!=null&&i&&(0,y.jsxs)(`div`,{className:`cac-breakeven-note`,children:[(0,y.jsx)(o.alert,{className:`ic`,style:{width:12,height:12}}),` Breakeven at age`,` `,i.age,i.note?` — ${i.note}`:``]}),b&&(0,y.jsx)(`div`,{className:`cac-legend`,children:b.series.map(e=>(0,y.jsxs)(`span`,{className:`cac-leg`,children:[(0,y.jsx)(`i`,{style:{background:e.color}}),` Claim at `,e.age]},e.age))}),a&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(a)})]})}var pn=[[`str`,`STR`],[`dex`,`DEX`],[`con`,`CON`],[`int`,`INT`],[`wis`,`WIS`],[`cha`,`CHA`]];function mn(e){let t=Math.floor((e-10)/2);return t<0?`−${-t}`:`+${t}`}function hn(e){let t=typeof e==`string`&&e.trim()!==``?Number(e):e;return typeof t==`number`&&Number.isFinite(t)?t:null}function $(e){return typeof e==`string`?e.trim():``}function gn(e){let t=hn(e);return t===null?$(e)||`—`:String(t)}function _n(e){if(!Array.isArray(e))return[];let t=[];for(let n of e)if(typeof n==`string`)n.trim()&&t.push({name:``,text:n.trim()});else if(n&&typeof n==`object`){let e=n,r=$(e.name),i=$(e.text);(r||i)&&t.push({name:r,text:i})}return t}function vn(e){return typeof e==`string`?e.trim():Array.isArray(e)?e.map(e=>$(e)).filter(Boolean).join(`, `):``}function yn(){let e=(0,N.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsx)(`svg`,{className:`sbk-rule`,viewBox:`0 0 400 5`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,y.jsx)(`polygon`,{points:`0,0 400,2.5 0,5`,fill:`currentColor`})}),e[0]=t):t=e[0],t}function bn(e){let t=(0,N.c)(4),{entries:n}=e,r;t[0]===n?r=t[1]:(r=n.map(xn),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,y.jsx)(y.Fragment,{children:r}),t[2]=r,t[3]=i),i}function xn(e,t){return(0,y.jsxs)(`p`,{className:`sbk-entry`,children:[e.name&&(0,y.jsxs)(`span`,{className:`sbk-entry-name`,children:[e.name.replace(/\.$/,``),`.`]}),e.name&&e.text?` `:``,e.text]},t)}function Sn({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,name:r,meta:i,ac:a,hp:c,hpFormula:l,speed:u,abilities:d,saves:f,skills:p,senses:m,languages:h,challenge:g,traits:_,actions:v,reactions:b,footer:x,delay:S}){let C=o[t]||o.shield,w=d&&typeof d==`object`&&!Array.isArray(d)?d:{},T=_n(_),E=_n(v),D=_n(b),O=[],k=vn(f),A=vn(p);k&&O.push([`Saving Throws`,k]),A&&O.push([`Skills`,A]),$(m)&&O.push([`Senses`,$(m)]),$(h)&&O.push([`Languages`,$(h)]),$(g)&&O.push([`Challenge`,$(g)]);let j=T.length+E.length+D.length>0,M=$(l);return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(S||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(C,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sbk-panel`,children:[(0,y.jsx)(`div`,{className:`sbk-name`,children:$(r)||`—`}),$(i)&&(0,y.jsx)(`div`,{className:`sbk-meta`,children:$(i)}),(0,y.jsx)(yn,{}),(0,y.jsxs)(`div`,{className:`sbk-vitals`,children:[(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:`Armor Class`}),` `,gn(a)]}),(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:`Hit Points`}),` `,gn(c),M?` (${M})`:``]}),$(u)&&(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:`Speed`}),` `,$(u)]})]}),(0,y.jsx)(yn,{}),(0,y.jsx)(`div`,{className:`sbk-abilities`,children:pn.map(([e,t])=>{let n=hn(w[e]);return(0,y.jsxs)(`div`,{className:`sbk-ab`,children:[(0,y.jsx)(`div`,{className:`sbk-ab-key`,children:t}),(0,y.jsx)(`div`,{className:`sbk-ab-score`,children:n===null?`—`:n}),(0,y.jsx)(`div`,{className:`sbk-ab-mod`,children:n===null?`\xA0`:mn(n)})]},e)})}),O.length>0&&(0,y.jsx)(`div`,{className:`sbk-details`,children:O.map(([e,t])=>(0,y.jsxs)(`div`,{className:`sbk-line`,children:[(0,y.jsx)(`strong`,{children:e}),` `,t]},e))}),j&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(yn,{}),(0,y.jsxs)(`div`,{className:`sbk-sections`,children:[(0,y.jsx)(bn,{entries:T}),E.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`sbk-heading`,children:`Actions`}),(0,y.jsx)(bn,{entries:E})]}),D.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`sbk-heading`,children:`Reactions`}),(0,y.jsx)(bn,{entries:D})]})]})]})]}),x&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:s(x)})]})}var Cn=e({everydayRegistry:()=>wn}),wn={forecast:f(x),weathernow:f(C),tierlist:f(T),paystub:f(D),taxbracket:f(te),menucard:f(ne),familytree:f(me),seatingchart:f(ye),relationshipmap:f(De),meetingnotes:f(Oe),stickerchart:f(je),agenda:f(Me),picks:f(Ne),timezones:f(Fe),transitroute:f(Ie),amortization:f(Pe),receipt:f(Le),settleup:f(ze),bracketbar:f(Be),recipecard:f(Ve),workoutplan:f(He),medicationschedule:f(We),macrobreakdown:f(Ge),plangrid:f(qe),budgetallocator:f(Ye),howtosteps:f(Ze),livecompute:f(it),countdown:f(ot),livescore:f(st),allocatepeople:f(lt),nutritionlabel:f(ut),unitconvert:f(ft),packlist:f(pt),pregnancyweek:f(ht),cycletrack:f(gt),contractiontimer:f(_t),prayertimes:f(xt),labprotocol:f(Tt),caregivercoord:f(Et),readinglist:f(At),cocktailcard:f(jt),runninglog:f(Rt),userpersona:f(Bt),runofshow:f(Ut),podcastplanner:f(Wt),vaxschedule:f($t),claimagecompare:f(fn),statblock:f(Sn)};export{Cn as n,wn as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./useDashboardLoop-
|
|
1
|
+
import{c as e}from"./useDashboardLoop-C3iCNS8X.js";function t(e){return e.toLowerCase().replace(/[^a-z0-9 ]/g,` `).replace(/\s+/g,` `).trim()}function n(n,r){if(r.topic){let e=t(r.topic),i=n.find(n=>n.topic&&t(n.topic)===e);if(i)return i}let i=e(r.text);if(i.size===0)return null;let a=null,o=0;for(let t of n){let n=e([t.title,t.thesis.text,...t.metrics.map(e=>e.label)].join(` `)),r=0;for(let e of i)n.has(e)&&r++;r>o&&(o=r,a=t)}return o>=2?a:null}export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./generateBeats-
|
|
1
|
+
import{t as e}from"./generateBeats-CtffeoEa.js";function t(e){let t=[];for(let n of e.tour){let r=e.spec.blocks[n.index]?.id;r&&t.push({spot:r,...n.say?{say:n.say}:{},marks:n.marks??(n.mark?[n.mark]:[])})}return t}function n(n){let r=t(n),i=e(n.spec.blocks,{opener:n.narration,...r.length?{tour:r.map(({spot:e,say:t})=>t?{spot:e,say:t}:{spot:e})}:{}});return{spec:n.spec,say:n.spoken??n.narration,beats:i,cues:r}}function r(e,t=0){let r=Math.max(0,Math.min(t,e.length));return e.slice(r).map(n)}export{r as n,n as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n as e,t}from"./preload-helper-CiWYd9n-.js";import{n,t as r}from"./catalog-Db9GWM6N.js";import{n as i,t as a}from"./facts-BUGuVUIc.js";import{t as o}from"./liveSchema-DyfND6P2.js";import{a as s,i as c,n as l,t as u}from"./shapes-BwoDrn09.js";var d=`insight.scorecard.trendtile.waterfall.funnel.flightchart.deltacascade.bulletkpi.bulletchart.comparebars.bcgmatrix.pivot.groupedbars.leaderboard.datatable.roadmap.gantt.kanban.plandag.milestones.progressbar.statustimeline.healthgrid.kpidashboard.issuetree.meetingnotes.sparkstat.counter.herostat.streamgraph.scorebadge.radar.smallmultiples.arearange.waffle.histogram.boxplot.sparktable.percentilebar.statpair.calibration.ratinginput.sliderinput.segmented.rangefilter.stepindicator.pregnancyweek.cycletrack.contractiontimer.reasoning.routing.agenttrace.toolcalls.retrieval.embedmap.tokenstream.modelcompare.whatchanged.factcheck.confidencemeter.citationchain.sourcelist.claimgrid.highlightsnippet.redline.annotateddoc.docoutline.network.sunburst.researchsummary.hypothesiscard.dotplot.controlchart.errorbars.kpi.plot.matrix.diagram.diagramflow.docview.pdfreader.datastructure.bigo.complexitysummary.confusionmatrix.protocolstack.logicgates.algorithmtrace.sortingviz.graphtrace.binarytree.dptable.hashtable.trie.gridtrace.sysarchdiagram.recursiontree.sequencealign.compare.timeline.clinicaltimeline.medicationschedule.clearancematrix.anatomyfigure.odontogram.ecgstrip.vitalstrip.careplan.triageboard.mentalhealthscreen.callout.casebrief.discoverytracker.patentclaimchart.litigationtimeline.billtracker.immigrationcase.caseload.verdictcard.scenarioset.divider.wizard.goaltree.candlestick.lollipop.decisiontree.slopegraph.dumbbell.powersample.abtestresult.orgchart.treemap.processflow.journeymap.userpersona.swimlane.bubble.matrixgrid.treetable.footnotetable.tabs.deflist.faq.accordion.riskmatrix.threatmodel.pricingtable.raci.dimensiondrawing.explodedview.weldsymbol.cutlist.linebalance.moodboard.palette.photo.geomap.bars.storystrip.carousel.lightbox.beforeafter.imagecallouts.annotcallouts.videoembed.waveform.sankey.proscons.casestudy.pullquote.takeaways.skeleton.emptystate.mediacard.voicestyle.exposuretriangle.colorwheel.artanalysis.shotlist.runofshow.beatsheet.craftchart.patternpiece.storyarc.castmap.devicemark.creativetest.brandguide.musicstaff.flashcard.chronologicaltimeline.chorddiagram.mixerboard.pianokeys.fretboardmap.circleoffifths.practicelog.gallery.togglegroup.radiogroup.svgblock.scalefelt.moonphase.skychart.orbitdiagram.sizecompare.donut.foodweb.taxonrank.list.speciescard.scoreboard.ring.standings.bump.scoutingreport.tournamentbracket.banner.checklist.epicurve.web.positioncard.differential.growthcurve.painscale.badgeset.livescore.gameboard.boardgamescore.tierlist.seatingchart.checkboxgroup.numberstepper.picturesequence.vaxschedule.vetpatientchart.stickerchart.avatar.avatargroup.chipset.kbd.codeblock.toaststack.spinner.notification.tooltip.hovercard.a11yaudit.usabilityfindings.typespec.navbar.sidenav.treeview.breadcrumb.menubar.toolbar.megamenu.commandbar.pagination.commandk.modal.drawer.bottomnav.screenmap.wireframe.textfield.fileupload.textarea.combobox.formpanel.select.buttonbar.switchset.actionchecklist.otp.trustmap.datepicker.calendarpick.timepicker.daterange.colorpicker.tagsinput.searchselect.sheet.menu.popover.contextmenu.confirmdialog.roomblockdashboard.messagedraft.chatthread.dialogue.variants.verse.slidedeck.screenplay.socialpost.storystructure.ideaboard.longread.variantswitch.forecast.agenda.picks.transitroute.timezones.lifewheel.promptset.prayertimes.amortization.receipt.settleup.bracketbar.stackedbars.budgetallocator.paystub.taxbracket.taxreturnsummary.siteplan.zoningmap.factsheet.newsdigest.dictionary.translation.pronunciation.gloss.stacktrace.syntaxbreakdown.codewalk.hearit.ipachart.scriptstroke.paralleltext.comparematrix.toulmin.etymtree.rollcall.termbase.historicalperson.onthisday.countrycard.worldgrid.warconflict.distinctioncard.chart.stack.messagescriptset.eligibilitycheck.bridge.supplydemand.payoffdiagram.yieldcurve.efficientfrontier.bondladder.collectiontracker.cma.claimagecompare.scatter.companionnote.breathpacer.sleepcycle.heat.bodymap.calheat.workoutplan.macrobreakdown.runninglog.zoneladder.streakgrid.copingmenu.thoughtrecord.habittracker.readinglist.maproute.packlist.weathernow.pictogramchart.menucard.quadrant.venn.recipecard.cocktailcard.ingredientmatrix.plangrid.nutritionlabel.unitconvert.seasonband.worthit.reviewsynth.sizechart.breakdown.gauge.countdown.blanks.reframecard.talktrack.resume.understand.schema.buildprog.sponsorshiptracker.contentcalendar.podcastplanner.marimekko.timeseriesdecomposition.financialstatement.pareto.flowchord.evidencetrace.cohortgrid.fivewhychain.pipeline.quotes.emotionwheel.livecompute.captable.vestingschedule.termsheet.fundraisingrounds.saferterms.dilutionwaterfall.threestatementlink.tamsam.trainingcurve.burnrunway.ridgeplot.correlationheatmap.scatterplotmatrix.roccurve.precisionrecallcurve.biasvariance.gradientdescent.nnarchitecture.datadictionary.datapipeline.ablationtable.interviewscorecard.paybandchart.headcountplan.dosdonts.breakeven.depreciationschedule.logicmodel.fiveforces.cvssscorecard.changelog.lessonplan.equationblock.numberline.workedexample.quiz.quizsession.piedonut.distributioncurve.dualaxis.scatterregression.molecularstructure.sequencediagram.diffviewer.sensitivitytable.periodictable.elementcard.circuitdiagram.statemachine.erdiagram.labpanel.geometrycanvas.freebodydiagram.vectorspace.reactionmechanism.synthesisroute.hazardcard.labprotocol.argumentmap.teachdiagram.fractionbar.gridmatrix.conjugation.probabilitytree.mindshape.world.areaplot.wave.energydiagram.phylotree.parsetree.eratimeline.celldiagram.raydiagram.interferencepattern.vectorfield.phasediagram.particlemodel.bohrmodel.orbitaldiagram.pedigree.indifferencecurve.causationchain.equationbalancer.yieldcalc.vseprmolecule.titrationcurve.unitcircle.solidfigure.crosssection.loaddiagram.scansionmark.clockface.moneytray.placevaluechart.columnarithmetic.pictograph.populationpyramid.shapecard.letterform.toolscale.cyclewheel.phonicsword.sightwordlist.alphabetchart.morphemebreakdown.skilltree.violinplot.stemleafplot.surfaceplot.qqplot.samplingdistribution.gridtransform.phaseportrait.twocolumnproof.polarplot.taylorseries.areamodel.dnahelix.plasmidmap.linespectrum.pyramidtiers.rubric.gradebook.spectrumtable.fmeatable.billofmaterials.chromatogram.stressstraincurve.gatingplot.expressionheatmap.gellane.parallelcoordinates.primefactortree.numbersequence.constantcard.baseconversion.doseladder.flow.analogymap.logstream.gitgraph.queryplan.flamegraph.regexscope.terminal.httpexchange.latencydist.ecdf.codemap.checks.diff.componentapi.sportspitch.developmentmilestone.dentaltreatmentplan.estateplanchecklist.subtextdecode.rehearsal.caregivercoord.allocatepeople.lifeline.familytree.relationshipmap.vendortracker.wiringdiagram.pipingschematic.controlblockdiagram.floorplan.howtosteps.spacefit.thesis.alignmentgauge.standingalerts.sourceslineage.preflightchecklist.inventoryreorder.visachecklist.hrdiagram.ternaryplot.parliamentseats.prooftree.fishbone.classdiagram.energybarchart.karyotype.numberbond.posbreakdown.frayermodel.forestplot.cashflowtimeline.businesscanvas.guitartab.pianoroll.stitchchart.wordsearch.playingcards.statblock`.split(`.`);e();var f=[()=>t(()=>import(`./shard000-Bx6Nmt0m.js`),[]),()=>t(()=>import(`./shard001-CL6O9SLr.js`),[]),()=>t(()=>import(`./shard002-vLQ0Ss-O.js`),[]),()=>t(()=>import(`./shard003-kKZdpzuh.js`),[]),()=>t(()=>import(`./shard004-CdVohAu1.js`),[]),()=>t(()=>import(`./shard005-CMzF_uJB.js`),[]),()=>t(()=>import(`./shard006-DQoDWuoN.js`),[]),()=>t(()=>import(`./shard007-Ck0N0IUk.js`),[]),()=>t(()=>import(`./shard008-Dt395x0Q.js`),[]),()=>t(()=>import(`./shard009-D_z8Lhqh.js`),[]),()=>t(()=>import(`./shard010-CQfR6lnk.js`),[]),()=>t(()=>import(`./shard011-l-w2t2Ie.js`),[]),()=>t(()=>import(`./shard012-BTw_UO1C.js`),[]),()=>t(()=>import(`./shard013-D8ZjKKYb.js`),[]),()=>t(()=>import(`./shard014-Cth_76It.js`),[]),()=>t(()=>import(`./shard015-DdYJVsHx.js`),[]),()=>t(()=>import(`./shard016-BdlBf9uZ.js`),[]),()=>t(()=>import(`./shard017-C3HTxh6t.js`),[]),()=>t(()=>import(`./shard018-Mf4wvqVk.js`),[]),()=>t(()=>import(`./shard019-Dpcy1Arx.js`),[]),()=>t(()=>import(`./shard020-BNvKfQld.js`),[]),()=>t(()=>import(`./shard021-D0kpI_PQ.js`),[]),()=>t(()=>import(`./shard022-Cjms7kAe.js`),[]),()=>t(()=>import(`./shard023-Bdwci7fy.js`),[]),()=>t(()=>import(`./shard024-BBoyPtpP.js`),[]),()=>t(()=>import(`./shard025-lMGpgN_0.js`),[]),()=>t(()=>import(`./shard026-Bp3UVI4_.js`),[]),()=>t(()=>import(`./shard027-C4HTpdeT.js`),[]),()=>t(()=>import(`./shard028-BsFTH3Sf.js`),[]),()=>t(()=>import(`./shard029-B3dEcXPy.js`),[]),()=>t(()=>import(`./shard030-DWwA-fNs.js`),[]),()=>t(()=>import(`./shard031-RhqA_0nH.js`),[]),()=>t(()=>import(`./shard032-BlZdG1Yi.js`),[]),()=>t(()=>import(`./shard033-Dmx2lOjI.js`),[]),()=>t(()=>import(`./shard034-BLOFKJT4.js`),[]),()=>t(()=>import(`./shard035-DMXdH733.js`),[]),()=>t(()=>import(`./shard036-DzOiEn23.js`),[]),()=>t(()=>import(`./shard037-BcHfVaYM.js`),[]),()=>t(()=>import(`./shard038-KozOx-Jh.js`),[]),()=>t(()=>import(`./shard039-apdILQwC.js`),[]),()=>t(()=>import(`./shard040-BrNXGaBi.js`),[]),()=>t(()=>import(`./shard041-D6eq9h1u.js`),[]),()=>t(()=>import(`./shard042-M-L34DbY.js`),[]),()=>t(()=>import(`./shard043-Ct6_C2pN.js`),[]),()=>t(()=>import(`./shard044-Bo0iaVHx.js`),[]),()=>t(()=>import(`./shard045-9ccZ4Y_N.js`),[]),()=>t(()=>import(`./shard046-eXoP478L.js`),[]),()=>t(()=>import(`./shard047-N56r6Lsz.js`),[]),()=>t(()=>import(`./shard048-BeKX7cI8.js`),[]),()=>t(()=>import(`./shard049-hPaNN2sL.js`),[]),()=>t(()=>import(`./shard050-B-YpP0B6.js`),[]),()=>t(()=>import(`./shard051-Bww5_KB2.js`),[]),()=>t(()=>import(`./shard052-DErwF8Df.js`),[]),()=>t(()=>import(`./shard053-C-qGH4jz.js`),[]),()=>t(()=>import(`./shard054-kcSxZrSj.js`),[]),()=>t(()=>import(`./shard055-CsETBTqa.js`),[]),()=>t(()=>import(`./shard056-CdBR4qTC.js`),[]),()=>t(()=>import(`./shard057-yRUG8B9e.js`),[]),()=>t(()=>import(`./shard058-DeDAnECG.js`),[]),()=>t(()=>import(`./shard059-Dh6jbDnW.js`),[]),()=>t(()=>import(`./shard060-B5kpWrhW.js`),[]),()=>t(()=>import(`./shard061-BTnj5LZA.js`),[]),()=>t(()=>import(`./shard062-DC7LTaNc.js`),[]),()=>t(()=>import(`./shard063-C8SIGCfd.js`),[]),()=>t(()=>import(`./shard064-DLyASocW.js`),[]),()=>t(()=>import(`./shard065-Cy_yV4ry.js`),[]),()=>t(()=>import(`./shard066-BmjVQqFX.js`),[]),()=>t(()=>import(`./shard067-uZUJsqtF.js`),[]),()=>t(()=>import(`./shard068-CXVjyJU4.js`),[]),()=>t(()=>import(`./shard069-CyfmjAm-.js`),[]),()=>t(()=>import(`./shard070-CxN3xiuY.js`),[]),()=>t(()=>import(`./shard071-CP1WrYC-.js`),[]),()=>t(()=>import(`./shard072-D6L5Yr05.js`),[]),()=>t(()=>import(`./shard073-DFEzkwg2.js`),[]),()=>t(()=>import(`./shard074-BSv3rvRL.js`),[]),()=>t(()=>import(`./shard075-Bt0OjGVd.js`),[]),()=>t(()=>import(`./shard076-DZHs0uzd.js`),[])],p=new Map(d.map((e,t)=>[e,Math.floor(t/8)])),m=new Set,h=new Map,g=new Map;f.length;function _(e){return p.get(e)??-1}function v(e){if(m.has(e))return Promise.resolve();let t=h.get(e);if(t)return t;let n=f[e];if(!n)return Promise.resolve();let r=n().then(({E:t})=>{for(let[e,n]of Object.entries(t))g.set(e,n);m.add(e)}).catch(()=>{}).finally(()=>h.delete(e));return h.set(e,r),r}async function ee(e){let t=new Set;for(let n of e){let e=_(n);e>=0&&!m.has(e)&&t.add(e)}t.size&&await Promise.all([...t].map(v))}function y(e){let t=g.get(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:null}var b={maxStr:48,maxArray:2},x={maxStr:90,maxArray:5};function S(e,t){if(typeof e==`string`)return e.length>t.maxStr?`${e.slice(0,t.maxStr-1)}…`:e;if(Array.isArray(e))return e.slice(0,t.maxArray).map(e=>S(e,t));if(e&&typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=S(i,t);return n}return e}var C=new Map;function w(e,t=!1){let n=`${t?`d`:`c`}:${e}`,r=C.get(n);if(r!==void 0)return r;let i=y(e),a=_(e);if(i===null&&a>=0&&!m.has(a))return null;let o=null;if(i!==null)try{o=JSON.stringify(S(i,t?x:b))}catch{o=null}return C.set(n,o),o}var T=[`insight`,`chart`,`breakdown`,`list`,`timeline`,`compare`,`kpi`,`ring`],E=new Set([...T,`bars`,`stack`,`donut`,`gauge`]),D=new Set([`diagramflow`,`composite`,`svgblock`]),O=new Set([...T,`bars`,`stack`,`donut`,`gauge`,`diagramflow`,`composite`]),k=new Set([`map`,`markermap`,`choropleth`]),te=new Set(a.filter(e=>(e.coercer===`generic`||O.has(e.type))&&!k.has(e.type)).map(e=>e.type)),A={small:new Set([`base`,`frontier`]),mid:new Set([`base`,`frontier`,`cutting`]),frontier:new Set([`base`,`frontier`,`cutting`])};function j(e,t){return A[t].has(e.tier)}function ne(e){return a.filter(t=>j(t,e))}var re={stat:`kpi`,trend:`chart`,bar:`bars`,composition:`breakdown`,distribution:`bars`,scatter:`chart`,matrix:`breakdown`,table:`datatable`,compare:`compare`,list:`list`,steps:`list`,timeline:`timeline`,graph:`diagramflow`,tree:`breakdown`,flow:`diagramflow`,map:`geomap`,prose:`insight`,code:`codeblock`};function M(e){let t=i(e);if(t)return{min:t.colMin??Math.max(3,Math.round(t.colDefault*.7)),pref:t.colDefault}}var N=[{d:`math`,re:/\b(eigen\w*|matrix|matrices|vector|scalar|linear algebra|calculus|derivative|integral|theorem|polynomial|trigonometr\w*|algebra|geometry|equation|probabilit\w*|statistic\w*|logarithm|factorial)\b/i},{d:`science`,re:/\b(physic\w*|chemistr\w*|chemical|molecul\w*|atoms?|reaction|biolog\w*|dna|genes?|enzyme|quantum|thermodynamic\w*|electron|photosynthesis|periodic table|velocity|acceleration|momentum|voltage|circuit)\b/i},{d:`health`,re:/\b(symptom\w*|disease|diagnos\w*|medicine|medication|doctor|clinical|injur\w*|surgery|treatment|dosage|prescription|anatomy|therap\w*|illness|fever|rash|nausea|migraine)\b/i},{d:`fitness`,re:/\b(workout|exercise|gym|reps?|sets?|lift(ing|s)?|cardio|run(ning)?|marathon|muscles?|strength|hypertrophy|stretch\w*|weight loss)\b/i},{d:`money`,re:/\b(budget\w*|salary|income|invest\w*|savings?|debt|loans?|mortgage|tax(es)?|expenses?|spending|paycheck|retirement|portfolio|afford|finances?)\b/i},{d:`business`,re:/\b(revenue|profit|margins?|\bkpi\b|churn|pipeline|startup|funnel|\broi\b|b2b|saas|stakeholders?|quarterly|forecast|go-to-market)\b/i},{d:`sports`,re:/\b(soccer|football|basketball|baseball|tennis|hockey|golf|\bnba\b|\bnfl\b|\bmlb\b|playoffs?|tournament|standings|quarterback|inning|free throw|offside)\b/i},{d:`cooking`,re:/\b(recipe\w*|cook\w*|bak(e|ing)|ingredient\w*|meals?|dinner|lunch|breakfast|dish(es)?|cuisine|saute|simmer|roast|grill|kitchen)\b/i},{d:`travel`,re:/\b(trips?|travel\w*|flights?|itinerar\w*|hotels?|vacation|destinations?|tourist|visa|sightsee\w*|layover|airport)\b/i},{d:`tech`,re:/\b(wi-?fi|router|laptop|smartphone|software|devices?|install\w*|settings|browser|bluetooth|operating system|hard drive)\b/i},{d:`code`,re:/\b(code|functions?|api|algorithm\w*|debug\w*|compile\w*|syntax|typescript|javascript|python|repository|regex|database|query)\b/i},{d:`music`,re:/\b(chord\w*|melody|guitar|piano|instruments?|key signature|tempo|octave|musical scale|fret\w*|sheet music)\b/i},{d:`art`,re:/\b(painting|drawing|sketch\w*|sculpture|artists?|palette|illustration|portrait)\b/i},{d:`home`,re:/\b(apartment|rent(al|ing)?|lease|renovat\w*|furniture|plumb\w*|repair|toilet|sink|drain|garden\w*|appliances?|tenant|landlord)\b/i},{d:`legal`,re:/\b(legal|laws?|contracts?|clause|lawsuit|attorney|lawyer|liabilit\w*|statute|compliance|terms of service)\b/i},{d:`education`,re:/\b(stud(y|ying)|exams?|quiz\w*|homework|college|lecture|curriculum|flashcards?|syllabus|coursework)\b/i},{d:`nature`,re:/\b(animals?|plants?|trees?|weather|climate|ocean|mountains?|rivers?|ecosystem|species|dinosaur\w*|planets?|wildlife|geolog\w*)\b/i},{d:`history`,re:/\b(histor\w*|ancient|centur\w*|\bwar\b|empires?|civilization|dynast\w*|revolution|medieval)\b/i},{d:`language`,re:/\b(translat\w*|pronounc\w*|pronunciation|grammar|vocabular\w*|conjugat\w*|spanish|french|japanese|mandarin|verb tense)\b/i},{d:`data`,re:/\b(datasets?|data ?(science|scientist|analy\w*|pipeline|engineering|warehouse|lake|model(ing|ling)?)|\betl\b|\bsql\b|bigquery|tableau|power ?bi|spreadsheets?|\bcsv\b|pivot tables?|dataframe\w*|pandas)\b/i},{d:`design`,re:/\b(design system|\bux\b|\bui\b|user (experience|interface)|wireframe\w*|figma|prototyp\w*|mockups?|usability|visual hierarchy|component library|brand(ing| guidelines?)|typograph\w*|type ?scale)\b/i},{d:`photo`,re:/\b(photograph\w*|photos?|camera|aperture|shutter speed|\biso\b|exposure|\blens(es)?\b|\bf-?stops?\b|depth of field|lightroom|bokeh)\b/i},{d:`media`,re:/\b(videos?|films?|movies?|footage|podcasts?|youtube|streaming|cinematograph\w*|shot ?lists?|storyboard\w*|b-?roll|screenplay\w*)\b/i},{d:`productivity`,re:/\b(productivit\w*|to-?do\w*|task ?lists?|workflows?|habits?|routines?|time ?management|\bgtd\b|pomodoro|prioriti[sz]\w*|backlog|getting things done)\b/i},{d:`relationship`,re:/\b(relationships?|partner\w*|spouse|husband|wife|boyfriend|girlfriend|marriage|married|dating|breakups?|broke up|divorce\w*|friendships?|in-?laws?|coworkers?|my (boss|friend|mom|dad|family))\b/i},{d:`news`,re:/\b(news|headlines?|current events|breaking|press release|journalis\w*|newspapers?|world events|latest (on|news)|what'?s happening)\b/i},{d:`parenting`,re:/\b(parent\w*|toddler\w*|infants?|newborns?|\bbaby\b|babies|nursery|diaper\w*|tantrum\w*|potty training|bedtime|my (kid|child|son|daughter|baby)|developmental milestones?)\b/i},{d:`writing`,re:/\b(write|writing|rewrite|essays?|paragraphs?|\bdrafts?\b|cover letters?|poems?|poetry|short stor(y|ies)|novels?|screenplay\w*|proofread|prose|narrative|copywrit\w*)\b/i},{d:`decision`,re:/\b(decide|decisions?|choose|choosing|which (one|option|should)|pros and cons|trade-?offs?|should i (buy|get|choose|pick|go)|\bvs\.?\b|versus|compare (these|the|my|two|options))\b/i},{d:`shopping`,re:/\b(buy|buying|purchas\w*|shopping|gifts?|deals?|discount\w*|coupons?|product reviews?|wishlists?|add to cart)\b/i},{d:`reference`,re:/\b(define|definition of|meaning of|look ?up|dictionary|thesaurus|encyclopedia|glossary|translat\w*|spell(ing)? of|synonyms?|antonyms?)\b/i},{d:`lifestyle`,re:/\b(collectibles?|my collection|stamp collection|coin collection|card collection|vinyl collection|collecting (?:stamps|coins|cards|vinyl|memorabilia)|hobby collection|memorabilia)\b/i}];function P(e,t){let n=(t??[]).slice(-2).map(e=>typeof e?.content==`string`?e.content:``).join(` `);return(e+` `+n).toLowerCase()}function ie(e,t){let n=P(e||``,t),r=new Set;for(let{d:e,re:t}of N)t.test(n)&&r.add(e);return r}function ae(e,t){if(!e||e.length===0||t.size===0)return!0;for(let n of e)if(t.has(n))return!0;return!1}var F={circuitdiagram:[`science`,`tech`],molecularstructure:[`science`,`health`],periodictable:[`science`],reactionmechanism:[`science`],bodymap:[`health`,`fitness`],labpanel:[`health`],medicationschedule:[`health`],musicstaff:[`music`],chorddiagram:[`music`],sportspitch:[`sports`]};function oe(e){return e.domains??F[e.type]}var I=/\b(kill (myself|him|her|them)|killing myself|end (my|his|her|their) life|ending my life|take my (own )?life|don'?t want to (be here|live|wake up|exist)|want(ing)? to die|wanna die|suicid\w*|self.?harm|harm myself|hurt(ing)? myself|cut(ting)? myself|no reason to (live|go on)|better off dead|overdos\w*)\b/i;function se(e,t){return I.test(P(e||``,t))}var L=[{test:/\b(state machine|finite[- ]state|\bfsm\b|state diagram|state transitions?|states? and transitions?)\b/,type:`statemachine`,over:`diagram`},{test:/\b(sequence diagram|interaction diagram|message sequence|request[- ]response (?:flow|cycle)|handshake (?:between|sequence)|who calls whom)\b/,type:`sequencediagram`,over:`diagram`},{test:/\b(er[- ]?diagram|entity[- ]relationship|database schema|data model\b|tables? and (?:their )?(?:keys|relationships?))\b/,type:`erdiagram`,over:`diagram`},{test:/\b(risk matrix|probability[- ](?:and[- ]|x[- ]|by[- ])?impact|likelihood[- ](?:and[- ]|x[- ]|vs[- ])?impact|impact[- ](?:and[- ])?likelihood|risk (?:heat ?map|grid))\b/,type:`riskmatrix`,over:`matrixgrid`},{test:/\b(confusion matrix|true positives?|false positives?|precision and recall grid)\b/,type:`confusionmatrix`,over:`matrix`},{test:/\b(magic quadrant|2\s?[x×]\s?2(?: matrix| grid)?|four[- ]quadrant|positioning (?:map|matrix)|priority matrix|eisenhower (?:matrix|box))\b/,type:`quadrant`,over:`compare`},{test:/\b(?:plot|graph|sketch) (?:the )?(?:function|equation|curve|y\s*=|f\(x\))|\bgraph of (?:y|f|the function)\b|\b(?:sine|cosine|tangent) (?:curve|wave|graph)\b|\bparabola\b/,type:`plot`,over:`scatter`},{test:/\bperiodic table\b/,type:`periodictable`,over:`datatable`},{test:/\b(?:timeline|chronology|history) of\b.{0,48}\b(?:\d{3,4}s?|\d{1,2}(?:th|st|nd|rd) century|\bbce?\b|\bad\b|war|empire|dynasty|revolution|civili[sz]ation)\b/,type:`chronologicaltimeline`,over:`timeline`},{test:/\bcompare and contrast\b|\bcomparison (?:table|grid|matrix|chart)\b|\b(?:differences?|distinctions?) between\b|\bhow do\b.{0,40}\bdiffer\b|\b[\w-]+ vs\.? [\w-]+ vs\.? [\w-]+\b/,type:`comparematrix`,over:`compare`},{test:/\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b.{0,60}\b(?:graph|node|vertex|vertices)\b|\btrace\b.{0,40}\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b|\b(?:bfs|dfs) (?:step|traversal|from)\b/,type:`graphtrace`,over:`datastructure`},{test:/\b(?:dp|dynamic[- ]programming|memoiz[ae]tion|memoization)\s+table\b|\b(?:fill|filling)[- ](?:in )?(?:the )?(?:dp|dynamic[- ]programming)\b|\b(?:lcs|edit[- ]distance|knapsack|coin[- ]change)\b.{0,60}\btable\b/,type:`dptable`,over:`algorithmtrace`},{test:/\bhash\s+(?:table|map)\b.{0,60}\b(?:collision|chaining|bucket|separate[- ]chaining|linear[- ]probing)\b|\bseparate[- ]chaining\b|\bhash function\b.{0,50}\bbucket\b/,type:`hashtable`,over:`datastructure`},{test:/\b(?:prefix[- ]tree|trie\b|autocompletion? (?:using|with|via) (?:a )?trie|insert.{0,30}\btrie\b|search.{0,30}\btrie\b)/,type:`trie`,over:`datastructure`},{test:/\b(?:inorder|preorder|postorder|level[- ]order)\s+traversal\b|\btrace\b.{0,40}\b(?:binary[- ]tree|bst)\b|\bwalk[- ]?(?:me[- ])?through\b.{0,50}\b(?:binary[- ]tree|bst)\b|\bbst\s+(?:insert|search|delete)\b/,type:`binarytree`,over:`datastructure`},{test:/\b(?:bubble|merge|quick|insertion|selection|heap)\s+sort\b|\bsort(?:ing)?\s+algorithm\b.{0,50}\b(?:step|animate|visual|trace)\b|\bvisuali[sz]e\b.{0,40}\bsort\b|\banimated?\b.{0,30}\bsort\b/,type:`sortingviz`,over:`algorithmtrace`},{test:/\b(?:toulmin\b|grounds?\s+and\s+warrant|warrant\s+and\s+(?:grounds?|backing)|claim[\s,]+grounds?[\s,]+warrant)\b/i,type:`toulmin`,over:`argumentmap`},{test:/\b(?:character\s+(?:map|web|network|relationships?)|relationship\s+(?:map|web|diagram)\b.{0,50}\bcharacter|who(?:'s| is)\s+(?:who|friends?|rivals?)|cast\s+of\s+characters?|factions?\s+and\s+alliances?|allies?\s+and\s+rivals?)\b/i,type:`castmap`,over:`network`},{test:/\b(?:freytag|three[- ]act\s+structure|hero(?:'s)?\s+journey|save\s+the\s+cat|plot\s+structure\b|story\s+arc\b|narrative\s+arc\b|story\s+structure\b)\b/i,type:`storyarc`,over:`beatsheet`},{test:/\b(?:rhetorical\s+devices?|literary\s+devices?|figures?\s+of\s+speech|identify\s+the\s+(?:devices?|techniques?|metaphors?)|highlight\s+the\s+(?:metaphors?|similes?|alliteration)|mark\s+the\s+(?:devices?|techniques?))\b/i,type:`devicemark`,over:`annotateddoc`},{test:/\b(?:etymology\b|word\s+origin\b|roots?\s+of\s+the\s+word|where\s+does\s+(?:the\s+word\s+)?[a-z]+\s+come\s+from|latin\s+(?:and\s+greek\s+)?roots?\s+of|word\s+history)\b/i,type:`etymtree`,over:`dictionary`}];function R(e){let t=e.toLowerCase(),n=[],r=new Set;for(let e of L)e.test.test(t)&&!r.has(e.type)&&(r.add(e.type),n.push({type:e.type,over:e.over}));return n}function z(e){return e.length?`BEST-FIT COMPONENT — the content maps to a purpose-built block: prefer ${e.map(e=>`${e.type} (not ${e.over})`).join(`, `)}. The specialist renders this exact structure correctly where the generic only approximates it.`:``}var B={small:8,mid:24,frontier:30},ce=3,V=2,H=2,U=1.6,W=1.2,G=1,le=.6,K=2,ue=.8,q={base:1,frontier:1.3,cutting:1.6},J=1.2,Y=.3,X=2.5,Z=.3,de=new Set,fe=.2,pe=[`teachdiagram`,`workedexample`,`quiz`,`flashcard`],me=1.4,he=new Set([`nav`,`forms`,`pickers`,`overlays`]),ge=new Set([`kbd`,`spinner`,`skeleton`,`sliderinput`,`rangefilter`,`ratinginput`,`emptystate`,`segmented`,`toaststack`,`divider`,`spacer`]);function _e(e){return he.has(e.family)||ge.has(e.type)}function ve(e,t){let n=0;for(let r of e.dataShapes)n+=t[r]??0;return n}function ye(e){return e.shapeFit+G*e.intentPts+K*e.semFit}function be(e,t,n,r=de,i=de,a=!1){let o=ve(e,t),s=1+U*o,c=Math.max(0,e.wowWeight)**+W,l=(q[e.tier]??1)*(e.interactive?J:1),u=n.has(e.type)&&o===0?Y:1,d=r.has(e.type)?X:i.has(e.type)?Z:1,f=a&&e.family===`learn`?me:1;return s*c*l*u*d*f}function xe(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function Se(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}var Ce=class{pool;tree;size;highBit;total=0;live;constructor(e){this.pool=e,this.size=e.length,this.live=e.length,this.tree=new Float64Array(this.size+1);for(let t=0;t<this.size;t++)this.add(t,e[t].weight),this.total+=e[t].weight;this.highBit=this.size>0?1<<31-Math.clz32(this.size):0}add(e,t){for(let n=e+1;n<=this.size;n+=n&-n)this.tree[n]+=t}locate(e){let t=0,n=0;for(let r=this.highBit;r>0;r>>=1){let i=t+r;i<=this.size&&n+this.tree[i]<e&&(t=i,n+=this.tree[i])}return Math.min(t,this.size-1)}take(e){let t=this.locate(e),n=this.pool[t];return this.add(t,-n.weight),this.total-=n.weight,this.live--,n}};function we(e,t,n,r){let i=new Ce(e),a=[];for(;a.length<t&&i.live>0&&!(i.total<=0);){let e=i.take(n()*i.total).meta,t=r.family.get(e.family)??0;if(t>=V)continue;let o=r.archetype.get(e.archetype)??0;o>=H||(a.push(e),r.family.set(e.family,t+1),r.archetype.set(e.archetype,o+1))}return a}function Q(e){return Math.max(.5,.15*e)}function Te(e){return[...e].sort((e,t)=>t.fit-e.fit||(e.meta.type<t.meta.type?-1:1))}var Ee=2;function De(e,t,n,r){let i=Te(e),a=[],o=0;for(;o<i.length&&a.length<t;){let e=i[o].fit,s=e-Q(e),c=o;for(;c<i.length&&i[c].fit>=s;)c++;a.push(...we(i.slice(o,c),t-a.length,n,r)),o=c}return a}var Oe=5;function ke(e){let t=e.itemShapes??[],n=e.stringItems??[];if(!t.length&&!n.length)return``;let r=e=>{let t=e.children,n=[e.text,t?r(t):void 0].filter(Boolean).join(`, `);return`${e.prop}[]: {${n}}`};return` · ${[...t.map(r),...n.map(e=>`${e}[]: plain strings`)].join(`, `)}`}function Ae(e){let t=e.propHints;if(!t)return``;let n=Object.entries(t);return n.length?` · hints: ${n.map(([e,t])=>`${e}=${t}`).join(`, `)}`:``}function $(e,t=!1,n=!1){let r=e.requires.length?e.requires.join(`, `):`—`,i=t?w(e.type,n):null;if(i)return`- ${e.type} — ${e.blurb} · needs: ${r}${o(e)} · example: ${i}`;let a=e.optional.slice(0,Oe),s=a.length?` · richer with: ${a.join(`, `)}`:``;return`- ${e.type} — ${e.blurb} · needs: ${r}${ke(e)}${o(e)}${Ae(e)}${s}`}function je(){return T.map(r).filter(e=>!!e).map(e=>$(e)).join(`
|
|
1
|
+
import{n as e,t}from"./preload-helper-CiWYd9n-.js";import{n,t as r}from"./catalog-DfIYAG3v.js";import{n as i,t as a}from"./facts-BUGuVUIc.js";import{t as o}from"./liveSchema-B8Y9HZxd.js";import{a as s,i as c,n as l,t as u}from"./shapes-BwoDrn09.js";var d=`insight.scorecard.trendtile.waterfall.funnel.flightchart.deltacascade.bulletkpi.bulletchart.comparebars.bcgmatrix.pivot.groupedbars.leaderboard.datatable.roadmap.gantt.kanban.plandag.milestones.progressbar.statustimeline.healthgrid.kpidashboard.issuetree.meetingnotes.sparkstat.counter.herostat.streamgraph.scorebadge.radar.smallmultiples.arearange.waffle.histogram.boxplot.sparktable.percentilebar.statpair.calibration.ratinginput.sliderinput.segmented.rangefilter.stepindicator.pregnancyweek.cycletrack.contractiontimer.reasoning.routing.agenttrace.toolcalls.retrieval.embedmap.tokenstream.modelcompare.whatchanged.factcheck.confidencemeter.citationchain.sourcelist.claimgrid.highlightsnippet.redline.annotateddoc.docoutline.network.sunburst.researchsummary.hypothesiscard.dotplot.controlchart.errorbars.kpi.plot.matrix.diagram.diagramflow.docview.pdfreader.datastructure.bigo.complexitysummary.confusionmatrix.protocolstack.logicgates.algorithmtrace.sortingviz.graphtrace.binarytree.dptable.hashtable.trie.gridtrace.sysarchdiagram.recursiontree.sequencealign.compare.timeline.clinicaltimeline.medicationschedule.clearancematrix.anatomyfigure.odontogram.ecgstrip.vitalstrip.careplan.triageboard.mentalhealthscreen.callout.casebrief.discoverytracker.patentclaimchart.litigationtimeline.billtracker.immigrationcase.caseload.verdictcard.scenarioset.divider.wizard.goaltree.candlestick.lollipop.decisiontree.slopegraph.dumbbell.powersample.abtestresult.orgchart.treemap.processflow.journeymap.userpersona.swimlane.bubble.matrixgrid.treetable.footnotetable.tabs.deflist.faq.accordion.riskmatrix.threatmodel.pricingtable.raci.dimensiondrawing.explodedview.weldsymbol.cutlist.linebalance.moodboard.palette.photo.geomap.bars.storystrip.carousel.lightbox.beforeafter.imagecallouts.annotcallouts.videoembed.waveform.sankey.proscons.casestudy.pullquote.takeaways.skeleton.emptystate.mediacard.voicestyle.exposuretriangle.colorwheel.artanalysis.shotlist.runofshow.beatsheet.craftchart.patternpiece.storyarc.castmap.devicemark.creativetest.brandguide.musicstaff.flashcard.chronologicaltimeline.chorddiagram.mixerboard.pianokeys.fretboardmap.circleoffifths.practicelog.gallery.togglegroup.radiogroup.svgblock.scalefelt.moonphase.skychart.orbitdiagram.sizecompare.donut.foodweb.taxonrank.list.speciescard.scoreboard.ring.standings.bump.scoutingreport.tournamentbracket.banner.checklist.epicurve.web.positioncard.differential.growthcurve.painscale.badgeset.livescore.gameboard.boardgamescore.tierlist.seatingchart.checkboxgroup.numberstepper.picturesequence.vaxschedule.vetpatientchart.stickerchart.avatar.avatargroup.chipset.kbd.codeblock.toaststack.spinner.notification.tooltip.hovercard.a11yaudit.usabilityfindings.typespec.navbar.sidenav.treeview.breadcrumb.menubar.toolbar.megamenu.commandbar.pagination.commandk.modal.drawer.bottomnav.screenmap.wireframe.textfield.fileupload.textarea.combobox.formpanel.select.buttonbar.switchset.actionchecklist.otp.trustmap.datepicker.calendarpick.timepicker.daterange.colorpicker.tagsinput.searchselect.sheet.menu.popover.contextmenu.confirmdialog.roomblockdashboard.messagedraft.chatthread.dialogue.variants.verse.slidedeck.screenplay.socialpost.storystructure.ideaboard.longread.variantswitch.forecast.agenda.picks.transitroute.timezones.lifewheel.promptset.prayertimes.amortization.receipt.settleup.bracketbar.stackedbars.budgetallocator.paystub.taxbracket.taxreturnsummary.siteplan.zoningmap.factsheet.newsdigest.dictionary.translation.pronunciation.gloss.stacktrace.syntaxbreakdown.codewalk.hearit.ipachart.scriptstroke.paralleltext.comparematrix.toulmin.etymtree.rollcall.termbase.historicalperson.onthisday.countrycard.worldgrid.warconflict.distinctioncard.chart.stack.messagescriptset.eligibilitycheck.bridge.supplydemand.payoffdiagram.yieldcurve.efficientfrontier.bondladder.collectiontracker.cma.claimagecompare.scatter.companionnote.breathpacer.sleepcycle.heat.bodymap.calheat.workoutplan.macrobreakdown.runninglog.zoneladder.streakgrid.copingmenu.thoughtrecord.habittracker.readinglist.maproute.packlist.weathernow.pictogramchart.menucard.quadrant.venn.recipecard.cocktailcard.ingredientmatrix.plangrid.nutritionlabel.unitconvert.seasonband.worthit.reviewsynth.sizechart.breakdown.gauge.countdown.blanks.reframecard.talktrack.resume.understand.schema.buildprog.sponsorshiptracker.contentcalendar.podcastplanner.marimekko.timeseriesdecomposition.financialstatement.pareto.flowchord.evidencetrace.cohortgrid.fivewhychain.pipeline.quotes.emotionwheel.livecompute.captable.vestingschedule.termsheet.fundraisingrounds.saferterms.dilutionwaterfall.threestatementlink.tamsam.trainingcurve.burnrunway.ridgeplot.correlationheatmap.scatterplotmatrix.roccurve.precisionrecallcurve.biasvariance.gradientdescent.nnarchitecture.datadictionary.datapipeline.ablationtable.interviewscorecard.paybandchart.headcountplan.dosdonts.breakeven.depreciationschedule.logicmodel.fiveforces.cvssscorecard.changelog.lessonplan.equationblock.numberline.workedexample.quiz.quizsession.piedonut.distributioncurve.dualaxis.scatterregression.molecularstructure.sequencediagram.diffviewer.sensitivitytable.periodictable.elementcard.circuitdiagram.statemachine.erdiagram.labpanel.geometrycanvas.freebodydiagram.vectorspace.reactionmechanism.synthesisroute.hazardcard.labprotocol.argumentmap.teachdiagram.fractionbar.gridmatrix.conjugation.probabilitytree.mindshape.world.areaplot.wave.energydiagram.phylotree.parsetree.eratimeline.celldiagram.raydiagram.interferencepattern.vectorfield.phasediagram.particlemodel.bohrmodel.orbitaldiagram.pedigree.indifferencecurve.causationchain.equationbalancer.yieldcalc.vseprmolecule.titrationcurve.unitcircle.solidfigure.crosssection.loaddiagram.scansionmark.clockface.moneytray.placevaluechart.columnarithmetic.pictograph.populationpyramid.shapecard.letterform.toolscale.cyclewheel.phonicsword.sightwordlist.alphabetchart.morphemebreakdown.skilltree.violinplot.stemleafplot.surfaceplot.qqplot.samplingdistribution.gridtransform.phaseportrait.twocolumnproof.polarplot.taylorseries.areamodel.dnahelix.plasmidmap.linespectrum.pyramidtiers.rubric.gradebook.spectrumtable.fmeatable.billofmaterials.chromatogram.stressstraincurve.gatingplot.expressionheatmap.gellane.parallelcoordinates.primefactortree.numbersequence.constantcard.baseconversion.doseladder.flow.analogymap.logstream.gitgraph.queryplan.flamegraph.regexscope.terminal.httpexchange.latencydist.ecdf.codemap.checks.diff.componentapi.sportspitch.developmentmilestone.dentaltreatmentplan.estateplanchecklist.subtextdecode.rehearsal.caregivercoord.allocatepeople.lifeline.familytree.relationshipmap.vendortracker.wiringdiagram.pipingschematic.controlblockdiagram.floorplan.howtosteps.spacefit.thesis.alignmentgauge.standingalerts.sourceslineage.preflightchecklist.inventoryreorder.visachecklist.hrdiagram.ternaryplot.parliamentseats.prooftree.fishbone.classdiagram.energybarchart.karyotype.numberbond.posbreakdown.frayermodel.forestplot.cashflowtimeline.businesscanvas.guitartab.pianoroll.stitchchart.wordsearch.playingcards.statblock`.split(`.`);e();var f=[()=>t(()=>import(`./shard000-Bx6Nmt0m.js`),[]),()=>t(()=>import(`./shard001-CL6O9SLr.js`),[]),()=>t(()=>import(`./shard002-vLQ0Ss-O.js`),[]),()=>t(()=>import(`./shard003-kKZdpzuh.js`),[]),()=>t(()=>import(`./shard004-CdVohAu1.js`),[]),()=>t(()=>import(`./shard005-CMzF_uJB.js`),[]),()=>t(()=>import(`./shard006-DQoDWuoN.js`),[]),()=>t(()=>import(`./shard007-Ck0N0IUk.js`),[]),()=>t(()=>import(`./shard008-Dt395x0Q.js`),[]),()=>t(()=>import(`./shard009-D_z8Lhqh.js`),[]),()=>t(()=>import(`./shard010-CQfR6lnk.js`),[]),()=>t(()=>import(`./shard011-l-w2t2Ie.js`),[]),()=>t(()=>import(`./shard012-BTw_UO1C.js`),[]),()=>t(()=>import(`./shard013-D8ZjKKYb.js`),[]),()=>t(()=>import(`./shard014-Cth_76It.js`),[]),()=>t(()=>import(`./shard015-DdYJVsHx.js`),[]),()=>t(()=>import(`./shard016-BdlBf9uZ.js`),[]),()=>t(()=>import(`./shard017-C3HTxh6t.js`),[]),()=>t(()=>import(`./shard018-Mf4wvqVk.js`),[]),()=>t(()=>import(`./shard019-Dpcy1Arx.js`),[]),()=>t(()=>import(`./shard020-BNvKfQld.js`),[]),()=>t(()=>import(`./shard021-D0kpI_PQ.js`),[]),()=>t(()=>import(`./shard022-Cjms7kAe.js`),[]),()=>t(()=>import(`./shard023-Bdwci7fy.js`),[]),()=>t(()=>import(`./shard024-BBoyPtpP.js`),[]),()=>t(()=>import(`./shard025-lMGpgN_0.js`),[]),()=>t(()=>import(`./shard026-Bp3UVI4_.js`),[]),()=>t(()=>import(`./shard027-C4HTpdeT.js`),[]),()=>t(()=>import(`./shard028-BsFTH3Sf.js`),[]),()=>t(()=>import(`./shard029-B3dEcXPy.js`),[]),()=>t(()=>import(`./shard030-DWwA-fNs.js`),[]),()=>t(()=>import(`./shard031-RhqA_0nH.js`),[]),()=>t(()=>import(`./shard032-BlZdG1Yi.js`),[]),()=>t(()=>import(`./shard033-Dmx2lOjI.js`),[]),()=>t(()=>import(`./shard034-BLOFKJT4.js`),[]),()=>t(()=>import(`./shard035-DMXdH733.js`),[]),()=>t(()=>import(`./shard036-DzOiEn23.js`),[]),()=>t(()=>import(`./shard037-BcHfVaYM.js`),[]),()=>t(()=>import(`./shard038-KozOx-Jh.js`),[]),()=>t(()=>import(`./shard039-apdILQwC.js`),[]),()=>t(()=>import(`./shard040-BrNXGaBi.js`),[]),()=>t(()=>import(`./shard041-D6eq9h1u.js`),[]),()=>t(()=>import(`./shard042-M-L34DbY.js`),[]),()=>t(()=>import(`./shard043-Ct6_C2pN.js`),[]),()=>t(()=>import(`./shard044-Bo0iaVHx.js`),[]),()=>t(()=>import(`./shard045-9ccZ4Y_N.js`),[]),()=>t(()=>import(`./shard046-eXoP478L.js`),[]),()=>t(()=>import(`./shard047-N56r6Lsz.js`),[]),()=>t(()=>import(`./shard048-BeKX7cI8.js`),[]),()=>t(()=>import(`./shard049-hPaNN2sL.js`),[]),()=>t(()=>import(`./shard050-B-YpP0B6.js`),[]),()=>t(()=>import(`./shard051-Bww5_KB2.js`),[]),()=>t(()=>import(`./shard052-DErwF8Df.js`),[]),()=>t(()=>import(`./shard053-C-qGH4jz.js`),[]),()=>t(()=>import(`./shard054-kcSxZrSj.js`),[]),()=>t(()=>import(`./shard055-CsETBTqa.js`),[]),()=>t(()=>import(`./shard056-CdBR4qTC.js`),[]),()=>t(()=>import(`./shard057-yRUG8B9e.js`),[]),()=>t(()=>import(`./shard058-DeDAnECG.js`),[]),()=>t(()=>import(`./shard059-Dh6jbDnW.js`),[]),()=>t(()=>import(`./shard060-B5kpWrhW.js`),[]),()=>t(()=>import(`./shard061-BTnj5LZA.js`),[]),()=>t(()=>import(`./shard062-DC7LTaNc.js`),[]),()=>t(()=>import(`./shard063-C8SIGCfd.js`),[]),()=>t(()=>import(`./shard064-DLyASocW.js`),[]),()=>t(()=>import(`./shard065-Cy_yV4ry.js`),[]),()=>t(()=>import(`./shard066-BmjVQqFX.js`),[]),()=>t(()=>import(`./shard067-uZUJsqtF.js`),[]),()=>t(()=>import(`./shard068-CXVjyJU4.js`),[]),()=>t(()=>import(`./shard069-CyfmjAm-.js`),[]),()=>t(()=>import(`./shard070-CxN3xiuY.js`),[]),()=>t(()=>import(`./shard071-CP1WrYC-.js`),[]),()=>t(()=>import(`./shard072-D6L5Yr05.js`),[]),()=>t(()=>import(`./shard073-DFEzkwg2.js`),[]),()=>t(()=>import(`./shard074-BSv3rvRL.js`),[]),()=>t(()=>import(`./shard075-Bt0OjGVd.js`),[]),()=>t(()=>import(`./shard076-DZHs0uzd.js`),[])],p=new Map(d.map((e,t)=>[e,Math.floor(t/8)])),m=new Set,h=new Map,g=new Map;f.length;function _(e){return p.get(e)??-1}function v(e){if(m.has(e))return Promise.resolve();let t=h.get(e);if(t)return t;let n=f[e];if(!n)return Promise.resolve();let r=n().then(({E:t})=>{for(let[e,n]of Object.entries(t))g.set(e,n);m.add(e)}).catch(()=>{}).finally(()=>h.delete(e));return h.set(e,r),r}async function ee(e){let t=new Set;for(let n of e){let e=_(n);e>=0&&!m.has(e)&&t.add(e)}t.size&&await Promise.all([...t].map(v))}function y(e){let t=g.get(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:null}var b={maxStr:48,maxArray:2},x={maxStr:90,maxArray:5};function S(e,t){if(typeof e==`string`)return e.length>t.maxStr?`${e.slice(0,t.maxStr-1)}…`:e;if(Array.isArray(e))return e.slice(0,t.maxArray).map(e=>S(e,t));if(e&&typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=S(i,t);return n}return e}var C=new Map;function w(e,t=!1){let n=`${t?`d`:`c`}:${e}`,r=C.get(n);if(r!==void 0)return r;let i=y(e),a=_(e);if(i===null&&a>=0&&!m.has(a))return null;let o=null;if(i!==null)try{o=JSON.stringify(S(i,t?x:b))}catch{o=null}return C.set(n,o),o}var T=[`insight`,`chart`,`breakdown`,`list`,`timeline`,`compare`,`kpi`,`ring`],E=new Set([...T,`bars`,`stack`,`donut`,`gauge`]),D=new Set([`diagramflow`,`composite`,`svgblock`]),O=new Set([...T,`bars`,`stack`,`donut`,`gauge`,`diagramflow`,`composite`]),k=new Set([`map`,`markermap`,`choropleth`]),te=new Set(a.filter(e=>(e.coercer===`generic`||O.has(e.type))&&!k.has(e.type)).map(e=>e.type)),A={small:new Set([`base`,`frontier`]),mid:new Set([`base`,`frontier`,`cutting`]),frontier:new Set([`base`,`frontier`,`cutting`])};function j(e,t){return A[t].has(e.tier)}function ne(e){return a.filter(t=>j(t,e))}var re={stat:`kpi`,trend:`chart`,bar:`bars`,composition:`breakdown`,distribution:`bars`,scatter:`chart`,matrix:`breakdown`,table:`datatable`,compare:`compare`,list:`list`,steps:`list`,timeline:`timeline`,graph:`diagramflow`,tree:`breakdown`,flow:`diagramflow`,map:`geomap`,prose:`insight`,code:`codeblock`};function M(e){let t=i(e);if(t)return{min:t.colMin??Math.max(3,Math.round(t.colDefault*.7)),pref:t.colDefault}}var N=[{d:`math`,re:/\b(eigen\w*|matrix|matrices|vector|scalar|linear algebra|calculus|derivative|integral|theorem|polynomial|trigonometr\w*|algebra|geometry|equation|probabilit\w*|statistic\w*|logarithm|factorial)\b/i},{d:`science`,re:/\b(physic\w*|chemistr\w*|chemical|molecul\w*|atoms?|reaction|biolog\w*|dna|genes?|enzyme|quantum|thermodynamic\w*|electron|photosynthesis|periodic table|velocity|acceleration|momentum|voltage|circuit)\b/i},{d:`health`,re:/\b(symptom\w*|disease|diagnos\w*|medicine|medication|doctor|clinical|injur\w*|surgery|treatment|dosage|prescription|anatomy|therap\w*|illness|fever|rash|nausea|migraine)\b/i},{d:`fitness`,re:/\b(workout|exercise|gym|reps?|sets?|lift(ing|s)?|cardio|run(ning)?|marathon|muscles?|strength|hypertrophy|stretch\w*|weight loss)\b/i},{d:`money`,re:/\b(budget\w*|salary|income|invest\w*|savings?|debt|loans?|mortgage|tax(es)?|expenses?|spending|paycheck|retirement|portfolio|afford|finances?)\b/i},{d:`business`,re:/\b(revenue|profit|margins?|\bkpi\b|churn|pipeline|startup|funnel|\broi\b|b2b|saas|stakeholders?|quarterly|forecast|go-to-market)\b/i},{d:`sports`,re:/\b(soccer|football|basketball|baseball|tennis|hockey|golf|\bnba\b|\bnfl\b|\bmlb\b|playoffs?|tournament|standings|quarterback|inning|free throw|offside)\b/i},{d:`cooking`,re:/\b(recipe\w*|cook\w*|bak(e|ing)|ingredient\w*|meals?|dinner|lunch|breakfast|dish(es)?|cuisine|saute|simmer|roast|grill|kitchen)\b/i},{d:`travel`,re:/\b(trips?|travel\w*|flights?|itinerar\w*|hotels?|vacation|destinations?|tourist|visa|sightsee\w*|layover|airport)\b/i},{d:`tech`,re:/\b(wi-?fi|router|laptop|smartphone|software|devices?|install\w*|settings|browser|bluetooth|operating system|hard drive)\b/i},{d:`code`,re:/\b(code|functions?|api|algorithm\w*|debug\w*|compile\w*|syntax|typescript|javascript|python|repository|regex|database|query)\b/i},{d:`music`,re:/\b(chord\w*|melody|guitar|piano|instruments?|key signature|tempo|octave|musical scale|fret\w*|sheet music)\b/i},{d:`art`,re:/\b(painting|drawing|sketch\w*|sculpture|artists?|palette|illustration|portrait)\b/i},{d:`home`,re:/\b(apartment|rent(al|ing)?|lease|renovat\w*|furniture|plumb\w*|repair|toilet|sink|drain|garden\w*|appliances?|tenant|landlord)\b/i},{d:`legal`,re:/\b(legal|laws?|contracts?|clause|lawsuit|attorney|lawyer|liabilit\w*|statute|compliance|terms of service)\b/i},{d:`education`,re:/\b(stud(y|ying)|exams?|quiz\w*|homework|college|lecture|curriculum|flashcards?|syllabus|coursework)\b/i},{d:`nature`,re:/\b(animals?|plants?|trees?|weather|climate|ocean|mountains?|rivers?|ecosystem|species|dinosaur\w*|planets?|wildlife|geolog\w*)\b/i},{d:`history`,re:/\b(histor\w*|ancient|centur\w*|\bwar\b|empires?|civilization|dynast\w*|revolution|medieval)\b/i},{d:`language`,re:/\b(translat\w*|pronounc\w*|pronunciation|grammar|vocabular\w*|conjugat\w*|spanish|french|japanese|mandarin|verb tense)\b/i},{d:`data`,re:/\b(datasets?|data ?(science|scientist|analy\w*|pipeline|engineering|warehouse|lake|model(ing|ling)?)|\betl\b|\bsql\b|bigquery|tableau|power ?bi|spreadsheets?|\bcsv\b|pivot tables?|dataframe\w*|pandas)\b/i},{d:`design`,re:/\b(design system|\bux\b|\bui\b|user (experience|interface)|wireframe\w*|figma|prototyp\w*|mockups?|usability|visual hierarchy|component library|brand(ing| guidelines?)|typograph\w*|type ?scale)\b/i},{d:`photo`,re:/\b(photograph\w*|photos?|camera|aperture|shutter speed|\biso\b|exposure|\blens(es)?\b|\bf-?stops?\b|depth of field|lightroom|bokeh)\b/i},{d:`media`,re:/\b(videos?|films?|movies?|footage|podcasts?|youtube|streaming|cinematograph\w*|shot ?lists?|storyboard\w*|b-?roll|screenplay\w*)\b/i},{d:`productivity`,re:/\b(productivit\w*|to-?do\w*|task ?lists?|workflows?|habits?|routines?|time ?management|\bgtd\b|pomodoro|prioriti[sz]\w*|backlog|getting things done)\b/i},{d:`relationship`,re:/\b(relationships?|partner\w*|spouse|husband|wife|boyfriend|girlfriend|marriage|married|dating|breakups?|broke up|divorce\w*|friendships?|in-?laws?|coworkers?|my (boss|friend|mom|dad|family))\b/i},{d:`news`,re:/\b(news|headlines?|current events|breaking|press release|journalis\w*|newspapers?|world events|latest (on|news)|what'?s happening)\b/i},{d:`parenting`,re:/\b(parent\w*|toddler\w*|infants?|newborns?|\bbaby\b|babies|nursery|diaper\w*|tantrum\w*|potty training|bedtime|my (kid|child|son|daughter|baby)|developmental milestones?)\b/i},{d:`writing`,re:/\b(write|writing|rewrite|essays?|paragraphs?|\bdrafts?\b|cover letters?|poems?|poetry|short stor(y|ies)|novels?|screenplay\w*|proofread|prose|narrative|copywrit\w*)\b/i},{d:`decision`,re:/\b(decide|decisions?|choose|choosing|which (one|option|should)|pros and cons|trade-?offs?|should i (buy|get|choose|pick|go)|\bvs\.?\b|versus|compare (these|the|my|two|options))\b/i},{d:`shopping`,re:/\b(buy|buying|purchas\w*|shopping|gifts?|deals?|discount\w*|coupons?|product reviews?|wishlists?|add to cart)\b/i},{d:`reference`,re:/\b(define|definition of|meaning of|look ?up|dictionary|thesaurus|encyclopedia|glossary|translat\w*|spell(ing)? of|synonyms?|antonyms?)\b/i},{d:`lifestyle`,re:/\b(collectibles?|my collection|stamp collection|coin collection|card collection|vinyl collection|collecting (?:stamps|coins|cards|vinyl|memorabilia)|hobby collection|memorabilia)\b/i}];function P(e,t){let n=(t??[]).slice(-2).map(e=>typeof e?.content==`string`?e.content:``).join(` `);return(e+` `+n).toLowerCase()}function ie(e,t){let n=P(e||``,t),r=new Set;for(let{d:e,re:t}of N)t.test(n)&&r.add(e);return r}function ae(e,t){if(!e||e.length===0||t.size===0)return!0;for(let n of e)if(t.has(n))return!0;return!1}var F={circuitdiagram:[`science`,`tech`],molecularstructure:[`science`,`health`],periodictable:[`science`],reactionmechanism:[`science`],bodymap:[`health`,`fitness`],labpanel:[`health`],medicationschedule:[`health`],musicstaff:[`music`],chorddiagram:[`music`],sportspitch:[`sports`]};function oe(e){return e.domains??F[e.type]}var I=/\b(kill (myself|him|her|them)|killing myself|end (my|his|her|their) life|ending my life|take my (own )?life|don'?t want to (be here|live|wake up|exist)|want(ing)? to die|wanna die|suicid\w*|self.?harm|harm myself|hurt(ing)? myself|cut(ting)? myself|no reason to (live|go on)|better off dead|overdos\w*)\b/i;function se(e,t){return I.test(P(e||``,t))}var L=[{test:/\b(state machine|finite[- ]state|\bfsm\b|state diagram|state transitions?|states? and transitions?)\b/,type:`statemachine`,over:`diagram`},{test:/\b(sequence diagram|interaction diagram|message sequence|request[- ]response (?:flow|cycle)|handshake (?:between|sequence)|who calls whom)\b/,type:`sequencediagram`,over:`diagram`},{test:/\b(er[- ]?diagram|entity[- ]relationship|database schema|data model\b|tables? and (?:their )?(?:keys|relationships?))\b/,type:`erdiagram`,over:`diagram`},{test:/\b(risk matrix|probability[- ](?:and[- ]|x[- ]|by[- ])?impact|likelihood[- ](?:and[- ]|x[- ]|vs[- ])?impact|impact[- ](?:and[- ])?likelihood|risk (?:heat ?map|grid))\b/,type:`riskmatrix`,over:`matrixgrid`},{test:/\b(confusion matrix|true positives?|false positives?|precision and recall grid)\b/,type:`confusionmatrix`,over:`matrix`},{test:/\b(magic quadrant|2\s?[x×]\s?2(?: matrix| grid)?|four[- ]quadrant|positioning (?:map|matrix)|priority matrix|eisenhower (?:matrix|box))\b/,type:`quadrant`,over:`compare`},{test:/\b(?:plot|graph|sketch) (?:the )?(?:function|equation|curve|y\s*=|f\(x\))|\bgraph of (?:y|f|the function)\b|\b(?:sine|cosine|tangent) (?:curve|wave|graph)\b|\bparabola\b/,type:`plot`,over:`scatter`},{test:/\bperiodic table\b/,type:`periodictable`,over:`datatable`},{test:/\b(?:timeline|chronology|history) of\b.{0,48}\b(?:\d{3,4}s?|\d{1,2}(?:th|st|nd|rd) century|\bbce?\b|\bad\b|war|empire|dynasty|revolution|civili[sz]ation)\b/,type:`chronologicaltimeline`,over:`timeline`},{test:/\bcompare and contrast\b|\bcomparison (?:table|grid|matrix|chart)\b|\b(?:differences?|distinctions?) between\b|\bhow do\b.{0,40}\bdiffer\b|\b[\w-]+ vs\.? [\w-]+ vs\.? [\w-]+\b/,type:`comparematrix`,over:`compare`},{test:/\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b.{0,60}\b(?:graph|node|vertex|vertices)\b|\btrace\b.{0,40}\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b|\b(?:bfs|dfs) (?:step|traversal|from)\b/,type:`graphtrace`,over:`datastructure`},{test:/\b(?:dp|dynamic[- ]programming|memoiz[ae]tion|memoization)\s+table\b|\b(?:fill|filling)[- ](?:in )?(?:the )?(?:dp|dynamic[- ]programming)\b|\b(?:lcs|edit[- ]distance|knapsack|coin[- ]change)\b.{0,60}\btable\b/,type:`dptable`,over:`algorithmtrace`},{test:/\bhash\s+(?:table|map)\b.{0,60}\b(?:collision|chaining|bucket|separate[- ]chaining|linear[- ]probing)\b|\bseparate[- ]chaining\b|\bhash function\b.{0,50}\bbucket\b/,type:`hashtable`,over:`datastructure`},{test:/\b(?:prefix[- ]tree|trie\b|autocompletion? (?:using|with|via) (?:a )?trie|insert.{0,30}\btrie\b|search.{0,30}\btrie\b)/,type:`trie`,over:`datastructure`},{test:/\b(?:inorder|preorder|postorder|level[- ]order)\s+traversal\b|\btrace\b.{0,40}\b(?:binary[- ]tree|bst)\b|\bwalk[- ]?(?:me[- ])?through\b.{0,50}\b(?:binary[- ]tree|bst)\b|\bbst\s+(?:insert|search|delete)\b/,type:`binarytree`,over:`datastructure`},{test:/\b(?:bubble|merge|quick|insertion|selection|heap)\s+sort\b|\bsort(?:ing)?\s+algorithm\b.{0,50}\b(?:step|animate|visual|trace)\b|\bvisuali[sz]e\b.{0,40}\bsort\b|\banimated?\b.{0,30}\bsort\b/,type:`sortingviz`,over:`algorithmtrace`},{test:/\b(?:toulmin\b|grounds?\s+and\s+warrant|warrant\s+and\s+(?:grounds?|backing)|claim[\s,]+grounds?[\s,]+warrant)\b/i,type:`toulmin`,over:`argumentmap`},{test:/\b(?:character\s+(?:map|web|network|relationships?)|relationship\s+(?:map|web|diagram)\b.{0,50}\bcharacter|who(?:'s| is)\s+(?:who|friends?|rivals?)|cast\s+of\s+characters?|factions?\s+and\s+alliances?|allies?\s+and\s+rivals?)\b/i,type:`castmap`,over:`network`},{test:/\b(?:freytag|three[- ]act\s+structure|hero(?:'s)?\s+journey|save\s+the\s+cat|plot\s+structure\b|story\s+arc\b|narrative\s+arc\b|story\s+structure\b)\b/i,type:`storyarc`,over:`beatsheet`},{test:/\b(?:rhetorical\s+devices?|literary\s+devices?|figures?\s+of\s+speech|identify\s+the\s+(?:devices?|techniques?|metaphors?)|highlight\s+the\s+(?:metaphors?|similes?|alliteration)|mark\s+the\s+(?:devices?|techniques?))\b/i,type:`devicemark`,over:`annotateddoc`},{test:/\b(?:etymology\b|word\s+origin\b|roots?\s+of\s+the\s+word|where\s+does\s+(?:the\s+word\s+)?[a-z]+\s+come\s+from|latin\s+(?:and\s+greek\s+)?roots?\s+of|word\s+history)\b/i,type:`etymtree`,over:`dictionary`}];function R(e){let t=e.toLowerCase(),n=[],r=new Set;for(let e of L)e.test.test(t)&&!r.has(e.type)&&(r.add(e.type),n.push({type:e.type,over:e.over}));return n}function z(e){return e.length?`BEST-FIT COMPONENT — the content maps to a purpose-built block: prefer ${e.map(e=>`${e.type} (not ${e.over})`).join(`, `)}. The specialist renders this exact structure correctly where the generic only approximates it.`:``}var B={small:8,mid:24,frontier:30},ce=3,V=2,H=2,U=1.6,W=1.2,G=1,le=.6,K=2,ue=.8,q={base:1,frontier:1.3,cutting:1.6},J=1.2,Y=.3,X=2.5,Z=.3,de=new Set,fe=.2,pe=[`teachdiagram`,`workedexample`,`quiz`,`flashcard`],me=1.4,he=new Set([`nav`,`forms`,`pickers`,`overlays`]),ge=new Set([`kbd`,`spinner`,`skeleton`,`sliderinput`,`rangefilter`,`ratinginput`,`emptystate`,`segmented`,`toaststack`,`divider`,`spacer`]);function _e(e){return he.has(e.family)||ge.has(e.type)}function ve(e,t){let n=0;for(let r of e.dataShapes)n+=t[r]??0;return n}function ye(e){return e.shapeFit+G*e.intentPts+K*e.semFit}function be(e,t,n,r=de,i=de,a=!1){let o=ve(e,t),s=1+U*o,c=Math.max(0,e.wowWeight)**+W,l=(q[e.tier]??1)*(e.interactive?J:1),u=n.has(e.type)&&o===0?Y:1,d=r.has(e.type)?X:i.has(e.type)?Z:1,f=a&&e.family===`learn`?me:1;return s*c*l*u*d*f}function xe(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function Se(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}var Ce=class{pool;tree;size;highBit;total=0;live;constructor(e){this.pool=e,this.size=e.length,this.live=e.length,this.tree=new Float64Array(this.size+1);for(let t=0;t<this.size;t++)this.add(t,e[t].weight),this.total+=e[t].weight;this.highBit=this.size>0?1<<31-Math.clz32(this.size):0}add(e,t){for(let n=e+1;n<=this.size;n+=n&-n)this.tree[n]+=t}locate(e){let t=0,n=0;for(let r=this.highBit;r>0;r>>=1){let i=t+r;i<=this.size&&n+this.tree[i]<e&&(t=i,n+=this.tree[i])}return Math.min(t,this.size-1)}take(e){let t=this.locate(e),n=this.pool[t];return this.add(t,-n.weight),this.total-=n.weight,this.live--,n}};function we(e,t,n,r){let i=new Ce(e),a=[];for(;a.length<t&&i.live>0&&!(i.total<=0);){let e=i.take(n()*i.total).meta,t=r.family.get(e.family)??0;if(t>=V)continue;let o=r.archetype.get(e.archetype)??0;o>=H||(a.push(e),r.family.set(e.family,t+1),r.archetype.set(e.archetype,o+1))}return a}function Q(e){return Math.max(.5,.15*e)}function Te(e){return[...e].sort((e,t)=>t.fit-e.fit||(e.meta.type<t.meta.type?-1:1))}var Ee=2;function De(e,t,n,r){let i=Te(e),a=[],o=0;for(;o<i.length&&a.length<t;){let e=i[o].fit,s=e-Q(e),c=o;for(;c<i.length&&i[c].fit>=s;)c++;a.push(...we(i.slice(o,c),t-a.length,n,r)),o=c}return a}var Oe=5;function ke(e){let t=e.itemShapes??[],n=e.stringItems??[];if(!t.length&&!n.length)return``;let r=e=>{let t=e.children,n=[e.text,t?r(t):void 0].filter(Boolean).join(`, `);return`${e.prop}[]: {${n}}`};return` · ${[...t.map(r),...n.map(e=>`${e}[]: plain strings`)].join(`, `)}`}function Ae(e){let t=e.propHints;if(!t)return``;let n=Object.entries(t);return n.length?` · hints: ${n.map(([e,t])=>`${e}=${t}`).join(`, `)}`:``}function $(e,t=!1,n=!1){let r=e.requires.length?e.requires.join(`, `):`—`,i=t?w(e.type,n):null;if(i)return`- ${e.type} — ${e.blurb} · needs: ${r}${o(e)} · example: ${i}`;let a=e.optional.slice(0,Oe),s=a.length?` · richer with: ${a.join(`, `)}`:``;return`- ${e.type} — ${e.blurb} · needs: ${r}${ke(e)}${o(e)}${Ae(e)}${s}`}function je(){return T.map(r).filter(e=>!!e).map(e=>$(e)).join(`
|
|
2
2
|
`)}var Me=3;function Ne(e,t){let n=[...e.map(e=>r(e.type)).filter(e=>!!e)].sort((e,n)=>{let r=+((t.get(e.type)??0)>0),i=+((t.get(n.type)??0)>0);return r===i?n.wowWeight-e.wowWeight:i-r}).map((e,t)=>$(e,t<Me,!0)),i=[];return n.length&&i.push(`HERO COMPONENTS for THIS answer — your most impressive options, best first. Build the`,`canvas AROUND two or three of these (a demo-grade reply leads with the cool visuals), and`,`fill in the rest with the common blocks below. Pick only components that genuinely FIT this`,`answer's content — a striking visual used for data it wasn't meant for reads as a mistake;`,`when in doubt prefer the clearer block. Use the exact prop NAMES and printed limits shown.`,`The example shows SHAPE and DENSITY, not the answer. Prioritize the highest-value real items`,`that fit; summarize any remainder and offer it as a follow-up instead of cramming, shrinking,`,`or overflowing the card. Use the ANSWER'S OWN real values — never copy example values:`,...n,``),i.push(`ALWAYS AVAILABLE — the reliable staples. Use these freely alongside the hero components`,`(every good canvas mixes both); fall back to a plain insight/list/breakdown only when`,`nothing richer fits:`,je()),i.join(`
|
|
3
3
|
`)}function Pe(e){try{let t=l(e.userText,e.history),n=e.attachments??[],r=[];(n.some(e=>e.kind===`sheet`)||n.some(e=>e.kind===`image`)&&/\b(receipt|itemi[sz]e|line items?|breakdown|invoice|bill|expenses?|subtotal|totals?|tax)\b/i.test(e.userText))&&r.push(`datatable`),r.length&&(t.tabular=(t.tabular??0)+1.2);let i=new Set(e.recent??[]),a=new Set(e.lessons?.prefer??[]),o=new Set(e.lessons?.avoid??[]),d=e.exclude,f=ie(e.userText,e.history),p=new Set(u(e.userText)),m=R(e.userText);for(let e of m)p.add(e.type);for(let e of r)p.add(e);let h=!!e.teaching&&e.tier!==`small`;if(h)for(let e of pe)p.add(e);let g=se(e.userText,e.history),_=g?new Set([`companionnote`,`reframecard`,`breathpacer`,`copingmenu`]):null,v=new Set(s(c(e.userText,e.history))),ee=e=>{let t=0;for(let n of e.intents??[])v.has(n)&&(t+=1);return t},y=e.semanticFit,b=e=>y?.get(e.type)??0,x=ne(e.tier).filter(e=>te.has(e.type)&&!T.includes(e.type)&&!_e(e)&&!(d&&d.has(e.type))&&(p.has(e.type)||ae(oe(e),f))&&!(_&&_.has(e.type))&&!(e.type===`lifeline`&&!g)).map(e=>{let n=ee(e),r=b(e);return{meta:e,ip:n,sem:r,fit:ye({shapeFit:ve(e,t),intentPts:n,semFit:r})}}),S=x.some(e=>e.fit>0),C=x.map(({meta:e,ip:n,sem:r,fit:s})=>({meta:e,fit:s,weight:be(e,t,i,a,o,h)*(1+le*n+ue*r)*(S&&s===0?fe:1)})),w=e.complexity===`lean`||e.complexity===`brief`,E=e.speedTier===`slow`?Math.max(6,Math.round(B[e.tier]*.45)):B[e.tier],D=w?ce:E,O=xe((Se(e.userText)^Math.imul((e.rotation??0)+1,2654435761))>>>0),k=new Map(C.map(e=>[e.meta.type,e.meta])),A=[...u(e.userText),...r].map(e=>k.get(e)).filter(e=>!!e),j=m.map(e=>k.get(e.type)).filter(e=>!!e),M=g?k.get(`lifeline`):void 0,N=h?pe.map(e=>k.get(e)).filter(e=>!!e):[],P=new Set([...A,...j,...N].map(e=>e.type));M&&P.add(`lifeline`);let F=C.filter(e=>e.fit>0&&!P.has(e.meta.type)).sort((e,t)=>t.fit-e.fit).slice(0,w?1:2).map(e=>e.meta);for(let e of F)P.add(e.type);let I=Te(C.filter(e=>e.fit>0)),L=I.length?I[0].fit-Q(I[0].fit):0,z=[];for(let e of I){if(e.fit<L||z.length>=Ee)break;let t=re[e.meta.archetype];if(!t||T.includes(t)||P.has(t))continue;let n=k.get(t);n&&(P.add(t),z.push(n))}let V=[...M?[M]:[],...A,...j,...N,...F,...z],H=new Set,U=V.filter(e=>!H.has(e.type)&&(H.add(e.type),!0)),W=C.filter(e=>!P.has(e.meta.type)),G={family:new Map,archetype:new Map},K=Math.max(0,D-U.length),q=De(W.filter(e=>e.fit>0),K,O,G),J=we(W.filter(e=>e.fit===0),K-q.length,O,G),Y=[...U,...q,...J],X=Array.from(new Set([...T,...Y.map(e=>e.type)])),Z=C.reduce((e,t)=>Math.max(e,t.fit),0);return{types:X,chosen:Y,fitOf:new Map(C.map(e=>[e.meta.type,e.fit])),allowed:new Set(X),bestFit:Z}}catch{return{types:[...E],chosen:[],fitOf:new Map,allowed:new Set(E),bestFit:0}}}function Fe(e){return e.chosen.length||T.length?Ne(e.chosen,e.fitOf):``}async function Ie(e){let t=Pe(e);return await Promise.all([n([...t.types,...T]),ee(t.types)]),{types:t.types,promptSnippet:Fe(t),allowed:t.allowed,bestFit:t.bestFit}}export{M as a,D as i,R as n,z as r,Ie as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={videoembed:{blurb:`Video player with chapter markers and chapter-list navigation.`,optional:[`icon`,`iconColor`,`durationLabel`,`active`,`footer`]},geomap:{blurb:"A REAL interactive map (OpenStreetMap tiles) for actual places. Give each marker real {lat, lng} coordinates (decimal degrees), a name, and an optional detail. When the answer spans several places or segments (a multi-day trip, a multi-stop route), emit ONE map PER segment — each plotting that segment’s own stops — not a single overview, unless an overview is what was asked. The card lists every marker by name beside the map, numbered to its pin, so `detail` is where a street address or a one-line note belongs — it is rendered, not hidden. This is the only map type — always use it for any real-world location. For a zoning/land-use ask specifically, prefer zoningmap, which teaches the zone-polygon shape more directly.",optional:[`icon`,`iconColor`,`zoom`,`zones`,`footer`],itemShapes:[{prop:`zones`,text:`label`,textAliases:[`name`,`title`]}],propHints:{"zones[].coords":`the zone boundary as real [lat, lng] pairs (decimal degrees), at least 3 points`,"zones[].category":`'residential'|'commercial'|'industrial'|'mixed'|'open-space'`}},lightbox:{blurb:`Inline gallery grid with full-screen lightbox on tap.`,optional:[`icon`,`iconColor`,`footer`]},moodboard:{blurb:`Masonry layout of images, color swatches, and text blocks.`,optional:[`icon`,`iconColor`,`footer`],propHints:{"tiles[].kind":`'image'|'color'|'text'`}},palette:{blurb:`An actual COLOR palette — swatches with hex codes and WCAG contrast verdicts (brand/design palettes). Never as a generic category, tag, or option list — use chipset or badgeset.`,optional:[`icon`,`iconColor`,`footer`],itemShapes:[{prop:`swatches`,text:`name`,textAliases:[`label`,`title`]}]},mediacard:{blurb:`A poster-forward detail card for ONE recommended title (film/show/book/game): cover art, year/runtime/rating chips, a 0–100 score badge, a spoiler-safe logline, genre tags, and "where to watch" provider chips. Give a real cover.src when you have one; otherwise it falls back to the cover.from/to gradient. Pick this for a single "what should I watch/read next" pick — use carousel or lightbox for a gallery of several.`,optional:[`icon`,`iconColor`,`year`,`runtime`,`rating`,`score`,`genres`,`logline`,`providers`,`footer`],stringItems:[`genres`,`providers`],propHints:{score:`a number 0–100 (aggregate/critic score); omit if unknown rather than guessing`,"cover.src":`real poster/cover image URL; omit to show the from/to gradient placeholder`,"cover.from":`gradient start, e.g. var(--presence-deep)`,"cover.to":`gradient end, e.g. var(--presence-soft)`}},diagram:{blurb:`Labeled vector diagram with shapes (circles, rects, lines, polygons, paths) and annotated callout labels—for anatomy, physics, geography, engineering schematics.`,optional:[`icon`,`iconColor`,`ratio`,`footer`],propHints:{"shapes[].kind":`'circle'|'rect'|'line'|'polygon'|'path'`}},svgblock:{blurb:`Tier-3 escape hatch: model-drawn SVG for a visual no native component covers (a molecule, a circuit, a geometric figure, a custom infographic). Strictly sanitized on render; design tokens (var(--presence) etc.) work via CSS inheritance, so it is light/dark-aware. Use ONLY when diagram/geometrycanvas/vectorspace/reactionmechanism/molecularstructure/etc. do not apply.`,optional:[`icon`,`iconColor`,`caption`,`footer`],propHints:{svg:`Complete <svg> with a viewBox (e.g. viewBox="0 0 400 300") and NO width/height attributes. Colors: ONLY var(--presence/--insight/--warning/--danger/--text-primary/--text-secondary/--text-muted/--surface-card) — never hex. Allowed elements: path, rect, circle, ellipse, line, polyline, polygon, text, tspan, g, defs, linearGradient/radialGradient/stop, clipPath, mask, pattern, marker, use(#id). Forbidden: script, style, foreignObject, image, a, event handlers, animation, and any external/javascript:/data: URL — all are stripped on render.`,caption:`Optional plain-text label shown below the SVG.`}}};export{e as D};
|