@mavea/mavea 1.2.0 → 2.0.0
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 +96 -0
- package/PRIVACY.md +1 -0
- package/README.md +8 -4
- package/TERMS.md +1 -1
- package/THIRD-PARTY.txt +13 -5
- package/bin/mavea.mjs +143 -2
- package/dist/.vite/manifest.json +1473 -861
- package/dist/assets/AnnotationLayer-Cccb12ps.js +0 -0
- package/dist/assets/{AppCommandPalette-BHaYBZ5e.js → AppCommandPalette-DdOPNZ0e.js} +1 -1
- package/dist/assets/AtlasView-B7yObdf8.css +1 -0
- package/dist/assets/{AtlasView-B82UfrEX.js → AtlasView-DO_p0TdZ.js} +1 -1
- package/dist/assets/BriefingPlayer-DHV4vMga.css +1 -0
- package/dist/assets/{CadenceCard-P4teI7Se.js → CadenceCard-DxceyiPA.js} +1 -1
- package/dist/assets/{CanvasSkeleton-CRGWlafo.js → CanvasSkeleton-BmGjJHUQ.js} +1 -1
- package/dist/assets/CanvasSkeleton-DYASkTjW.css +1 -0
- package/dist/assets/CardEditor-CiAfT78z.css +1 -0
- package/dist/assets/{CardEditor-DABIhGdQ.js → CardEditor-D4slxmIM.js} +1 -1
- package/dist/assets/{CheckLogRail-DkHIHL0E.js → CheckLogRail-BibJTid0.js} +1 -1
- package/dist/assets/ConversationVideoStudio-CSO3jHXD.css +1 -0
- package/dist/assets/ConversationVideoStudio-DMIPUCcq.js +1 -0
- package/dist/assets/CourseLessonReader-D29Kix4f.js +2 -0
- package/dist/assets/{CourseRail-DXt3bzjU.js → CourseRail-BQmUsG6v.js} +1 -1
- package/dist/assets/CoursesApp-DcDsS_ZS.js +2 -0
- package/dist/assets/CrossExamPanel-BafTqkbf.css +1 -0
- package/dist/assets/{DashPresent-5SRScC2i.js → DashPresent-BDWgO9am.js} +1 -1
- package/dist/assets/DashboardDetail-BrnAdWfy.js +2 -0
- package/dist/assets/DashboardLoopGate-NxMcQ4rD.js +2 -0
- package/dist/assets/DashboardLoopRuntime-Dsy9u1wa.js +1 -0
- package/dist/assets/{DashboardSettings-CE0B2y2y.js → DashboardSettings-DJon1Q4o.js} +1 -1
- package/dist/assets/DashboardsApp-DxyMn3x_.js +2 -0
- package/dist/assets/DeepZoomApp-CVwmnRGN.css +1 -0
- package/dist/assets/{DeepZoomApp-BOLEl-kQ.js → DeepZoomApp-nNjqoyYE.js} +1 -1
- package/dist/assets/DelegatePanel-D17XvWYd.css +1 -0
- package/dist/assets/DelegatePanel-DN_ZL0j7.js +33 -0
- package/dist/assets/DemoGallery-DrSlMsnu.js +1 -0
- package/dist/assets/{DropSelect-DilESAgA.css → DropSelect-B4lqCEjw.css} +1 -1
- package/dist/assets/{DropSelect-DjbdVfIR.js → DropSelect-GwIXHA5o.js} +1 -1
- package/dist/assets/{ExportModal-CLobMv1F.js → ExportModal-DBUjC71U.js} +1 -1
- package/dist/assets/{ExtractionPreview-QZ2VHmsb.js → ExtractionPreview-D4M6eXqb.js} +1 -1
- package/dist/assets/{FeatureUseNotice-Dc8joBGM.js → FeatureUseNotice-Bda9jr3W.js} +1 -1
- package/dist/assets/{FlagshipCommandPalette-DnWuBjYI.js → FlagshipCommandPalette-DAO849RC.js} +1 -1
- package/dist/assets/FlagshipShowcase-g2x-1c70.js +1 -0
- package/dist/assets/{FlashcardsApp-BQGM-Tr1.js → FlashcardsApp-BUKzCr65.js} +1 -1
- package/dist/assets/ForecastPanel-Cq_yDhNQ.css +1 -0
- package/dist/assets/GalleryApp-ot_A7ZF-.js +1 -0
- package/dist/assets/{HonestByDesign-57LDf-gm.js → HonestByDesign-DgZFEpEx.js} +1 -1
- package/dist/assets/{HowItWorks-DMfPX3GK.js → HowItWorks-DPFpdeGE.js} +1 -1
- package/dist/assets/{LegalApp-CcO5Qq6R.js → LegalApp-C56kWdmK.js} +1 -1
- package/dist/assets/{LegalMarkdownDocument-Be_fQbZ_.js → LegalMarkdownDocument-BBTHuW_M.js} +1 -1
- package/dist/assets/{LegalPageShell-B-HY1WG7.js → LegalPageShell-hMA-7JLf.js} +1 -1
- package/dist/assets/LeverPanel-HOEwIr8k.css +1 -0
- package/dist/assets/{Library-DmdzY2se.js → Library-CVj7R6F4.js} +1 -1
- package/dist/assets/LibraryOverlay-BkPYm0Bs.css +1 -0
- package/dist/assets/{LibraryOverlay-BilW6q_z.js → LibraryOverlay-DSUWcUe4.js} +1 -1
- package/dist/assets/LiveApp-B62EMybC.js +79 -0
- package/dist/assets/LiveApp-CziqEsOb.css +1 -0
- package/dist/assets/LiveSettings-BITIaMoT.js +6 -0
- package/dist/assets/LiveSettings-Dho0OxlM.css +1 -0
- package/dist/assets/{MindMapViewerDrawer-DI_S7fRZ.js → MindMapViewerDrawer-CKdJtHno.js} +1 -1
- package/dist/assets/MindShape-B3lg_z4X.js +1 -0
- package/dist/assets/MindShape-CozR9W8M.css +1 -0
- package/dist/assets/{PinToDashboard-Cz5UJCmq.js → PinToDashboard-DpQjBLPa.js} +1 -1
- package/dist/assets/{PlanReview-CmUxzNqL.js → PlanReview-CrTbmMAd.js} +1 -1
- package/dist/assets/PresentationDeck-CfYadu9V.js +1 -0
- package/dist/assets/PrismApp-bRKK_3JA.js +2 -0
- package/dist/assets/PrismAskController-68gbUO5u.css +1 -0
- package/dist/assets/{PrismAskController-Bt0k9hAA.js → PrismAskController-C4MuB8om.js} +1 -1
- package/dist/assets/{PrismBriefingPlayer-DzdtnFj4.js → PrismBriefingPlayer-ChJj6hSS.js} +2 -2
- package/dist/assets/PrismOverlay-BwnF4BEn.css +1 -0
- package/dist/assets/{PrismOverlay-D1cDZamt.js → PrismOverlay-Pp6ZKmTc.js} +4 -4
- package/dist/assets/{PrismWorkbench-BEIp4MiL.js → PrismWorkbench-BCV7r4Oa.js} +1 -1
- package/dist/assets/{PrivacyApp-B4DT2RUz.js → PrivacyApp-A2Bu6LVd.js} +2 -1
- package/dist/assets/{Recap-T9DtFaEk.js → Recap-BOl3SUh0.js} +1 -1
- package/dist/assets/Recap-D3NlzM1p.css +1 -0
- package/dist/assets/{ReplayCard-Dx46HCBT.js → ReplayCard-B6NYiYzQ.js} +2 -2
- package/dist/assets/{ReplayOverlay-CnJAxf0u.js → ReplayOverlay-BJKtJ-vc.js} +1 -1
- package/dist/assets/{RewindOverlay-CousnxXo.js → RewindOverlay-BO7YgDsW.js} +1 -1
- package/dist/assets/RippleApp-BXt7tenS.js +2 -0
- package/dist/assets/{RippleAskController-9SxpZnHX.js → RippleAskController-BzdwYcYY.js} +1 -1
- package/dist/assets/RippleOverlay-B3hg2KMN.css +1 -0
- package/dist/assets/RippleOverlay-BSxubBwj.js +6 -0
- package/dist/assets/SeeDontRead-0He5hS2C.js +1 -0
- package/dist/assets/ShareModal-I_sxHKLv.css +1 -0
- package/dist/assets/ShareModal-xYdZWJxy.js +2 -0
- package/dist/assets/{ShipCourse-BavQppkt.js → ShipCourse-Dg6kCWyH.js} +1 -1
- package/dist/assets/{SignatureLoop-L8W2h62w.js → SignatureLoop-QPwB2oNN.js} +1 -1
- package/dist/assets/SrsReview-DmBcJCMa.css +1 -0
- package/dist/assets/{SrsReview-DhWNYYv7.js → SrsReview-Gr6Y0QTQ.js} +1 -1
- package/dist/assets/{SynthesisApp-C2O6pFeM.js → SynthesisApp-DrCq6NDa.js} +2 -2
- package/dist/assets/{SynthesisOverlay-DLvwiSMv.js → SynthesisOverlay-DCa-2Pz_.js} +1 -1
- package/dist/assets/{TermsApp-CxY1yorm.js → TermsApp-zcPDYfuh.js} +2 -2
- package/dist/assets/TopicCanvas-Bw4bMFpe.js +2 -0
- package/dist/assets/TopicCanvas-DWTm611H.css +1 -0
- package/dist/assets/{TourPrism-CI-iJZil.js → TourPrism-DbinDupp.js} +1 -1
- package/dist/assets/{TrackerTile-oz6IoG8m.js → TrackerTile-CrT9u1I4.js} +2 -2
- package/dist/assets/{TwoSurfaces-Rnf-_WgY.js → TwoSurfaces-L0CDuyOZ.js} +1 -1
- package/dist/assets/WhyMachineOverlay-Rav-cuMm.css +1 -0
- package/dist/assets/WorldOverlay-BcjqG1BR.js +2 -0
- package/dist/assets/{WowFeatures-C4efSbNV.js → WowFeatures-CwBk4ZMO.js} +1 -1
- package/dist/assets/ZoomDeck-DdLNsrHV.css +1 -0
- package/dist/assets/{ZoomDeck-CBrr0yfy.js → ZoomDeck-DlnesweX.js} +1 -1
- package/dist/assets/{annotationAuto-CDv6Es44.js → annotationAuto-B2UdfJNj.js} +1 -1
- package/dist/assets/{backup-ZrlVatXc.js → backup-685QrAjt.js} +1 -1
- package/dist/assets/canvas-C3O7MEA3.js +1 -0
- package/dist/assets/capture-DgJLQ_0-.js +2 -0
- package/dist/assets/{chapters-Dqm4iLDa.js → chapters-CIvdCeBC.js} +1 -1
- package/dist/assets/{confirmAdd-DzMO9jKV.js → confirmAdd-CZ829Mbx.js} +1 -1
- package/dist/assets/{dashboardEvents-DKl5rrTD.js → dashboardEvents-CiayRLrH.js} +1 -1
- package/dist/assets/dashboards-Cvs28p3Z.css +1 -0
- package/dist/assets/deepen-DAeHHFiI.js +11 -0
- package/dist/assets/deepenStore-BWLLzLCY.js +1 -0
- package/dist/assets/effort-jJe4iMIq.js +39 -0
- package/dist/assets/{explode-BgZIWY9m.js → explode-CPnvJiTg.js} +1 -1
- package/dist/assets/{fitText-DQ2omSN0.js → fitText-DHbmSS-q.js} +1 -1
- package/dist/assets/{generate-Dl2EJ_SR.js → generate-COfYQFmT.js} +4 -4
- package/dist/assets/{generateBeats-DZHkvFvh.js → generateBeats-COflu5Zi.js} +1 -1
- package/dist/assets/{generateCourse-C9qvaJRo.js → generateCourse-BldPpgdh.js} +1 -1
- package/dist/assets/generateLive-DGwnpIip.js +24 -0
- package/dist/assets/homeTarget-CwFsJYwb.js +1 -0
- package/dist/assets/index-BIUYTk1W.css +1 -0
- package/dist/assets/index-LiHcEJt_.js +22 -0
- package/dist/assets/kokoro-DXRj0KQX.js +1 -0
- package/dist/assets/ledger-BssK9Pv2.js +1 -0
- package/dist/assets/{lib-DMAxsZKm.css → lib-DP9Kuxqk.css} +1 -1
- package/dist/assets/{liveSchema-B4bQtO88.js → liveSchema-DyfND6P2.js} +2 -2
- package/dist/assets/{loader-DKJEcbPm.js → loader-DgMLGfAC.js} +2 -2
- package/dist/assets/localBudget-CxLP6bjE.js +1 -0
- package/dist/assets/{mastery-CUfDeuqO.js → mastery-DB5qpRAy.js} +1 -1
- package/dist/assets/{media-BvwzACIX.js → media-VLRh6CX2.js} +2 -2
- package/dist/assets/{model-BFRTN9Eh.js → model-CAewjw45.js} +1 -1
- package/dist/assets/{neighborhoods-D7QjURnE.js → neighborhoods-CqECCmo8.js} +1 -1
- package/dist/assets/{notes-B0-EE0FK.js → notes-DzIAEESd.js} +1 -1
- package/dist/assets/pen-DtEW1xf4.js +24 -0
- package/dist/assets/{perfProbe-B9zJpjo9.js → perfProbe-ezVn1mOu.js} +1 -1
- package/dist/assets/{pin-CZAIlpXt.js → pin-BPGVDgnq.js} +1 -1
- package/dist/assets/pin-BXyyKnci.css +1 -0
- package/dist/assets/{planTracker-KKAtTBWs.js → planTracker-BwoKEftp.js} +1 -1
- package/dist/assets/portal-B9DmFo6J.js +1 -0
- package/dist/assets/{prewarm-B4ELBOxf.js → prewarm-BgUqAJbF.js} +1 -1
- package/dist/assets/providers-0DthJW_I.js +1 -0
- package/dist/assets/quietHours-DyynzDyC.js +1 -0
- package/dist/assets/{ready-jtAUOb62.js → ready-yBSGJubb.js} +1 -1
- package/dist/assets/{registry-CqhpLHM7.js → registry-7tKTrzeZ.js} +1 -1
- package/dist/assets/{registry-BFrgx1tE.js → registry-B53EEn8S.js} +1 -1
- package/dist/assets/{registry-CPiwQhAm.js → registry-BDXwUn3i.js} +1 -1
- package/dist/assets/{registry-CD1s3eQ-.js → registry-BJEvFgoL.js} +1 -1
- package/dist/assets/{registry-B0GIHERt.js → registry-BQzvA61G.js} +1 -1
- package/dist/assets/{registry-6DGRAB1m.js → registry-BT6ydF33.js} +1 -1
- package/dist/assets/{registry-D8O0apUT.js → registry-BdHj_oIs.js} +1 -1
- package/dist/assets/{registry-Dru0JcTa.css → registry-BgWzEkxc.css} +1 -1
- package/dist/assets/{registry-Vp8VuMV0.js → registry-Bl2qfp5V.js} +1 -1
- package/dist/assets/registry-Bl7zAWKt.js +2 -0
- package/dist/assets/{registry-6MOD-I7p.js → registry-BlujNlQJ.js} +1 -1
- package/dist/assets/{registry-C28gYnVq.js → registry-CE1T0z9x.js} +1 -1
- package/dist/assets/{registry-4mMEt1Xy.css → registry-CEV5h2cu.css} +1 -1
- package/dist/assets/{registry-ZOWzhOHk.css → registry-CGB0jkFI.css} +1 -1
- package/dist/assets/{registry-BFbfXK-W.js → registry-Cgo4C0ux.js} +1 -1
- package/dist/assets/registry-CwRTUk0R.js +1 -0
- package/dist/assets/{registry-GeAC3ZD7.js → registry-D06LKiUk.js} +1 -1
- package/dist/assets/registry-Dbe9TQPw.css +1 -0
- package/dist/assets/registry-Diyud3DF.js +1 -0
- package/dist/assets/registry-DjvftnY2.css +1 -0
- package/dist/assets/{registry-w4R6c89s.js → registry-KRYoVMCh.js} +1 -1
- package/dist/assets/registry-QbArAJKB.js +1 -0
- package/dist/assets/registry-dmR14XnY.css +1 -0
- package/dist/assets/registry-g2sBcIrf.css +1 -0
- package/dist/assets/{registry-CcOO8UZr.js → registry-qRfnKTt4.js} +1 -1
- package/dist/assets/{relate-BYdM5eiV.js → relate-aQFFr11O.js} +1 -1
- package/dist/assets/{replay-TYXO0Brm.js → replay-CalqEgdW.js} +1 -1
- package/dist/assets/route-CMdTFx0P.js +1 -0
- package/dist/assets/{run-Df10YPyB.js → run-CuHaB8wF.js} +1 -1
- package/dist/assets/{run-gmqUaxcL.js → run-CwMSPOps.js} +1 -1
- package/dist/assets/{run-DlvA3l28.js → run-DCQrxgHA.js} +1 -1
- package/dist/assets/select-wEtBn9U6.js +3 -0
- package/dist/assets/shapes-BwoDrn09.js +1 -0
- package/dist/assets/shard000-Bx6Nmt0m.js +1 -0
- package/dist/assets/shard001-CL6O9SLr.js +1 -0
- package/dist/assets/shard002-vLQ0Ss-O.js +1 -0
- package/dist/assets/shard003-kKZdpzuh.js +1 -0
- package/dist/assets/shard004-CdVohAu1.js +1 -0
- package/dist/assets/shard005-CMzF_uJB.js +1 -0
- package/dist/assets/shard006-DQoDWuoN.js +1 -0
- package/dist/assets/shard007-Ck0N0IUk.js +1 -0
- package/dist/assets/shard008-Dt395x0Q.js +1 -0
- package/dist/assets/shard009-D_z8Lhqh.js +1 -0
- package/dist/assets/shard010-CQfR6lnk.js +1 -0
- package/dist/assets/shard011-l-w2t2Ie.js +1 -0
- package/dist/assets/shard012-BTw_UO1C.js +1 -0
- package/dist/assets/shard013-D8ZjKKYb.js +1 -0
- package/dist/assets/shard014-Cth_76It.js +1 -0
- package/dist/assets/shard015-DdYJVsHx.js +1 -0
- package/dist/assets/shard016-BdlBf9uZ.js +1 -0
- package/dist/assets/shard017-C3HTxh6t.js +1 -0
- package/dist/assets/shard018-Mf4wvqVk.js +1 -0
- package/dist/assets/shard019-Dpcy1Arx.js +1 -0
- package/dist/assets/shard020-BNvKfQld.js +1 -0
- package/dist/assets/shard021-D0kpI_PQ.js +1 -0
- package/dist/assets/shard022-Cjms7kAe.js +1 -0
- package/dist/assets/shard023-Bdwci7fy.js +1 -0
- package/dist/assets/shard024-BBoyPtpP.js +1 -0
- package/dist/assets/shard025-lMGpgN_0.js +3 -0
- package/dist/assets/shard026-Bp3UVI4_.js +1 -0
- package/dist/assets/shard027-C4HTpdeT.js +1 -0
- package/dist/assets/shard028-BsFTH3Sf.js +1 -0
- package/dist/assets/shard029-B3dEcXPy.js +1 -0
- package/dist/assets/shard030-DWwA-fNs.js +5 -0
- package/dist/assets/shard031-RhqA_0nH.js +1 -0
- package/dist/assets/shard032-BlZdG1Yi.js +1 -0
- package/dist/assets/shard033-Dmx2lOjI.js +1 -0
- package/dist/assets/shard034-BLOFKJT4.js +1 -0
- package/dist/assets/shard035-DMXdH733.js +1 -0
- package/dist/assets/shard036-DzOiEn23.js +1 -0
- package/dist/assets/shard037-BcHfVaYM.js +1 -0
- package/dist/assets/shard038-KozOx-Jh.js +1 -0
- package/dist/assets/shard039-apdILQwC.js +1 -0
- package/dist/assets/shard040-BrNXGaBi.js +1 -0
- package/dist/assets/shard041-D6eq9h1u.js +4 -0
- package/dist/assets/shard042-M-L34DbY.js +1 -0
- package/dist/assets/shard043-Ct6_C2pN.js +1 -0
- package/dist/assets/shard044-Bo0iaVHx.js +1 -0
- package/dist/assets/shard045-9ccZ4Y_N.js +1 -0
- package/dist/assets/shard046-eXoP478L.js +1 -0
- package/dist/assets/shard047-N56r6Lsz.js +1 -0
- package/dist/assets/shard048-BeKX7cI8.js +1 -0
- package/dist/assets/shard049-hPaNN2sL.js +1 -0
- package/dist/assets/shard050-B-YpP0B6.js +1 -0
- package/dist/assets/shard051-Bww5_KB2.js +1 -0
- package/dist/assets/shard052-DErwF8Df.js +1 -0
- package/dist/assets/shard053-C-qGH4jz.js +1 -0
- package/dist/assets/shard054-kcSxZrSj.js +1 -0
- package/dist/assets/shard055-CsETBTqa.js +1 -0
- package/dist/assets/shard056-CdBR4qTC.js +1 -0
- package/dist/assets/shard057-yRUG8B9e.js +1 -0
- package/dist/assets/shard058-DeDAnECG.js +1 -0
- package/dist/assets/shard059-Dh6jbDnW.js +1 -0
- package/dist/assets/shard060-B5kpWrhW.js +1 -0
- package/dist/assets/shard061-BTnj5LZA.js +1 -0
- package/dist/assets/shard062-DC7LTaNc.js +1 -0
- package/dist/assets/shard063-C8SIGCfd.js +1 -0
- package/dist/assets/shard064-DLyASocW.js +1 -0
- package/dist/assets/shard065-Cy_yV4ry.js +1 -0
- package/dist/assets/shard066-BmjVQqFX.js +1 -0
- package/dist/assets/shard067-uZUJsqtF.js +1 -0
- package/dist/assets/shard068-CXVjyJU4.js +1 -0
- package/dist/assets/shard069-CyfmjAm-.js +4 -0
- package/dist/assets/shard070-CxN3xiuY.js +12 -0
- package/dist/assets/shard071-CP1WrYC-.js +1 -0
- package/dist/assets/shard072-D6L5Yr05.js +1 -0
- package/dist/assets/shard073-DFEzkwg2.js +1 -0
- package/dist/assets/shard074-BSv3rvRL.js +1 -0
- package/dist/assets/shard075-Bt0OjGVd.js +1 -0
- package/dist/assets/shard076-DZHs0uzd.js +1 -0
- package/dist/assets/{share-kW3pZ027.js → share--tpc1nLE.js} +1 -1
- package/dist/assets/speed-BOytg6bC.js +1 -0
- package/dist/assets/store-B2Rpbqgg.js +1 -0
- package/dist/assets/store-Ba9vzL4H.js +1 -0
- package/dist/assets/store-BwyOArJl.js +1 -0
- package/dist/assets/store-ruEsXJjU.js +1 -0
- package/dist/assets/streamParse-BX0bAppQ.js +2 -0
- package/dist/assets/{templates-DHeyJ32F.css → templates-BIkAr4YH.css} +1 -1
- package/dist/assets/{theme-7IrMJ70_.js → theme-D5D55hZi.js} +1 -1
- package/dist/assets/{threads-Cu2t3070.js → threads-DNfxMTwx.js} +1 -1
- package/dist/assets/{useDashboardLoop-DDqCFJKY.js → useDashboardLoop-ifcuVRo-.js} +3 -3
- package/dist/assets/{useDashboards-SRk8LqHe.js → useDashboards-lgQnk2Al.js} +1 -1
- package/dist/assets/useFocusTrap-CJmpNZv2.js +1 -0
- package/dist/assets/useInView-DsTvv7L_.js +1 -0
- package/dist/assets/useInterval-DDgFrel2.js +1 -0
- package/dist/assets/{useLiveConfig-Cpy0_E_-.js → useLiveConfig-B4CmBiAK.js} +1 -1
- package/dist/assets/useStudy-CySgE3Cx.js +1 -0
- package/dist/assets/{walkSync-CPsd-xu7.js → walkSync-DBne70gg.js} +1 -1
- package/dist/demo-assets/CREDITS.md +94 -50
- package/dist/demo-assets/images/arnel-lighthouse.avif +0 -0
- package/dist/demo-assets/images/cliff-fields.avif +0 -0
- package/dist/demo-assets/images/crater-panorama.avif +0 -0
- package/dist/demo-assets/images/furnas-lake.avif +0 -0
- package/dist/demo-assets/images/green-coast-raw.avif +0 -0
- package/dist/demo-assets/images/green-coast.avif +0 -0
- package/dist/demo-assets/images/island-coast-poster.avif +0 -0
- package/dist/demo-assets/images/nordeste-town.avif +0 -0
- package/dist/demo-assets/images/sea-cliffs.avif +0 -0
- package/dist/demo-assets/images/sete-cidades.avif +0 -0
- package/dist/demo-assets/images/tea-terraces.avif +0 -0
- package/dist/demo-assets/pdf/cfd-primer.pdf +0 -0
- package/dist/demo-assets/video/island-coast.webm +0 -0
- package/dist/fonts/fonts.css +18 -0
- package/dist/index.html +38 -10
- package/dist/legal/PRIVACY.md +1 -0
- package/dist/legal/TERMS.md +1 -1
- package/dist/legal/THIRD-PARTY.txt +13 -5
- package/package.json +3 -2
- package/dist/assets/AnnotationLayer-qV6CIUZv.js +0 -0
- package/dist/assets/AtlasView-B5fkQhO6.css +0 -1
- package/dist/assets/BriefingPlayer-TpFZB77N.css +0 -1
- package/dist/assets/CanvasSkeleton-iy6DBvde.css +0 -1
- package/dist/assets/CardEditor-BY1bZiV6.css +0 -1
- package/dist/assets/ConversationVideoStudio-C1sd4k53.js +0 -1
- package/dist/assets/ConversationVideoStudio-CIAMxElj.css +0 -1
- package/dist/assets/CourseLessonReader-YCcNKEW7.js +0 -2
- package/dist/assets/CoursesApp-Dz6xjf4V.js +0 -2
- package/dist/assets/CrossExamPanel-CZ0ShGma.css +0 -1
- package/dist/assets/DashboardDetail-DOfm8UCQ.js +0 -2
- package/dist/assets/DashboardLoopGate-Cf0y_HQ7.js +0 -2
- package/dist/assets/DashboardLoopRuntime-CnN5VayH.js +0 -1
- package/dist/assets/DashboardsApp-_gbfdbX6.js +0 -2
- package/dist/assets/DeepZoomApp-fRXCJHHZ.css +0 -1
- package/dist/assets/DelegatePanel-CHEB-OZl.js +0 -33
- package/dist/assets/DelegatePanel-Cf85-0qE.css +0 -1
- package/dist/assets/DemoGallery-DBqnu8TR.js +0 -1
- package/dist/assets/FlagshipShowcase-3qQDOK6g.js +0 -1
- package/dist/assets/ForecastPanel-Da2ZBUrE.css +0 -1
- package/dist/assets/GalleryApp-BWQ-J450.js +0 -1
- package/dist/assets/LeverPanel-DhpJY76O.css +0 -1
- package/dist/assets/LibraryOverlay-CnKWDMG_.css +0 -1
- package/dist/assets/LiveApp-C-OPBybd.css +0 -1
- package/dist/assets/LiveApp-DH3OxJFV.js +0 -79
- package/dist/assets/LiveSettings-CmgrMqvK.css +0 -1
- package/dist/assets/LiveSettings-CuVMy7rZ.js +0 -6
- package/dist/assets/MindShape-C_Bo9hW9.js +0 -1
- package/dist/assets/MindShape-CaPeUo-a.css +0 -1
- package/dist/assets/PresentationDeck-B_EI33Pp.js +0 -1
- package/dist/assets/PrismApp-DtLsPiQF.js +0 -2
- package/dist/assets/PrismAskController-DBoxQSJR.css +0 -1
- package/dist/assets/PrismOverlay-BTfAicBt.css +0 -1
- package/dist/assets/Recap-DCiiWNiV.css +0 -1
- package/dist/assets/RippleApp-D5j2VCt2.js +0 -2
- package/dist/assets/RippleOverlay-_iiZsQVZ.css +0 -1
- package/dist/assets/RippleOverlay-zcXAHPuJ.js +0 -6
- package/dist/assets/SeeDontRead-Dqfzha0V.js +0 -1
- package/dist/assets/ShareModal-D1QuQEko.css +0 -1
- package/dist/assets/ShareModal-DWxlrJSz.js +0 -2
- package/dist/assets/SrsReview-B1B2VekR.css +0 -1
- package/dist/assets/TopicCanvas-LMI0zC7R.js +0 -2
- package/dist/assets/TopicCanvas-uRuHi99s.css +0 -1
- package/dist/assets/WhyMachineOverlay-BZk3PVTl.css +0 -1
- package/dist/assets/WorldOverlay-BaQNNClA.js +0 -2
- package/dist/assets/ZoomDeck-B2SjNwY7.css +0 -1
- package/dist/assets/canvas-Bsx3eSaS.js +0 -1
- package/dist/assets/capture-D8uPIcfj.js +0 -2
- package/dist/assets/dashboards-C1u2ks-d.css +0 -1
- package/dist/assets/generateLive-B6purd69.js +0 -51
- package/dist/assets/homeTarget-CsO8nY7z.js +0 -1
- package/dist/assets/index-Dk0QapqQ.js +0 -22
- package/dist/assets/index-DmKgC_TJ.css +0 -1
- package/dist/assets/kokoro-P_fkcX-A.js +0 -1
- package/dist/assets/layout-CEoNLr-w.js +0 -1
- package/dist/assets/pageVisibility-BxUVsw7Z.js +0 -1
- package/dist/assets/pen-DNMslo3e.js +0 -24
- package/dist/assets/pin-D-4Zjiik.css +0 -1
- package/dist/assets/portal-Dogggsub.js +0 -1
- package/dist/assets/providers-BovElgRL.js +0 -1
- package/dist/assets/quietHours-CeBje_uU.js +0 -1
- package/dist/assets/registry-BSX3aFUw.js +0 -1
- package/dist/assets/registry-Bv1f5UU4.js +0 -2
- package/dist/assets/registry-Cse2wF7x.css +0 -1
- package/dist/assets/registry-Dye5m3qt.css +0 -1
- package/dist/assets/registry-GeSy4i7R.css +0 -1
- package/dist/assets/registry-WHd1PwU3.js +0 -1
- package/dist/assets/registry-Xl8mAnKq.js +0 -1
- package/dist/assets/registry-tkd3UhWn.css +0 -1
- package/dist/assets/shapes-Cx5SCKgj.js +0 -39
- package/dist/assets/speed-K5_Ebj-8.js +0 -1
- package/dist/assets/store-BfHRbVKz.js +0 -1
- package/dist/assets/store-CsjDEADX.js +0 -1
- package/dist/assets/store-DpObYU1u.js +0 -1
- package/dist/assets/store-gohr8YVT.js +0 -1
- package/dist/assets/streamParse-B-Gjwa9T.js +0 -2
- package/dist/assets/useFocusTrap-DBtkeyRy.js +0 -1
- package/dist/assets/useInView-CXTOAEV3.js +0 -1
- package/dist/assets/useStudy-GwNcQWtv.js +0 -1
- package/dist/demo-assets/images/basalt-cliffs.jpg +0 -0
- package/dist/demo-assets/images/capelinhos.jpg +0 -0
- package/dist/demo-assets/images/cliff-fields.jpg +0 -0
- package/dist/demo-assets/images/crater-panorama.jpg +0 -0
- package/dist/demo-assets/images/furnas-lake.jpg +0 -0
- package/dist/demo-assets/images/green-coast.jpg +0 -0
- package/dist/demo-assets/images/overcast-coast.jpg +0 -0
- package/dist/demo-assets/images/patchwork-fields.jpg +0 -0
- package/dist/demo-assets/images/ponta-delgada.jpg +0 -0
- package/dist/demo-assets/images/sete-cidades.jpg +0 -0
- package/dist/demo-assets/images/village-street.jpg +0 -0
- package/dist/demo-assets/video/azores-film.webm +0 -0
- /package/dist/assets/{BriefingPlayer-C0D_2ILa.js → BriefingPlayer-74mRKyjl.js} +0 -0
- /package/dist/assets/{CrossExamPanel-CdIYUu-B.js → CrossExamPanel-BfeGr5iw.js} +0 -0
- /package/dist/assets/{ForecastPanel-zPUh2ClQ.js → ForecastPanel-OfW39WGS.js} +0 -0
- /package/dist/assets/{LeverPanel-D1SNRGdm.js → LeverPanel-vco5UK2U.js} +0 -0
- /package/dist/assets/{WhyMachineOverlay-ks9-rRiL.js → WhyMachineOverlay-D2K7y8SA.js} +0 -0
- /package/dist/assets/{lib-B7OE1ZQQ.js → lib-u95BsX_B.js} +0 -0
- /package/dist/assets/{registry-7poQfBaM.js → registry-C4Yh05pk.js} +0 -0
- /package/dist/assets/{registry-Daypk4uR.js → registry-S3j4OpCH.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.pb-head{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px;display:flex}.pb-caption{font-size:var(--fs-xl);letter-spacing:-.025em;color:var(--text-primary);font-weight:740}.pb-frac{font-size:var(--fs-lg);font-weight:650}.pb-frac-d{font-size:var(--fs-xs);opacity:.7;margin-left:1px}.pb-track{border-radius:var(--r-full);gap:3px;height:16px;padding:0;display:flex;overflow:hidden}.pb-seg{background:var(--track);min-width:8px;transition:transform var(--m-fast) var(--ease-out), filter var(--m-fast);border-radius:3px;position:relative;overflow:hidden}.pb-seg:first-child{border-radius:var(--r-full) 3px 3px var(--r-full)}.pb-seg:last-child{border-radius:3px var(--r-full) var(--r-full) 3px}.pb-seg-fill{border-radius:inherit;background:var(--seg-c);opacity:0;transition:opacity var(--m-normal) var(--ease-out);position:absolute;inset:0}.pb-seg.done .pb-seg-fill{opacity:1}.pb-seg.pending .pb-seg-fill{opacity:.34;background:repeating-linear-gradient(115deg, var(--seg-c) 0 5px, transparent 5px 10px)}.pb-seg.on{filter:brightness(1.12);transform:translateY(-1px)}.pb-seg-check{z-index:1;width:10px;height:100%;color:var(--surface-elevated);margin:0 auto;display:block;position:relative}.pb-legend{flex-wrap:wrap;gap:6px;max-width:100%;margin-top:14px;display:flex}.pb-chip{cursor:pointer;max-width:100%;font-size:var(--fs-sm);color:var(--text-secondary);border-radius:var(--r-full);border:1px solid var(--line);overflow-wrap:anywhere;text-align:left;min-width:0;transition:border-color var(--m-fast), background var(--m-fast), color var(--m-fast);background:0 0;align-items:center;gap:6px;padding:4px 9px;font-weight:600;display:inline-flex}.pb-chip.on{color:var(--text-primary);border-color:var(--line-strong);background:var(--surface-glass)}.pb-dot{border-radius:var(--r-full);flex-shrink:0;width:8px;height:8px}.pb-detail{border-radius:var(--r-md);background:color-mix(in oklab, var(--seg-c) 9%, transparent);border:1px solid color-mix(in oklab, var(--seg-c) 22%, transparent);align-items:baseline;gap:10px;margin-top:12px;padding:10px 12px;display:flex}.pb-detail-label{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.pb-detail-pct{font-size:var(--fs-md);color:var(--seg-c);flex-shrink:0;font-weight:700}.pb-detail-sub{font-size:var(--fs-sm);text-align:right;overflow-wrap:anywhere;min-width:0;margin-left:auto}.step-rail{gap:0;display:flex}.step-rail.horizontal{flex-direction:row}.step-rail.horizontal .step-node{flex-direction:column;align-items:center;gap:6px}.step-rail.vertical{flex-direction:column;gap:4px}.step-node{text-align:left;font:inherit;color:inherit;background:0 0;border:none;flex:1;align-items:center;gap:10px;min-width:0;padding:4px 2px;display:flex;position:relative}.step-rail.vertical .step-node{flex:none;padding:6px 2px}.step-node:disabled{opacity:.55}.step-rail.horizontal .step-node:after{content:"";background:var(--line);z-index:0;height:2px;position:absolute;top:15px;left:calc(50% + 16px);right:calc(16px - 50%)}.step-rail.horizontal .step-node:last-child:after{display:none}.step-rail.horizontal .step-node.done:after{background:var(--step-c)}.step-rail.vertical .step-node:after{content:"";background:var(--line);z-index:0;width:2px;height:calc(100% - 8px);position:absolute;top:32px;left:15px}.step-rail.vertical .step-node:last-child:after{display:none}.step-rail.vertical .step-node.done:after{background:var(--step-c)}.step-dot{z-index:1;border-radius:var(--r-full);border:1.5px solid var(--line-strong);background:var(--surface-elevated);width:30px;height:30px;color:var(--text-muted);transition:border-color var(--m-normal), background var(--m-normal), color var(--m-normal), transform var(--m-fast) var(--ease-spring);flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.step-dot .ic{width:14px;height:14px}.step-idx{font-size:var(--fs-sm);font-weight:700}.step-node.done .step-dot{background:var(--step-c);border-color:var(--step-c);color:var(--surface-elevated)}.step-node.active .step-dot{border-color:var(--step-c);color:var(--step-c);box-shadow:0 0 0 4px color-mix(in oklab, var(--step-c) 18%, transparent);transform:scale(1.08)}.step-node.locked .step-dot{color:var(--text-muted)}.step-node:not(:disabled):hover .step-dot{border-color:var(--step-c)}.step-meta{flex-direction:column;gap:1px;min-width:0;display:flex}.step-rail.horizontal .step-meta{display:none}.step-rail.horizontal .step-node.active .step-meta{text-align:center;align-self:stretch;align-items:center;display:flex}.step-rail.horizontal .step-label,.step-rail.horizontal .step-sub{white-space:normal}.step-label{font-size:var(--fs-md);color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-weight:650;overflow:hidden}.step-node.locked .step-label{color:var(--text-secondary)}.step-sub{font-size:var(--fs-xs);white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}.step-detail{border-radius:var(--r-md);background:var(--surface-glass);border:1px solid var(--line);font-size:var(--fs-md);color:var(--text-secondary);overflow-wrap:anywhere;margin-top:14px;padding:12px 14px;line-height:1.5}@media (prefers-reduced-motion:no-preference){.step-detail{animation:sd-in var(--m-normal) var(--ease-out)}}@keyframes sd-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.stl-chips{flex-wrap:wrap;gap:6px;margin-bottom:14px;display:flex}.stl-chip{cursor:pointer;font-size:var(--fs-sm);color:var(--text-secondary);border-radius:var(--r-full);border:1px solid var(--line);transition:border-color var(--m-fast), background var(--m-fast), color var(--m-fast);background:0 0;align-items:center;gap:6px;padding:4px 10px;font-weight:600;display:inline-flex}.stl-chip.on{color:var(--text-primary);border-color:var(--line-strong);background:var(--surface-glass)}.stl-chip-dot{border-radius:var(--r-full);flex-shrink:0;width:7px;height:7px}.stl-chip-n{font-size:var(--fs-xs);opacity:.7}.stl-list{flex-direction:column;max-height:480px;display:flex;overflow-y:auto}.stl-row{gap:12px;padding-bottom:14px;display:flex}.stl-row:last-child{padding-bottom:0}.stl-rail{flex-direction:column;flex-shrink:0;align-items:center;display:flex;position:relative}.stl-rail:after{content:"";background:var(--line);width:2px;position:absolute;top:18px;bottom:-14px;left:50%;transform:translate(-50%)}.stl-row:last-child .stl-rail:after{display:none}.stl-node{z-index:1;border-radius:var(--r-full);border:2px solid var(--ev-c);background:var(--surface-elevated);width:18px;height:18px;color:var(--ev-c);justify-content:center;align-items:center;display:flex;position:relative}.stl-node .ic{width:10px;height:10px}.stl-node.done,.stl-node.failed{background:var(--ev-c);color:var(--surface-elevated)}.stl-node.pending{border-color:var(--line-strong)}.stl-pulse{border-radius:var(--r-full);background:var(--ev-c);width:7px;height:7px}@media (prefers-reduced-motion:no-preference){.stl-pulse{animation:stl-pulse 1.6s var(--ease-out) infinite}}@keyframes stl-pulse{0%,to{box-shadow:0 0 0 0 color-mix(in oklab, var(--ev-c) 55%, transparent)}55%{box-shadow:0 0 0 5px color-mix(in oklab, var(--ev-c) 0%, transparent)}}.stl-body{flex:1;min-width:0;padding-top:0}.stl-top{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.stl-label{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:600}.stl-time{font-size:var(--fs-sm);flex-shrink:0}.stl-detail{font-size:var(--fs-sm);overflow-wrap:anywhere;margin-top:2px;line-height:1.45;display:block}.stl-empty{font-size:var(--fs-sm);padding:8px 0}.hg-banner{border-radius:var(--r-md);background:color-mix(in oklab, var(--hg-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--hg-c) 24%, transparent);align-items:center;gap:8px;margin-bottom:12px;padding:8px 12px;display:flex}.hg-banner-dot{border-radius:var(--r-full);background:var(--hg-c);width:9px;height:9px;box-shadow:0 0 8px var(--hg-c);flex-shrink:0}.hg-banner-text{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.hg-banner-pct{font-size:var(--fs-sm);flex-shrink:0;margin-left:auto}.hg-grid{grid-template-columns:repeat(var(--hg-cols), minmax(0, 1fr));gap:7px;display:grid}.hg-cell{cursor:pointer;text-align:left;border-radius:var(--r-sm);min-height:56px;font:inherit;background:var(--surface-glass);border:1px solid var(--line);border-left:3px solid var(--cell-c);transition:border-color var(--m-fast), background var(--m-fast), transform var(--m-fast) var(--ease-spring);flex-direction:column;gap:3px;padding:9px 10px;display:flex;position:relative;overflow:hidden}.hg-cell.on{border-color:var(--line-strong);background:var(--surface-glass-strong);transform:translateY(-2px)}.hg-cell-glow{opacity:0;background:color-mix(in oklab, var(--cell-c) 10%, transparent);transition:opacity var(--m-fast);position:absolute;inset:0}.hg-cell.on .hg-cell-glow{opacity:1}.hg-cell-label{font-size:var(--fs-sm);color:var(--text-secondary);overflow-wrap:anywhere;min-width:0;font-weight:600;line-height:1.25;position:relative}.hg-cell-val{font-size:var(--fs-lg);color:var(--cell-c);letter-spacing:-.01em;overflow-wrap:anywhere;min-width:0;font-weight:700;position:relative}.hg-cell.ok .hg-cell-val{color:var(--insight)}.hg-cell.warn .hg-cell-val{color:var(--warning)}.hg-cell.down .hg-cell-val{color:var(--danger)}.hg-detail{opacity:0;max-height:0;transition:max-height var(--m-normal) var(--ease-out), opacity var(--m-normal), margin-top var(--m-normal);margin-top:0;overflow:hidden}.hg-detail[data-open=true]{opacity:1;max-height:120px;margin-top:12px}.hg-detail-top{align-items:baseline;gap:8px;display:flex}.hg-detail-name{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.hg-detail-state{font-size:var(--fs-sm);color:var(--hg-c);flex-shrink:0;margin-left:auto;font-weight:650}.hg-detail-sub{font-size:var(--fs-sm);overflow-wrap:anywhere;margin-top:3px;line-height:1.45;display:block}.es-body{text-align:center;flex-direction:column;align-items:center;padding:8px 4px 4px;display:flex}.es-art{width:96px;height:96px;margin-bottom:14px}.es-svg{width:100%;height:100%;display:block}@media (prefers-reduced-motion:no-preference){.es-art{animation:es-float 4.5s var(--ease-out) infinite}}@keyframes es-float{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.es-headline{font-size:var(--fs-lg);letter-spacing:-.01em;color:var(--text-primary);text-wrap:balance;overflow-wrap:anywhere;max-width:100%;margin-bottom:6px;font-weight:680}.es-copy{font-size:var(--fs-md);color:var(--text-secondary);text-wrap:pretty;overflow-wrap:anywhere;max-width:30ch;line-height:1.5}.es-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:16px;display:flex}.es-btn{cursor:pointer;max-width:100%;font-size:var(--fs-sm);border-radius:var(--r-full);color:var(--surface-elevated);background:var(--es-c);overflow-wrap:anywhere;transition:filter var(--m-fast), transform var(--m-fast) var(--ease-spring), background var(--m-fast);border:1px solid #0000;align-items:center;gap:7px;padding:8px 16px;font-weight:650;display:inline-flex}.es-btn .ic{flex-shrink:0;width:15px;height:15px}.es-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.es-btn.done{background:var(--insight)}.sk-toggle{cursor:pointer;font-size:var(--fs-xs);letter-spacing:0;text-transform:none;color:var(--text-secondary);border-radius:var(--r-full);border:1px solid var(--line);transition:color var(--m-fast), border-color var(--m-fast), background var(--m-fast);background:0 0;align-items:center;gap:5px;margin-left:auto;padding:3px 9px;font-weight:600;display:inline-flex}.sk-toggle .ic{width:12px;height:12px}.sk-toggle:hover{color:var(--text-primary);border-color:var(--line-strong);background:var(--surface-glass)}.sk-stage{flex-direction:column;gap:12px;display:flex}.sk-line,.sk-chip,.sk-pill,.sk-avatar,.sk-thumb,.sk-bar{background:var(--track);border-radius:var(--r-sm);position:relative;overflow:hidden}.sk-line{border-radius:var(--r-full);height:11px}.sk-w80{width:80%}.sk-w60{width:60%}.sk-w50{width:50%}.sk-w40{width:40%}.sk-row{align-items:center;gap:12px;display:flex}.sk-chip{border-radius:var(--r-sm);flex-shrink:0;width:34px;height:34px}.sk-stack{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.sk-pill{border-radius:var(--r-full);flex-shrink:0;width:48px;height:22px}.sk-avatar{border-radius:var(--r-full);flex-shrink:0;width:48px;height:48px}.sk-profile{border-bottom:1px solid var(--line-soft);align-items:center;gap:14px;padding-bottom:4px;display:flex}.sk-media{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.sk-thumb{aspect-ratio:4/3;border-radius:var(--r-md)}.sk-chart{flex-direction:column;gap:12px;display:flex}.sk-bars{align-items:flex-end;gap:8px;height:92px;display:flex}.sk-bar{height:var(--h);border-radius:var(--r-sm) var(--r-sm) 3px 3px;flex:1}@media (prefers-reduced-motion:no-preference){.sk-card.loading .sk-line:after,.sk-card.loading .sk-chip:after,.sk-card.loading .sk-pill:after,.sk-card.loading .sk-avatar:after,.sk-card.loading .sk-thumb:after,.sk-card.loading .sk-bar:after{content:"";background:linear-gradient(100deg, transparent 20%, var(--grid-strong) 50%, transparent 80%);animation:sk-shimmer 1.5s var(--ease-out) infinite;position:absolute;inset:0;transform:translate(-100%)}}@keyframes sk-shimmer{to{transform:translate(100%)}}.sk-card.loaded .sk-line,.sk-card.loaded .sk-chip,.sk-card.loaded .sk-pill,.sk-card.loaded .sk-avatar,.sk-card.loaded .sk-thumb,.sk-card.loaded .sk-bar{background:color-mix(in oklab, var(--presence) 14%, var(--surface-glass));transition:background var(--m-normal) var(--ease-out)}.sk-loaded-note{font-size:var(--fs-sm);align-items:center;gap:6px;margin-top:12px;display:flex}.sl-prompt{font-size:var(--fs-md);margin-bottom:8px;line-height:1.45}.sl-readout{min-width:0;margin-bottom:16px}.sl-value{font-size:var(--fs-stat);letter-spacing:-.035em;overflow-wrap:anywhere;font-weight:760;line-height:1;display:block}.sl-track{border-radius:var(--r-full);background:var(--track);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;height:8px;margin:8px 6px;position:relative}.sl-fill{border-radius:var(--r-full);background:linear-gradient(90deg, color-mix(in oklab, var(--sl-c) 70%, transparent), var(--sl-c));position:absolute;top:0;bottom:0;left:0}.sl-handle{width:0;height:0;position:absolute;top:50%}.sl-handle-dot{border-radius:var(--r-full);background:var(--surface-elevated);border:2.5px solid var(--sl-c);cursor:grab;width:20px;height:20px;transition:transform var(--m-fast) var(--ease-spring), box-shadow var(--m-fast);position:absolute;top:0;left:0;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0000002e}.sl-track:hover .sl-handle-dot{transform:translate(-50%,-50%)scale(1.1)}.sl-track.drag .sl-handle-dot{box-shadow:0 0 0 6px color-mix(in oklab, var(--sl-c) 16%, transparent);cursor:grabbing;transform:translate(-50%,-50%)scale(1.18)}.sl-track:focus-visible{outline:none}.sl-track:focus-visible .sl-handle-dot{box-shadow:0 0 0 5px color-mix(in oklab, var(--sl-c) 22%, transparent)}.sl-marks{height:30px;margin:6px 6px 0;position:relative;overflow:hidden}.sl-mark{cursor:pointer;font:inherit;background:0 0;border:none;flex-direction:column;align-items:center;gap:4px;max-width:72px;padding:0;display:flex;position:absolute;top:0;transform:translate(-50%)}.sl-mark-tick{border-radius:var(--r-full);background:var(--grid-strong);width:2px;height:6px;transition:background var(--m-fast);flex-shrink:0}.sl-mark-label{font-size:var(--fs-2xs);white-space:nowrap;text-overflow:ellipsis;max-width:100%;transition:color var(--m-fast);overflow:hidden}.sl-mark.on .sl-mark-tick{background:var(--sl-c)}.sl-mark.on .sl-mark-label{color:var(--sl-c)}.sl-output{border-radius:var(--r-md);background:var(--surface-glass);border:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding:11px 14px;display:flex}.sl-output-label{font-size:var(--fs-sm);overflow-wrap:anywhere;min-width:0}.sl-output-val{font-size:var(--fs-xl);letter-spacing:-.02em;overflow-wrap:anywhere;text-align:right;flex-shrink:0;min-width:0;font-weight:720}.sg-control{grid-template-columns:repeat(var(--sg-n), minmax(0, 1fr));border-radius:var(--r-full);background:var(--track);border:1px solid var(--line);gap:0;padding:3px;display:grid;position:relative}.sg-thumb{border-radius:var(--r-full);background:var(--surface-elevated);border:1px solid var(--line-strong);transition:left var(--m-normal) var(--ease-out);position:absolute;top:3px;bottom:3px;box-shadow:0 1px 4px #00000029}.sg-opt{z-index:1;cursor:pointer;font:inherit;font-size:var(--fs-sm);color:var(--text-secondary);border-radius:var(--r-full);white-space:nowrap;text-overflow:ellipsis;transition:color var(--m-fast);background:0 0;border:none;justify-content:center;align-items:center;gap:6px;padding:7px 6px;font-weight:600;display:inline-flex;position:relative;overflow:hidden}.sg-opt-ic{flex-shrink:0;width:14px;height:14px}@container (width<=340px){.sg-opt-ic{display:none}}.sg-opt.on{color:var(--sg-c)}.sg-opt:not(.on):hover{color:var(--text-primary)}.sg-preview{min-height:40px;margin-top:16px}@media (prefers-reduced-motion:no-preference){.sg-preview{animation:sg-in var(--m-normal) var(--ease-out)}}@keyframes sg-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.sg-value{font-size:var(--fs-2xl);letter-spacing:-.03em;overflow-wrap:anywhere;margin-bottom:6px;font-weight:750;line-height:1}.sg-caption{font-size:var(--fs-md);overflow-wrap:anywhere;line-height:1.5}.rf-head{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:16px;display:flex}.rf-bound{font-size:var(--fs-lg);color:var(--text-primary);letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:700;overflow:hidden}.rf-count{font-size:var(--fs-sm);color:var(--text-secondary);text-align:center;flex-shrink:0}.rf-count strong{font-size:var(--fs-md);font-weight:720}.rf-track{border-radius:var(--r-full);background:var(--track);touch-action:none;height:8px;margin:0 10px 4px;position:relative}.rf-sel{border-radius:var(--r-full);background:linear-gradient(90deg, color-mix(in oklab, var(--rf-c) 70%, transparent), var(--rf-c));position:absolute;top:0;bottom:0}.rf-handle{border-radius:var(--r-full);background:var(--surface-elevated);border:2.5px solid var(--rf-c);cursor:grab;width:20px;height:20px;transition:transform var(--m-fast) var(--ease-spring), box-shadow var(--m-fast);padding:0;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0000002e}.rf-handle:hover{transform:translate(-50%,-50%)scale(1.1)}.rf-handle.drag{box-shadow:0 0 0 6px color-mix(in oklab, var(--rf-c) 16%, transparent);cursor:grabbing;z-index:2;transform:translate(-50%,-50%)scale(1.18)}.rf-list{flex-direction:column;gap:8px;max-height:320px;margin-top:16px;display:flex;overflow-y:auto}.rf-item{border-radius:var(--r-sm);background:var(--surface-glass);align-items:center;gap:10px;padding:8px 10px;display:flex;position:relative;overflow:hidden}.rf-item-bar{opacity:.5;position:absolute;inset:0}.rf-item-fill{background:color-mix(in oklab, var(--rf-c) 9%, transparent);border-radius:0 var(--r-sm) var(--r-sm) 0;transition:width var(--m-normal) var(--ease-out);position:absolute;top:0;bottom:0;left:0}.rf-item-label{font-size:var(--fs-md);color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-weight:600;position:relative;overflow:hidden}.rf-item-meta{font-size:var(--fs-xs);white-space:nowrap;text-overflow:ellipsis;flex-shrink:0;max-width:40%;position:relative;overflow:hidden}.rf-item-val{font-size:var(--fs-sm);color:var(--rf-c);flex-shrink:0;margin-left:auto;font-weight:700;position:relative}.rf-more{font-size:var(--fs-sm);overflow-wrap:anywhere;padding:2px}.ri-main{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.ri-glyphs{flex-wrap:wrap;gap:4px;min-width:0;max-width:100%;display:flex}.ri-btn{cursor:pointer;color:var(--track);background:0 0;border:none;flex-shrink:0;padding:2px;line-height:0}.ri-glyph{width:30px;height:30px;transition:transform var(--m-fast) var(--ease-spring), color var(--m-fast);display:block}.ri-btn.on{color:var(--ri-c)}.ri-btn.preview{color:color-mix(in oklab, var(--ri-c) 78%, transparent)}.ri-btn:hover .ri-glyph{transform:scale(1.18)rotate(-4deg)}.ri-meta{align-items:baseline;gap:8px;display:flex}.ri-val{font-size:var(--fs-2xl);letter-spacing:-.03em;font-weight:760;line-height:1}.ri-word{font-size:var(--fs-md);font-weight:600}.ri-facets{border-top:1px solid var(--line-soft);flex-direction:column;gap:9px;max-height:360px;margin-top:18px;padding-top:14px;display:flex;overflow-y:auto}.ri-facet{align-items:center;gap:10px;display:flex}.ri-facet-label{font-size:var(--fs-sm);color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;width:96px;font-weight:600;overflow:hidden}.ri-facet-track{border-radius:var(--r-full);background:var(--track);flex:1;min-width:0;height:6px;overflow:hidden}.ri-facet-fill{border-radius:var(--r-full);background:var(--ri-c);height:100%;transition:width var(--m-normal) var(--ease-out);display:block}.ri-facet-val{font-size:var(--fs-sm);text-align:right;flex-shrink:0;width:28px}.a11-banner{border-radius:var(--r-md);background:color-mix(in oklab, var(--a11-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--a11-c) 24%, transparent);align-items:center;gap:8px;margin-bottom:12px;padding:8px 12px;display:flex}.a11-banner-dot{border-radius:var(--r-full);background:var(--a11-c);width:9px;height:9px;box-shadow:0 0 8px var(--a11-c);flex-shrink:0}.a11-banner-text{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.a11-score{font-size:var(--fs-sm,13px);color:var(--a11-c);border-radius:var(--r-full);background:color-mix(in oklab, var(--a11-c) 14%, transparent);flex-shrink:0;margin-left:auto;padding:2px 8px;font-weight:700}.a11-tally{flex-wrap:wrap;gap:7px;margin-bottom:12px;display:flex}.a11-tally-pill{border-radius:var(--r-full);background:var(--surface-glass);border:1px solid var(--line);font-size:var(--fs-sm);color:var(--text-secondary);align-items:center;gap:6px;padding:4px 9px;display:inline-flex}.a11-tally-dot{border-radius:var(--r-full);background:var(--a11-c);flex-shrink:0;width:7px;height:7px}.a11-tally-n{color:var(--a11-c);font-weight:700}.a11-tally-label{font-weight:600}.a11-list{flex-direction:column;gap:8px;max-height:420px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.a11-row{border-radius:var(--r-sm);background:var(--surface-glass);border:1px solid var(--line);border-left:3px solid var(--a11-c);align-items:flex-start;gap:10px;padding:9px 11px;display:flex}.a11-badge{border-radius:var(--r-full);color:#fff;background:var(--a11-c);flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex;position:relative}.a11-badge-ic{display:block}.a11-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.a11-top{align-items:baseline;gap:8px;display:flex}.a11-label{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.a11-state{font-size:var(--fs-xs);color:var(--a11-c);text-transform:uppercase;letter-spacing:.04em;flex-shrink:0;margin-left:auto;font-weight:650}.a11-note{font-size:var(--fs-sm);overflow-wrap:anywhere;line-height:1.45}.a11-empty{font-size:var(--fs-sm);padding:10px 2px}.ps-readout{flex-wrap:wrap;align-items:baseline;gap:10px;min-width:0;margin-bottom:16px;display:flex}.ps-num{font-size:var(--fs-stat);letter-spacing:-.035em;color:var(--ps-c);font-weight:760;line-height:1}.ps-num-d{font-size:var(--fs-lg);color:var(--text-muted);margin-left:1px;font-weight:650}.ps-word{font-size:var(--fs-sm,13px);color:var(--text-secondary);overflow-wrap:anywhere;min-width:0;font-weight:650}.ps-faces{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;display:grid}.ps-face{border-radius:var(--r-md);color:var(--text-muted);transition:color var(--m-normal), background var(--m-fast), border-color var(--m-fast), transform var(--m-fast) var(--ease-spring);border:1px solid #0000;flex-direction:column;align-items:center;gap:5px;padding:8px 2px 6px;display:flex}.ps-face.on{color:var(--face-c);background:color-mix(in oklab, var(--face-c) 11%, transparent);border-color:color-mix(in oklab, var(--face-c) 30%, transparent);transform:translateY(-2px)}.ps-face-svg{width:100%;max-width:40px;height:auto;margin-inline:auto;display:block}.ps-face-n{font-size:var(--fs-sm);font-weight:700}.ps-face.on .ps-face-n{color:var(--face-c)}.ps-vas-track{border-radius:var(--r-full);background:linear-gradient(90deg, color-mix(in oklab, var(--insight) 55%, var(--track)), color-mix(in oklab, var(--warning) 55%, var(--track)) 60%, color-mix(in oklab, var(--danger) 65%, var(--track)));height:10px;margin:18px 8px 0;position:relative}.ps-vas-fill{border-radius:var(--r-full);background:color-mix(in oklab, var(--ps-c) 22%, transparent);position:absolute;top:0;bottom:0;left:0}.ps-vas-marker{width:0;height:0;position:absolute;top:50%}.ps-vas-marker:before{content:"";border-radius:var(--r-full);background:var(--surface-elevated);border:3px solid var(--ps-c);width:18px;height:18px;position:absolute;top:0;left:0;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0000002e}.ps-vas-flag{font-size:var(--fs-sm);color:var(--surface-elevated);background:var(--ps-c);border-radius:var(--r-full);white-space:nowrap;padding:2px 7px;font-weight:700;position:absolute;top:-28px;left:0;transform:translate(-50%)}.ps-vas-anchors{font-size:var(--fs-sm);color:var(--text-secondary);justify-content:space-between;gap:10px;margin:10px 8px 0;font-weight:600;display:flex}.ps-anchor-lo,.ps-anchor-hi{overflow-wrap:anywhere;min-width:0}.ps-anchor-hi{text-align:right}.ps-vas-ticks{font-size:var(--fs-xs);color:var(--text-muted);justify-content:space-between;margin:8px 8px 0;display:flex}.ps-tick{text-align:center;font-variant-numeric:tabular-nums;flex:1}.ps-tick.on{color:var(--ps-c);font-weight:700}.ht-summary{align-items:baseline;gap:10px;min-width:0;margin-bottom:14px;display:flex}.ht-summary-pct{font-size:var(--fs-2xl);letter-spacing:-.03em;color:var(--presence);font-weight:760;line-height:1}.ht-summary-text{font-size:var(--fs-sm,13px);color:var(--text-secondary);overflow-wrap:anywhere;min-width:0;font-weight:600}.ht-scroll{margin:0 -2px;padding:0 2px;overflow-x:auto}.ht-grid{grid-template-columns:minmax(118px, 1.4fr) repeat(var(--ht-cols), minmax(28px, 1fr));align-items:center;gap:6px;min-width:0;display:grid}.ht-corner{min-height:1px}.ht-day{text-align:center;font-size:var(--fs-xs);color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;text-overflow:ellipsis;white-space:nowrap;font-weight:650;overflow:hidden}.ht-habit{align-items:center;gap:9px;min-width:0;display:flex}.ht-habit-ring{flex-shrink:0;width:32px;height:32px;position:relative}.ht-ring{width:32px;height:32px;display:block}.ht-ring-track{stroke:var(--track)}.ht-ring-fill{stroke:var(--presence);transition:stroke-dashoffset var(--m-slow,.6s) var(--ease-out)}.ht-habit-pct{font-size:var(--fs-2xs);color:var(--text-secondary);justify-content:center;align-items:center;font-weight:700;display:flex;position:absolute;inset:0}.ht-habit-name{font-size:var(--fs-sm);color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:600;overflow:hidden}.ht-cell{aspect-ratio:1;border-radius:var(--r-sm);background:var(--surface-glass);border:1px solid var(--line);max-height:34px;transition:background var(--m-fast), border-color var(--m-fast);justify-content:center;align-items:center;display:flex}.ht-cell.done{background:color-mix(in oklab, var(--presence) 16%, transparent);border-color:color-mix(in oklab, var(--presence) 34%, transparent)}.ht-check{width:14px;height:14px;color:var(--presence)}.ht-empty{border-radius:var(--r-full);background:var(--track);width:6px;height:6px}.sg-counters{flex-wrap:wrap;align-items:stretch;gap:10px;margin-bottom:16px;display:flex}.sg-counter{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.sg-counter-best{border-left:1px solid var(--line-soft);margin-left:auto;padding-left:14px}.sg-counter-n{font-size:var(--fs-2xl);letter-spacing:-.03em;color:var(--text-primary);font-weight:760;line-height:1}.sg-counter-cur .sg-counter-n{color:var(--warning)}.sg-counter-flame{color:var(--warning);display:inline-flex}.sg-counter-flame .ic{width:18px;height:18px}.sg-counter-label{font-size:var(--fs-sm);color:var(--text-secondary);overflow-wrap:anywhere;min-width:0;font-weight:600}.sg-grid{flex-wrap:wrap;gap:6px;margin-bottom:14px;display:flex}.sg-dot{border-radius:var(--r-sm);width:16px;height:16px;transition:background var(--m-fast), box-shadow var(--m-fast);flex-shrink:0}.sg-dot.done{background:color-mix(in oklab, var(--warning) 38%, var(--track))}.sg-dot.miss{background:var(--track);border:1px dashed var(--line-strong)}.sg-dot.chain{background:var(--warning);box-shadow:0 0 0 2px color-mix(in oklab, var(--warning) 20%, transparent)}.sg-foot{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.sg-chain-note{font-size:var(--fs-sm);color:var(--text-secondary);overflow-wrap:anywhere;min-width:0;font-weight:600}.sg-kept{font-size:var(--fs-sm);flex-shrink:0}.lt-chips{flex-wrap:wrap;gap:6px;margin-bottom:14px;display:flex}.lt-chip{cursor:pointer;font-size:var(--fs-sm);color:var(--text-secondary);border-radius:var(--r-full);border:1px solid var(--line);transition:border-color var(--m-fast), background var(--m-fast), color var(--m-fast);background:0 0;align-items:center;gap:6px;padding:4px 10px;font-weight:600;display:inline-flex}.lt-chip.on{color:var(--text-primary);border-color:var(--line-strong);background:var(--surface-glass)}.lt-chip-dot{border-radius:var(--r-full);flex-shrink:0;width:7px;height:7px}.lt-chip-n{font-size:var(--fs-xs);opacity:.7}.lt-list{flex-direction:column;max-height:480px;display:flex;overflow-y:auto}.lt-row{gap:12px;padding-bottom:14px;display:flex}.lt-row:last-child{padding-bottom:0}.lt-rail{flex-direction:column;flex-shrink:0;align-items:center;padding-top:3px;display:flex;position:relative}.lt-rail:after{content:"";background:var(--line);width:2px;position:absolute;top:16px;bottom:-14px;left:50%;transform:translate(-50%)}.lt-row:last-child .lt-rail:after{display:none}.lt-node{z-index:1;border-radius:var(--r-full);background:var(--ev-c);width:11px;height:11px;box-shadow:0 0 0 3px color-mix(in oklab, var(--ev-c) 18%, transparent);position:relative}.lt-body{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.lt-top{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.lt-kind{font-size:var(--fs-md);color:var(--text-primary);font-weight:650}.lt-date{font-size:var(--fs-sm);flex-shrink:0}.lt-meta,.lt-detail{font-size:var(--fs-sm);overflow-wrap:anywhere;line-height:1.4}.lt-countdown{font-size:var(--fs-xs);letter-spacing:.01em;color:var(--ev-c);border-radius:var(--r-full);background:color-mix(in oklab, var(--ev-c) 14%, transparent);align-self:flex-start;margin-top:2px;padding:2px 8px;font-weight:700}.lt-countdown.overdue{background:color-mix(in oklab, var(--danger) 20%, transparent)}.lt-empty{font-size:var(--fs-sm);padding:8px 0}.bt-bill{font-size:var(--fs-sm);font-family:var(--mono);margin-top:-6px;margin-bottom:12px}.bt-banner{border-radius:var(--r-md);background:color-mix(in oklab, var(--bt-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--bt-c) 24%, transparent);align-items:center;gap:8px;margin-bottom:16px;padding:8px 12px;display:flex}.bt-banner-dot{border-radius:var(--r-full);background:var(--bt-c);width:9px;height:9px;box-shadow:0 0 8px var(--bt-c);flex-shrink:0}.bt-banner-text{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.bt-rail{flex-wrap:wrap;align-items:flex-start;row-gap:18px;display:flex}.bt-unit{align-items:center;min-width:0;display:flex}.bt-connector{background:var(--line);justify-content:center;align-self:center;align-items:center;width:20px;min-width:20px;height:2px;margin:0 2px;display:flex;position:relative;overflow:visible}.bt-connector.dead{background:repeating-linear-gradient(to right, var(--danger) 0 4px, transparent 4px 8px)}.bt-dead-ic{width:12px;height:12px;color:var(--danger);background:var(--surface-elevated);border-radius:var(--r-full);position:absolute}.bt-stage{text-align:center;flex-direction:column;align-items:center;gap:5px;min-width:76px;max-width:128px;display:flex}.bt-stage.moot{opacity:.42}.bt-node{border-radius:var(--r-full);border:2px solid var(--st-c);background:var(--surface-elevated);width:26px;height:26px;color:var(--st-c);flex-shrink:0;justify-content:center;align-items:center;display:flex}.bt-node .ic{width:13px;height:13px}.bt-stage.done .bt-node,.bt-stage.failed .bt-node{background:var(--st-c);color:var(--surface-elevated)}.bt-stage.pending .bt-node{border-color:var(--line-strong)}.bt-pulse{border-radius:var(--r-full);background:var(--st-c);width:8px;height:8px}.bt-name{font-size:var(--fs-sm);color:var(--text-primary);overflow-wrap:anywhere;font-weight:650;line-height:1.25}.bt-vote{flex-direction:column;align-items:center;gap:3px;width:100%;display:flex}.bt-vote-n{font-size:var(--fs-xs);color:var(--text-secondary);font-weight:700}.bt-vote-bar{border-radius:var(--r-full);background:color-mix(in oklab, var(--danger) 35%, var(--track));width:100%;height:4px;overflow:hidden}.bt-vote-fill{background:var(--insight);border-radius:var(--r-full);height:100%;transition:width var(--m-normal) var(--ease-out);display:block}.bt-empty{font-size:var(--fs-sm);padding:8px 0}.tb-banner{border-radius:var(--r-md);background:color-mix(in oklab, var(--tb-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--tb-c) 24%, transparent);align-items:center;gap:8px;margin-bottom:14px;padding:8px 12px;display:flex}.tb-banner-dot{border-radius:var(--r-full);background:var(--tb-c);width:9px;height:9px;box-shadow:0 0 8px var(--tb-c);flex-shrink:0}.tb-banner-text{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.tb-list{flex-direction:column;gap:10px;max-height:520px;display:flex;overflow-y:auto}.tb-row{border-radius:var(--r-sm);background:var(--surface-glass);border:1px solid var(--line);border-left:3px solid var(--esi-c);gap:12px;padding:10px 12px;display:flex}.tb-badge{border-radius:var(--r-full);background:var(--esi-c);flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.tb-badge-n{font-size:var(--fs-lg);color:var(--surface-elevated);font-weight:800}.tb-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.tb-top{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.tb-complaint{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.tb-wait{font-size:var(--fs-sm);flex-shrink:0}.tb-esi-label{font-size:var(--fs-xs);letter-spacing:.02em;text-transform:uppercase;color:var(--esi-c);font-weight:700}.tb-vitals{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.tb-vital{font-size:var(--fs-xs);border-radius:var(--r-full);background:var(--surface-glass-strong);color:var(--text-secondary);overflow-wrap:anywhere;padding:3px 8px}.tb-vital.abn{color:var(--danger);background:color-mix(in oklab, var(--danger) 14%, transparent)}.tb-empty{font-size:var(--fs-sm);padding:8px 0}.mhs-instrument{font-size:var(--fs-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--text-muted);border-radius:var(--r-full);border:1px solid var(--line);margin-left:8px;padding:2px 8px;font-weight:700}.mhs-rows{flex-direction:column;gap:9px;margin-bottom:16px;display:flex}.mhs-row{align-items:center;gap:10px;display:flex}.mhs-prompt{min-width:0;font-size:var(--fs-sm);color:var(--text-secondary);overflow-wrap:anywhere;flex:1}.mhs-dots{flex-shrink:0;gap:4px;display:flex}.mhs-dot{border-radius:var(--r-full);background:var(--track);border:1px solid var(--line-strong);width:9px;height:9px}.mhs-dot.on{background:var(--presence);border-color:var(--presence)}.mhs-score{text-align:right;width:16px;font-size:var(--fs-sm);color:var(--text-secondary);flex-shrink:0;font-weight:700}.mhs-anchor{font-size:var(--fs-xs);text-align:right;overflow-wrap:anywhere;flex-shrink:0;max-width:120px}@container (width<=340px){.mhs-row{flex-wrap:wrap;row-gap:3px}.mhs-anchor{text-align:left;flex:1 0 100%;max-width:none}}.mhs-empty{font-size:var(--fs-sm);padding:8px 0}.mhs-total{align-items:baseline;gap:6px;margin-bottom:8px;display:flex}.mhs-total-val{font-size:var(--fs-xl);color:var(--text-primary);font-weight:800}.mhs-total-max{font-size:var(--fs-sm)}.mhs-total-band{font-size:var(--fs-sm);margin-left:auto;font-weight:700}.mhs-bar{flex-direction:column;gap:6px;display:flex}.mhs-bar-track{border-radius:var(--r-full);background:var(--track);height:10px;position:relative;overflow:visible}.mhs-bar-seg{background:color-mix(in oklab, var(--seg-c) 55%, transparent);border-radius:var(--r-full);transition:opacity var(--m-fast);position:absolute;top:0;bottom:0}.mhs-bar-seg.on{background:var(--seg-c)}.mhs-bar-marker{background:var(--text-primary);border-radius:var(--r-full);width:2px;height:16px;position:absolute;top:-3px;transform:translate(-1px)}.mhs-bar-labels{flex-wrap:wrap;gap:4px 12px;display:flex}.mhs-bar-label{font-size:var(--fs-xs);font-weight:650}.uf-stats{gap:18px;margin-bottom:12px;display:flex}.uf-stat{flex-direction:column;gap:1px;display:flex}.uf-stat-val{font-size:var(--fs-lg);color:var(--text-primary);font-weight:700}.uf-stat-label{font-size:var(--fs-xs)}.uf-banner{border-radius:var(--r-md);background:color-mix(in oklab, var(--uf-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--uf-c) 24%, transparent);align-items:center;gap:8px;margin-bottom:12px;padding:8px 12px;display:flex}.uf-banner-dot{border-radius:var(--r-full);background:var(--uf-c);width:9px;height:9px;box-shadow:0 0 8px var(--uf-c);flex-shrink:0}.uf-banner-text{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.uf-tally{flex-wrap:wrap;gap:7px;margin-bottom:12px;display:flex}.uf-tally-pill{border-radius:var(--r-full);background:var(--surface-glass);border:1px solid var(--line);font-size:var(--fs-sm);color:var(--text-secondary);align-items:center;gap:6px;padding:4px 9px;display:inline-flex}.uf-tally-dot{border-radius:var(--r-full);background:var(--uf-c);flex-shrink:0;width:7px;height:7px}.uf-tally-n{color:var(--uf-c);font-weight:700}.uf-tally-label{font-weight:600}.uf-list{flex-direction:column;gap:8px;max-height:420px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.uf-row{border-radius:var(--r-sm);background:var(--surface-glass);border:1px solid var(--line);border-left:3px solid var(--uf-c);align-items:flex-start;gap:10px;padding:9px 11px;display:flex}.uf-badge{border-radius:var(--r-full);width:22px;height:22px;color:var(--surface-elevated);background:var(--uf-c);font-size:var(--fs-xs);flex-shrink:0;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.uf-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.uf-top{align-items:baseline;gap:8px;display:flex}.uf-label{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.uf-state{font-size:var(--fs-xs);color:var(--uf-c);text-transform:uppercase;letter-spacing:.04em;flex-shrink:0;margin-left:auto;font-weight:650}.uf-note{font-size:var(--fs-sm);overflow-wrap:anywhere;line-height:1.45}.uf-affected{color:var(--text-secondary);font-weight:650}.uf-empty{font-size:var(--fs-sm);padding:10px 2px}.rbd-banner{border-radius:var(--r-md);background:color-mix(in oklab, var(--rbd-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--rbd-c) 24%, transparent);align-items:center;gap:8px;margin-bottom:10px;padding:8px 12px;display:flex}.rbd-banner-dot{border-radius:var(--r-full);background:var(--rbd-c);width:9px;height:9px;box-shadow:0 0 8px var(--rbd-c);flex-shrink:0}.rbd-banner-text{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.rbd-banner-pct{font-size:var(--fs-sm);flex-shrink:0;margin-left:auto}.rbd-legend{flex-wrap:wrap;gap:7px;margin-bottom:12px;display:flex}.rbd-legend-pill{border-radius:var(--r-full);background:var(--surface-glass);border:1px solid var(--line);font-size:var(--fs-xs);color:var(--text-secondary);align-items:center;gap:6px;padding:3px 9px;display:inline-flex}.rbd-legend-dot{border-radius:var(--r-full);background:var(--rbd-c);flex-shrink:0;width:7px;height:7px}.rbd-legend-n{color:var(--rbd-c);font-weight:700}.rbd-legend-label{font-weight:600}.rbd-grid{grid-template-columns:repeat(var(--rbd-cols), minmax(0, 1fr));gap:7px;display:grid}.rbd-cell{cursor:pointer;text-align:left;border-radius:var(--r-sm);min-height:52px;font:inherit;background:var(--surface-glass);border:1px solid var(--line);border-left:3px solid var(--cell-c);transition:border-color var(--m-fast), background var(--m-fast), transform var(--m-fast) var(--ease-spring);flex-direction:column;gap:3px;padding:9px 10px;display:flex;position:relative;overflow:hidden}.rbd-cell.on{border-color:var(--line-strong);background:var(--surface-glass-strong);transform:translateY(-2px)}.rbd-cell-glow{opacity:0;background:color-mix(in oklab, var(--cell-c) 10%, transparent);transition:opacity var(--m-fast);position:absolute;inset:0}.rbd-cell.on .rbd-cell-glow{opacity:1}.rbd-cell-label{font-size:var(--fs-sm);color:var(--text-secondary);overflow-wrap:anywhere;min-width:0;font-weight:600;line-height:1.25;position:relative}.rbd-cell-val{font-size:var(--fs-xs);color:var(--cell-c);overflow-wrap:anywhere;min-width:0;position:relative}.rbd-detail{opacity:0;max-height:0;transition:max-height var(--m-normal) var(--ease-out), opacity var(--m-normal), margin-top var(--m-normal);margin-top:0;overflow:hidden}.rbd-detail[data-open=true]{opacity:1;max-height:120px;margin-top:12px}.rbd-detail-top{align-items:baseline;gap:8px;display:flex}.rbd-detail-name{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:650}.rbd-detail-state{font-size:var(--fs-sm);color:var(--rbd-c);flex-shrink:0;margin-left:auto;font-weight:650}.rbd-detail-sub{font-size:var(--fs-sm);margin-top:3px;display:block}.imc-sub{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.imc-visa{font-size:var(--fs-xs);letter-spacing:.03em;text-transform:uppercase;color:var(--presence);border-radius:var(--r-full);background:color-mix(in oklab, var(--presence) 14%, transparent);padding:3px 9px;font-weight:700}.imc-priority{font-size:var(--fs-sm)}.imc-list{flex-direction:column;max-height:440px;display:flex;overflow-y:auto}.imc-row{gap:12px;padding-bottom:14px;display:flex}.imc-row:last-child{padding-bottom:0}.imc-rail{flex-direction:column;flex-shrink:0;align-items:center;display:flex;position:relative}.imc-rail:after{content:"";background:var(--line);width:2px;position:absolute;top:18px;bottom:-14px;left:50%;transform:translate(-50%)}.imc-row:last-child .imc-rail:after{display:none}.imc-node{z-index:1;border-radius:var(--r-full);border:2px solid var(--ev-c);background:var(--surface-elevated);width:18px;height:18px;color:var(--ev-c);justify-content:center;align-items:center;display:flex;position:relative}.imc-node .ic{width:10px;height:10px}.imc-node.done,.imc-node.failed{background:var(--ev-c);color:var(--surface-elevated)}.imc-node.pending{border-color:var(--line-strong)}.imc-pulse{border-radius:var(--r-full);background:var(--ev-c);width:7px;height:7px}.imc-body{flex:1;min-width:0}.imc-top{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.imc-label{font-size:var(--fs-md);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:600}.imc-date{font-size:var(--fs-sm);flex-shrink:0}.imc-state{font-size:var(--fs-xs);color:var(--ev-c);text-transform:uppercase;letter-spacing:.03em;margin-top:1px;font-weight:650;display:block}.imc-empty{font-size:var(--fs-sm);padding:8px 0}.imc-rfe{border-radius:var(--r-md);background:color-mix(in oklab, var(--rfe-c) 10%, transparent);border:1px solid color-mix(in oklab, var(--rfe-c) 24%, transparent);align-items:center;gap:8px;margin-top:14px;padding:8px 12px;display:flex}.imc-rfe-dot{border-radius:var(--r-full);background:var(--rfe-c);width:9px;height:9px;box-shadow:0 0 8px var(--rfe-c);flex-shrink:0}.imc-rfe-text{font-size:var(--fs-sm);color:var(--text-primary);overflow-wrap:anywhere;min-width:0;font-weight:600}.imc-rfe-countdown{font-size:var(--fs-xs);color:var(--rfe-c);flex-shrink:0;margin-left:auto;font-weight:700}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i}from"./icons-gLFQTv74.js";import{t as a}from"./richText-BkxJhl9N.js";import{n as o,r as s}from"./format-q0LwBjID.js";import{a as c,i as l,n as u,r as d,t as f}from"./scale-Bcgfo6Hp.js";import{n as p,t as m}from"./motion-DxHSlPN6.js";import{t as h}from"./registry-types-D3q_LrlV.js";import{n as g}from"./fitText-DQ2omSN0.js";var _=t(),v=r();function y({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,unit:o,delta:s,deltaDir:c=`up`,color:l=`var(--presence)`,points:u,footer:d,delay:f}){let p=i[t]||i.chart,[m,h]=(0,_.useState)(Math.max(0,u.length-1)),g=u.map(e=>e.v),y=g.length?Math.min(...g):0,b=(g.length?Math.max(...g):0)-y||1,x=e=>4+e/Math.max(1,u.length-1)*212,S=e=>52-(e-y)/b*48,C=u.map((e,t)=>`${x(t)},${S(e.v)}`).join(` `),w=`4,56 ${C} 216,56`,T=u[Math.min(m,u.length-1)];return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(f||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`insight-stat`,style:{marginBottom:4},children:[(0,v.jsx)(`span`,{className:`big tab-num`,"data-mark":`underline`,style:{color:l},children:r}),s&&(0,v.jsxs)(`span`,{className:`delta ${c}`,children:[(0,v.jsx)(i.arrowUp,{className:`ic`,style:{width:13,height:13,transform:c===`down`?`rotate(180deg)`:`none`}}),s]})]}),o&&(0,v.jsx)(`div`,{className:`ss-unit faint`,children:o}),(0,v.jsxs)(`div`,{className:`ss-spark`,style:{marginTop:12},children:[(0,v.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 220 56`,className:`ss-svg`,preserveAspectRatio:`none`,children:[(0,v.jsx)(`defs`,{children:(0,v.jsxs)(`linearGradient`,{id:`ssfill`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,v.jsx)(`stop`,{offset:`0%`,stopColor:l,stopOpacity:`0.22`}),(0,v.jsx)(`stop`,{offset:`100%`,stopColor:l,stopOpacity:`0`})]})}),(0,v.jsx)(`polygon`,{points:w,fill:`url(#ssfill)`}),(0,v.jsx)(`polyline`,{points:C,fill:`none`,stroke:l,strokeWidth:`2`,strokeLinejoin:`round`,strokeLinecap:`round`}),u.map((e,t)=>(0,v.jsx)(`rect`,{x:x(t)-220/u.length/2,y:0,width:220/u.length,height:56,fill:`transparent`,onMouseEnter:()=>h(t),style:{cursor:`pointer`}},t)),(0,v.jsx)(`line`,{x1:x(m),y1:0,x2:x(m),y2:56,stroke:`var(--hover-line)`,strokeWidth:`1`}),T&&(0,v.jsx)(`circle`,{cx:x(m),cy:S(T.v),r:`3.4`,fill:l,stroke:`var(--surface-elevated)`,strokeWidth:`1.5`})]}),(0,v.jsxs)(`div`,{className:`ss-tip`,children:[(0,v.jsx)(`span`,{className:`ss-tip-v tab-num`,style:{color:l},children:T?T.v.toLocaleString():`—`}),T?.label&&(0,v.jsx)(`span`,{className:`ss-tip-l faint`,children:T.label})]})]}),d&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function b({title:e,icon:t=`spark`,iconColor:n=`var(--insight)`,value:r,prefix:o=``,suffix:s=``,decimals:c=0,label:l,delta:u,deltaDir:d=`up`,color:f=`var(--presence)`,footer:p,delay:m}){let h=i[t]||i.spark,[g,y]=(0,_.useState)(0),b=(0,_.useRef)(0);(0,_.useEffect)(()=>{if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){y(r);return}let e=performance.now()+(m||0),t=n=>{let i=Math.max(0,Math.min(1,(n-e)/1100)),a=1-(1-i)**3;y(r*a),i<1&&(b.current=requestAnimationFrame(t))};return b.current=requestAnimationFrame(t),()=>cancelAnimationFrame(b.current)},[r,m]);let x=g.toLocaleString(void 0,{minimumFractionDigits:c,maximumFractionDigits:c});return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(m||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`ct-num tab-num`,"data-mark":`underline`,style:{color:f},children:[(0,v.jsx)(`span`,{className:`ct-affix`,children:o}),x,(0,v.jsx)(`span`,{className:`ct-affix`,children:s})]}),(0,v.jsxs)(`div`,{className:`ct-row`,children:[(0,v.jsx)(`span`,{className:`ct-label`,children:l}),u&&(0,v.jsxs)(`span`,{className:`delta ${d}`,children:[(0,v.jsx)(i.arrowUp,{className:`ic`,style:{width:13,height:13,transform:d===`down`?`rotate(180deg)`:`none`}}),u]})]}),p&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function x({title:e,icon:t=`sparkle`,iconColor:n=`var(--presence)`,value:r,unit:o,narrative:s,trend:c,trendDir:l=`up`,detail:u,color:d=`var(--presence)`,footer:f,delay:p}){let m=i[t]||i.sparkle,[h,g]=(0,_.useState)(!1);return(0,v.jsxs)(`div`,{className:`card reveal hero-card stats-card`,style:{"--delay":(p||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`hero-value tab-num`,"data-mark":`underline`,style:{"--hero-c":d},children:[r,o&&(0,v.jsx)(`span`,{className:`hero-unit`,children:o})]}),s&&(0,v.jsx)(`div`,{className:`hero-narrative`,dangerouslySetInnerHTML:a(s)}),c&&(0,v.jsxs)(`div`,{className:`hero-chip ${l} ${h?`open`:``}`,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onClick:()=>g(e=>!e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),g(e=>!e))},role:`button`,tabIndex:0,children:[(0,v.jsx)(i.arrowUp,{className:`ic`,style:{width:14,height:14,transform:l===`down`?`rotate(180deg)`:`none`}}),(0,v.jsx)(`span`,{children:c}),u&&(0,v.jsx)(i.chevR,{className:`ic hero-chip-caret`,style:{width:13,height:13}})]}),u&&(0,v.jsx)(`div`,{className:`hero-detail`,"data-open":h,dangerouslySetInnerHTML:a(u)}),f&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var S=130,C=56,w=1.5;function T({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,delta:o,deltaDir:s=`up`,color:c=`var(--presence)`,bars:l,footer:u,delay:d}){let f=i[t]||i.chart,p=l.length>40?l.slice(-40):l,[m,h]=(0,_.useState)(Math.max(0,p.length-1)),g=Math.max(...p,1);return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(d||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`tt-body`,children:[(0,v.jsxs)(`div`,{className:`tt-left`,children:[(0,v.jsx)(`div`,{className:`tt-value tab-num`,"data-mark":`underline`,style:{color:c},children:r}),(0,v.jsxs)(`div`,{className:`tt-delta delta ${s}`,children:[(0,v.jsx)(i.arrowUp,{className:`ic`,style:{width:14,height:14,transform:s===`down`?`rotate(180deg)`:`none`}}),o]})]}),(0,v.jsx)(`svg`,{className:`tt-bars`,viewBox:`0 0 ${S} ${C}`,width:`100%`,height:C,preserveAspectRatio:`none`,role:`group`,"aria-label":`recent trend`,children:p.map((e,t)=>{let n=S/p.length,r=Math.max(1,n-w),i=Math.min(C,Math.max(C*.08,e/g*C));return(0,v.jsx)(`rect`,{className:`tt-bar ${t===m?`on`:``}`,x:t*n+(n-r)/2,y:C-i,width:r,height:i,rx:1.5,fill:t===m?c:`var(--track)`,onMouseEnter:()=>h(t),children:(0,v.jsx)(`title`,{children:String(e)})},t)})})]}),u&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(u)})]})}function E({title:e,icon:t=`shield`,iconColor:n=`var(--insight)`,score:r,grade:o,caption:s,color:c=`var(--insight)`,components:l=[],footer:u,delay:d}){let f=i[t]||i.shield,[p,m]=(0,_.useState)(null),h=Math.max(0,Math.min(100,r))/100,g=2*Math.PI*46;return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(d||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`sb-body`,children:[(0,v.jsxs)(`div`,{className:`sb-ring`,children:[(0,v.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 120 120`,className:`sb-svg`,children:[(0,v.jsx)(`circle`,{cx:`60`,cy:`60`,r:46,fill:`none`,stroke:`var(--track)`,strokeWidth:`9`}),(0,v.jsx)(`circle`,{cx:`60`,cy:`60`,r:46,fill:`none`,stroke:c,strokeWidth:`9`,strokeLinecap:`round`,strokeDasharray:g,strokeDashoffset:g*(1-h),transform:`rotate(-90 60 60)`,className:`sb-arc`})]}),(0,v.jsxs)(`div`,{className:`sb-center`,children:[(0,v.jsx)(`div`,{className:`sb-score tab-num`,"data-mark":`underline`,style:{color:c},children:o??Math.round(r)}),o&&(0,v.jsx)(`div`,{className:`sb-sub tab-num`,children:Math.round(r)})]})]}),(0,v.jsxs)(`div`,{className:`sb-list`,children:[s&&(0,v.jsx)(`div`,{className:`sb-caption faint`,children:s}),l.map((e,t)=>{let n=e.color||c,r=p===t;return(0,v.jsxs)(`div`,{className:`sb-comp ${r?`on`:``}`,onMouseEnter:()=>m(t),onMouseLeave:()=>m(null),children:[(0,v.jsx)(`span`,{className:`sb-comp-dot`,style:{background:n}}),(0,v.jsx)(`span`,{className:`sb-comp-label`,children:e.label}),(0,v.jsx)(`span`,{className:`sb-comp-track`,children:(0,v.jsx)(`span`,{className:`sb-comp-fill`,style:{width:e.value+`%`,background:n}})}),(0,v.jsx)(`span`,{className:`sb-comp-val tab-num`,style:r?{color:n}:void 0,children:e.value})]},t)})]})]}),u&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function D({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,percentile:r,value:o,unit:s,lowLabel:c=`p0`,highLabel:l=`p100`,color:u=`var(--presence)`,footer:d,delay:f}){let p=i[t]||i.chart,[m,h]=(0,_.useState)(!1),g=Math.max(0,Math.min(100,r)),y=Math.max(1,Math.round(100-g));return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(f||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`pb-head`,children:[(0,v.jsx)(`span`,{className:`pb-value tab-num`,"data-mark":`underline`,style:{color:u},children:o}),s&&(0,v.jsx)(`span`,{className:`pb-unit faint`,children:s}),(0,v.jsxs)(`span`,{className:`pb-pct tab-num`,children:[Math.round(g),`th pct`]})]}),(0,v.jsxs)(`div`,{className:`pb-track`,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[(0,v.jsx)(`div`,{className:`pb-grad`}),[25,50,75].map(e=>(0,v.jsx)(`span`,{className:`pb-tick`,style:{left:e+`%`}},e)),(0,v.jsx)(`div`,{className:`pb-fill`,style:{width:g+`%`,background:`color-mix(in oklab, ${u} 22%, transparent)`}}),(0,v.jsx)(`div`,{className:`pb-marker`,style:{left:g+`%`,background:u},children:(0,v.jsxs)(`span`,{className:`pb-tip ${m?`on`:``}`,style:{borderColor:u,"--pb-tip-bias":`${50-g}%`},children:[`top `,y,`%`]})})]}),(0,v.jsxs)(`div`,{className:`pb-axis faint`,children:[(0,v.jsx)(`span`,{children:c}),(0,v.jsx)(`span`,{children:l})]}),d&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function O({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,left:r,right:o,connector:s=`→`,ratioLabel:c=`ratio`,footer:l,delay:u}){let d=i[t]||i.layers,[f,p]=(0,_.useState)(null),m=r.color||`var(--presence)`,h=o.color||`var(--insight)`,g=r.weight+o.weight||1,y=o.weight===0?`—`:(r.weight/o.weight).toFixed(2),b=r.weight/g*100;return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(u||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsxs)(`div`,{className:`sp-row`,children:[(0,v.jsxs)(`div`,{className:`sp-side ${f===`left`?`on`:``}`,onMouseEnter:()=>p(`left`),onMouseLeave:()=>p(null),children:[(0,v.jsx)(`div`,{className:`sp-val tab-num`,style:{color:m},children:r.value}),(0,v.jsx)(`div`,{className:`sp-label`,children:r.label}),r.sub&&(0,v.jsx)(`div`,{className:`sp-sub faint`,children:r.sub})]}),(0,v.jsx)(`div`,{className:`sp-connector`,children:(0,v.jsx)(`span`,{className:`sp-arrow`,children:s})}),(0,v.jsxs)(`div`,{className:`sp-side right ${f===`right`?`on`:``}`,onMouseEnter:()=>p(`right`),onMouseLeave:()=>p(null),children:[(0,v.jsx)(`div`,{className:`sp-val tab-num`,style:{color:h},children:o.value}),(0,v.jsx)(`div`,{className:`sp-label`,children:o.label}),o.sub&&(0,v.jsx)(`div`,{className:`sp-sub faint`,children:o.sub})]})]}),(0,v.jsxs)(`div`,{className:`sp-bar`,children:[(0,v.jsx)(`span`,{className:`sp-bar-l`,style:{width:b+`%`,background:m}}),(0,v.jsx)(`span`,{className:`sp-bar-r`,style:{width:100-b+`%`,background:h}})]}),(0,v.jsxs)(`div`,{className:`sp-ratio`,children:[(0,v.jsx)(`span`,{className:`sp-ratio-v tab-num`,"data-mark":`underline`,children:y}),(0,v.jsx)(`span`,{className:`sp-ratio-l faint`,children:c})]}),l&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function k({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,cols:r=2,tiles:o,footer:s,delay:c}){let l=i[t]||i.table,[u,d]=(0,_.useState)(null);return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(c||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsx)(`div`,{className:`sc-grid`,style:{"--sc-cols":r},children:o.map((e,t)=>{let n=e.icon?i[e.icon]||i.spark:null,r=e.color||`var(--presence)`,o=u===t;return(0,v.jsxs)(`div`,{className:`sc-tile ${o?`on`:``}`,onMouseEnter:()=>d(t),onMouseLeave:()=>d(null),children:[(0,v.jsxs)(`div`,{className:`sc-tile-top`,children:[n&&(0,v.jsx)(n,{className:`ic sc-tile-ic`,style:{color:r}}),(0,v.jsx)(`span`,{className:`sc-tile-label`,children:e.label})]}),(0,v.jsx)(`div`,{className:`sc-tile-val tab-num`,style:{color:r},children:e.value}),e.delta&&(0,v.jsxs)(`div`,{className:`sc-tile-delta delta ${e.deltaDir||`up`}`,children:[(0,v.jsx)(i.arrowUp,{className:`ic`,style:{width:12,height:12,transform:e.deltaDir===`down`?`rotate(180deg)`:`none`}}),e.delta]}),e.detail&&(0,v.jsx)(`div`,{className:`sc-tile-detail`,"data-open":o,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),s&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function A({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,prefix:r=``,suffix:o=``,steps:s,footer:c,delay:l}){let u=i[t]||i.layers,[d,f]=(0,_.useState)(null),p=0,m=s.map(e=>(e.isBase||e.isTotal?p=e.delta:p+=e.delta,{...e,running:p})),h=Math.max(...m.map(e=>Math.abs(e.running)),1),g=e=>r+e.toLocaleString()+o,y=(()=>{let e=m.findIndex(e=>e.isTotal);return e>=0?e:m.length-1})();return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(l||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsx)(`div`,{className:`dc-list`,children:m.map((e,t)=>{let n=e.delta>=0,r=e.isBase||e.isTotal?`var(--presence)`:n?`var(--insight)`:`var(--danger)`,i=Math.abs(e.running)/h*100,o=d===t;return(0,v.jsxs)(`div`,{className:`dc-step ${e.isBase?`base`:``} ${e.isTotal?`total`:``} ${o?`on`:``}`,onMouseEnter:()=>f(t),onMouseLeave:()=>f(null),children:[(0,v.jsxs)(`div`,{className:`dc-step-head`,children:[(0,v.jsx)(`span`,{className:`dc-step-label`,children:e.label}),(0,v.jsx)(`span`,{className:`dc-step-delta tab-num`,"data-mark":t===y?`underline`:void 0,style:{color:r},children:e.isBase||e.isTotal?g(e.running):(n?`+`:``)+g(e.delta)})]}),(0,v.jsx)(`div`,{className:`dc-step-track`,children:(0,v.jsx)(`span`,{className:`dc-step-fill`,style:{width:i+`%`,background:r}})}),!e.isTotal&&(0,v.jsxs)(`div`,{className:`dc-run faint tab-num`,children:[`→ `,g(e.running)]}),e.detail&&(0,v.jsx)(`div`,{className:`dc-detail`,"data-open":o,dangerouslySetInnerHTML:a(e.detail)})]},t)})}),c&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function j({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,rows:r,footer:o,delay:s}){let c=i[t]||i.chart,[l,u]=(0,_.useState)(null),d=(()=>{let e=0;return r.forEach((t,n)=>{t.value>r[e].value&&(e=n)}),e})();return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(s||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsx)(`div`,{className:`bk-list`,children:r.map((e,t)=>{let n=e.color||`var(--presence)`,r=e.max||1,i=Math.max(0,Math.min(100,e.value/r*100)),a=Math.max(0,Math.min(100,e.target/r*100)),o=e.value>=e.target,s=l===t,c=e.target===0?0:Math.round(e.value/e.target*100);return(0,v.jsxs)(`div`,{className:`bk-row ${s?`on`:``}`,onMouseEnter:()=>u(t),onMouseLeave:()=>u(null),children:[(0,v.jsxs)(`div`,{className:`bk-head`,children:[(0,v.jsx)(`span`,{className:`bk-label`,children:e.label}),(0,v.jsx)(`span`,{className:`bk-val tab-num`,style:{color:n},children:e.display??e.value.toLocaleString()})]}),(0,v.jsxs)(`div`,{className:`bk-track`,children:[(0,v.jsx)(`span`,{className:`bk-band`}),(0,v.jsx)(`span`,{className:`bk-fill`,"data-mark":t===d?`circle`:void 0,style:{width:i+`%`,background:o?n:`color-mix(in oklab, ${n} 60%, var(--warning))`}}),(0,v.jsx)(`span`,{className:`bk-target`,style:{left:a+`%`},title:`target ${e.target}`})]}),(0,v.jsxs)(`div`,{className:`bk-meta faint tab-num`,"data-on":s,children:[c,`% of target`,s?` · target ${e.target.toLocaleString()}`:``]})]},t)})}),o&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var M=360,ee=320,te=104,ne=56,N=34,re=18,ie=8;function P(e){let t=0;for(let n of e)Number.isFinite(n)&&(t+=n);return t}function F(e){if(!Number.isFinite(e))return`—`;let t=Math.round(e*1e3)/10;return(Number.isInteger(t)?t.toString():t.toFixed(1))+`%`}var ae=6.44;function oe(e,t){let n=Math.max(3,Math.floor(t/ae));return e.length>n?e.slice(0,n-1).trimEnd()+`…`:e}function se({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,classes:r,matrix:o,correctColor:s=`var(--presence)`,errorColor:c=`var(--danger)`,showTotals:u=!1,readout:d=`accuracy`,actualLabel:f=`Actual`,predictedLabel:p=`Predicted`,countLabel:m=`samples`,footer:h,delay:g}){let y=i[t]||i.table,b=(0,_.useMemo)(()=>{let e=r?.length??0;if(e<2||!o||o.length<e)return null;let t=r.map((e,t)=>{let n=o[t]??[];return r.map((e,t)=>{let r=n[t];return Number.isFinite(r)?r:0})}),n=t.reduce((e,t)=>e+P(t),0),i=t.reduce((e,t,n)=>e+(Number.isFinite(t[n])?t[n]:0),0),a=n>0?i/n:0,s=Math.max(1,...t.flat()),c=r.map((e,n)=>{let r=t.reduce((e,t)=>e+(Number.isFinite(t[n])?t[n]:0),0),i=P(t[n])>0?t[n][n]/P(t[n]):NaN;return{label:e,precision:r>0?t[n][n]/r:NaN,recall:i}}),d=344-(u?N:0),f=300-(u?N:0),p=Math.min(d-te,f-ne),m=te,h=ne;return{n:e,grid:t,total:n,correct:i,accuracy:a,perClass:c,ex:l([0,e],[m,m+p]),ey:l([0,e],[h,h+p]),cell:p/e,side:p,x0:m,y0:h,heat:e=>s>0?Math.sqrt(Math.max(0,e)/s):0,colTotals:r.map((e,n)=>t.reduce((e,t)=>e+(Number.isFinite(t[n])?t[n]:0),0)),rowTotals:t.map(e=>P(e))}},[r,o,u]);return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(g||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(y,{className:`ic`,style:{color:n}}),` `,e]}),b&&(0,v.jsxs)(`div`,{className:`cfm-wrap`,children:[(0,v.jsxs)(`svg`,{viewBox:`0 0 ${M} ${ee}`,className:`cfm-svg`,role:`img`,"aria-label":e,children:[b.grid.map((e,t)=>e.map((e,n)=>{let r=b.ex(n),i=b.ey(t),a=t===n,o=a?s:c,l=b.heat(e),u=`color-mix(in oklab, ${o} ${(8+l*80).toFixed(1)}%, transparent)`,d=l>.55;return(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`rect`,{x:r+1,y:i+1,width:b.cell-2,height:b.cell-2,rx:4,fill:u,className:a?`cfm-cell cfm-cell--diag`:`cfm-cell`}),(0,v.jsx)(`text`,{x:r+b.cell/2,y:i+b.cell/2,className:d?`cfm-count cfm-count--on`:`cfm-count`,textAnchor:`middle`,dominantBaseline:`central`,"data-mark":a?`point`:void 0,children:e.toLocaleString()})]},`c${t}-${n}`)})),(0,v.jsx)(`rect`,{x:b.x0,y:b.y0,width:b.side,height:b.side,className:`cfm-frame`,fill:`none`}),r.map((e,t)=>{let n=oe(e,66);return(0,v.jsxs)(`text`,{x:b.x0-ie,y:b.ey(t)+b.cell/2,className:`cfm-class`,textAnchor:`end`,dominantBaseline:`central`,children:[n!==e&&(0,v.jsx)(`title`,{children:e}),n]},`rl${t}`)}),r.map((e,t)=>{let n=oe(e,b.cell-4);return(0,v.jsxs)(`text`,{x:b.ex(t)+b.cell/2,y:b.y0-8,className:`cfm-class`,textAnchor:`middle`,children:[n!==e&&(0,v.jsx)(`title`,{children:e}),n]},`cl${t}`)}),(0,v.jsxs)(`text`,{x:0,y:0,transform:`translate(${re}, ${b.y0+b.side/2}) rotate(-90)`,className:`cfm-axis-title`,textAnchor:`middle`,children:[f,` ↓`]}),(0,v.jsxs)(`text`,{x:b.x0+b.side/2,y:18,className:`cfm-axis-title`,textAnchor:`middle`,children:[p,` →`]}),u&&(0,v.jsxs)(`g`,{className:`cfm-totals`,children:[b.rowTotals.map((e,t)=>(0,v.jsx)(`text`,{x:b.x0+b.side+N/2,y:b.ey(t)+b.cell/2,className:`cfm-total`,textAnchor:`middle`,dominantBaseline:`central`,children:e.toLocaleString()},`rt${t}`)),b.colTotals.map((e,t)=>(0,v.jsx)(`text`,{x:b.ex(t)+b.cell/2,y:b.y0+b.side+N/2,className:`cfm-total`,textAnchor:`middle`,dominantBaseline:`central`,children:e.toLocaleString()},`ct${t}`)),(0,v.jsx)(`text`,{x:b.x0+b.side+N/2,y:b.y0-8,className:`cfm-total-hd`,textAnchor:`middle`,children:`Σ`}),(0,v.jsx)(`text`,{x:b.x0-8,y:b.y0+b.side+N/2,className:`cfm-total-hd`,textAnchor:`end`,dominantBaseline:`central`,children:`Σ`})]})]}),d===`accuracy`&&(0,v.jsxs)(`div`,{className:`cfm-readout`,children:[(0,v.jsx)(`span`,{className:`cfm-acc tab-num`,style:{color:s},"data-mark":`underline`,children:F(b.accuracy)}),(0,v.jsxs)(`span`,{className:`cfm-acc-lbl faint`,children:[`accuracy · `,b.correct.toLocaleString(),` of `,b.total.toLocaleString(),` `,m,` correct`]})]}),d===`perclass`&&(0,v.jsxs)(`div`,{className:`cfm-pc`,children:[(0,v.jsxs)(`div`,{className:`cfm-pc-row cfm-pc-head`,children:[(0,v.jsx)(`span`,{className:`cfm-pc-name`,children:`Class`}),(0,v.jsx)(`span`,{className:`cfm-pc-val`,children:`Precision`}),(0,v.jsx)(`span`,{className:`cfm-pc-val`,children:`Recall`})]}),b.perClass.map((e,t)=>(0,v.jsxs)(`div`,{className:`cfm-pc-row`,children:[(0,v.jsx)(`span`,{className:`cfm-pc-name`,children:e.label}),(0,v.jsx)(`span`,{className:`cfm-pc-val tab-num`,children:F(e.precision)}),(0,v.jsx)(`span`,{className:`cfm-pc-val tab-num`,children:F(e.recall)})]},`pc${t}`))]})]}),!b&&(0,v.jsx)(`div`,{className:`cfm-empty faint`,children:`Provide a class list and a square N×N matrix (matrix[i][j] = actual i predicted j).`}),h&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}var I=n(),L=132,R=40,ce=4;function le(e){return e===`down`?`var(--danger)`:`var(--insight)`}function ue(e){let t=(0,I.c)(45),{spark:n,color:r}=e,[i,a]=(0,_.useState)(Math.max(0,n.length-1)),o=Math.min(...n),s=Math.max(...n),c=s-o||1,l;t[0]===n.length?l=t[1]:(l=e=>ce+e/Math.max(1,n.length-1)*124,t[0]=n.length,t[1]=l);let u=l,d;t[2]!==o||t[3]!==c?(d=e=>36-(e-o)/c*32,t[2]=o,t[3]=c,t[4]=d):d=t[4];let f=d,p;if(t[5]!==n||t[6]!==u||t[7]!==f){let e;t[9]!==u||t[10]!==f?(e=(e,t)=>`${u(t)},${f(e)}`,t[9]=u,t[10]=f,t[11]=e):e=t[11],p=n.map(e).join(` `),t[5]=n,t[6]=u,t[7]=f,t[8]=p}else p=t[8];let m=p,h=`${ce},${R} ${m} 128,${R}`,g=Math.min(i,n.length-1),y;t[12]===o?y=t[13]:(y=Math.round(o),t[12]=o,t[13]=y);let b;t[14]===s?b=t[15]:(b=Math.round(s),t[14]=s,t[15]=b);let x=`kd-${y}-${b}-${n.length}`,S,C;t[16]===r?(S=t[17],C=t[18]):(S=(0,v.jsx)(`stop`,{offset:`0%`,stopColor:r,stopOpacity:`0.2`}),C=(0,v.jsx)(`stop`,{offset:`100%`,stopColor:r,stopOpacity:`0`}),t[16]=r,t[17]=S,t[18]=C);let w;t[19]!==x||t[20]!==S||t[21]!==C?(w=(0,v.jsx)(`defs`,{children:(0,v.jsxs)(`linearGradient`,{id:x,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[S,C]})}),t[19]=x,t[20]=S,t[21]=C,t[22]=w):w=t[22];let T=`url(#${x})`,E;t[23]!==h||t[24]!==T?(E=(0,v.jsx)(`polygon`,{points:h,fill:T}),t[23]=h,t[24]=T,t[25]=E):E=t[25];let D;t[26]!==r||t[27]!==m?(D=(0,v.jsx)(`polyline`,{points:m,fill:`none`,stroke:r,strokeWidth:`1.75`,strokeLinejoin:`round`,strokeLinecap:`round`}),t[26]=r,t[27]=m,t[28]=D):D=t[28];let O;if(t[29]!==n||t[30]!==u){let e;t[32]!==n.length||t[33]!==u?(e=(e,t)=>(0,v.jsx)(`rect`,{x:u(t)-L/n.length/2,y:0,width:L/n.length,height:R,fill:`transparent`,onMouseEnter:()=>a(t),style:{cursor:`pointer`}},t),t[32]=n.length,t[33]=u,t[34]=e):e=t[34],O=n.map(e),t[29]=n,t[30]=u,t[31]=O}else O=t[31];let k=u(g),A=f(n[g]),j;t[35]!==r||t[36]!==k||t[37]!==A?(j=(0,v.jsx)(`circle`,{cx:k,cy:A,r:`2.6`,fill:r,stroke:`var(--surface-elevated)`,strokeWidth:`1.4`}),t[35]=r,t[36]=k,t[37]=A,t[38]=j):j=t[38];let M;return t[39]!==E||t[40]!==D||t[41]!==O||t[42]!==j||t[43]!==w?(M=(0,v.jsxs)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 ${L} ${R}`,className:`kd-spark`,preserveAspectRatio:`none`,children:[w,E,D,O,j]}),t[39]=E,t[40]=D,t[41]=O,t[42]=j,t[43]=w,t[44]=M):M=t[44],M}function de({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,tiles:r,caption:o,footer:s,delay:c}){let l=i[t]||i.chart;return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),(0,v.jsx)(`div`,{className:`kd-grid`,children:r.map((e,t)=>{let n=e.deltaDir||`up`,r=le(n),a=e.spark?.filter(e=>Number.isFinite(e))??[];return(0,v.jsxs)(`div`,{className:`kd-tile`,children:[(0,v.jsx)(`div`,{className:`kd-tile-label`,children:e.label}),(0,v.jsxs)(`div`,{className:`kd-tile-val tab-num`,children:[e.value,e.unit&&(0,v.jsx)(`span`,{className:`kd-tile-unit`,children:e.unit})]}),e.delta&&(0,v.jsxs)(`div`,{className:`kd-tile-delta`,style:{color:r},children:[(0,v.jsx)(i.arrowUp,{className:`ic`,style:{width:12,height:12,transform:n===`down`?`rotate(180deg)`:`none`}}),(0,v.jsx)(`span`,{className:`kd-tile-delta-t`,children:e.delta})]}),a.length>1&&(0,v.jsx)(`div`,{className:`kd-tile-spark`,children:(0,v.jsx)(ue,{spark:a,color:r})}),e.conf&&(0,v.jsx)(`div`,{className:`kd-tile-conf faint`,children:e.conf})]},t)})}),o&&(0,v.jsx)(`div`,{className:`kd-caption faint`,children:o}),s&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function fe(e){if(!Number.isFinite(e))return`—`;let t=e*100,n=Math.abs(t),r=n===0?0:n<1?2:+(n<10);return`${t.toFixed(r)}%`}function pe(e){return Number.isFinite(e)?Math.round(e).toLocaleString():`—`}function z(e){return`${e>=0?`+`:``}${e.toFixed(1)}%`}function me(e){return e<.001?`p < .001`:`p = ${e.toFixed(3).replace(/^0\./,`.`)}`}function he(e,t,n){let r=Math.min(e,t),i=Math.max(e,t);if(!Number.isFinite(r)||!Number.isFinite(i))return null;let a=[r,i,0,...n!==null&&Number.isFinite(n)?[n]:[]],o=Math.min(...a),s=Math.max(...a),c=Math.max((s-o)*.14,.5),l=o-c,u=s+c-l||1,d=e=>(e-l)/u*100;return{loPct:d(r),hiPct:d(i),zeroPct:d(0),pointPct:n!==null&&Number.isFinite(n)?d(n):null}}function ge({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,control:r,variant:o,pValue:s,confidenceInterval:c,significant:l,footer:u,delay:d}){let f=i[t]||i.chart,[p,h]=(0,_.useState)(null),g=r.conversionRate>0?(o.conversionRate-r.conversionRate)/r.conversionRate*100:NaN,y=Number.isFinite(g),b=m(y?g:0,{delay:(d||0)+260,format:z}),x=y?g>0?`var(--insight)`:g<0?`var(--danger)`:`var(--text-muted)`:`var(--text-muted)`,S=typeof l==`boolean`,C=typeof s==`number`&&Number.isFinite(s),w=S?l:C?s<.05:null,T=S||C,E=c&&c.length===2?he(c[0],c[1],y?g:null):null;return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(d||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),T&&(0,v.jsx)(`div`,{className:`abt-head`,children:(0,v.jsxs)(`span`,{className:`abt-badge m-scale-in ${w?`on`:``}`,children:[w&&(0,v.jsx)(i.check,{className:`ic abt-badge-ic`}),w?`Significant`:`Not significant`,C&&(0,v.jsx)(`span`,{className:`abt-badge-p`,children:me(s)})]})}),(0,v.jsxs)(`div`,{className:`abt-row`,children:[(0,v.jsxs)(`div`,{className:`abt-side m-fade-rise m-stagger-item ${p===`control`?`on`:``}`,style:{"--i":0},onMouseEnter:()=>h(`control`),onMouseLeave:()=>h(null),children:[(0,v.jsx)(`div`,{className:`abt-name`,children:r.name}),(0,v.jsx)(`div`,{className:`abt-val tab-num`,children:fe(r.conversionRate)}),(0,v.jsxs)(`div`,{className:`abt-n faint`,children:[`n = `,pe(r.n)]})]}),(0,v.jsx)(`div`,{className:`abt-connector`,children:(0,v.jsx)(`span`,{className:`abt-arrow`,children:`→`})}),(0,v.jsxs)(`div`,{className:`abt-side m-fade-rise m-stagger-item ${p===`variant`?`on`:``}`,style:{"--i":1},onMouseEnter:()=>h(`variant`),onMouseLeave:()=>h(null),children:[(0,v.jsx)(`div`,{className:`abt-name`,children:o.name}),(0,v.jsx)(`div`,{className:`abt-val tab-num`,style:{color:x},children:fe(o.conversionRate)}),(0,v.jsxs)(`div`,{className:`abt-n faint`,children:[`n = `,pe(o.n)]})]})]}),(0,v.jsxs)(`div`,{className:`abt-lift m-fade-rise m-stagger-item`,style:{"--i":2},children:[(0,v.jsx)(`span`,{className:`abt-lift-v tab-num`,style:{color:x},"data-mark":`underline`,children:y?b:`—`}),(0,v.jsx)(`span`,{className:`abt-lift-l faint`,children:`relative lift`})]}),E&&c&&(0,v.jsxs)(`div`,{className:`abt-ci m-fade-rise m-stagger-item`,style:{"--i":3},children:[(0,v.jsx)(`span`,{className:`abt-ci-lbl faint`,children:`95% confidence interval`}),(0,v.jsxs)(`div`,{className:`abt-ci-track`,children:[(0,v.jsx)(`span`,{className:`abt-ci-band`,style:{left:`${E.loPct}%`,width:`${Math.max(E.hiPct-E.loPct,1.5)}%`}}),(0,v.jsx)(`span`,{className:`abt-ci-zero`,style:{left:`${E.zeroPct}%`},title:`no effect`}),E.pointPct!==null&&(0,v.jsx)(`span`,{className:`abt-ci-point`,style:{left:`${E.pointPct}%`}})]}),(0,v.jsxs)(`div`,{className:`abt-ci-labels`,children:[(0,v.jsx)(`span`,{className:`tab-num`,children:z(c[0])}),(0,v.jsx)(`span`,{className:`tab-num`,children:z(c[1])})]})]}),u&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var _e=320,ve=176,B={top:14,right:14,bottom:32,left:42},ye=[0,.25,.5,.75,1];function be(e){let t=e<0?-1:1,n=Math.abs(e),r=1/(1+.3275911*n);return t*(1-((((1.061405429*r-1.453152027)*r+1.421413741)*r-.284496736)*r+.254829592)*r*Math.exp(-n*n))}function xe(e){return .5*(1+be(e/Math.SQRT2))}function Se(e){if(!(e>0)||!(e<1))return NaN;let t=[-39.69683028665376,220.9460984245205,-275.9285104469687,138.357751867269,-30.66479806614716,2.506628277459239],n=[-54.47609879822406,161.5858368580409,-155.6989798598866,66.80131188771972,-13.28068155288572],r=[-.007784894002430293,-.3223964580411365,-2.400758277161838,-2.549732539343734,4.374664141464968,2.938163982698783],i=[.007784695709041462,.3224671290700398,2.445134137142996,3.754408661907416];if(e<.02425){let t=Math.sqrt(-2*Math.log(e));return(((((r[0]*t+r[1])*t+r[2])*t+r[3])*t+r[4])*t+r[5])/((((i[0]*t+i[1])*t+i[2])*t+i[3])*t+1)}if(e<=.97575){let r=e-.5,i=r*r;return(((((t[0]*i+t[1])*i+t[2])*i+t[3])*i+t[4])*i+t[5])*r/(((((n[0]*i+n[1])*i+n[2])*i+n[3])*i+n[4])*i+1)}let a=Math.sqrt(-2*Math.log(1-e));return-(((((r[0]*a+r[1])*a+r[2])*a+r[3])*a+r[4])*a+r[5])/((((i[0]*a+i[1])*a+i[2])*a+i[3])*a+1)}function Ce(e){return`α = ${e.toFixed(e<.01?3:2).replace(/^0\./,`.`)}`}function we({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,effectSize:r,alpha:s,power:h,requiredN:g,curve:y,footer:b,delay:x}){let S=i[t]||i.chart,C=(0,_.useRef)(null),w=(0,_.useMemo)(()=>{let e=Math.abs(r);if(!Number.isFinite(e)||e<=0)return null;let t=typeof s==`number`&&Number.isFinite(s)&&s>0&&s<1?s:.05,n=typeof g==`number`&&Number.isFinite(g)&&g>0?Math.max(1,Math.round(g)):null,i=typeof h==`number`&&Number.isFinite(h)&&h>0&&h<1?h:null,a=Se(1-t/2);if(n!==null){let r=i??xe(Math.sqrt(n*e*e/2)-a);return{n,p:Math.min(1,Math.max(0,r)),alpha:t,d:e,mode:`evaluate`,derived:i===null}}let o=i??.8,c=Se(o);return{n:Math.ceil(2*(a+c)**2/(e*e)),p:o,alpha:t,d:e,mode:`design`,derived:!0}},[r,s,h,g]),T=m(w?.n??0,{delay:(x||0)+140,decimals:0}),E=(0,_.useMemo)(()=>{if(!w||!y||y.length===0)return null;let e=y.filter(e=>Number.isFinite(e?.n)&&e.n>0&&Number.isFinite(e?.power)).map(e=>({n:e.n,power:Math.min(1,Math.max(0,e.power))})).sort((e,t)=>e.n-t.n);if(e.length===0)return null;let t=f(e.map(e=>e.n).concat([w.n]))?.[1]??w.n,[n,r]=u(0,Math.max(t,1)),i=_e-B.left-B.right,a=ve-B.top-B.bottom,o=l([n,r],[B.left,B.left+i]),s=l([0,1],[B.top+a,B.top]);return{sx:o,sy:s,path:e.length>1?`M${e.map(e=>`${o(e.n)},${s(e.power)}`).join(`L`)}`:``,innerW:i,innerH:a,nTicks:c(n,r,d(r-n,4))}},[y,w]);if(p(C,{delay:(x||0)+220}),!w)return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(x||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(S,{className:`ic`,style:{color:n}}),` `,e||`Power analysis`]}),(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:`Provide a non-zero effect size.`})]});let D=o(w.p,{decimals:+(w.p>=.995||w.p<.1)});return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(x||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(S,{className:`ic`,style:{color:n}}),` `,e||`Power analysis`]}),(0,v.jsxs)(`div`,{className:`ps-head`,children:[(0,v.jsxs)(`div`,{className:`ps-n-row`,children:[(0,v.jsx)(`span`,{className:`ps-n tab-num`,children:T}),(0,v.jsx)(`span`,{className:`ps-n-suffix`,children:`per group`})]}),(0,v.jsx)(`div`,{className:`ps-power-line`,children:w.mode===`evaluate`&&w.derived?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(`span`,{className:`ps-power-arrow`,children:`→`}),` `,(0,v.jsx)(`strong`,{children:D}),` power`,` `,(0,v.jsx)(`span`,{className:`faint`,children:`(achieved at this n)`})]}):(0,v.jsxs)(v.Fragment,{children:[`for `,(0,v.jsx)(`strong`,{children:D}),` power`]})})]}),(0,v.jsxs)(`div`,{className:`ps-stats`,children:[(0,v.jsxs)(`span`,{className:`ps-stat`,children:[(0,v.jsx)(`span`,{className:`ps-stat-k`,children:`effect size`}),(0,v.jsxs)(`span`,{className:`ps-stat-v tab-num`,children:[`d = `,r.toFixed(2)]})]}),(0,v.jsxs)(`span`,{className:`ps-stat`,children:[(0,v.jsx)(`span`,{className:`ps-stat-k`,children:`significance`}),(0,v.jsx)(`span`,{className:`ps-stat-v tab-num`,children:Ce(w.alpha)})]})]}),E&&(0,v.jsx)(`div`,{className:`ps-curve-wrap`,children:(0,v.jsxs)(`svg`,{viewBox:`0 0 ${_e} ${ve}`,className:`ps-svg`,role:`img`,"aria-label":`Power vs. sample size, marked at n=${w.n}`,children:[ye.map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`line`,{className:`ps-grid`,x1:B.left,y1:E.sy(e),x2:B.left+E.innerW,y2:E.sy(e)}),(0,v.jsxs)(`text`,{className:`ps-tick`,x:B.left-6,y:E.sy(e)+3.5,textAnchor:`end`,children:[Math.round(e*100),`%`]})]},`g${e}`)),(0,v.jsx)(`line`,{className:`ps-axis`,x1:B.left,y1:B.top+E.innerH,x2:B.left+E.innerW,y2:B.top+E.innerH}),(0,v.jsx)(`line`,{className:`ps-axis`,x1:B.left,y1:B.top,x2:B.left,y2:B.top+E.innerH}),E.nTicks.map(e=>(0,v.jsx)(`text`,{className:`ps-tick`,x:E.sx(e),y:B.top+E.innerH+15,textAnchor:`middle`,children:e.toLocaleString()},`xt${e}`)),E.path&&(0,v.jsx)(`path`,{ref:C,className:`ps-line`,d:E.path,fill:`none`}),(0,v.jsx)(`line`,{className:`ps-mark-guide`,x1:E.sx(w.n),y1:E.sy(w.p),x2:E.sx(w.n),y2:B.top+E.innerH}),(0,v.jsx)(`circle`,{className:`ps-mark`,cx:E.sx(w.n),cy:E.sy(w.p),r:4.5,"data-mark":`point`})]})}),b&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(b)})]})}var Te={critical:`var(--danger)`,low:`var(--warning)`,healthy:`var(--insight)`},Ee={critical:`Reorder now`,low:`Below reorder point`,healthy:`Healthy`};function V(e){return Math.max(0,Math.min(100,e))}function De(e,t){if(!e||typeof e!=`object`)return null;let n=typeof e.sku==`string`?e.sku.trim():``,r=typeof e.label==`string`&&e.label.trim()?e.label.trim():n;if(!r)return null;let i=Number.isFinite(e.level)?Math.max(0,e.level):0,a=Number.isFinite(e.reorderPoint)?Math.max(0,e.reorderPoint):0,o=Number.isFinite(e.safetyStock)?Math.max(0,e.safetyStock):0,s=Math.max(Number.isFinite(e.max)&&e.max>0?e.max:0,i,a,o,1),c=Math.min(a,s),l=Math.min(o,c),u=Number.isFinite(e.leadTimeDays)?Math.max(0,e.leadTimeDays):null,d=i<=l?`critical`:i<=c?`low`:`healthy`;return{key:n||`row-${t}`,sku:n,label:r,level:i,max:s,safetyStock:l,reorderPoint:c,leadTimeDays:u,status:d,levelPct:V(i/s*100),safetyPct:V(l/s*100),reorderPct:V(c/s*100)}}function Oe({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]||i.cart,l=(Array.isArray(r)?r:[]).map(De).filter(e=>e!==null);return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(s||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0&&(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:`Provide items with a level, a reorder point, and a max.`}),l.length>0&&(0,v.jsx)(`div`,{className:`ir-list`,children:l.map((e,t)=>(0,v.jsxs)(`div`,{className:`ir-row m-fade-rise m-stagger-item`,style:{"--i":t},children:[(0,v.jsxs)(`div`,{className:`ir-head`,children:[(0,v.jsxs)(`div`,{className:`ir-id`,children:[e.sku&&(0,v.jsx)(`span`,{className:`ir-sku`,children:e.sku}),(0,v.jsx)(`span`,{className:`ir-label`,children:e.label})]}),(0,v.jsx)(`span`,{className:`ir-status`,style:{color:Te[e.status]},"data-mark":e.status===`critical`?`circle`:void 0,children:Ee[e.status]})]}),(0,v.jsxs)(`div`,{className:`ir-track`,children:[(0,v.jsxs)(`div`,{className:`ir-track-inner`,children:[(0,v.jsx)(`span`,{className:`ir-zone ir-zone--danger`,style:{width:`${e.safetyPct}%`}}),(0,v.jsx)(`span`,{className:`ir-zone ir-zone--warn`,style:{left:`${e.safetyPct}%`,width:`${Math.max(0,e.reorderPct-e.safetyPct)}%`}}),(0,v.jsx)(`span`,{className:`ir-zone ir-zone--good`,style:{left:`${e.reorderPct}%`,width:`${Math.max(0,100-e.reorderPct)}%`}}),(0,v.jsx)(`span`,{className:`ir-fill`,style:{width:`${e.levelPct}%`,background:Te[e.status]}})]}),(0,v.jsx)(`span`,{className:`ir-tick`,style:{left:`${e.reorderPct}%`},title:`reorder point`})]}),(0,v.jsxs)(`div`,{className:`ir-meta faint tab-num`,children:[e.level.toLocaleString(),` of `,e.max.toLocaleString(),` · reorder at`,` `,e.reorderPoint.toLocaleString(),e.leadTimeDays===null?``:` · ${e.leadTimeDays}d lead time`]})]},e.key))}),o&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function ke(e){let t=0;for(let n of e)n!==null&&(t+=n);return t}function Ae({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,game:r,players:o,rounds:s,footer:c,delay:l}){let u=i[t]||i.table,d=Array.isArray(o)?o:[],f=Number.isFinite(s)&&s>0?Math.round(s):Math.max(0,...d.map(e=>Array.isArray(e?.roundScores)?e.roundScores.length:0)),p=d.map((e,t)=>{let n=typeof e?.name==`string`&&e.name.trim()?e.name.trim():`Player ${t+1}`,r=Array.isArray(e?.roundScores)?e.roundScores:[],i=Array.from({length:f},(e,t)=>Number.isFinite(r[t])?r[t]:null),a=Number.isFinite(e?.total)?e.total:ke(i);return{key:`${n}-${t}`,name:n,scores:i,total:a}}),m=p.length>0,h=m?Math.max(...p.map(e=>e.total)):0,g=new Set(m?p.filter(e=>e.total===h).map(e=>e.key):[]),_=g.size===1?p.find(e=>g.has(e.key)):null,y=_&&p.length>1?_.total-Math.max(...p.filter(e=>e.key!==_.key).map(e=>e.total)):null,b=[];b.push((0,v.jsx)(`div`,{className:`bgs-cell bgs-head bgs-corner`,"aria-hidden":`true`},`corner`));for(let e of p)b.push((0,v.jsxs)(`div`,{className:`bgs-cell bgs-head bgs-player`,children:[g.has(e.key)&&(0,v.jsx)(`span`,{className:`bgs-crown`,"aria-label":`leading`,title:`Leading`,children:`●`}),(0,v.jsx)(`span`,{className:`bgs-name`,children:e.name})]},`h-${e.key}`));for(let e=0;e<f;e++){b.push((0,v.jsxs)(`div`,{className:`bgs-cell bgs-rowlabel m-fade-rise m-stagger-item`,style:{"--i":e},children:[`R`,e+1]},`rl-${e}`));for(let t of p)b.push((0,v.jsx)(`div`,{className:`bgs-cell bgs-score tab-num m-fade-rise m-stagger-item`,style:{"--i":e},children:t.scores[e]===null?`–`:t.scores[e].toLocaleString()},`s-${t.key}-${e}`))}b.push((0,v.jsx)(`div`,{className:`bgs-cell bgs-rowlabel bgs-totallabel`,children:`Total`},`tl`));for(let e of p)b.push((0,v.jsx)(`div`,{className:`bgs-cell bgs-total tab-num ${g.has(e.key)?`lead`:``}`,"data-mark":g.has(e.key)?`underline`:void 0,children:e.total.toLocaleString()},`t-${e.key}`));return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(l||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(u,{className:`ic`,style:{color:n}}),` `,e,r&&(0,v.jsx)(`span`,{className:`bgs-game faint`,children:r})]}),!m&&(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:`Provide players with round scores.`}),m&&(0,v.jsx)(`div`,{className:`bgs-scroll`,children:(0,v.jsx)(`div`,{className:`bgs-grid`,style:{"--bgs-cols":p.length,minWidth:`${64+p.length*84}px`},children:b})}),_&&y!==null&&(0,v.jsxs)(`p`,{className:`bgs-lead-note faint`,children:[_.name,` leads`,y>0?` by ${y.toLocaleString()}`:``,`.`]}),c&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var je=[`none`,`low`,`medium`,`high`,`critical`];function Me(e){switch(e){case`critical`:case`high`:return`var(--danger)`;case`medium`:return`var(--warning)`;case`low`:return`var(--insight)`;default:return`var(--text-muted)`}}function Ne(e){return e>=9?`critical`:e>=7?`high`:e>=4?`medium`:e>0?`low`:`none`}var H=132,Pe=H/2-11;function Fe({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,baseScore:r,severity:o,vector:s,cve:c,footer:l,delay:u}){let d=i[t]||i.shield,f=typeof r==`number`&&Number.isFinite(r),p=f?Math.max(0,Math.min(10,r)):0,h=je.includes(o)?o:Ne(p),g=Me(h),_=p/10,y=m(f?p:0,{delay:(u||0)+120,decimals:1}),b=(Array.isArray(s)?s:[]).filter(e=>!!e&&typeof e.label==`string`&&e.label.trim()!==``&&typeof e.value==`string`&&e.value.trim()!==``).slice(0,12),x=typeof c==`string`&&c.trim()?c.trim():null;return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(u||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(d,{className:`ic`,style:{color:n}}),` `,e,x&&(0,v.jsx)(`span`,{className:`cvss-cve`,children:x})]}),(0,v.jsxs)(`div`,{className:`cvss-body`,children:[(0,v.jsxs)(`div`,{className:`gauge-host`,style:{width:H,height:H},children:[(0,v.jsxs)(`svg`,{className:`gauge`,viewBox:`0 0 ${H} ${H}`,width:H,height:H,children:[(0,v.jsx)(`circle`,{cx:H/2,cy:H/2,r:Pe,fill:`none`,stroke:`var(--surface-glass-strong)`,strokeWidth:`10`}),f&&(0,v.jsx)(`circle`,{className:`gauge-arc`,cx:H/2,cy:H/2,r:Pe,fill:`none`,stroke:g,strokeWidth:`10`,strokeLinecap:`round`,pathLength:1,strokeDasharray:1,strokeDashoffset:1-_,transform:`rotate(-90 ${H/2} ${H/2})`})]}),(0,v.jsxs)(`div`,{className:`gauge-center`,children:[(0,v.jsx)(`div`,{className:`gauge-num tab-num`,"data-mark":f?`underline`:void 0,style:{color:g},children:f?y:`—`}),(0,v.jsx)(`div`,{className:`gauge-band`,style:{color:g},children:h})]})]}),(0,v.jsx)(`div`,{className:`cvss-side`,children:b.length>0?(0,v.jsx)(`div`,{className:`cvss-chips`,children:b.map((e,t)=>(0,v.jsxs)(`span`,{className:`cvss-chip m-fade-rise m-stagger-item`,style:{"--i":t},children:[(0,v.jsx)(`span`,{className:`cvss-chip-k`,children:e.label}),(0,v.jsx)(`span`,{className:`cvss-chip-v`,children:e.value})]},t))}):(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:f?`No vector components supplied.`:`Provide a base score 0–10.`})})]}),l&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var Ie=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--presence-soft)`,`var(--danger)`],Le=320,U=90,Re=12,ze=12,W=30,Be=80,Ve=1/5.4;function He(e){let t=Math.max(3,Math.floor(Be*Ve));return e.length>t?e.slice(0,13).trimEnd()+`…`:e}function Ue(e,t,n,r,i){if(!e)return null;let a=typeof e.label==`string`&&e.label.trim()?e.label.trim():`Series ${t+1}`,o=(Array.isArray(e.curve)?e.curve:[]).filter(e=>Number.isFinite(e)&&e>=0);if(o.length<2)return null;let s=Math.max(...o)||1,c=o.length,l=e=>U+e/(c-1)*i,u=e=>n-e/s*r,d=o.map((e,t)=>`${l(t).toFixed(2)},${u(e).toFixed(2)}`),f=`M${d.join(`L`)}`,p=`M${l(0).toFixed(2)},${n} L${d.join(`L`)} L${l(c-1).toFixed(2)},${n} Z`,m=e.color||Ie[t%Ie.length];return{key:`${a}-${t}`,label:a,color:m,d:p,strokeD:f,baselineY:n}}function We(e){let t=(0,I.c)(5),{d:n,color:r,delay:i}=e,a=(0,_.useRef)(null),o;t[0]===i?o=t[1]:(o={delay:i},t[0]=i,t[1]=o),p(a,o);let s;return t[2]!==r||t[3]!==n?(s=(0,v.jsx)(`path`,{ref:a,d:n,fill:`none`,stroke:r,className:`rp-stroke`}),t[2]=r,t[3]=n,t[4]=s):s=t[4],s}function Ge({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,categories:r,overlap:o,footer:s,delay:c}){let l=i[t]||i.chart,u=W*(1+(Number.isFinite(o)?Math.max(0,Math.min(1,o)):.55)*1.8),d=Array.isArray(r)?r:[],f=[];d.forEach((e,t)=>{let n=Ue(e,t,Re+u+f.length*W,u,216);n&&f.push(n)});let p=f.length>0?Re+u+(f.length-1)*W+ze:0;return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(c||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),f.length===0&&(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:`Provide at least one category with two or more curve values.`}),f.length>0&&(0,v.jsx)(`svg`,{viewBox:`0 0 ${Le} ${p}`,className:`rp-svg`,role:`img`,"aria-label":e,children:f.map((e,t)=>(0,v.jsxs)(`g`,{className:`m-fade-rise m-stagger-item`,style:{"--i":t},children:[(0,v.jsx)(`line`,{x1:U,y1:e.baselineY,x2:306,y2:e.baselineY,className:`rp-baseline`}),(0,v.jsx)(`path`,{d:e.d,fill:e.color,className:`rp-area`}),(0,v.jsx)(We,{d:e.strokeD,color:e.color,delay:(c||0)+t*60}),(0,v.jsxs)(`text`,{x:82,y:e.baselineY+3,className:`rp-label`,textAnchor:`end`,children:[He(e.label)!==e.label&&(0,v.jsx)(`title`,{children:e.label}),He(e.label)]})]},e.key))}),s&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var G=320,K=200,q={top:14,right:14,bottom:30,left:42},Ke=[0,.25,.5,.75,1];function qe(e){let t=e.length,n=[],r=0,i=0;for(;r<t;){let a=e[r],o=r;for(;o<t&&e[o]===a;)o++;n.push({x:a,y:i/t}),i+=o-r,n.push({x:a,y:i/t}),r=o}return n}function Je(e){let t=e.length,n=Math.floor(t/2);return t%2==0?(e[n-1]+e[n])/2:e[n]}function Ye({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,values:r,unit:o,color:m=`var(--presence)`,footer:h,delay:g}){let y=i[t]||i.chart,b=(0,_.useRef)(null),x=(0,_.useMemo)(()=>{let e=(Array.isArray(r)?r:[]).filter(e=>Number.isFinite(e)).sort((e,t)=>e-t);if(e.length===0)return null;let t=f(e);if(!t)return null;let[n,i]=u(t[0],t[1]),a=l([n,i],[q.left,G-q.right]),o=l([0,1],[K-q.bottom,q.top]),s=qe(e),p=[`M${a(n).toFixed(2)},${o(0).toFixed(2)}`,...s.map(e=>`L${a(e.x).toFixed(2)},${o(e.y).toFixed(2)}`),`L${a(i).toFixed(2)},${o(1).toFixed(2)}`].join(` `),m=c(n,i,d(i-n,5)),h=Je(e);return{n:e.length,d:p,sx:a,sy:o,xTicks:m,med:h}},[r]);return p(b,{delay:(g||0)+160}),(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(g||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(y,{className:`ic`,style:{color:n}}),` `,e]}),!x&&(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:`Provide at least one numeric value.`}),x&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`svg`,{viewBox:`0 0 ${G} ${K}`,className:`ecdf-svg`,role:`img`,"aria-label":e,children:[Ke.map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`line`,{className:`ecdf-grid`,x1:q.left,y1:x.sy(e),x2:G-q.right,y2:x.sy(e)}),(0,v.jsx)(`text`,{className:`ecdf-tick`,x:q.left-6,y:x.sy(e)+3.5,textAnchor:`end`,children:e.toFixed(2)})]},`g${e}`)),(0,v.jsx)(`line`,{className:`ecdf-axis`,x1:q.left,y1:K-q.bottom,x2:G-q.right,y2:K-q.bottom}),(0,v.jsx)(`line`,{className:`ecdf-axis`,x1:q.left,y1:q.top,x2:q.left,y2:K-q.bottom}),x.xTicks.map(e=>(0,v.jsx)(`text`,{className:`ecdf-tick`,x:x.sx(e),y:K-q.bottom+15,textAnchor:`middle`,children:s(e,{unit:o||void 0})},`xt${e}`)),(0,v.jsx)(`line`,{className:`ecdf-mark-guide`,x1:x.sx(x.med),y1:K-q.bottom,x2:x.sx(x.med),y2:q.top}),(0,v.jsx)(`path`,{ref:b,className:`ecdf-line`,d:x.d,fill:`none`,stroke:m})]}),(0,v.jsxs)(`p`,{className:`ecdf-caption faint tab-num`,children:[`n = `,x.n.toLocaleString(),` · median`,` `,s(x.med,{unit:o||void 0})]})]}),h&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}var Xe=480,J=122,Y=424,Ze=46,X=1.959964,Qe={OR:`Odds ratio`,RR:`Risk ratio`,HR:`Hazard ratio`,MD:`Mean difference`,SMD:`Std. mean difference`};function Z(e){return typeof e==`number`&&Number.isFinite(e)}function Q(e){if(!Number.isFinite(e))return`—`;let t=Math.abs(e);return t>=1e3?s(e,{compact:!0}):t>0&&t<.1?s(e,{decimals:3}):s(e,{decimals:t>=100?0:t>=10?1:2})}function $e(e,t,n,r){if(!e||typeof e!=`object`||!Z(e.effect)||!Z(e.ciLow)||!Z(e.ciHigh))return null;let i=Math.min(e.ciLow,e.ciHigh),a=Math.max(e.ciLow,e.ciHigh),o=Math.min(a,Math.max(i,e.effect)),s=!1;n&&(i<=0&&(i=r,s=!0),a<=0&&(a=r,s=!0),o<=0&&(o=r,s=!0),i>a&&([i,a]=[a,i]),o=Math.min(a,Math.max(i,o)));let c=n?Math.log(o):o,l=n?(Math.log(a)-Math.log(i))/(2*X):(a-i)/(2*X),u=!s&&Number.isFinite(l)&&l>0?1/(l*l):null,d=typeof e.label==`string`&&e.label.trim()?e.label.trim():`Study ${t+1}`,f=`${d}${Z(e.year)?` ${Math.trunc(e.year)}`:``}${s?` †`:``}`;return{key:`${d}-${t}`,label:f,effect:o,lo:i,hi:a,givenWeight:Z(e.weight)&&e.weight>=0?Math.min(100,e.weight):null,clamped:s,ivWeight:u,theta:c}}function et(e,t){let n=Math.ceil(e/Math.LN2-1e-9),r=Math.floor(t/Math.LN2+1e-9);if(r<n)return[1];let i=Math.max(1,Math.ceil((r-n+1)/7)),a=[];for(let e=n;e<=r;e++)(e%i+i)%i===0&&a.push(2**e);return a.length?a:[1]}function tt(e){let t=(0,I.c)(14),{label:n,cy:r,maxLines:i,fontSize:a,bold:o}=e,s,c,l,u;if(t[0]!==o||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==i){let e=g(n,{maxWidth:108,fontSize:a,minFontSize:7,maxLines:i,lineHeight:1.12,bold:o}),d=e.lines.slice(0,i),f=r-(d.length-1)*e.lineHeightPx/2;s=o?`fpl-lbl fpl-lbl--pooled`:`fpl-lbl`,c=e.fontSize,l=`start`,u=d.map((t,n)=>(0,v.jsx)(`tspan`,{x:2,y:f+n*e.lineHeightPx,dominantBaseline:`central`,children:t},n)),t[0]=o,t[1]=r,t[2]=a,t[3]=n,t[4]=i,t[5]=s,t[6]=c,t[7]=l,t[8]=u}else s=t[5],c=t[6],l=t[7],u=t[8];let d;return t[9]!==s||t[10]!==c||t[11]!==l||t[12]!==u?(d=(0,v.jsx)(`text`,{className:s,fontSize:c,textAnchor:l,children:u}),t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}function nt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,studies:r,measure:o=`OR`,pooled:f,heterogeneity:p,favorsLeft:m,favorsRight:h,footer:g,delay:y}){let b=i[t]||i.chart,x=(0,_.useMemo)(()=>{let e=Qe[o]?o:`OR`,t=e===`OR`||e===`RR`||e===`HR`,n=+!!t,i=Array.isArray(r)?r:[],a=1/0;for(let e of i)if(!(!e||typeof e!=`object`))for(let t of[e.effect,e.ciLow,e.ciHigh])Z(t)&&t>0&&t<a&&(a=t);if(f&&typeof f==`object`)for(let e of[f.effect,f.ciLow,f.ciHigh])Z(e)&&e>0&&e<a&&(a=e);let s=a===1/0?.01:a/10,p=[];if(i.forEach((e,n)=>{let r=$e(e,n,t,s);r&&p.push(r)}),p.length===0)return null;let m=p.reduce((e,t)=>e+(t.ivWeight??0),0),h=null;if(f&&typeof f==`object`&&Z(f.effect)&&Z(f.ciLow)&&Z(f.ciHigh)){let e=Math.min(f.ciLow,f.ciHigh),n=Math.max(f.ciLow,f.ciHigh);t&&(e=e<=0?s:e,n=n<=0?s:n);let r=Math.min(n,Math.max(e,t&&f.effect<=0?s:f.effect)),i=typeof f.label==`string`&&f.label.trim()?f.label.trim():`Pooled`;h={effect:r,lo:e,hi:n,label:i,computed:!1}}else if(m>0){let e=p.reduce((e,t)=>e+(t.ivWeight??0)*t.theta,0)/m,n=Math.sqrt(1/m),r=e=>t?Math.exp(e):e;h={effect:r(e),lo:r(e-X*n),hi:r(e+X*n),label:`Pooled`,computed:!0}}let g=p.map(e=>e.givenWeight===null?e.ivWeight!==null&&m>0?100*e.ivWeight/m:null:e.givenWeight),_=e=>t?Math.log(e):e,v=_(n===0?0:1),y=v,b=e=>{let t=_(e);t<v&&(v=t),t>y&&(y=t)};p.forEach(e=>{b(e.lo),b(e.hi)}),h&&(b(h.lo),b(h.hi));let x;if(t){y-v<1e-9&&(v-=Math.LN2,y+=Math.LN2);let e=(y-v)*.06;x=et(v,y),v-=e,y+=e}else[v,y]=u(v,y),x=c(v,y,d(y-v,5));let S=l([v,y],[J,Y]),C=e=>S(_(e)),w=p.length,T=Math.max(11,Math.min(24,Math.round(320/w))),E=h?Math.max(T,20):0,D=32+w*T+3,O=D+(h?5+E:4),k=O+Ze,A=Math.max(0,...g.filter(e=>e!==null)),j=Math.min(13,T-2);return{mKey:e,isRatio:t,nullValue:n,rows:p,weights:g,summary:h,x:C,axisTicks:x,rowH:T,rowsTop:32,sepY:D,axisY:O,H:k,side:e=>e===null||!(A>0)?4.5:4+(j-4)*Math.sqrt(Math.max(0,e)/A),anyClamped:p.some(e=>e.clamped)}},[r,o,f]),S=Math.min(7,x?x.rowH-4:7);return(0,v.jsxs)(`div`,{className:`card reveal stats-card`,style:{"--delay":(y||0)+`ms`},children:[(0,v.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,v.jsx)(b,{className:`ic`,style:{color:n}}),` `,e||`Forest plot`]}),!x&&(0,v.jsx)(`p`,{className:`faint`,style:{fontSize:13,margin:0},children:`Provide at least one study with an effect and its confidence interval.`}),x&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(`svg`,{viewBox:`0 0 ${Xe} ${x.H}`,className:`fpl-svg`,role:`img`,"aria-label":e||`Forest plot`,children:[(0,v.jsx)(`text`,{x:2,y:13,className:`fpl-colhead`,textAnchor:`start`,children:`Study`}),(0,v.jsxs)(`text`,{x:273,y:13,className:`fpl-colhead`,textAnchor:`middle`,children:[Qe[x.mKey],x.isRatio?` (log scale)`:``]}),(0,v.jsx)(`text`,{x:478,y:13,className:`fpl-colhead`,textAnchor:`end`,children:`Weight`}),(0,v.jsx)(`line`,{className:`fpl-null`,x1:x.x(x.nullValue),y1:26,x2:x.x(x.nullValue),y2:x.axisY}),x.rows.map((e,t)=>{let n=x.rowsTop+t*x.rowH+x.rowH/2,r=x.weights[t],i=x.side(r),a=x.rowH>=22?2:1,o=x.rowH>=18?10.5:x.rowH>=14?9.5:8.5;return(0,v.jsxs)(`g`,{className:e.clamped?`fpl-row fpl-row--clamped m-stagger-item`:`fpl-row m-stagger-item`,style:{"--i":Math.min(t,15)},children:[(0,v.jsx)(`title`,{children:`${e.label}: ${Q(e.effect)} (95% CI ${Q(e.lo)} to ${Q(e.hi)})`+(r===null?``:`, weight ${s(r,{decimals:1})}%`)+(e.clamped?` — clamped to fit the log axis`:``)}),(0,v.jsx)(tt,{label:e.label,cy:n,maxLines:a,fontSize:o}),(0,v.jsx)(`line`,{className:`fpl-ci`,x1:x.x(e.lo),y1:n,x2:x.x(e.hi),y2:n}),(0,v.jsx)(`line`,{className:`fpl-ci`,x1:x.x(e.lo),y1:n-S/2,x2:x.x(e.lo),y2:n+S/2}),(0,v.jsx)(`line`,{className:`fpl-ci`,x1:x.x(e.hi),y1:n-S/2,x2:x.x(e.hi),y2:n+S/2}),(0,v.jsx)(`rect`,{className:`fpl-sq`,x:x.x(e.effect)-i/2,y:n-i/2,width:i,height:i}),(0,v.jsx)(`text`,{x:478,y:n,className:`fpl-wt`,textAnchor:`end`,dominantBaseline:`central`,children:r===null?`—`:`${s(r,{decimals:1})}%`})]},e.key)}),x.summary&&(0,v.jsxs)(`g`,{className:`fpl-row m-fade-rise m-stagger-item`,style:{"--i":Math.min(x.rows.length,16)},children:[(0,v.jsx)(`title`,{children:`${x.summary.label}: ${Q(x.summary.effect)} (95% CI ${Q(x.summary.lo)} to ${Q(x.summary.hi)})`+(x.summary.computed?` — fixed-effect inverse-variance pool`:``)}),(0,v.jsx)(`line`,{className:`fpl-sep`,x1:2,y1:x.sepY,x2:478,y2:x.sepY}),(()=>{let e=x.sepY+5+Math.max(x.rowH,20)/2,t=Math.min(7,Math.max(5,x.rowH/2-1)),n=x.x(x.summary.lo),r=x.x(x.summary.hi),i=x.x(x.summary.effect);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(tt,{label:x.summary.label,cy:e,maxLines:1,fontSize:10.5,bold:!0}),(0,v.jsx)(`polygon`,{className:`fpl-diamond`,points:`${n},${e} ${i},${e-t} ${r},${e} ${i},${e+t}`}),(0,v.jsx)(`text`,{x:478,y:e,className:`fpl-wt fpl-wt--pooled`,textAnchor:`end`,dominantBaseline:`central`,children:`100%`})]})})()]}),(0,v.jsx)(`line`,{className:`fpl-axis`,x1:J,y1:x.axisY,x2:Y,y2:x.axisY}),x.axisTicks.map(e=>(0,v.jsxs)(`g`,{children:[(0,v.jsx)(`line`,{className:`fpl-axis`,x1:x.x(e),y1:x.axisY,x2:x.x(e),y2:x.axisY+4}),(0,v.jsx)(`text`,{className:`fpl-tick`,x:x.x(e),y:x.axisY+15,textAnchor:`middle`,children:Math.abs(e)>=1e3?s(e,{compact:!0}):s(e)})]},`t${e}`)),typeof m==`string`&&m.trim()&&(0,v.jsx)(rt,{text:`← ${m.trim()}`,x:J,anchor:`start`,y:x.axisY+28}),typeof h==`string`&&h.trim()&&(0,v.jsx)(rt,{text:`${h.trim()} →`,x:Y,anchor:`end`,y:x.axisY+28})]}),(0,v.jsxs)(`p`,{className:`fpl-caption faint tab-num`,children:[x.summary?`${x.summary.label} ${x.mKey} ${Q(x.summary.effect)} (95% CI ${Q(x.summary.lo)}–${Q(x.summary.hi)})`+(x.summary.computed?` · fixed-effect, inverse-variance`:``):`${x.rows.length} ${x.rows.length===1?`study`:`studies`}`,typeof p==`string`&&p.trim()?` · ${p.trim()}`:``]}),x.anyClamped&&(0,v.jsx)(`p`,{className:`fpl-caption faint`,children:`† interval clamped — a log axis cannot place values ≤ 0.`})]}),g&&(0,v.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(g)})]})}function rt(e){let t=(0,I.c)(13),{text:n,x:r,anchor:i,y:a}=e,o,s,c,l;if(t[0]!==i||t[1]!==n||t[2]!==r||t[3]!==a){let e=g(n,{maxWidth:143,fontSize:9,minFontSize:7,maxLines:2,lineHeight:1.15});o=`fpl-favors`,s=e.fontSize,c=i,l=e.lines.slice(0,2).map((t,n)=>(0,v.jsx)(`tspan`,{x:r,y:a+n*e.lineHeightPx,children:t},n)),t[0]=i,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l}else o=t[4],s=t[5],c=t[6],l=t[7];let u;return t[8]!==o||t[9]!==s||t[10]!==c||t[11]!==l?(u=(0,v.jsx)(`text`,{className:o,fontSize:s,textAnchor:c,children:l}),t[8]=o,t[9]=s,t[10]=c,t[11]=l,t[12]=u):u=t[12],u}var it=e({statsRegistry:()=>$}),$={sparkstat:h(y),counter:h(b),herostat:h(x),trendtile:h(T),scorebadge:h(E),percentilebar:h(D),statpair:h(O),scorecard:h(k),deltacascade:h(A),bulletkpi:h(j),confusionmatrix:h(se),kpidashboard:h(de),abtestresult:h(ge),powersample:h(we),inventoryreorder:h(Oe),boardgamescore:h(Ae),cvssscorecard:h(Fe),ridgeplot:h(Ge),ecdf:h(Ye),forestplot:h(nt)};export{$ as n,it as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i}from"./icons-gLFQTv74.js";import{t as a}from"./richText-BkxJhl9N.js";import{i as o,r as s}from"./format-q0LwBjID.js";import{t as c}from"./scale-Bcgfo6Hp.js";import{t as l}from"./BlockEmpty-B82uCse8.js";import"./lib-B7OE1ZQQ.js";import{n as u,t as d}from"./motion-DxHSlPN6.js";import{t as f}from"./registry-types-D3q_LrlV.js";import{t as p}from"./annotations-CftUUB13.js";var m=t();function h(e){let t=parseFloat(String(e??``).replace(/[^0-9.-]/g,``));return Number.isNaN(t)?0:t}var g=e=>e.trim().toLowerCase(),_={formatCell:(e,t)=>t,cellTone:()=>void 0,cellBar:()=>void 0,rowTone:()=>void 0,dimUnmatched:!1,summaryRows:[],active:!1};function v(e,t,n){if(!e||e.length===0)return _;let r=t[0]?.key??``,i=new Set(t.filter(e=>e.numeric).map(e=>e.key)),a=new Map,c=new Map,l=new Map,u=new Map,d=!1,f=[];for(let p of e)switch(p.op){case`format`:{let e=p.target.kind===`column`?[p.target.key]:t.map(e=>e.key);for(let t of e)a.set(t,e=>{let t=h(e);return p.as===`currency`?s(t,{currency:`USD`}):p.as===`percent`?s(t,{percent:!0}):p.as===`unit`?o(t,p.unit):p.as===`duration`?o(t,p.unit??`min`):e});break}case`status`:c.set(p.target.key,p.rules);break;case`bar`:{let e=p.target.key,t=Math.max(1,...n.map(t=>Math.abs(h(t[e]))));l.set(e,t);break}case`emphasize`:p.target.kind===`row`&&(u.set(g(p.target.match),p.tone??`presence`),p.dimOthers&&(d=!0));break;case`summary`:{let e=(p.columns??t.map(e=>e.key)).filter(e=>i.has(e)||p.columns?.includes(e)),o={};for(let t of e){let e=n.map(e=>h(e[t]));if(e.length===0)continue;let r;switch(p.stat){case`total`:r=e.reduce((e,t)=>e+t,0);break;case`mean`:r=e.reduce((e,t)=>e+t,0)/e.length;break;case`max`:r=Math.max(...e);break;case`min`:r=Math.min(...e);break;case`count`:r=e.length;break;default:r=0}let i=a.get(t);o[t]=i?i(String(r)):s(r,{})}let c=p.label??{total:`Total`,mean:`Average`,max:`Max`,min:`Min`,count:`Count`}[p.stat];r&&o[r]===void 0&&(o[r]=c),f.push({label:c,cells:o});break}}let m=e=>e?p[e]:void 0;return{active:!0,dimUnmatched:d,summaryRows:f,formatCell:(e,t)=>{let n=a.get(e);return n?n(t):t},cellTone:(e,t)=>{let n=c.get(e);if(!n)return;let r=n.find(e=>g(t).includes(g(e.match)));return r?p[r.tone]:void 0},cellBar:(e,t)=>{let n=l.get(e);if(n)return Math.max(0,Math.min(1,Math.abs(h(t))/n))},rowTone:e=>m(u.get(g(e)))}}var y=r(),b=e=>{let t=parseFloat(String(e).replace(/[^0-9.-]/g,``));return Number.isNaN(t)?0:t};function x({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,columns:r,rows:a,sortKey:o,sortDir:s=`desc`,searchable:c=!0,searchPlaceholder:l=`Filter rows…`,footer:u,annotations:d,delay:f}){let p=i[t]||i.table,[h,g]=(0,m.useState)(o||r[0]?.key),[_,x]=(0,m.useState)(s),[S,C]=(0,m.useState)(``),w=e=>r.find(t=>t.key===e),T=r[0]?.key??``,E=(0,m.useMemo)(()=>v(d,r,a),[d,r,a]),D=(0,m.useMemo)(()=>{let e=S.trim().toLowerCase(),t=a;e&&(t=a.filter(t=>Object.values(t).some(t=>String(t).toLowerCase().includes(e))));let n=w(h);return[...t].sort((e,t)=>{let r=e[h]??``,i=t[h]??``,a=n?.numeric?b(r)-b(i):String(r).localeCompare(String(i));return _===`asc`?a:-a})},[a,S,h,_]),O=e=>{e===h?x(e=>e===`asc`?`desc`:`asc`):(g(e),x(w(e)?.numeric?`desc`:`asc`))};return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-head`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsxs)(`label`,{className:`tbl-search`,children:[(0,y.jsx)(i.eye,{className:`tbl-search-ic`}),(0,y.jsx)(`input`,{value:S,onChange:e=>C(e.target.value),placeholder:l}),S&&(0,y.jsx)(`button`,{className:`tbl-search-x`,onClick:()=>C(``),"aria-label":`clear`,children:(0,y.jsx)(i.x,{})})]})]}),(0,y.jsx)(`div`,{className:`dt-scroll`,children:(0,y.jsxs)(`table`,{className:`dt`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsx)(`tr`,{children:r.map(e=>(0,y.jsx)(`th`,{className:`dt-th ${e.align===`right`?`r`:``} ${h===e.key?`on`:``}`,onClick:()=>O(e.key),children:(0,y.jsxs)(`span`,{className:`dt-th-in`,children:[e.label,(0,y.jsx)(`span`,{className:`dt-sort ${h===e.key?_:``}`,children:h===e.key&&_===`asc`?(0,y.jsx)(i.arrowUp,{}):(0,y.jsx)(i.arrowDown,{})})]})},e.key))})}),(0,y.jsxs)(`tbody`,{children:[D.map((e,t)=>{let n=E.active?E.rowTone(e[T]??``):void 0,i=E.dimUnmatched&&!n;return(0,y.jsx)(`tr`,{className:`dt-row${n?` dt-row-emph`:``}${i?` dt-row-dim`:``}`,style:n?{"--emph":n}:void 0,children:r.map(t=>{let n=e[t.key]??``,r=E.active?E.formatCell(t.key,n):n,i=E.active?E.cellTone(t.key,n):void 0,a=E.active?E.cellBar(t.key,n):void 0;return(0,y.jsxs)(`td`,{className:`dt-td ${t.align===`right`?`r tab-num`:``} ${h===t.key?`on`:``}`,style:{...t.color?{color:t.color}:{},...i?{color:i}:{}},children:[a!==void 0&&(0,y.jsx)(`span`,{className:`dt-bar`,style:{width:`${Math.round(a*100)}%`}}),(0,y.jsx)(`span`,{className:`dt-cell-v`,children:r})]},t.key)})},t)}),D.length===0&&(0,y.jsx)(`tr`,{children:(0,y.jsxs)(`td`,{className:`dt-empty`,colSpan:r.length,children:[`No rows match “`,S,`”.`]})})]}),E.summaryRows.length>0&&D.length>0&&(0,y.jsx)(`tfoot`,{children:E.summaryRows.map((e,t)=>(0,y.jsx)(`tr`,{className:`dt-summary`,children:r.map((t,n)=>(0,y.jsx)(`td`,{className:`dt-td dt-summary-td ${t.align===`right`?`r tab-num`:``}`,children:e.cells[t.key]??(n===0?e.label:``)},t.key))},t))})]})}),(0,y.jsxs)(`div`,{className:`tbl-foot-meta faint`,children:[D.length,` of `,a.length,` rows · sorted by `,w(h)?.label,` `,_===`asc`?`↑`:`↓`]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u})]})}function S({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,rowGroup:r,colHeaders:a,measures:o,rows:s,measure:c=0,accent:l=`var(--presence)`,footer:u,delay:d}){let f=i[t]||i.table,[p,h]=(0,m.useState)(Math.max(0,Math.min(c,o.length-1))),[g,_]=(0,m.useState)(null),v=o[p],b=v?.key??``,x=e=>typeof e==`number`&&Number.isFinite(e)?e:null,S=(e,t)=>s[e]?.cells[t]?.values[b],C=s.flatMap(e=>e.cells.map(e=>x(e.values[b]))).filter(e=>e!==null),w=C.length>0,T=Math.max(1,...C),E=e=>`${v?.prefix||``}${e.toLocaleString()}${v?.unit||``}`,D=a.map((e,t)=>s.reduce((e,n)=>e+(x(n.cells[t]?.values[b])??0),0)),O=D.reduce((e,t)=>e+t,0),k=e=>/^(totals?|grand\s*total|sum|all)$/i.test(e.trim()),A=s.length>0&&k(s[s.length-1]?.label??``),j=a.some(e=>k(String(e))),M=a.map((e,t)=>s.some(e=>x(e.cells[t]?.values[b])!==null)),N=w&&!A,P=w&&!j;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-head`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),o.length>1&&(0,y.jsx)(`div`,{className:`seg`,role:`tablist`,children:o.map((e,t)=>(0,y.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t===p,className:`seg-btn ${t===p?`on`:``}`,onClick:()=>h(t),children:e.label},`${e.key}-${t}`))})]}),(0,y.jsx)(`div`,{className:`dt-scroll`,children:(0,y.jsxs)(`table`,{className:`pv`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`pv-corner`,children:r}),a.map((e,t)=>(0,y.jsx)(`th`,{className:`pv-colh ${g?.c===t?`on`:``}`,children:e},t)),P&&(0,y.jsx)(`th`,{className:`pv-colh tot`,children:`Total`})]})}),(0,y.jsxs)(`tbody`,{children:[s.map((e,t)=>{let n=e.cells.reduce((e,t)=>e+(x(t.values[b])??0),0);return(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`pv-rowh ${g?.r===t?`on`:``}`,children:e.label}),e.cells.map((e,n)=>{let r=S(t,n),i=x(r),a=i===null?0:i/T*.82+.04,o=g?.r===t&&g?.c===n;return(0,y.jsxs)(`td`,{className:`pv-cell ${o?`hot`:``}`,style:{background:i===null?void 0:`color-mix(in oklab, ${l} ${a*100}%, transparent)`},onMouseEnter:()=>_({r:t,c:n}),onMouseLeave:()=>_(null),children:[(0,y.jsx)(`span`,{className:i===null?`pv-v`:`pv-v tab-num`,children:i===null?String(r??``):E(i)}),o&&i!==null&&O>0&&(0,y.jsxs)(`span`,{className:`pv-tip`,children:[(i/O*100).toFixed(1),`% of total`]})]},n)}),P&&(0,y.jsx)(`td`,{className:`pv-cell tot tab-num`,children:E(n)})]},t)}),N&&(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`pv-rowh tot`,children:`Total`}),D.map((e,t)=>(0,y.jsx)(`td`,{className:`pv-cell tot tab-num`,children:M[t]?E(e):`—`},t)),P&&(0,y.jsx)(`td`,{className:`pv-cell tot grand tab-num`,children:E(O)})]})]})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:u})]})}var C=[`var(--warning)`,`var(--text-secondary)`,`var(--presence-soft)`];function w({r:e,rank:t,value:n,width:r,unit:a,color:o,hot:s,onEnter:c,onLeave:l}){let u=d(n,{duration:900,decimals:0}),f=e.move??0;return(0,y.jsxs)(`div`,{className:`lb-row m-stagger-item m-fade-rise ${s?`hot`:``} ${t<3?`podium`:``}`,style:{"--i":t},onMouseEnter:c,onMouseLeave:l,children:[(0,y.jsxs)(`div`,{className:`lb-rank`,style:t<3?{color:C[t]}:void 0,children:[t<3?(0,y.jsx)(`span`,{className:`lb-medal`,children:`●`}):null,t+1]}),(0,y.jsxs)(`div`,{className:`lb-body`,children:[(0,y.jsxs)(`div`,{className:`lb-top`,children:[(0,y.jsx)(`span`,{className:`lb-name`,children:e.name}),e.sub&&(0,y.jsx)(`span`,{className:`lb-sub faint`,children:e.sub}),(0,y.jsx)(`span`,{className:`lb-spacer`}),(0,y.jsxs)(`span`,{className:`lb-val tab-num`,"data-mark":t===0?`underline`:void 0,children:[u,a]})]}),(0,y.jsx)(`div`,{className:`lb-track`,children:(0,y.jsx)(`div`,{className:`lb-fill`,style:{width:`${r}%`,background:o}})})]}),(0,y.jsxs)(`div`,{className:`lb-move ${f>0?`up`:f<0?`down`:`flat`}`,children:[f>0?(0,y.jsx)(i.arrowUp,{}):f<0?(0,y.jsx)(i.arrowDown,{}):(0,y.jsx)(`span`,{className:`lb-dash`,children:`–`}),f!==0&&(0,y.jsx)(`span`,{className:`tab-num`,children:Math.abs(f)})]})]})}function T({title:e,icon:t=`chart`,iconColor:n=`var(--insight)`,metrics:r,rows:a,metric:o=0,accent:s=`var(--insight)`,footer:c,delay:l}){let u=i[t]||i.chart,[d,f]=(0,m.useState)(Math.max(0,Math.min(o,r.length-1))),[p,h]=(0,m.useState)(null),g=r[d],_=g?.key??``,v=(0,m.useMemo)(()=>[...a].map((e,t)=>({r:e,i:t})).sort((e,t)=>(t.r.values[_]??0)-(e.r.values[_]??0)),[a,_]),b=Math.max(1,...v.map(e=>e.r.values[_]??0));return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(l||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-head`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r.length>1&&(0,y.jsx)(`div`,{className:`seg`,children:r.map((e,t)=>(0,y.jsx)(`button`,{className:`seg-btn ${t===d?`on`:``}`,onClick:()=>f(t),children:e.label},`${e.key}-${t}`))})]}),(0,y.jsx)(`div`,{className:`lb`,children:v.map(({r:e,i:t},n)=>{let r=e.values[_]??0,i=r/b*100;return(0,y.jsx)(w,{r:e,rank:n,value:r,width:i,unit:g?.unit||``,color:n<3?C[n]:s,hot:p===n,onEnter:()=>h(n),onLeave:()=>h(null)},`${e.name}-${t}`)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c})]})}function E(e){return e.join(`.`)}function D(e){if(e==null)return 0;let t=parseFloat(e.replace(/[^0-9.-]/g,``));return Number.isFinite(t)?t:0}function O(e){let t=new Map,n=e=>{let r=e.children?.map(n)??[],i=D(e.value),a=i>0||!r.length?i:r.reduce((e,t)=>e+t.value,0),o=r.reduce((e,t)=>e+(t.pct??0),0),s={value:a,pct:e.pct!=null&&e.pct>0?e.pct:o>0?o:e.pct};return t.set(e,s),s};return e.forEach(n),t}function k({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,valueLabel:r=`Value`,nodes:a,accent:o=`var(--presence)`,footer:s,delay:c}){let l=i[t]||i.layers,[u,d]=(0,m.useState)(()=>{let e=new Set,t=(n,r)=>n.forEach((n,i)=>{let a=[...r,i];n.open&&n.children?.length&&e.add(E(a)),n.children&&t(n.children,a)});return t(a,[]),e}),f=(0,m.useMemo)(()=>O(a),[a]),p=e=>d(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),h=(e,t,n)=>e.flatMap((e,r)=>{let a=[...t,r],s=E(a),c=u.has(s),l=!!e.children?.length,d=e.color||o,m=f.get(e),g=m?.pct,_=m?.value??0,v=D(e.value)>0?e.value:_>0?String(_):e.value,b=[(0,y.jsxs)(`div`,{className:`tt-row ${l?`parent`:`leaf`} ${n===0?`top`:``}`,style:{paddingLeft:8+n*18},onClick:l?()=>p(s):void 0,onKeyDown:l?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p(s))}:void 0,role:l?`button`:void 0,tabIndex:l?0:void 0,children:[(0,y.jsx)(`span`,{className:`tt-caret ${l?``:`hidden`} ${c?`open`:``}`,children:(0,y.jsx)(i.chevR,{})}),(0,y.jsx)(`span`,{className:`tt-label`,children:e.label}),e.tag&&(0,y.jsx)(`span`,{className:`tt-tag`,style:{color:d,borderColor:`color-mix(in oklab, ${d} 40%, transparent)`},children:e.tag}),(0,y.jsx)(`span`,{className:`tt-spacer`}),g!=null&&(0,y.jsx)(`span`,{className:`tt-bar`,children:(0,y.jsx)(`span`,{className:`tt-bar-fill`,style:{width:`${Math.round(g*100)}%`,background:d}})}),v!=null&&(0,y.jsx)(`span`,{className:`tt-val tab-num`,children:v})]},s)];return l&&c&&b.push(...h(e.children,a,n+1)),b});return(0,y.jsxs)(`div`,{className:`card reveal tbl`,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.jsxs)(`div`,{className:`tt-header`,children:[(0,y.jsx)(`span`,{className:`tt-h-label`,children:`Item`}),(0,y.jsx)(`span`,{className:`tt-h-val`,children:r})]}),(0,y.jsx)(`div`,{className:`tt`,children:h(a,[],0)}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}function A({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,ticks:r,lanes:a,footer:o,delay:s}){let c=i[t]||i.clock,[l,u]=(0,m.useState)(null);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`sw`,children:[a.map((e,t)=>(0,y.jsxs)(`div`,{className:`sw-lane`,children:[(0,y.jsxs)(`div`,{className:`sw-actor`,children:[(0,y.jsx)(`span`,{className:`sw-actor-name`,children:e.actor}),e.sub&&(0,y.jsx)(`span`,{className:`sw-actor-sub faint`,children:e.sub})]}),(0,y.jsxs)(`div`,{className:`sw-track`,children:[(0,y.jsx)(`span`,{className:`sw-baseline`}),e.events.map((e,n)=>{let r=e.color||`var(--presence)`,i=l?.l===t&&l?.e===n,a=`${Math.max(0,Math.min(1,e.at))*100}%`;if(e.span&&e.span>0){let o=`${Math.max(.02,Math.min(1-e.at,e.span))*100}%`;return(0,y.jsxs)(`div`,{className:`sw-bar ${i?`hot`:``}`,style:{left:a,width:o,background:`color-mix(in oklab, ${r} 26%, transparent)`,borderColor:r},onMouseEnter:()=>u({l:t,e:n}),onMouseLeave:()=>u(null),children:[(0,y.jsx)(`span`,{className:`sw-bar-label`,style:{color:r},children:e.label}),i&&e.detail&&(0,y.jsx)(`span`,{className:`sw-tip`,children:e.detail})]},n)}return(0,y.jsxs)(`div`,{className:`sw-evt ${i?`hot`:``}`,style:{left:a},onMouseEnter:()=>u({l:t,e:n}),onMouseLeave:()=>u(null),children:[(0,y.jsx)(`span`,{className:`sw-dot`,style:{background:r,boxShadow:`0 0 0 4px color-mix(in oklab, ${r} 22%, transparent)`}}),(0,y.jsx)(`span`,{className:`sw-evt-label`,children:e.label}),i&&e.detail&&(0,y.jsx)(`span`,{className:`sw-tip`,children:e.detail})]},n)})]})]},t)),r&&r.length>0&&(0,y.jsxs)(`div`,{className:`sw-axis`,children:[(0,y.jsx)(`span`,{className:`sw-actor`}),(0,y.jsx)(`div`,{className:`sw-axis-ticks`,children:r.map((e,t)=>(0,y.jsx)(`span`,{className:`sw-tick faint`,children:e},t))})]})]}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:o})]})}function j({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,columns:r,rows:o,notes:s,footer:c,delay:l}){let u=i[t]||i.doc,[d,f]=(0,m.useState)(null),[p,h]=(0,m.useState)(null),g=p??d;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,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:`dt-scroll`,children:(0,y.jsxs)(`table`,{className:`dt ft`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsx)(`tr`,{children:r.map((e,t)=>(0,y.jsx)(`th`,{className:`dt-th ${t===0?``:`r`}`,children:e},t))})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>(0,y.jsx)(`tr`,{className:`dt-row`,children:e.cells.map((e,t)=>(0,y.jsxs)(`td`,{className:`dt-td ${t===0?``:`r tab-num`}`,style:e.color?{color:e.color}:void 0,children:[e.v,e.note!=null&&(0,y.jsx)(`button`,{className:`ft-anchor ${g===e.note?`on`:``} ${d===e.note?`pin`:``}`,onMouseEnter:()=>h(e.note),onMouseLeave:()=>h(null),onClick:()=>f(t=>t===e.note?null:e.note),"aria-label":`footnote ${e.note}`,children:e.note})]},t))},t))})]})}),(0,y.jsx)(`div`,{className:`ft-notes`,children:s.map((e,t)=>{let n=t+1;return(0,y.jsxs)(`div`,{className:`ft-note ${g===n?`on`:``}`,children:[(0,y.jsx)(`span`,{className:`ft-note-i`,children:n}),(0,y.jsx)(`span`,{className:`ft-note-t`,dangerouslySetInnerHTML:a(e)})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:c})]})}var M=n(),N=116,P=34;function F(e){let t=(0,M.c)(48),{row:n,hoverI:r,onHover:i,delay:a}=e,o=(0,m.useRef)(null),s;t[0]===a?s=t[1]:(s={delay:a},t[0]=a,t[1]=s),u(o,s);let c=n.series;if(c.length===0){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`svg`,{className:`sk-svg`,viewBox:`0 0 ${N} ${P}`,preserveAspectRatio:`none`,"aria-hidden":`true`}),t[2]=e):e=t[2],e}let l=Math.min(...c),d=Math.max(...c)-l||1,f=n.color||(n.deltaDir===`down`?`var(--danger)`:`var(--insight)`),p,h,g,_,v,b;if(t[3]!==l||t[4]!==d||t[5]!==c){let e;t[12]!==l||t[13]!==d||t[14]!==c.length?(e=(e,t)=>[t/(c.length-1||1)*112+2,31-(e-l)/d*28],t[12]=l,t[13]=d,t[14]=c.length,t[15]=e):e=t[15],h=c.map(e),p=h.map(ee).join(` `),g=p,_=h[h.length-1][0].toFixed(1),v=P,b=h[0][0].toFixed(1),t[3]=l,t[4]=d,t[5]=c,t[6]=p,t[7]=h,t[8]=g,t[9]=_,t[10]=v,t[11]=b}else p=t[6],h=t[7],g=t[8],_=t[9],v=t[10],b=t[11];let x=`${g} L${_} ${v} L${b} ${P} Z`,S;if(t[16]!==n.name){let e;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\W/g,t[18]=e):e=t[18],S=n.name.replace(e,``),t[16]=n.name,t[17]=S}else S=t[17];let C=`sg-${S}`,w;t[19]===i?w=t[20]:(w=()=>i(null),t[19]=i,t[20]=w);let T;t[21]!==i||t[22]!==c.length?(T=e=>{let t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width;i(Math.max(0,Math.min(c.length-1,Math.round(n*(c.length-1)))))},t[21]=i,t[22]=c.length,t[23]=T):T=t[23];let E,D;t[24]===f?(E=t[25],D=t[26]):(D=(0,y.jsx)(`stop`,{offset:`0%`,stopColor:f,stopOpacity:`0.28`}),E=(0,y.jsx)(`stop`,{offset:`100%`,stopColor:f,stopOpacity:`0`}),t[24]=f,t[25]=E,t[26]=D);let O;t[27]!==C||t[28]!==E||t[29]!==D?(O=(0,y.jsx)(`defs`,{children:(0,y.jsxs)(`linearGradient`,{id:C,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[D,E]})}),t[27]=C,t[28]=E,t[29]=D,t[30]=O):O=t[30];let k=`url(#${C})`,A;t[31]!==x||t[32]!==k?(A=(0,y.jsx)(`path`,{d:x,fill:k,stroke:`none`}),t[31]=x,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==f||t[35]!==p?(j=(0,y.jsx)(`path`,{ref:o,d:p,fill:`none`,stroke:f,strokeWidth:`1.6`,strokeLinejoin:`round`,strokeLinecap:`round`}),t[34]=f,t[35]=p,t[36]=j):j=t[36];let F;t[37]!==f||t[38]!==r||t[39]!==h?(F=r!=null&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`line`,{x1:h[r][0],y1:`0`,x2:h[r][0],y2:P,stroke:`var(--hover-line)`,strokeWidth:`1`}),(0,y.jsx)(`circle`,{cx:h[r][0],cy:h[r][1],r:`2.6`,fill:f,stroke:`var(--surface-elevated)`,strokeWidth:`1.4`})]}),t[37]=f,t[38]=r,t[39]=h,t[40]=F):F=t[40];let I;return t[41]!==O||t[42]!==A||t[43]!==j||t[44]!==F||t[45]!==w||t[46]!==T?(I=(0,y.jsxs)(`svg`,{className:`sk-svg`,viewBox:`0 0 ${N} ${P}`,preserveAspectRatio:`none`,"aria-hidden":`true`,onMouseLeave:w,onMouseMove:T,children:[O,A,j,F]}),t[41]=O,t[42]=A,t[43]=j,t[44]=F,t[45]=w,t[46]=T,t[47]=I):I=t[47],I}function ee(e,t){return`${t?`L`:`M`}${e[0].toFixed(1)} ${e[1].toFixed(1)}`}function I({title:e,icon:t=`chart`,iconColor:n=`var(--insight)`,valueLabel:r=`Current`,trendLabel:a=`Trend`,rows:o,footer:s,delay:c}){let l=i[t]||i.chart,[u,d]=(0,m.useState)(null);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,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.jsxs)(`div`,{className:`sk-header`,children:[(0,y.jsx)(`span`,{className:`sk-h-name`,children:`Series`}),(0,y.jsx)(`span`,{className:`sk-h-trend`,children:a}),(0,y.jsx)(`span`,{className:`sk-h-val`,children:r})]}),(0,y.jsx)(`div`,{className:`sk`,children:o.map((e,t)=>{let n=e.deltaDir,r=u?.row===t?u.i:null;return(0,y.jsxs)(`div`,{className:`sk-row`,children:[(0,y.jsx)(`span`,{className:`sk-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`sk-trend`,children:[(0,y.jsx)(F,{row:e,hoverI:r,onHover:e=>d(e==null?null:{row:t,i:e}),delay:Math.min(t*60,480)}),r!=null&&(0,y.jsx)(`span`,{className:`sk-point tab-num`,children:e.series[r].toLocaleString()})]}),(0,y.jsxs)(`span`,{className:`sk-val tab-num`,children:[e.value,e.delta&&(0,y.jsxs)(`span`,{className:`sk-delta ${n===`down`?`down`:n===`flat`?`flat`:`up`}`,children:[n===`down`?(0,y.jsx)(i.arrowDown,{}):n===`flat`?null:(0,y.jsx)(i.arrowUp,{}),e.delta]})]})]},t)})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}var L=100,R=40;function te(e){let t=(0,M.c)(33),{panel:n,gmin:r,gmax:i,kind:a,accent:o}=e,s=n.series,c=i-r||1,l=n.color||o;if(s.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`svg`,{className:`sm-svg`,viewBox:`0 0 ${L} ${R}`,preserveAspectRatio:`none`,"aria-hidden":`true`}),t[0]=e):e=t[0],e}if(a===`bars`){let e=98/s.length,n;if(t[1]!==e||t[2]!==l||t[3]!==r||t[4]!==c||t[5]!==s){let i;t[7]!==e||t[8]!==l||t[9]!==r||t[10]!==c?(i=(t,n)=>{let i=(t-r)/c*36+2;return(0,y.jsx)(`rect`,{x:n*e+e*.16,y:R-i,width:e*.68,height:i,rx:`1`,fill:l,opacity:.55+.45*((t-r)/c)},n)},t[7]=e,t[8]=l,t[9]=r,t[10]=c,t[11]=i):i=t[11],n=s.map(i),t[1]=e,t[2]=l,t[3]=r,t[4]=c,t[5]=s,t[6]=n}else n=t[6];let i;return t[12]===n?i=t[13]:(i=(0,y.jsx)(`svg`,{className:`sm-svg`,viewBox:`0 0 ${L} ${R}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:n}),t[12]=n,t[13]=i),i}let u,d;if(t[14]!==r||t[15]!==c||t[16]!==s){let e;t[19]!==r||t[20]!==c||t[21]!==s.length?(e=(e,t)=>[t/(s.length-1||1)*96+2,37-(e-r)/c*34],t[19]=r,t[20]=c,t[21]=s.length,t[22]=e):e=t[22],u=s.map(e),d=u.map(ne).join(` `),t[14]=r,t[15]=c,t[16]=s,t[17]=u,t[18]=d}else u=t[17],d=t[18];let f=d,p;t[23]!==l||t[24]!==f?(p=(0,y.jsx)(`path`,{d:f,fill:`none`,stroke:l,strokeWidth:`1.7`,strokeLinejoin:`round`,strokeLinecap:`round`}),t[23]=l,t[24]=f,t[25]=p):p=t[25];let m=u[u.length-1],h=u[u.length-1],g;t[26]!==l||t[27]!==m[0]||t[28]!==h[1]?(g=(0,y.jsx)(`circle`,{cx:m[0],cy:h[1],r:`2`,fill:l}),t[26]=l,t[27]=m[0],t[28]=h[1],t[29]=g):g=t[29];let _;return t[30]!==p||t[31]!==g?(_=(0,y.jsxs)(`svg`,{className:`sm-svg`,viewBox:`0 0 ${L} ${R}`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:[p,g]}),t[30]=p,t[31]=g,t[32]=_):_=t[32],_}function ne(e,t){return`${t?`L`:`M`}${e[0].toFixed(1)} ${e[1].toFixed(1)}`}function re({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,panels:r,cols:a=3,kind:o=`bars`,footer:s,delay:c}){let l=i[t]||i.layers,[u,d]=(0,m.useState)(null),f=r.flatMap(e=>e.series),p=f.length?Math.min(...f):0,h=f.length?Math.max(...f):1;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,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:`sm-grid`,style:{gridTemplateColumns:`repeat(${a}, minmax(0, 1fr))`},onMouseLeave:()=>d(null),children:r.map((e,t)=>{let n=u!=null&&u!==t,r=e.deltaDir;return(0,y.jsxs)(`div`,{className:`sm-cell ${u===t?`hot`:``} ${n?`dimd`:``}`,onMouseEnter:()=>d(t),children:[(0,y.jsx)(`div`,{className:`sm-label`,children:e.label}),(0,y.jsx)(te,{panel:e,gmin:p,gmax:h,kind:o,accent:`var(--presence)`}),(0,y.jsxs)(`div`,{className:`sm-foot`,children:[e.stat&&(0,y.jsx)(`span`,{className:`sm-stat tab-num`,children:e.stat}),e.delta&&(0,y.jsxs)(`span`,{className:`sm-delta ${r===`down`?`down`:r===`flat`?`flat`:`up`}`,children:[r===`down`?(0,y.jsx)(i.arrowDown,{}):r===`flat`?null:(0,y.jsx)(i.arrowUp,{}),e.delta]})]})]},t)})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}function ie({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,series:r,rows:a,highlight:o=0,footer:s,delay:c}){let l=i[t]||i.chart,[u,d]=(0,m.useState)(o),[f,p]=(0,m.useState)(null),h=a[0],g=h&&h.values.length>0?h.higherBetter===!1?h.values.indexOf(Math.min(...h.values)):h.values.indexOf(Math.max(...h.values)):-1;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,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:`cb-legend`,children:r.map((e,t)=>(0,y.jsxs)(`button`,{className:`cb-leg ${u===t?`on`:``} ${u!==-1&&u!==t?`off`:``}`,onClick:()=>d(e=>e===t?-1:t),children:[(0,y.jsx)(`span`,{className:`cb-swatch`,style:{background:e.color}}),e.name]},t))}),(0,y.jsx)(`div`,{className:`cb`,children:a.map((e,t)=>{let n=Math.max(1,...e.values),i=e.values.length===0?-1:e.higherBetter===!1?e.values.indexOf(Math.min(...e.values)):e.values.indexOf(Math.max(...e.values));return(0,y.jsxs)(`div`,{className:`cb-row`,children:[(0,y.jsx)(`div`,{className:`cb-row-label`,children:e.label}),(0,y.jsx)(`div`,{className:`cb-bars`,children:r.map((a,o)=>{let s=e.values[o]??0,c=s/n*100,l=u!==-1&&u!==o,d=f?.r===t&&f?.s===o;return(0,y.jsxs)(`div`,{className:`cb-bar-wrap ${l?`dimd`:``} ${d?`hot`:``}`,onMouseEnter:()=>p({r:t,s:o}),onMouseLeave:()=>p(null),children:[(0,y.jsx)(`div`,{className:`cb-track`,children:(0,y.jsx)(`div`,{className:`cb-fill m-stagger-item m-scale-in`,"data-mark":t===0&&o===g?`circle`:void 0,style:{width:`${c}%`,background:a.color,"--i":t*r.length+o,"--scale-from":0}})}),(0,y.jsxs)(`span`,{className:`cb-num tab-num`,children:[s.toLocaleString(),e.unit||``,o===i&&(0,y.jsx)(`span`,{className:`cb-best`,style:{color:a.color},children:`★`})]}),d&&(0,y.jsxs)(`span`,{className:`cb-tip`,children:[a.name,`:`,` `,(0,y.jsxs)(`b`,{className:`tab-num`,children:[s.toLocaleString(),e.unit||``]})]})]},o)})})]},t)})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:s})]})}var z=5;function ae(e){let t=typeof e==`number`?e:parseFloat(String(e??``));return Number.isFinite(t)?Math.max(0,Math.min(z,Math.round(t))):0}function oe(e){let t=(0,M.c)(5),{score:n}=e,r=`${n} out of ${z}`,i;t[0]===n?i=t[1]:(i=Array.from({length:z},(e,t)=>(0,y.jsx)(`span`,{className:`tbl-cmx-dot`+(t<n?` on`:``)},t)),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,y.jsx)(`span`,{className:`tbl-cmx-rating`,"aria-label":r,children:i}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function se(){let e=(0,M.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsxs)(`svg`,{className:`tbl-cmx-glyph partial`,viewBox:`0 0 16 16`,"aria-hidden":`true`,children:[(0,y.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,y.jsx)(`path`,{d:`M8 1.75a6.25 6.25 0 0 1 0 12.5z`,fill:`currentColor`})]}),e[0]=t):t=e[0],t}function ce(e){let t=(0,M.c)(9),{cell:n}=e;switch(n.kind??`text`){case`yes`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(i.check,{className:`tbl-cmx-glyph yes`,"aria-label":`yes`}),t[0]=e):e=t[0],e}case`no`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(i.x,{className:`tbl-cmx-glyph no`,"aria-label":`no`}),t[1]=e):e=t[1],e}case`partial`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(se,{}),t[2]=e):e=t[2],e}case`rating`:{let e;t[3]===n.value?e=t[4]:(e=ae(n.value),t[3]=n.value,t[4]=e);let r;return t[5]===e?r=t[6]:(r=(0,y.jsx)(oe,{score:e}),t[5]=e,t[6]=r),r}default:{let e=n.value==null?`—`:String(n.value),r;return t[7]===e?r=t[8]:(r=(0,y.jsx)(`span`,{className:`tbl-cmx-text`,children:e}),t[7]=e,t[8]=r),r}}}function le(e){let t=new Set;for(let n of e)for(let e of n.cells)t.add(e.kind??`text`);return[`yes`,`no`,`partial`,`rating`].filter(e=>t.has(e))}var ue={yes:`yes`,no:`no`,partial:`partial`,rating:`out of ${z}`};function de({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,cols:r,rows:o,caption:s,footer:c,delay:l}){let u=i[t]||i.table,d=`minmax(0, 1.3fr) repeat(${r.length}, minmax(0, 1fr))`,f=le(o);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]}),s&&(0,y.jsx)(`div`,{className:`tbl-cmx-cap`,children:s}),(0,y.jsx)(`div`,{className:`tbl-cmx-scroll`,children:(0,y.jsxs)(`div`,{className:`tbl-cmx-grid`,style:{gridTemplateColumns:d},children:[(0,y.jsx)(`div`,{className:`tbl-cmx-corner`}),r.map((e,t)=>(0,y.jsx)(`div`,{className:`tbl-cmx-colh`,children:e},`h${t}`)),o.map((e,t)=>(0,y.jsxs)(m.Fragment,{children:[(0,y.jsx)(`div`,{className:`tbl-cmx-rowh`,children:e.label}),r.map((t,n)=>{let r=e.cells[n],i=e.best===n;return(0,y.jsxs)(`div`,{className:`tbl-cmx-cell`+(i?` best`:``),children:[r?(0,y.jsx)(ce,{cell:r}):(0,y.jsx)(`span`,{className:`tbl-cmx-text`,children:`—`}),r?.note&&(0,y.jsx)(`div`,{className:`tbl-cmx-note`,children:r.note})]},n)})]},t))]})}),f.length>0&&(0,y.jsx)(`div`,{className:`tbl-cmx-legend`,children:f.map(e=>(0,y.jsxs)(`span`,{className:`tbl-cmx-legend-item`,children:[(0,y.jsx)(ce,{cell:{kind:e,value:e===`rating`?z:void 0}}),ue[e]]},e))}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function fe({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,rowLabels:r,colLabels:a,cells:o,min:s,max:c,accent:l=`var(--presence)`,diagonal:u=!1,unit:d=``,legend:f,footer:p,delay:h}){let g=i[t]||i.table,[_,v]=(0,m.useState)(null),b=o.flat(),x=s??(b.length?Math.min(...b):0),S=(c??(b.length?Math.max(...b):1))-x||1,C=e=>(e-x)/S;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(h||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsxs)(`div`,{className:`mg-wrap`,children:[(0,y.jsxs)(`div`,{className:`mg-grid`,style:{gridTemplateColumns:`minmax(0, auto) repeat(${a.length}, minmax(0, var(--mg-cell)))`},children:[(0,y.jsx)(`span`,{className:`mg-corner`}),a.map((e,t)=>(0,y.jsx)(`span`,{className:`mg-colh ${_?.c===t?`on`:``}`,children:e},t)),r.map((e,t)=>(0,y.jsx)(pe,{ri:t,label:e,vals:o[t]||[],colCount:a.length,norm:C,accent:l,diagonal:u,unit:d,hover:_,setHover:v},t))]}),f&&(0,y.jsxs)(`div`,{className:`mg-legend`,children:[(0,y.jsx)(`span`,{className:`faint`,children:f[0]}),(0,y.jsx)(`span`,{className:`mg-ramp`,style:{background:`linear-gradient(90deg, color-mix(in oklab, ${l} 6%, transparent), ${l})`}}),(0,y.jsx)(`span`,{className:`faint`,children:f[1]})]})]}),p&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},children:p})]})}function pe(e){let t=(0,M.c)(18),{ri:n,label:r,vals:i,colCount:a,norm:o,accent:s,diagonal:c,unit:l,hover:u,setHover:d}=e,f=`mg-rowh ${u?.r===n?`on`:``}`,p;t[0]!==r||t[1]!==f?(p=(0,y.jsx)(`span`,{className:f,children:r}),t[0]=r,t[1]=f,t[2]=p):p=t[2];let m;t[3]===a?m=t[4]:(m=Array.from({length:a}),t[3]=a,t[4]=m);let h;t[5]!==s||t[6]!==c||t[7]!==u||t[8]!==o||t[9]!==n||t[10]!==d||t[11]!==m||t[12]!==l||t[13]!==i?(h=m.map((e,t)=>{let r=i[t]??0,a=Math.max(0,Math.min(1,o(r))),f=c&&n===t,p=u?.r===n&&u?.c===t,m=u&&(u.r===n||u.c===t);return(0,y.jsxs)(`div`,{className:`mg-cell ${p?`hot`:``} ${m&&!p?`cross`:``} ${f?`diag`:``}`,style:{background:`color-mix(in oklab, ${s} ${(a*.9+.04)*100}%, transparent)`},onMouseEnter:()=>d({r:n,c:t}),onMouseLeave:()=>d(null),children:[(0,y.jsxs)(`span`,{className:`mg-v tab-num`,style:{color:a>.55?`var(--surface-deep)`:`var(--text-secondary)`},children:[r,l]}),p&&(0,y.jsxs)(`span`,{className:`mg-tip tab-num`,children:[r,l]})]},t)}),t[5]=s,t[6]=c,t[7]=u,t[8]=o,t[9]=n,t[10]=d,t[11]=m,t[12]=l,t[13]=i,t[14]=h):h=t[14];let g;return t[15]!==p||t[16]!==h?(g=(0,y.jsxs)(y.Fragment,{children:[p,h]}),t[15]=p,t[16]=h,t[17]=g):g=t[17],g}var B={overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,maxWidth:`100%`};function me({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,caption:r,corner:o,cols:s,rows:c,bracket:l=!1,footer:u,delay:d}){let f=i[t]||i.table,p=!!s&&s.length>0,m=c.some(e=>e.label!==void 0),h=Math.max(s?.length??0,...c.map(e=>e.cells.length)),g=`${m?`minmax(0, auto) `:``}repeat(${h}, minmax(60px, auto))`,_=(()=>{for(let e=0;e<c.length;e++){let t=c[e].cells.findIndex(e=>e.hot);if(t>=0)return`${e}-${t}`}return null})();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:`tbl-mtx-cap`,children:r}),(0,y.jsxs)(`div`,{className:`tbl-mtx-frame`,children:[l&&(0,y.jsx)(`div`,{className:`tbl-mtx-brk l`}),(0,y.jsxs)(`div`,{className:`tbl-mtx-grid`,style:{gridTemplateColumns:g},children:[p&&(0,y.jsxs)(y.Fragment,{children:[m&&(0,y.jsx)(`div`,{className:`tbl-mtx-corner`,style:B,title:o,children:o??``}),s.map((e,t)=>(0,y.jsx)(`div`,{className:`tbl-mtx-colh`,style:B,title:e,children:e},`h${t}`))]}),c.map((e,t)=>(0,y.jsx)(he,{ri:t,hasRowLabels:m,label:e.label,cells:e.cells,salientKey:_},t))]}),l&&(0,y.jsx)(`div`,{className:`tbl-mtx-brk r`})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function he(e){let t=(0,M.c)(13),{ri:n,hasRowLabels:r,label:i,cells:a,salientKey:o}=e,s;t[0]!==r||t[1]!==i?(s=r&&(0,y.jsx)(`div`,{className:`tbl-mtx-rowh`,style:B,title:i,children:i??``}),t[0]=r,t[1]=i,t[2]=s):s=t[2];let c;if(t[3]!==a||t[4]!==n||t[5]!==o){let e;t[7]!==n||t[8]!==o?(e=(e,t)=>(0,y.jsx)(`div`,{className:`tbl-mtx-cell`+(e.hot?` hot`:``),"data-mark":`${n}-${t}`===o?`circle`:void 0,style:e.color?{...B,background:e.color}:B,title:typeof e.v==`string`?e.v:void 0,children:e.v},t),t[7]=n,t[8]=o,t[9]=e):e=t[9],c=a.map(e),t[3]=a,t[4]=n,t[5]=o,t[6]=c}else c=t[6];let l;return t[10]!==s||t[11]!==c?(l=(0,y.jsxs)(y.Fragment,{children:[s,c]}),t[10]=s,t[11]=c,t[12]=l):l=t[12],l}function ge({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,rowVar:r,rows:o,colVar:l,cols:u,cells:d,unit:f,currency:p,higherBetter:h=!0,baseCell:g,footer:_,delay:v}){let b=i[t]||i.table,[x,S]=(0,m.useState)(null),C=(0,m.useMemo)(()=>c(d.flat()),[d]),w=e=>{if(!C||C[0]===C[1])return`transparent`;let t=(e-C[0])/(C[1]-C[0]);return h||(t=1-t),`color-mix(in oklab, ${t>=.5?`var(--insight)`:`var(--danger)`} ${(Math.abs(t-.5)*2*26).toFixed(0)}%, transparent)`},T=e=>s(e,{unit:p?void 0:f,currency:p});return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(v||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(b,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(`div`,{className:`tb-sens`,onMouseLeave:()=>S(null),children:(0,y.jsxs)(`table`,{className:`tb-sens-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsxs)(`th`,{className:`tb-sens-corner`,children:[(0,y.jsx)(`span`,{className:`tb-sens-rowvar`,children:r}),(0,y.jsx)(`span`,{className:`tb-sens-colvar`,children:l})]}),u.map((e,t)=>(0,y.jsx)(`th`,{className:`tb-sens-colh tab-num`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`tb-sens-rowh tab-num`,children:e}),u.map((e,n)=>{let r=d[t]?.[n],i=g&&g[0]===t&&g[1]===n,a=x&&x[0]===t&&x[1]===n;return(0,y.jsx)(`td`,{className:`tb-sens-cell tab-num`+(i?` is-base`:``)+(a?` is-hot`:``),style:{background:r==null?void 0:w(r)},onMouseEnter:()=>S([t,n]),children:r==null?`—`:T(r)},n)})]},t))})]})}),_&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(_)})]})}function _e(e){return e.value<e.low?`low`:e.value>e.high?`high`:`ok`}function ve({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,results:r,caption:o,footer:c,delay:l}){let u=i[t]||i.shield,d=r.findIndex(e=>_e(e)!==`ok`);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]}),o&&(0,y.jsx)(`div`,{className:`tb-lab-cap`,children:o}),(0,y.jsx)(`div`,{className:`tb-lab`,children:r.map((e,t)=>{let n=_e(e),r=(e.high-e.low||1)*.4,a=e.low-r,o=e.high+r,c=e=>Math.max(0,Math.min(100,(e-a)/(o-a)*100)),l=e.prior==null?0:Math.sign(e.value-e.prior);return(0,y.jsxs)(`div`,{className:`tb-lab-row flag-`+n,children:[(0,y.jsx)(`div`,{className:`tb-lab-name`,children:e.name}),(0,y.jsxs)(`div`,{className:`tb-lab-val tab-num`,"data-mark":t===d?`underline`:void 0,children:[s(e.value,{unit:e.unit}),l!==0&&(0,y.jsx)(i.arrowUp,{className:`tb-lab-trend`,style:{transform:l<0?`rotate(180deg)`:`none`}})]}),(0,y.jsxs)(`div`,{className:`tb-lab-track`,children:[(0,y.jsx)(`span`,{className:`tb-lab-band`,style:{left:`${c(e.low)}%`,width:`${c(e.high)-c(e.low)}%`}}),(0,y.jsx)(`span`,{className:`tb-lab-mark`,style:{left:`${c(e.value)}%`}})]}),(0,y.jsxs)(`div`,{className:`tb-lab-ref tab-num`,children:[s(e.low),`–`,s(e.high)]}),(0,y.jsx)(`div`,{className:`tb-lab-flag`,children:n===`high`?`High`:n===`low`?`Low`:``})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},dangerouslySetInnerHTML:a(c)})]})}function ye({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,recipes:r,ingredients:o,matrix:s,quantities:c,highlight:l,footer:u,delay:d}){let f=i[t]||i.table;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:`im-scroll`,children:(0,y.jsxs)(`table`,{className:`im-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`im-th im-th--label`,children:`Ingredient`}),r.map((e,t)=>(0,y.jsx)(`th`,{className:`im-th`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>{let n=l&&e.toLowerCase()===l.toLowerCase();return(0,y.jsxs)(`tr`,{className:`im-row${n?` highlighted`:``}`,children:[(0,y.jsx)(`td`,{className:`im-td-label`,children:e}),r.map((e,n)=>{let r=s[t]?.[n]??!1,a=c?.[t]?.[n];return(0,y.jsx)(`td`,{className:`im-td${r?` used`:``}`,children:r?a?(0,y.jsx)(`span`,{className:`im-qty`,children:a}):(0,y.jsx)(i.check,{className:`ic`,style:{width:13,height:13,color:`var(--insight)`}}):(0,y.jsx)(`span`,{className:`im-empty`})},n)})]},t)})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function be({title:e,verb:t,language:n,tenses:r,note:i,delay:a}){let o=r[0]?.forms.map(e=>e.pronoun)??[];return(0,y.jsxs)(`div`,{className:`card reveal tbl tbl-cj`,style:{"--delay":(a||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`tbl-cj-header`,children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:0},children:[n&&(0,y.jsx)(`span`,{className:`tbl-cj-lang`,children:n}),e]}),(0,y.jsx)(`div`,{className:`tbl-cj-verb`,children:t})]}),(0,y.jsx)(`div`,{className:`tbl-cj-scroll`,children:(0,y.jsxs)(`table`,{className:`tbl-cj-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`tbl-cj-corner`,scope:`col`}),r.map(e=>(0,y.jsx)(`th`,{className:`tbl-cj-tense-head`,scope:`col`,children:e.name},e.name))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>(0,y.jsxs)(`tr`,{className:`tbl-cj-row`,children:[(0,y.jsx)(`th`,{className:`tbl-cj-pronoun`,scope:`row`,children:e}),r.map(e=>{let n=e.forms[t];return(0,y.jsx)(`td`,{className:`tbl-cj-form${n?.irregular?` tbl-cj-irregular`:``}`,children:n?.form??`—`},e.name)})]},e))})]})}),r.some(e=>e.forms.some(e=>e.irregular))&&(0,y.jsxs)(`div`,{className:`tbl-cj-legend faint`,children:[(0,y.jsx)(`span`,{className:`tbl-cj-legend-swatch`}),` irregular form`]}),i&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:10},children:i})]})}var V={safe:{color:`var(--insight)`,icon:`check`,label:`Safe`},caution:{color:`var(--warning)`,icon:`alert`,label:`Caution`},avoid:{color:`var(--danger)`,icon:`x`,label:`Avoid`},unknown:{color:`var(--text-faint)`,icon:`eye`,label:`Check a pro`}},xe=[`safe`,`caution`,`avoid`,`unknown`];function Se({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,rows:r,columns:o,cells:s,legend:c=!0,footer:l,delay:u}){let d=i[t]||i.shield,f=r??[],p=o??[],m=(e,t)=>`${e.trim().toLowerCase()}${t.trim().toLowerCase()}`,h=new Map;for(let e of s??[]){if(!e?.row||!e?.col)continue;let t=V[e.level]?e.level:`unknown`;h.set(m(e.row,e.col),{level:t,reason:e.reason})}let g=xe.filter(e=>[...h.values()].some(t=>t.level===e)),_=`minmax(116px, 1.1fr) repeat(${Math.max(p.length,1)}, minmax(132px, 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]}),(0,y.jsx)(`div`,{className:`clm-scroll`,children:(0,y.jsxs)(`div`,{className:`clm-grid`,style:{gridTemplateColumns:_},role:`grid`,children:[(0,y.jsx)(`div`,{className:`clm-corner`,role:`columnheader`}),p.map((e,t)=>(0,y.jsx)(`div`,{className:`clm-colh`,role:`columnheader`,title:e,children:e},t)),f.map((e,t)=>(0,y.jsxs)(`div`,{className:`clm-row`,role:`row`,children:[(0,y.jsx)(`div`,{className:`clm-rowh`,role:`rowheader`,title:e,children:e}),p.map((t,n)=>{let r=h.get(m(e,t))??{level:`unknown`},a=V[r.level],o=i[a.icon]||i.eye;return(0,y.jsxs)(`div`,{className:`clm-cell clm-${r.level}`,style:{"--clm-c":a.color},role:`gridcell`,children:[(0,y.jsxs)(`span`,{className:`clm-tag`,children:[(0,y.jsx)(o,{className:`ic clm-tag-ic`}),(0,y.jsx)(`span`,{className:`clm-tag-lbl`,children:a.label})]}),(0,y.jsx)(`span`,{className:`clm-reason`,children:r.reason||a.label})]},n)})]},t))]})}),c&&g.length>0&&(0,y.jsx)(`div`,{className:`clm-legend`,children:g.map(e=>{let t=V[e],n=i[t.icon]||i.eye;return(0,y.jsxs)(`span`,{className:`clm-leg-item`,style:{"--clm-c":t.color},children:[(0,y.jsx)(n,{className:`ic clm-leg-ic`}),t.label]},e)})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Ce(e,t){let n=s(Math.abs(e),{currency:t,decimals:0});return e<0?`(${n})`:n}function we({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,periods:r,rows:o,currency:s=`USD`,caption:c,footer:l,delay:u}){let d=i[t]||i.chart;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(u||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:c?4:14},children:[(0,y.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),c&&(0,y.jsx)(`div`,{className:`fs-cap`,children:c}),(0,y.jsx)(`div`,{className:`fs-scroll`,children:(0,y.jsxs)(`table`,{className:`fs-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`fs-h-label`,children:`\xA0`}),r.map((e,t)=>(0,y.jsx)(`th`,{className:`fs-h-period`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>{let n=e.kind||`line`,i=Math.max(0,e.indent||0);return(0,y.jsxs)(`tr`,{className:`fs-row fs-${n}`,children:[(0,y.jsx)(`td`,{className:`fs-label`,style:{paddingLeft:2+i*14},children:e.label}),r.map((t,n)=>{let r=e.values[n];return(0,y.jsx)(`td`,{className:`fs-val tab-num ${r!=null&&r<0?`neg`:``}`,children:r==null?`—`:Ce(r,s)},n)})]},t)})})]})}),l&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Te({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,cohorts:r,periods:o,unit:c=`%`,caption:l,footer:u,delay:d}){let f=i[t]||i.layers,[p,h]=(0,m.useState)(null),g=Math.max(0,...r.map(e=>e.values.length)),_=o&&o.length?o:Array.from({length:g},(e,t)=>`M${t}`),v=r.flatMap(e=>e.values).filter(e=>e!=null),b=v.length?Math.min(...v):0,x=(v.length?Math.max(...v):1)-b||1,S=e=>(e-b)/x,C=Array.from({length:g},(e,t)=>{let n=r.map(e=>e.values[t]).filter(e=>e!=null);return n.length?n.reduce((e,t)=>e+t,0)/n.length:null}),w=e=>s(e,{decimals:e%1==0?0:1})+c;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:l?4:14},children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),l&&(0,y.jsx)(`div`,{className:`fs-cap`,children:l}),(0,y.jsx)(`div`,{className:`cg-scroll`,children:(0,y.jsxs)(`table`,{className:`cg-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`cg-h-cohort`,children:`Cohort`}),_.map((e,t)=>(0,y.jsx)(`th`,{className:`cg-h-period ${p?.c===t?`on`:``}`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:r.map((e,t)=>(0,y.jsxs)(`tr`,{children:[(0,y.jsxs)(`th`,{className:`cg-cohort`,scope:`row`,children:[(0,y.jsx)(`span`,{className:`cg-cohort-name`,children:e.label}),e.size!=null&&(0,y.jsx)(`span`,{className:`cg-cohort-size`,children:s(e.size,{compact:e.size>=1e4})})]}),Array.from({length:g},(n,r)=>{let i=e.values[r];if(i==null)return(0,y.jsx)(`td`,{className:`cg-cell cg-empty`},r);let a=Math.max(0,Math.min(1,S(i))),o=p?.r===t&&p?.c===r;return(0,y.jsx)(`td`,{className:`cg-cell tab-num ${o?`hot`:``}`,style:{background:`color-mix(in oklab, var(--insight) ${(a*.82+.06)*100}%, transparent)`,color:a>.5?`var(--surface-deep)`:`var(--text-secondary)`},onMouseEnter:()=>h({r:t,c:r}),onMouseLeave:()=>h(null),children:w(i)},r)})]},t))}),(0,y.jsx)(`tfoot`,{children:(0,y.jsxs)(`tr`,{className:`cg-foot`,children:[(0,y.jsx)(`th`,{className:`cg-cohort cg-foot-label`,scope:`row`,children:`Average`}),C.map((e,t)=>(0,y.jsx)(`td`,{className:`cg-cell cg-avg tab-num`,children:e==null?``:w(e)},t))]})})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Ee=(e,t)=>Math.max(1,Math.min(t,Math.round(e)));function De(e,t,n){let r=e*t/(n*n);return r>=.55?`high`:r>=.28?`med`:`low`}var Oe={low:`var(--insight)`,med:`var(--warning)`,high:`var(--danger)`};function ke({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,risks:r,size:o=5,caption:s,footer:c,delay:l}){let u=i[t]||i.shield,d=o,[f,p]=(0,m.useState)(null),h=r.map(e=>({...e,likelihood:Ee(e.likelihood,d),impact:Ee(e.impact,d)})),g=(e,t)=>h.map((e,t)=>({r:e,idx:t})).filter(({r:n})=>n.likelihood===e&&n.impact===t),_=Array.from({length:d},(e,t)=>d-t),v=Array.from({length:d},(e,t)=>t+1);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(l||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:s?4:14},children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,y.jsx)(`div`,{className:`fs-cap`,children:s}),(0,y.jsxs)(`div`,{className:`rm-plot`,children:[(0,y.jsx)(`div`,{className:`rm-ylabel`,children:`Likelihood`}),(0,y.jsxs)(`div`,{className:`rm-grid-wrap`,children:[(0,y.jsx)(`div`,{className:`rm-grid`,style:{gridTemplateColumns:`repeat(${d}, minmax(0, 1fr))`},children:_.map(e=>v.map(t=>{let n=De(e,t,d),r=Oe[n],i=g(e,t);return(0,y.jsx)(`div`,{className:`rm-cell rm-${n}`,style:{background:`color-mix(in oklab, ${r} 16%, transparent)`,borderColor:`color-mix(in oklab, ${r} 30%, transparent)`},children:i.map(({r:e,idx:t})=>(0,y.jsx)(`span`,{className:`rm-chip ${f===t?`hot`:``}`,style:{background:`color-mix(in oklab, ${r} 26%, var(--surface-elevated))`,borderColor:r},onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:e.label},t))},`${e}-${t}`)}))}),(0,y.jsx)(`div`,{className:`rm-xlabel`,children:`Impact →`})]})]}),(0,y.jsx)(`ol`,{className:`rm-register`,children:h.map((e,t)=>{let n=Oe[De(e.likelihood,e.impact,d)];return(0,y.jsxs)(`li`,{className:`rm-reg-row ${f===t?`hot`:``}`,onMouseEnter:()=>p(t),onMouseLeave:()=>p(null),children:[(0,y.jsx)(`span`,{className:`rm-reg-dot`,style:{background:n}}),(0,y.jsxs)(`div`,{className:`rm-reg-body`,children:[(0,y.jsxs)(`div`,{className:`rm-reg-top`,children:[(0,y.jsx)(`span`,{className:`rm-reg-label`,children:e.label}),e.owner&&(0,y.jsx)(`span`,{className:`rm-reg-owner`,children:e.owner})]}),e.mitigation&&(0,y.jsx)(`div`,{className:`rm-reg-mit`,children:e.mitigation})]})]},t)})}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var Ae={met:{color:`var(--insight)`,label:`Met`},partial:{color:`var(--warning)`,label:`Partial`},ongoing:{color:`var(--presence)`,label:`Ongoing`}};function je({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,entries:r,caption:o,footer:s,delay:c}){let l=i[t]||i.shield,u=r??[];return(0,y.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c||0)+`ms`},children:[e&&(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),o&&(0,y.jsx)(`div`,{className:`fs-cap`,children:o}),(0,y.jsx)(`div`,{className:`cp-scroll`,children:(0,y.jsxs)(`div`,{className:`cp-grid`,role:`table`,children:[(0,y.jsxs)(`div`,{className:`cp-head`,role:`row`,children:[(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Assessment / Dx`}),(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Goal`}),(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Interventions`}),(0,y.jsx)(`span`,{className:`cp-colh`,role:`columnheader`,children:`Rationale`})]}),u.map((e,t)=>{let n=Ae[e.status??`ongoing`];return(0,y.jsxs)(`div`,{className:`cp-row`,role:`row`,style:{"--cp-c":n.color},children:[(0,y.jsxs)(`div`,{className:`cp-cell cp-assess`,role:`cell`,children:[(0,y.jsx)(`span`,{className:`cp-assess-text`,children:e.assessment}),e.diagnosis&&(0,y.jsx)(`span`,{className:`cp-dx`,children:e.diagnosis})]}),(0,y.jsxs)(`div`,{className:`cp-cell cp-goal`,role:`cell`,children:[(0,y.jsx)(`span`,{className:`cp-goal-text`,children:e.goal}),(0,y.jsxs)(`span`,{className:`cp-status`,children:[(0,y.jsx)(`span`,{className:`cp-status-dot`}),n.label]})]}),(0,y.jsx)(`div`,{className:`cp-cell`,role:`cell`,children:(0,y.jsx)(`ul`,{className:`cp-intervs`,children:(e.interventions??[]).map((e,t)=>(0,y.jsx)(`li`,{className:`cp-interv`,children:e},t))})}),(0,y.jsx)(`div`,{className:`cp-cell cp-rationale`,role:`cell`,children:e.rationale||(0,y.jsx)(`span`,{className:`cp-dash`,children:`—`})})]},t)})]})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function Me({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,drug:r,route:o,computed:s,ladder:c,adjustments:l,caption:u,footer:d,delay:f}){let p=i[t]||i.shield,m=c??[],h=e=>m.length>1?38+e/(m.length-1)*62:100;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]}),(0,y.jsxs)(`div`,{className:`dl-head`,children:[(0,y.jsx)(`span`,{className:`dl-drug`,children:r}),o&&(0,y.jsx)(`span`,{className:`dl-route`,children:o}),u&&(0,y.jsx)(`span`,{className:`dl-cap`,children:u})]}),s&&(0,y.jsxs)(`div`,{className:`dl-calc`,children:[(0,y.jsxs)(`div`,{className:`dl-calc-side`,children:[(0,y.jsx)(`span`,{className:`dl-calc-tag`,children:`Input`}),(0,y.jsx)(`span`,{className:`dl-calc-val`,children:s.input})]}),(0,y.jsxs)(`div`,{className:`dl-calc-op`,children:[(0,y.jsx)(i.chevR,{className:`ic`}),(0,y.jsx)(`span`,{className:`dl-calc-formula`,title:s.formula,children:s.formula}),(0,y.jsx)(i.chevR,{className:`ic`})]}),(0,y.jsxs)(`div`,{className:`dl-calc-side dl-calc-out`,children:[(0,y.jsx)(`span`,{className:`dl-calc-tag`,children:`Starting dose`}),(0,y.jsx)(`span`,{className:`dl-calc-val`,children:s.result})]})]}),(0,y.jsx)(`div`,{className:`dl-ladder`,children:m.map((e,t)=>(0,y.jsxs)(`div`,{className:`dl-rung ${e.ceiling?`ceiling`:``}`,style:{"--dl-h":`${h(t)}%`},children:[(0,y.jsx)(`span`,{className:`dl-bar`}),(0,y.jsxs)(`div`,{className:`dl-rung-body`,children:[(0,y.jsxs)(`div`,{className:`dl-rung-top`,children:[(0,y.jsx)(`span`,{className:`dl-step`,children:e.step}),(0,y.jsx)(`span`,{className:`dl-dose`,children:e.dose}),e.ceiling&&(0,y.jsxs)(`span`,{className:`dl-ceiling-tag`,children:[(0,y.jsx)(i.alert,{className:`ic`}),` Max`]})]}),e.note&&(0,y.jsx)(`span`,{className:`dl-note`,children:e.note})]})]},t))}),l&&l.length>0&&(0,y.jsxs)(`div`,{className:`dl-adjust`,children:[(0,y.jsx)(`div`,{className:`dl-adjust-h`,children:`Dose adjustments`}),(0,y.jsx)(`ul`,{className:`dl-adjust-list`,children:l.map((e,t)=>(0,y.jsxs)(`li`,{className:`dl-adjust-row`,children:[(0,y.jsx)(`span`,{className:`dl-adjust-cond`,children:e.condition}),(0,y.jsx)(`span`,{className:`dl-adjust-change`,children:e.change})]},t))})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function Ne({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,columns:r,rows:o,unit:s,highlight:c,guide:l,caption:u,footer:d,delay:f}){let p=i[t]||i.cart,m=e=>e.trim().toLowerCase(),h=c?m(c):null;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:`sz-cap`,children:u}),(0,y.jsx)(`div`,{className:`sz-scroll`,children:(0,y.jsxs)(`table`,{className:`sz-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`sz-th sz-th--size`,children:`Size`}),r.map((e,t)=>(0,y.jsx)(`th`,{className:`sz-th`,children:e},t))]})}),(0,y.jsx)(`tbody`,{children:o.map((e,t)=>{let n=h!==null&&m(e.size)===h;return(0,y.jsxs)(`tr`,{className:`sz-row${n?` on`:``}`,children:[(0,y.jsxs)(`th`,{className:`sz-size`,scope:`row`,children:[e.size,n&&(0,y.jsx)(`span`,{className:`sz-pick`,children:`Your size`})]}),r.map((t,n)=>(0,y.jsx)(`td`,{className:`sz-td`,children:e.values[n]??(0,y.jsx)(`span`,{className:`sz-dash`,children:`—`})},n))]},t)})})]})}),(l||s)&&(0,y.jsxs)(`div`,{className:`sz-guide`,children:[(0,y.jsx)(i.sliders,{className:`sz-guide-ic`}),(0,y.jsxs)(`span`,{className:`sz-guide-t`,children:[s&&(0,y.jsxs)(`b`,{className:`sz-guide-unit`,children:[s,`.`]}),` `,l]})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function Pe(e){let t=(0,M.c)(4),{value:n}=e;if(n===!0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`span`,{className:`pt-yes`,children:(0,y.jsx)(i.check,{className:`ic`,"aria-label":`included`})}),t[0]=e):e=t[0],e}if(typeof n==`string`&&n.length>0){let e;return t[1]===n?e=t[2]:(e=(0,y.jsx)(`span`,{className:`pt-text`,children:n}),t[1]=n,t[2]=e),e}let r;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,y.jsx)(`span`,{className:`pt-no`,"aria-label":`not included`,children:`—`}),t[3]=r):r=t[3],r}function Fe({plan:e,i:t}){return(0,y.jsxs)(`div`,{className:`pt-plan m-stagger-item m-scale-in`+(e.highlighted?` hot`:``),style:{"--i":t},children:[e.highlighted&&(0,y.jsx)(`span`,{className:`pt-ribbon`,children:`Most popular`}),(0,y.jsx)(`div`,{className:`pt-name`,children:e.name||`Plan ${t+1}`}),(0,y.jsxs)(`div`,{className:`pt-price-row`,children:[(0,y.jsx)(`span`,{className:`pt-price`,children:e.price}),e.period&&(0,y.jsx)(`span`,{className:`pt-period`,children:e.period})]}),e.tagline&&(0,y.jsx)(`div`,{className:`pt-tagline`,children:e.tagline}),e.ctaLabel&&(0,y.jsx)(`span`,{className:`pt-cta`,children:e.ctaLabel})]})}function Ie({title:e,icon:t=`cart`,iconColor:n=`var(--presence)`,plans:r,features:o,caption:s,footer:c,delay:u}){let d=i[t]||i.cart,f=r?.length??0;if(f===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.jsx)(l,{message:`No plans to compare`})]});let p=`minmax(128px, 1.1fr) repeat(${f}, minmax(148px, 1fr))`,m=o??[];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]}),s&&(0,y.jsx)(`div`,{className:`pt-cap`,children:s}),(0,y.jsx)(`div`,{className:`pt-scroll`,children:(0,y.jsxs)(`div`,{className:`pt-grid`,style:{gridTemplateColumns:p,"--pt-cols":p},role:`grid`,children:[(0,y.jsx)(`div`,{className:`pt-corner`,role:`columnheader`}),r.map((e,t)=>(0,y.jsx)(`div`,{role:`columnheader`,children:(0,y.jsx)(Fe,{plan:e,i:t})},t)),m.map((e,t)=>(0,y.jsxs)(`div`,{className:`pt-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`pt-feat`,role:`rowheader`,title:e.label,children:e.label}),r.map((t,n)=>(0,y.jsx)(`div`,{className:`pt-cell`+(t.highlighted?` hot`:``),role:`gridcell`,children:(0,y.jsx)(Pe,{value:e.values?.[n]})},n))]},t))]})}),m.length>0&&(0,y.jsxs)(`div`,{className:`pt-legend`,children:[(0,y.jsxs)(`span`,{className:`pt-leg-item`,children:[(0,y.jsx)(i.check,{className:`ic pt-leg-ic`}),` included`]}),(0,y.jsxs)(`span`,{className:`pt-leg-item`,children:[(0,y.jsx)(`span`,{className:`pt-leg-dash`,children:`—`}),` not included`]})]}),c&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var H={R:{color:`var(--presence)`,label:`Responsible`},A:{color:`var(--warning)`,label:`Accountable`},C:{color:`var(--insight)`,label:`Consulted`},I:{color:`var(--text-muted)`,label:`Informed`}},Le=[`R`,`A`,`C`,`I`];function Re({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,tasks:r,roles:o,cells:s,legend:c=!0,footer:u,delay:d}){let f=i[t]||i.table,p=r??[],m=o??[];if(p.length===0||m.length===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)(l,{message:`No tasks or roles to map`})]});let h=(e,t)=>`${e.trim().toLowerCase()} ${t.trim().toLowerCase()}`,g=new Map;for(let e of s??[])!e?.task||!e?.role||!H[e.rating]||g.set(h(e.task,e.role),e.rating);let _=Le.filter(e=>[...g.values()].includes(e)),v=`minmax(120px, 1.2fr) repeat(${m.length}, minmax(88px, 1fr))`;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:`raci-scroll`,children:(0,y.jsxs)(`div`,{className:`raci-grid`,style:{gridTemplateColumns:v},role:`grid`,children:[(0,y.jsx)(`div`,{className:`raci-corner`,role:`columnheader`}),m.map((e,t)=>(0,y.jsx)(`div`,{className:`raci-colh`,role:`columnheader`,title:e,children:e},t)),p.map((e,t)=>(0,y.jsxs)(`div`,{className:`raci-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`raci-rowh`,role:`rowheader`,title:e,children:e}),m.map((t,n)=>{let r=g.get(h(e,t));if(!r)return(0,y.jsx)(`div`,{className:`raci-cell raci-empty`,role:`gridcell`,children:(0,y.jsx)(`span`,{className:`raci-dash`,children:`–`})},n);let i=H[r];return(0,y.jsx)(`div`,{className:`raci-cell`,style:{"--raci-c":i.color},role:`gridcell`,title:i.label,children:(0,y.jsx)(`span`,{className:`raci-badge`,children:r})},n)})]},t))]})}),c&&_.length>0&&(0,y.jsx)(`div`,{className:`raci-legend`,children:_.map(e=>(0,y.jsxs)(`span`,{className:`raci-leg-item`,style:{"--raci-c":H[e].color},children:[(0,y.jsx)(`span`,{className:`raci-leg-badge`,children:e}),H[e].label]},e))}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var U=e=>typeof e==`string`?e:e==null?``:String(e);function ze({title:e,icon:t=`check`,iconColor:n=`var(--presence)`,criteria:r,levels:o,cells:s,scores:c,maxScore:u,footer:f,delay:p}){let h=i[t]||i.check,g=Array.isArray(r)?r:r?[String(r)]:[],_=Array.isArray(o)?o:o?[String(o)]:[],v=(0,m.useMemo)(()=>{let e=(e,t)=>`${U(e).trim().toLowerCase()} ${U(t).trim().toLowerCase()}`,t=new Map;for(let n of s??[])!n?.criterion||!n?.level||t.set(e(n.criterion,n.level),{descriptor:n.descriptor,achieved:n.achieved});return t},[s]),b=(0,m.useMemo)(()=>Array.isArray(c)?c:[],[c]),x=(0,m.useMemo)(()=>{let e=new Map;for(let t of b)t?.criterion&&e.set(U(t.criterion).trim().toLowerCase(),t.score);return e},[b]),S=b.length>0,C=(0,m.useMemo)(()=>b.reduce((e,t)=>e+(Number.isFinite(t.score)?t.score:0),0),[b]),w=u==null?void 0:u*g.length,T=d(C,{duration:900,decimals:C%1==0?0:1});if(g.length===0||_.length===0)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)(h,{className:`ic`,style:{color:n}}),` `,e]}),(0,y.jsx)(l,{message:`No criteria or levels to score`})]});let E=`minmax(130px, 1.1fr) repeat(${_.length}, minmax(150px, 1fr))${S?` minmax(64px, 0.5fr)`:``}`;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)(h,{className:`ic`,style:{color:n}}),` `,e,S&&(0,y.jsxs)(`span`,{className:`rub-total`,children:[T,w==null?``:` / ${w}`,` pts`]})]}),(0,y.jsx)(`div`,{className:`rub-scroll`,children:(0,y.jsxs)(`div`,{className:`rub-grid`,style:{gridTemplateColumns:E},role:`grid`,children:[(0,y.jsx)(`div`,{className:`rub-corner`,role:`columnheader`}),_.map((e,t)=>(0,y.jsx)(`div`,{className:`rub-colh`,role:`columnheader`,title:U(e),children:U(e)},t)),S&&(0,y.jsx)(`div`,{className:`rub-colh rub-score-h`,children:`Score`}),g.map((e,t)=>{let n=U(e).trim().toLowerCase(),r=x.get(n);return(0,y.jsxs)(`div`,{className:`rub-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`rub-rowh`,role:`rowheader`,title:U(e),children:U(e)}),_.map((e,t)=>{let r=v.get(`${n} ${U(e).trim().toLowerCase()}`);return(0,y.jsxs)(`div`,{className:`rub-cell`+(r?.achieved?` achieved`:``),role:`gridcell`,children:[r?.achieved&&(0,y.jsx)(i.check,{className:`ic rub-check`}),(0,y.jsx)(`span`,{className:`rub-desc`,children:r?.descriptor||`—`})]},t)}),S&&(0,y.jsx)(`div`,{className:`rub-cell rub-score-cell`,role:`gridcell`,children:r==null?`—`:(0,y.jsxs)(`span`,{className:`tab-num`,children:[r,u==null?``:`/${u}`]})})]},t)})]})}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var W=e=>typeof e==`string`?e:e==null?``:String(e);function Be(e,t,n){let r=n-t||1,i=Math.max(0,Math.min(1,(e-t)/r));return i>=.66?`var(--insight)`:i>=.33?`var(--warning)`:`var(--danger)`}function Ve({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,candidates:r,criteria:o,cells:s,scale:c,footer:u,delay:d}){let f=i[t]||i.chat,p=(0,m.useMemo)(()=>Array.isArray(r)?r:r?[String(r)]:[],[r]),h=(0,m.useMemo)(()=>Array.isArray(o)?o:o?[String(o)]:[],[o]),g=c?.min??1,_=c?.max??5,v=(0,m.useMemo)(()=>{let e=(e,t)=>`${W(e).trim().toLowerCase()} ${W(t).trim().toLowerCase()}`,t=new Map;for(let n of s??[])!n?.candidate||!n?.criterion||!Number.isFinite(n.rating)||t.set(e(n.candidate,n.criterion),{rating:n.rating,note:n.note});return t},[s]),b=(0,m.useMemo)(()=>{let e=new Map;for(let t of p){let n=W(t).trim().toLowerCase(),r=h.map(e=>v.get(`${n} ${W(e).trim().toLowerCase()}`)?.rating).filter(e=>e!=null);r.length>0&&e.set(t,r.reduce((e,t)=>e+t,0)/r.length)}return e},[p,h,v]);if(p.length===0||h.length===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)(l,{message:`No candidates or criteria to score`})]});let x=`minmax(128px, 1.1fr) repeat(${h.length}, minmax(130px, 1fr))`;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:`isc-scroll`,children:(0,y.jsxs)(`div`,{className:`isc-grid`,style:{gridTemplateColumns:x},role:`grid`,children:[(0,y.jsx)(`div`,{className:`isc-corner`,role:`columnheader`}),h.map((e,t)=>(0,y.jsx)(`div`,{className:`isc-colh`,role:`columnheader`,title:W(e),children:W(e)},t)),p.map((e,t)=>{let n=b.get(e);return(0,y.jsxs)(`div`,{className:`isc-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsxs)(`div`,{className:`isc-rowh`,role:`rowheader`,title:W(e),children:[(0,y.jsx)(`span`,{className:`isc-name`,children:W(e)}),n!=null&&(0,y.jsx)(`span`,{className:`isc-avg`,style:{"--isc-c":Be(n,g,_)},children:n.toFixed(1)})]}),h.map((t,n)=>{let r=v.get(`${W(e).trim().toLowerCase()} ${W(t).trim().toLowerCase()}`);if(!r)return(0,y.jsx)(`div`,{className:`isc-cell isc-empty`,role:`gridcell`,children:(0,y.jsx)(`span`,{className:`isc-dash`,children:`—`})},n);let i=Be(r.rating,g,_);return(0,y.jsxs)(`div`,{className:`isc-cell`,style:{"--isc-c":i},role:`gridcell`,children:[(0,y.jsxs)(`span`,{className:`isc-badge tab-num`,children:[r.rating,(0,y.jsxs)(`span`,{className:`isc-scale`,children:[`/`,_]})]}),r.note&&(0,y.jsx)(`span`,{className:`isc-note`,children:r.note})]},n)})]},t)})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function G(e){return e>=97?`A+`:e>=93?`A`:e>=90?`A-`:e>=87?`B+`:e>=83?`B`:e>=80?`B-`:e>=77?`C+`:e>=73?`C`:e>=70?`C-`:e>=67?`D+`:e>=63?`D`:e>=60?`D-`:`F`}function K(e){let t=e[0];return t===`A`?`var(--insight)`:t===`B`?`var(--presence)`:t===`C`?`var(--warning)`:`var(--danger)`}function He({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,students:r,assignments:o,cells:s,showClassAverage:c=!0,footer:u,delay:f}){let p=i[t]||i.table,h=(0,m.useMemo)(()=>r??[],[r]),g=(0,m.useMemo)(()=>o??[],[o]),_=(0,m.useMemo)(()=>{let e=(e,t)=>`${e.trim().toLowerCase()} ${t.trim().toLowerCase()}`,t=new Map;for(let n of s??[])!n?.student||!n?.assignment||!Number.isFinite(n.score)||t.set(e(n.student,n.assignment),{score:n.score,maxScore:n.maxScore??100});return t},[s]),{avgByStudent:v,classAvg:b}=(0,m.useMemo)(()=>{let e=new Map,t=[];for(let n of h){let r=n.trim().toLowerCase(),i=g.map(e=>_.get(`${r} ${e.trim().toLowerCase()}`)).filter(e=>e!=null).map(e=>e.score/(e.maxScore||1)*100);i.length>0&&(e.set(n,i.reduce((e,t)=>e+t,0)/i.length),t.push(...i))}return{avgByStudent:e,classAvg:t.length>0?t.reduce((e,t)=>e+t,0)/t.length:0}},[h,g,_]),x=d(b,{duration:900,decimals:0});if(h.length===0||g.length===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.jsx)(l,{message:`No students or assignments to grade`})]});let S=c,C=`minmax(128px, 1.1fr) repeat(${g.length}, minmax(104px, 1fr))${S?` minmax(84px, 0.6fr)`:``}`;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,c&&(0,y.jsxs)(`span`,{className:`gb-total`,style:{"--gb-c":K(G(b))},children:[`class avg `,x,`%`]})]}),(0,y.jsx)(`div`,{className:`gb-scroll`,children:(0,y.jsxs)(`div`,{className:`gb-grid`,style:{gridTemplateColumns:C},role:`grid`,children:[(0,y.jsx)(`div`,{className:`gb-corner`,role:`columnheader`}),g.map((e,t)=>(0,y.jsx)(`div`,{className:`gb-colh`,role:`columnheader`,title:e,children:e},t)),S&&(0,y.jsx)(`div`,{className:`gb-colh gb-avg-h`,children:`Average`}),h.map((e,t)=>{let n=v.get(e);return(0,y.jsxs)(`div`,{className:`gb-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`gb-rowh`,role:`rowheader`,title:e,children:e}),g.map((t,n)=>{let r=_.get(`${e.trim().toLowerCase()} ${t.trim().toLowerCase()}`);if(!r)return(0,y.jsx)(`div`,{className:`gb-cell gb-empty`,role:`gridcell`,children:(0,y.jsx)(`span`,{className:`gb-dash`,children:`—`})},n);let i=G(r.score/(r.maxScore||1)*100);return(0,y.jsxs)(`div`,{className:`gb-cell`,style:{"--gb-c":K(i)},role:`gridcell`,children:[(0,y.jsxs)(`span`,{className:`gb-score tab-num`,children:[r.score,`/`,r.maxScore]}),(0,y.jsx)(`span`,{className:`gb-letter`,children:i})]},n)}),S&&(0,y.jsx)(`div`,{className:`gb-cell gb-avg-cell`,role:`gridcell`,children:n==null?`—`:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`span`,{className:`gb-score tab-num`,children:[n.toFixed(0),`%`]}),(0,y.jsx)(`span`,{className:`gb-letter`,style:{"--gb-c":K(G(n))},children:G(n)})]})})]},t)})]})}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var Ue={int:`var(--presence)`,float:`var(--presence-deep)`,str:`var(--insight-soft)`,bool:`var(--warning)`,category:`var(--insight)`,datetime:`var(--presence-soft)`},We=new Set([`int`,`float`,`str`,`bool`,`category`,`datetime`]);function Ge(e){return typeof e==`string`&&We.has(e)?e:`str`}function Ke(e){let t=typeof e==`number`?e:parseFloat(String(e??``));return Number.isFinite(t)?Math.max(0,Math.min(100,t)):null}function qe(e){return e>=40?`var(--danger)`:e>=15?`var(--warning)`:`var(--insight)`}function Je(e){return typeof e==`number`&&Number.isFinite(e)?Math.max(0,Math.round(e)):null}function Ye({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,source:r,nRows:o,nCols:c,variables:u,footer:d,delay:f}){let p=i[t]||i.table,m=(Array.isArray(u)?u:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0),h=Je(o),g=Je(c)??(m.length||null),_=[];return r&&_.push(r),h!=null&&_.push(`${s(h,{compact:h>=1e5})} rows`),g!=null&&_.push(`${s(g)} cols`),(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),_.length>0&&(0,y.jsx)(`div`,{className:`dd-cap`,children:_.join(` · `)}),m.length===0?(0,y.jsx)(l,{message:`No variables documented`}):(0,y.jsx)(`div`,{className:`dd-scroll`,children:(0,y.jsxs)(`div`,{className:`dd-grid`,role:`grid`,children:[(0,y.jsx)(`div`,{className:`dd-colh`,role:`columnheader`,children:`Variable`}),(0,y.jsx)(`div`,{className:`dd-colh`,role:`columnheader`,children:`Type`}),(0,y.jsx)(`div`,{className:`dd-colh`,role:`columnheader`,children:`Unit`}),(0,y.jsx)(`div`,{className:`dd-colh dd-colh-desc`,role:`columnheader`,children:`Description`}),(0,y.jsx)(`div`,{className:`dd-colh dd-colh-miss`,role:`columnheader`,children:`Missing`}),m.map((e,t)=>{let n=Ge(e.dtype),r=Ke(e.missingPct);return(0,y.jsxs)(`div`,{className:`dd-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`dd-name`,role:`gridcell`,title:e.name,children:e.name}),(0,y.jsx)(`div`,{role:`gridcell`,children:(0,y.jsx)(`span`,{className:`dd-pill`,style:{"--dd-c":Ue[n]},children:n})}),(0,y.jsx)(`div`,{className:`dd-unit`,role:`gridcell`,children:e.unit||`—`}),(0,y.jsx)(`div`,{className:`dd-desc`,role:`gridcell`,children:e.description||`—`}),(0,y.jsx)(`div`,{className:`dd-miss`,role:`gridcell`,children:r==null?(0,y.jsx)(`span`,{className:`dd-miss-dash`,children:`—`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`dd-miss-track`,children:(0,y.jsx)(`div`,{className:`dd-miss-fill`,style:{width:`${r}%`,background:qe(r)}})}),(0,y.jsxs)(`span`,{className:`dd-miss-pct tab-num`,children:[r%1==0?r:r.toFixed(1),`%`]})]})})]},`${e.name}-${t}`)})]})}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function Xe(e,t,n){return t===`better`||t===`worse`?t:e==null||e===0?`flat`:e>0===n?`better`:`worse`}function Ze(e){return Number.isFinite(e)?e.toLocaleString(void 0,{maximumFractionDigits:3}):`—`}function Qe(e){return e==null||!Number.isFinite(e)||e===0?`±0`:`${e>0?`+`:`−`}${Math.abs(e).toLocaleString(void 0,{maximumFractionDigits:3})}`}function $e({title:e,icon:t=`sliders`,iconColor:n=`var(--presence)`,baseline:r,baselineValue:o,metric:s,rows:c,higherBetter:u=!0,footer:d,delay:f}){let p=i[t]||i.sliders,m=(Array.isArray(c)?c:[]).filter(e=>e&&typeof e.removed==`string`&&e.removed.trim().length>0&&Number.isFinite(e.value)),h=typeof r==`string`&&r.trim().length>0,g=Number.isFinite(o)?o:null;return!h&&m.length===0?(0,y.jsxs)(`div`,{className:`card reveal tbl`,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.jsx)(l,{message:`No ablation results to compare`})]}):(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),s&&(0,y.jsx)(`div`,{className:`abl-cap`,children:s}),(0,y.jsxs)(`div`,{className:`abl-list`,children:[h&&(0,y.jsxs)(`div`,{className:`abl-row abl-baseline`,children:[(0,y.jsx)(`span`,{className:`abl-name`,children:r}),(0,y.jsx)(`span`,{className:`abl-val tab-num`,children:g==null?`—`:Ze(g)}),(0,y.jsx)(`span`,{className:`abl-delta flat`,children:`baseline`})]}),m.map((e,t)=>{let n=Number.isFinite(e.delta)?e.delta:g==null?null:e.value-g,r=Xe(n,e.deltaDirection,u);return(0,y.jsxs)(`div`,{className:`abl-row m-stagger-item m-fade-rise`,style:{"--i":t+1},children:[(0,y.jsxs)(`span`,{className:`abl-name`,children:[`w/o `,e.removed]}),(0,y.jsx)(`span`,{className:`abl-val tab-num`,children:Ze(e.value)}),(0,y.jsx)(`span`,{className:`abl-delta ${r}`,children:Qe(n)})]},t)})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}var et={"nmr-1h":{name:`¹H NMR`,xHeader:`δ (ppm)`,xDecimals:2,showMultInteg:!0,intensityLabel:`Intensity`,assignLabel:`Assignment`,domain:[0,12],descending:!0},"nmr-13c":{name:`¹³C NMR`,xHeader:`δ (ppm)`,xDecimals:1,showMultInteg:!0,intensityLabel:`Intensity`,assignLabel:`Assignment`,domain:[0,220],descending:!0},ir:{name:`IR`,xHeader:`cm⁻¹`,xDecimals:0,showMultInteg:!1,intensityLabel:`Intensity`,assignLabel:`Functional group`,domain:[400,4e3],descending:!0},ms:{name:`MS`,xHeader:`m/z`,xDecimals:0,showMultInteg:!1,intensityLabel:`Rel. abundance`,assignLabel:`Fragment`,domain:[0,100],descending:!1}};function tt(e){return e===`nmr-1h`||e===`nmr-13c`||e===`ir`||e===`ms`?e:`nmr-1h`}function q(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function J(e,t){return Number.isFinite(e)?e.toFixed(t):`—`}function Y(e){return Math.max(0,Math.min(100,e))}function nt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,technique:r,compound:o,solvent:s,peaks:c,footer:u,delay:d}){let f=i[t]||i.chart,p=et[tt(r)],m=(Array.isArray(c)?c:[]).filter(e=>q(e?.x)!=null),h=[...m].sort((e,t)=>p.descending?t.x-e.x:e.x-t.x),g=m.map(e=>e.x),_=g.length?Math.min(p.domain[0],...g):p.domain[0],v=g.length?Math.max(p.domain[1],...g):p.domain[1],b=v-_||1,x=[p.name,o,s].filter(e=>typeof e==`string`&&e.length>0),S=p.showMultInteg?`minmax(64px, 0.7fr) minmax(56px, 0.55fr) minmax(56px, 0.55fr) minmax(120px, 2fr)`:`minmax(72px, 0.7fr) minmax(110px, 1.1fr) minmax(120px, 2fr)`;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,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:`spt-cap`,children:x.join(` · `)}),h.length===0?(0,y.jsx)(l,{message:`No peaks to show`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`spt-axis`,role:`img`,"aria-label":`${p.name} axis from ${J(p.descending?v:_,0)} to ${J(p.descending?_:v,0)} ${p.xHeader}`,children:[(0,y.jsx)(`div`,{className:`spt-axis-line`}),h.map((e,t)=>{let n=(e.x-_)/b,r=Y((p.descending?1-n:n)*100);return(0,y.jsx)(`div`,{className:`spt-tick`,style:{left:`${r}%`}},t)}),(0,y.jsx)(`span`,{className:`spt-axis-end spt-axis-lo`,children:J(p.descending?v:_,0)}),(0,y.jsx)(`span`,{className:`spt-axis-end spt-axis-hi`,children:J(p.descending?_:v,0)})]}),(0,y.jsx)(`div`,{className:`spt-scroll`,children:(0,y.jsxs)(`div`,{className:`spt-grid`,style:{gridTemplateColumns:S},role:`grid`,children:[(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:p.xHeader}),p.showMultInteg?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:`Mult.`}),(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:`Integ.`})]}):(0,y.jsx)(`div`,{className:`spt-colh`,role:`columnheader`,children:p.intensityLabel}),(0,y.jsx)(`div`,{className:`spt-colh spt-colh-assign`,role:`columnheader`,children:p.assignLabel}),h.map((e,t)=>{let n=q(e.integration),i=q(e.intensity);return(0,y.jsxs)(`div`,{className:`spt-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`spt-x tab-num`,role:`gridcell`,children:J(e.x,p.xDecimals)}),p.showMultInteg?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`spt-mult`,role:`gridcell`,children:e.multiplicity||`—`}),(0,y.jsx)(`div`,{className:`spt-integ tab-num`,role:`gridcell`,children:n==null?`—`:`${n}${tt(r)===`nmr-1h`?`H`:``}`})]}):(0,y.jsx)(`div`,{className:`spt-intensity`,role:`gridcell`,children:i==null?(0,y.jsx)(`span`,{className:`spt-dash`,children:`—`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`div`,{className:`spt-int-track`,children:(0,y.jsx)(`div`,{className:`spt-int-fill`,style:{width:`${Y(i)}%`}})}),(0,y.jsxs)(`span`,{className:`spt-int-pct tab-num`,children:[Math.round(Y(i)),`%`]})]})}),(0,y.jsx)(`div`,{className:`spt-assign`,role:`gridcell`,children:e.assignment||`—`})]},t)})]})})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function X(e){let t=typeof e==`number`?e:parseFloat(String(e??``));return Number.isFinite(t)?Math.max(1,Math.min(10,Math.round(t))):1}function rt(e){return e>=7?`var(--danger)`:e>=4?`var(--warning)`:`var(--insight)`}function it(e){return e>=200?`var(--danger)`:e>=80?`var(--warning)`:`var(--insight)`}function at(e){let t=(0,M.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,y.jsx)(`div`,{className:`fma-meta`,children:n}),t[0]=n,t[1]=r),r}function ot({title:e,icon:t=`alert`,iconColor:n=`var(--warning)`,items:r,footer:o,delay:s}){let c=i[t]||i.alert,u=(Array.isArray(r)?r:[]).filter(e=>e&&typeof e.failureMode==`string`&&e.failureMode.trim().length>0).map(e=>{let t=X(e.severity),n=X(e.occurrence),r=X(e.detection);return{item:e,severity:t,occurrence:n,detection:r,rpn:t*n*r}}).sort((e,t)=>t.rpn-e.rpn),d=Math.min(3,u.length);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||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.jsx)(l,{message:`No failure modes to analyze`}):(0,y.jsx)(`div`,{className:`fma-list`,children:u.flatMap((e,t)=>{let n=Math.max(0,Math.min(100,e.rpn/1e3*100)),r=(0,y.jsxs)(`div`,{className:`fma-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsxs)(`div`,{className:`fma-top`,children:[(0,y.jsxs)(`div`,{className:`fma-name`,children:[(0,y.jsx)(`span`,{className:`fma-mode`,children:e.item.failureMode}),e.item.owner&&(0,y.jsx)(`span`,{className:`fma-owner`,children:e.item.owner})]}),(0,y.jsxs)(`div`,{className:`fma-sod`,children:[(0,y.jsxs)(`span`,{className:`fma-badge`,style:{"--fma-c":rt(e.severity)},title:`Severity`,children:[`S `,e.severity]}),(0,y.jsxs)(`span`,{className:`fma-badge`,style:{"--fma-c":rt(e.occurrence)},title:`Occurrence`,children:[`O `,e.occurrence]}),(0,y.jsxs)(`span`,{className:`fma-badge`,style:{"--fma-c":rt(e.detection)},title:`Detection`,children:[`D `,e.detection]})]}),(0,y.jsxs)(`div`,{className:`fma-rpn-wrap`,children:[(0,y.jsx)(`span`,{className:`fma-rpn tab-num`,style:{"--fma-rc":it(e.rpn)},children:e.rpn}),(0,y.jsx)(`span`,{className:`fma-rpn-label`,children:`RPN`})]})]}),(e.item.cause||e.item.effect)&&(0,y.jsxs)(at,{children:[e.item.cause&&(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`b`,{children:`Cause`}),` `,e.item.cause]}),e.item.effect&&(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`b`,{children:`Effect`}),` `,e.item.effect]})]}),(0,y.jsx)(`div`,{className:`fma-track`,children:(0,y.jsx)(`div`,{className:`fma-fill`,style:{width:`${n}%`,background:it(e.rpn)}})}),(e.item.currentControl||e.item.action)&&(0,y.jsxs)(at,{children:[e.item.currentControl&&(0,y.jsxs)(`span`,{children:[(0,y.jsx)(`b`,{children:`Control`}),` `,e.item.currentControl]}),e.item.action&&(0,y.jsxs)(`span`,{className:`fma-action`,children:[(0,y.jsx)(`b`,{children:`Action`}),` `,e.item.action]})]})]},t);return t===d-1&&d<u.length?[r,(0,y.jsx)(`div`,{className:`fma-priority-rule`},`rule-${t}`)]:[r]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function st(e,t){return s(e,{currency:t,decimals:2})}function ct(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function lt({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,rows:r,currency:o=`USD`,footer:s,delay:c}){let u=i[t]||i.layers,d=(Array.isArray(r)?r:[]).filter(e=>e&&typeof e.label==`string`&&e.label.trim().length>0).map(e=>{let t=Math.max(0,Math.round(e.indent||0)),n=e.kind===`subassembly`||e.kind===`total`?e.kind:`part`,r=ct(e.qty),i=ct(e.unitCost);return{row:e,indent:t,kind:n,qty:r,unitCost:i,extended:n===`part`&&i!=null?(r??1)*i:null}}),f=Array(d.length).fill(0),p=[];for(let e=d.length-1;e>=0;e--){let t=d[e],n=0;for(;p.length>0&&p[p.length-1].indent>t.indent;)n+=p.pop().subtotal;f[e]=n,t.kind===`part`&&t.extended!=null&&(n+=t.extended),p.push({indent:t.indent,subtotal:n})}let m=d.filter(e=>e.kind===`part`&&e.extended!=null).reduce((e,t)=>e+t.extended,0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No parts to list`}):(0,y.jsx)(`div`,{className:`bom-scroll`,children:(0,y.jsxs)(`table`,{className:`bom-tbl`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`bom-h-label`,children:`Item`}),(0,y.jsx)(`th`,{className:`bom-h-part`,children:`Part #`}),(0,y.jsx)(`th`,{className:`bom-h-num`,children:`Qty`}),(0,y.jsx)(`th`,{className:`bom-h-num`,children:`Unit cost`}),(0,y.jsx)(`th`,{className:`bom-h-num`,children:`Ext. cost`})]})}),(0,y.jsx)(`tbody`,{children:d.map((e,t)=>{let n=e.kind===`part`?e.extended:e.kind===`subassembly`?f[t]:m;return(0,y.jsxs)(`tr`,{className:`bom-row bom-${e.kind}`,children:[(0,y.jsx)(`td`,{className:`bom-label`,style:{paddingLeft:2+e.indent*14},children:e.row.label}),(0,y.jsx)(`td`,{className:`bom-part tab-num`,children:e.kind===`part`&&e.row.partNo?e.row.partNo:`—`}),(0,y.jsx)(`td`,{className:`bom-num tab-num`,children:e.kind===`part`&&e.qty!=null?e.qty:`—`}),(0,y.jsx)(`td`,{className:`bom-num tab-num`,children:e.kind===`part`&&e.unitCost!=null?st(e.unitCost,o):`—`}),(0,y.jsx)(`td`,{className:`bom-num bom-ext tab-num`,children:n==null?`—`:st(n,o)})]},t)})})]})}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function ut({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,approaches:r,footer:o,delay:s}){let c=i[t]||i.clock,u=(Array.isArray(r)?r:[]).filter(e=>e&&typeof e.name==`string`&&e.name.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||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.jsx)(l,{message:`No approaches to compare`}):(0,y.jsx)(`div`,{className:`cxs-scroll`,children:(0,y.jsxs)(`div`,{className:`cxs-grid`,role:`grid`,"aria-label":e,children:[(0,y.jsx)(`div`,{className:`cxs-colh`,role:`columnheader`,children:`Approach`}),(0,y.jsx)(`div`,{className:`cxs-colh`,role:`columnheader`,children:`Time`}),(0,y.jsx)(`div`,{className:`cxs-colh`,role:`columnheader`,children:`Space`}),(0,y.jsx)(`div`,{className:`cxs-colh cxs-colh-notes`,role:`columnheader`,children:`Notes`}),u.map((e,t)=>(0,y.jsxs)(`div`,{className:`cxs-row m-stagger-item m-fade-rise`,style:{"--i":t},role:`row`,children:[(0,y.jsx)(`div`,{className:`cxs-name`,role:`gridcell`,title:e.name,children:e.name}),(0,y.jsx)(`div`,{className:`cxs-complexity tab-num`,role:`gridcell`,children:e.timeComplexity||`—`}),(0,y.jsx)(`div`,{className:`cxs-complexity tab-num`,role:`gridcell`,children:e.spaceComplexity||`—`}),(0,y.jsx)(`div`,{className:`cxs-notes`,role:`gridcell`,children:e.notes||`—`})]},`${e.name}-${t}`))]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var dt=[-1,-.5,0,.5,1];function Z(e){if(!Number.isFinite(e))return`0.0`;let t=Math.round(e*10)/10;return t===0?`0.0`:`${t>0?`+`:`−`}${Math.abs(t).toFixed(1)}`}function ft(e){return e===0?`transparent`:`color-mix(in oklab, ${e>0?`var(--danger)`:`var(--presence)`} ${(Math.abs(e)*88).toFixed(1)}%, transparent)`}function pt({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,genes:r,samples:o,values:s,scaleLabel:c=`log2 fold-change`,footer:u,delay:d}){let f=i[t]||i.table,[p,h]=(0,m.useState)(null),g=Array.isArray(r)?r:[],_=Array.isArray(o)?o:[],v=g.map((e,t)=>{let n=Array.isArray(s)?s[t]:void 0;return _.map((e,t)=>{let r=Array.isArray(n)?n[t]:void 0;return typeof r==`number`&&Number.isFinite(r)?r:0})}),b=Math.max(1e-9,...v.flat().map(e=>Math.abs(e))),x=e=>Math.max(-1,Math.min(1,e/b));return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),g.length===0||_.length===0?(0,y.jsx)(l,{message:`Needs at least one gene and one sample to plot`}):(0,y.jsxs)(`div`,{className:`eh-wrap`,children:[(0,y.jsxs)(`div`,{className:`eh-grid`,style:{gridTemplateColumns:`minmax(0, auto) repeat(${_.length}, minmax(0, var(--eh-cell)))`},children:[(0,y.jsx)(`span`,{className:`eh-corner`}),_.map((e,t)=>(0,y.jsx)(`span`,{className:`eh-colh ${p?.c===t?`on`:``}`,title:e,children:e},t)),g.map((e,t)=>(0,y.jsx)(mt,{ri:t,label:e,vals:v[t],colCount:_.length,norm:x,hover:p,setHover:h},t))]}),(0,y.jsxs)(`div`,{className:`eh-legend`,children:[(0,y.jsx)(`span`,{className:`faint tab-num`,children:Z(-b)}),dt.map(e=>(0,y.jsx)(`span`,{className:`eh-swatch`,style:{background:ft(e)}},e)),(0,y.jsx)(`span`,{className:`faint tab-num`,children:Z(b)}),(0,y.jsx)(`span`,{className:`eh-scale-label faint`,children:c})]})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function mt(e){let t=(0,M.c)(15),{ri:n,label:r,vals:i,colCount:a,norm:o,hover:s,setHover:c}=e,l=`eh-rowh ${s?.r===n?`on`:``}`,u;t[0]!==r||t[1]!==l?(u=(0,y.jsx)(`span`,{className:l,title:r,children:r}),t[0]=r,t[1]=l,t[2]=u):u=t[2];let d;t[3]===a?d=t[4]:(d=Array.from({length:a}),t[3]=a,t[4]=d);let f;t[5]!==s||t[6]!==o||t[7]!==n||t[8]!==c||t[9]!==d||t[10]!==i?(f=d.map((e,t)=>{let r=i[t]??0,a=o(r),l=s?.r===n&&s?.c===t,u=s&&(s.r===n||s.c===t);return(0,y.jsxs)(`div`,{className:`eh-cell ${l?`hot`:``} ${u&&!l?`cross`:``}`,style:{background:ft(a),color:Math.abs(a)>.55?`var(--surface-deep)`:`var(--text-secondary)`},onMouseEnter:()=>c({r:n,c:t}),onMouseLeave:()=>c(null),children:[(0,y.jsx)(`span`,{className:`eh-v tab-num`,children:Z(r)}),l&&(0,y.jsx)(`span`,{className:`eh-tip tab-num`,children:Z(r)})]},t)}),t[5]=s,t[6]=o,t[7]=n,t[8]=c,t[9]=d,t[10]=i,t[11]=f):f=t[11];let p;return t[12]!==u||t[13]!==f?(p=(0,y.jsxs)(y.Fragment,{children:[u,f]}),t[12]=u,t[13]=f,t[14]=p):p=t[14],p}var ht=new Set([`outstanding`,`produced`,`objected`,`privileged`]),gt={outstanding:`var(--warning)`,produced:`var(--insight)`,objected:`var(--danger)`,privileged:`var(--presence)`},_t={outstanding:`Outstanding`,produced:`Produced`,objected:`Objected`,privileged:`Privileged`},vt=[`outstanding`,`produced`,`objected`,`privileged`];function yt(e){return typeof e==`string`&&ht.has(e)?e:`outstanding`}function bt(e,t){let n=Date.parse(e),r=Date.parse(t);return Number.isFinite(n)&&Number.isFinite(r)?n-r:Number.isFinite(n)?-1:Number.isFinite(r)?1:e.localeCompare(t)}function xt({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,requests:r,footer:o,delay:s}){let c=i[t]||i.doc,[u,d]=(0,m.useState)(`all`),[f,p]=(0,m.useState)(`num`),[h,g]=(0,m.useState)(`asc`),_=(Array.isArray(r)?r:[]).filter(e=>typeof e?.description==`string`&&e.description.trim().length>0).map((e,t)=>({req:e,num:typeof e.num==`number`&&Number.isFinite(e.num)?e.num:t+1,party:typeof e.requestingParty==`string`&&e.requestingParty.trim()?e.requestingParty:`Unspecified`,status:yt(e.status)})),v=(0,m.useMemo)(()=>{let e={outstanding:0,produced:0,objected:0,privileged:0};for(let t of _)e[t.status]++;return e},[_]),b=u===`all`?_:_.filter(e=>e.status===u),x=(0,m.useMemo)(()=>{let e=h===`asc`?1:-1;return[...b].sort((t,n)=>{switch(f){case`num`:return(t.num-n.num)*e;case`party`:return t.party.localeCompare(n.party)*e;case`status`:return(vt.indexOf(t.status)-vt.indexOf(n.status))*e;case`due`:return bt(t.req.dueDate||``,n.req.dueDate||``)*e}})},[b,f,h]),S=e=>{e===f?g(e=>e===`asc`?`desc`:`asc`):(p(e),g(`asc`))},C=({label:e,sk:t})=>(0,y.jsx)(`th`,{className:`dtr-th`,children:(0,y.jsxs)(`button`,{type:`button`,className:`dtr-th-btn`,onClick:()=>S(t),children:[e,f===t&&(0,y.jsx)(`span`,{className:`dtr-th-arrow`,children:h===`asc`?`↑`:`↓`})]})});return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),_.length===0?(0,y.jsx)(l,{message:`No discovery requests logged`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`dtr-chips`,role:`tablist`,children:[(0,y.jsxs)(`button`,{type:`button`,className:`dtr-chip ${u===`all`?`on`:``}`,onClick:()=>d(`all`),children:[`All `,(0,y.jsx)(`span`,{className:`dtr-count`,children:_.length})]}),vt.map(e=>(0,y.jsxs)(`button`,{type:`button`,className:`dtr-chip ${u===e?`on`:``}`,style:{"--dtr-c":gt[e]},onClick:()=>d(e),children:[_t[e],` `,(0,y.jsx)(`span`,{className:`dtr-count`,children:v[e]})]},e))]}),(0,y.jsx)(`div`,{className:`dtr-scroll`,children:(0,y.jsxs)(`table`,{className:`dtr-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(C,{label:`#`,sk:`num`}),(0,y.jsx)(`th`,{className:`dtr-th dtr-th-desc`,children:`Description`}),(0,y.jsx)(C,{label:`Requesting party`,sk:`party`}),(0,y.jsx)(C,{label:`Status`,sk:`status`}),(0,y.jsx)(`th`,{className:`dtr-th`,children:`Bates`}),(0,y.jsx)(C,{label:`Due`,sk:`due`})]})}),(0,y.jsx)(`tbody`,{children:x.map((e,t)=>(0,y.jsxs)(`tr`,{className:`dtr-row m-stagger-item m-fade-rise`,children:[(0,y.jsx)(`td`,{className:`dtr-num tab-num`,children:e.num}),(0,y.jsx)(`td`,{className:`dtr-desc`,children:e.req.description}),(0,y.jsx)(`td`,{className:`dtr-party`,children:e.party}),(0,y.jsxs)(`td`,{children:[(0,y.jsx)(`span`,{className:`dtr-status`,style:{"--dtr-c":gt[e.status]},children:_t[e.status]}),e.status===`privileged`&&e.req.privilegeBasis&&(0,y.jsx)(`div`,{className:`dtr-priv-note`,children:e.req.privilegeBasis})]}),(0,y.jsx)(`td`,{className:`dtr-bates`,children:e.req.batesRange||`—`}),(0,y.jsx)(`td`,{className:`dtr-due`,children:e.req.dueDate||`—`})]},`${e.num}-${t}`))})]})})]}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var St=new Set([`urgent`,`recommended`,`elective`]),Ct={urgent:`var(--danger)`,recommended:`var(--warning)`,elective:`var(--insight)`};function wt(e){return typeof e==`string`&&St.has(e)?e:`recommended`}function Tt(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Et(e){return e?/complet|done/i.test(e)?`var(--insight)`:/progress|underway|started/i.test(e)?`var(--warning)`:`var(--text-muted)`:`var(--text-muted)`}var Dt=`Unscheduled`;function Ot({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,entries:r,footer:o,delay:c}){let u=i[t]||i.shield,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.procedure==`string`&&e.procedure.trim().length>0).map(e=>({entry:e,priority:wt(e.priority),cost:Tt(e.cost),visit:typeof e.visit==`string`&&e.visit.trim()?e.visit:Dt})),f=(0,m.useMemo)(()=>{let e=[],t=new Map;for(let n of d)t.has(n.visit)||(t.set(n.visit,[]),e.push(n.visit)),t.get(n.visit).push(n);return e.map(e=>({visit:e,rows:t.get(e),subtotal:t.get(e).reduce((e,t)=>e+(t.cost??0),0)}))},[d]),p=d.reduce((e,t)=>e+(t.cost??0),0),h=0;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No treatment entries planned`}):(0,y.jsx)(`div`,{className:`dtp-scroll`,children:(0,y.jsxs)(`table`,{className:`dtp-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`dtp-th`,children:`Tooth`}),(0,y.jsx)(`th`,{className:`dtp-th dtp-th-proc`,children:`Procedure`}),(0,y.jsx)(`th`,{className:`dtp-th`,children:`Priority`}),(0,y.jsx)(`th`,{className:`dtp-th`,children:`Status`}),(0,y.jsx)(`th`,{className:`dtp-th dtp-th-num`,children:`Cost`})]})}),(0,y.jsx)(`tbody`,{children:f.map(e=>(0,y.jsxs)(m.Fragment,{children:[(0,y.jsxs)(`tr`,{className:`dtp-visit-row`,children:[(0,y.jsx)(`td`,{className:`dtp-visit-head`,colSpan:4,children:e.visit}),(0,y.jsx)(`td`,{className:`dtp-visit-subtotal tab-num`,children:s(e.subtotal,{currency:`USD`,decimals:0})})]}),e.rows.map(t=>{let n=h++;return(0,y.jsxs)(`tr`,{className:`dtp-row m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,y.jsx)(`td`,{className:`dtp-tooth`,children:t.entry.tooth||`—`}),(0,y.jsxs)(`td`,{className:`dtp-proc`,children:[t.entry.procedure,t.entry.surface&&(0,y.jsxs)(`span`,{className:`dtp-surface`,children:[` · `,t.entry.surface]})]}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`dtp-priority`,style:{"--dtp-c":Ct[t.priority]},children:t.priority})}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`dtp-status`,style:{"--dtp-c":Et(t.entry.status)},children:t.entry.status||`—`})}),(0,y.jsx)(`td`,{className:`dtp-num tab-num`,children:t.cost==null?`—`:s(t.cost,{currency:`USD`,decimals:0})})]},`${e.visit}-${n}`)})]},e.visit))}),(0,y.jsx)(`tfoot`,{children:(0,y.jsxs)(`tr`,{className:`dtp-total-row`,children:[(0,y.jsx)(`td`,{className:`dtp-total-label`,colSpan:4,children:`Total plan cost`}),(0,y.jsx)(`td`,{className:`dtp-total-val tab-num`,children:s(p,{currency:`USD`,decimals:0})})]})})]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var kt=new Set([`yea`,`nay`,`present`,`absent`]),At={yea:`var(--insight)`,nay:`var(--danger)`,present:`var(--warning)`,absent:`var(--text-muted)`},jt={yea:`✓`,nay:`✕`,present:`•`,absent:`–`},Mt={yea:`Yea`,nay:`Nay`,present:`Present`,absent:`Absent`},Nt=[`yea`,`nay`,`present`,`absent`];function Pt(e){return typeof e==`string`&&kt.has(e)?e:`absent`}var Ft=[`var(--presence)`,`var(--presence-deep)`,`var(--insight-soft)`,`var(--warning-soft)`,`var(--presence-soft)`];function It(e){if(!e)return`var(--text-muted)`;let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return Ft[t%Ft.length]}function Lt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,bill:r,legislators:o,footer:s,delay:c}){let u=i[t]||i.chart,d=(Array.isArray(o)?o:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0).map(e=>({leg:e,name:e.name,party:typeof e.party==`string`?e.party.trim():``,vote:Pt(e.vote)})),f=(0,m.useMemo)(()=>{let e={yea:0,nay:0,present:0,absent:0};for(let t of d)e[t.vote]++;return e},[d]),p=Math.max(1,d.length);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`rc-bill`,children:r}),d.length===0?(0,y.jsx)(l,{message:`No votes recorded`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`rc-tally`,children:[(0,y.jsx)(`div`,{className:`rc-tally-bar`,children:Nt.filter(e=>f[e]>0).map(e=>(0,y.jsx)(`div`,{className:`rc-tally-seg`,style:{width:`${f[e]/p*100}%`,background:At[e]},title:`${Mt[e]}: ${f[e]}`},e))}),(0,y.jsx)(`div`,{className:`rc-tally-labels`,children:Nt.map(e=>(0,y.jsxs)(`span`,{className:`rc-tally-label`,style:{"--rc-c":At[e]},children:[(0,y.jsx)(`span`,{className:`rc-tally-dot`}),` `,f[e],` `,Mt[e]]},e))})]}),(0,y.jsx)(`div`,{className:`rc-scroll`,children:(0,y.jsxs)(`table`,{className:`rc-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`rc-th`,children:`Legislator`}),(0,y.jsx)(`th`,{className:`rc-th`,children:`Party`}),(0,y.jsx)(`th`,{className:`rc-th rc-th-vote`,children:`Vote`})]})}),(0,y.jsx)(`tbody`,{children:d.map((e,t)=>(0,y.jsxs)(`tr`,{className:`rc-row m-stagger-item m-fade-rise`,style:{"--i":t,"--rc-party":It(e.party)},children:[(0,y.jsx)(`td`,{className:`rc-name`,children:e.name}),(0,y.jsx)(`td`,{className:`rc-party`,children:e.party||`—`}),(0,y.jsx)(`td`,{className:`rc-vote-cell`,children:(0,y.jsxs)(`span`,{className:`rc-vote`,style:{"--rc-c":At[e.vote]},children:[(0,y.jsx)(`span`,{className:`rc-vote-glyph`,children:jt[e.vote]}),Mt[e.vote]]})})]},`${e.name}-${t}`))})]})})]}),s&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}var Rt=new Set([`mint`,`good`,`fair`]),zt={mint:`var(--insight)`,good:`var(--presence)`,fair:`var(--warning)`};function Bt(e){return typeof e==`string`&&Rt.has(e)?e:null}function Vt(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Ht({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:c}){let u=i[t]||i.layers,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0),f=d.reduce((e,t)=>e+(Vt(t.value)??0),0),p=d.filter(e=>Vt(e.value)!=null).length;return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No items in this collection yet`}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`ctk-summary`,children:[(0,y.jsxs)(`div`,{className:`ctk-summary-stat`,children:[(0,y.jsx)(`span`,{className:`ctk-summary-val tab-num`,children:d.length}),(0,y.jsx)(`span`,{className:`ctk-summary-label`,children:d.length===1?`item`:`items`})]}),p>0&&(0,y.jsxs)(`div`,{className:`ctk-summary-stat`,children:[(0,y.jsx)(`span`,{className:`ctk-summary-val ctk-summary-total tab-num`,children:s(f,{currency:`USD`,decimals:0})}),(0,y.jsx)(`span`,{className:`ctk-summary-label`,children:`estimated value`})]})]}),(0,y.jsx)(`div`,{className:`ctk-grid`,children:d.map((e,t)=>{let n=Bt(e.condition),r=Vt(e.value);return(0,y.jsxs)(`div`,{className:`ctk-card m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,y.jsxs)(`div`,{className:`ctk-card-top`,children:[(0,y.jsx)(`span`,{className:`ctk-name`,title:e.name,children:e.name}),n&&(0,y.jsx)(`span`,{className:`ctk-condition`,style:{"--ctk-c":zt[n]},children:n})]}),e.acquiredDate&&(0,y.jsx)(`div`,{className:`ctk-date`,children:e.acquiredDate}),r!=null&&(0,y.jsx)(`div`,{className:`ctk-value tab-num`,children:s(r,{currency:`USD`,decimals:0})}),e.notes&&(0,y.jsx)(`div`,{className:`ctk-notes`,children:e.notes})]},`${e.name}-${t}`)})})]}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}function Q(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function Ut(e){let t=s(Math.abs(e),{currency:`USD`,decimals:0});return e<0?`(${t})`:e>0?`+${t}`:t}function Wt({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,subject:r,comps:o,suggestedListPrice:c,footer:u,delay:d}){let f=i[t]||i.chart,p=r&&typeof r==`object`?r:{},m=Q(p.beds),h=Q(p.baths),g=Q(p.sqft),_=Q(p.yearBuilt),v=(Array.isArray(o)?o:[]).filter(e=>typeof e?.address==`string`&&e.address.trim().length>0).map(e=>{let t=Q(e.soldPrice),n=(Array.isArray(e.adjustments)?e.adjustments:[]).filter(e=>typeof e?.label==`string`&&e.label.trim().length>0).map(e=>({adj:e,amount:Q(e.amount)})),r=n.reduce((e,t)=>e+(t.amount??0),0);return{comp:e,soldPrice:t,sqft:Q(e.sqft),distance:Q(e.distance),adjustments:n,adjustedPrice:t==null?null:t+r}}),b=c&&typeof c==`object`?c:{},x=Q(b.low),S=Q(b.high),C=Q(b.point),w=[{label:`Beds`,value:m==null?`—`:String(m)},{label:`Baths`,value:h==null?`—`:String(h)},{label:`Sqft`,value:g==null?`—`:s(g)},{label:`Year built`,value:_==null?`—`:String(_)}];return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(d||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),typeof p.address==`string`&&p.address&&(0,y.jsx)(`div`,{className:`cma-subject-addr`,children:p.address}),(0,y.jsx)(`div`,{className:`cma-summary`,children:w.map(e=>(0,y.jsxs)(`div`,{className:`cma-field`,children:[(0,y.jsx)(`span`,{className:`cma-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`cma-field-value`,children:e.value})]},e.label))}),v.length===0?(0,y.jsx)(l,{message:`No comparable sales to show`}):(0,y.jsx)(`div`,{className:`cma-scroll`,children:(0,y.jsxs)(`table`,{className:`cma-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`cma-th cma-th-addr`,children:`Comparable`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Sold price`}),(0,y.jsx)(`th`,{className:`cma-th`,children:`Sold date`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Sqft`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Dist.`}),(0,y.jsx)(`th`,{className:`cma-th`,children:`Adjustments`}),(0,y.jsx)(`th`,{className:`cma-th cma-th-num`,children:`Adjusted price`})]})}),(0,y.jsx)(`tbody`,{children:v.map((e,t)=>(0,y.jsxs)(`tr`,{className:`cma-row m-stagger-item m-fade-rise`,children:[(0,y.jsx)(`td`,{className:`cma-addr`,children:e.comp.address}),(0,y.jsx)(`td`,{className:`cma-num tab-num`,children:e.soldPrice==null?`—`:s(e.soldPrice,{currency:`USD`,decimals:0})}),(0,y.jsx)(`td`,{className:`cma-date`,children:e.comp.soldDate||`—`}),(0,y.jsx)(`td`,{className:`cma-num tab-num`,children:e.sqft==null?`—`:s(e.sqft)}),(0,y.jsx)(`td`,{className:`cma-num tab-num`,children:e.distance==null?`—`:`${s(e.distance,{decimals:1})} mi`}),(0,y.jsx)(`td`,{className:`cma-adj`,children:e.adjustments.length===0?(0,y.jsx)(`span`,{className:`cma-adj-none`,children:`—`}):(0,y.jsx)(`ul`,{className:`cma-adj-list`,children:e.adjustments.map((e,t)=>(0,y.jsxs)(`li`,{className:`cma-adj-item`,children:[(0,y.jsx)(`span`,{className:`cma-adj-label`,children:e.adj.label}),e.amount!=null&&e.amount!==0&&(0,y.jsx)(`span`,{className:`cma-adj-amt tab-num ${e.amount<0?`neg`:`pos`}`,children:Ut(e.amount)})]},t))})}),(0,y.jsx)(`td`,{className:`cma-num cma-adjusted tab-num`,children:e.adjustedPrice==null?`—`:s(e.adjustedPrice,{currency:`USD`,decimals:0})})]},`${e.comp.address}-${t}`))})]})}),(0,y.jsxs)(`div`,{className:`cma-banner`,children:[(0,y.jsx)(`span`,{className:`cma-banner-label`,children:`Suggested list price`}),x!=null&&S!=null?(0,y.jsxs)(`span`,{className:`cma-banner-value tab-num`,children:[s(x,{currency:`USD`,decimals:0}),` – `,s(S,{currency:`USD`,decimals:0}),C!=null&&(0,y.jsxs)(`span`,{className:`cma-banner-point`,children:[` `,`· point `,s(C,{currency:`USD`,decimals:0})]})]}):(0,y.jsx)(`span`,{className:`cma-banner-value cma-banner-empty`,children:`Not yet estimated`})]}),u&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function Gt(e){let t=s(Math.abs(e),{currency:`USD`,decimals:0});return e<0?`(${t})`:t}function Kt(e){return typeof e==`number`&&Number.isFinite(e)?e:0}function qt(e){return e===`subtotal`||e===`total`?e:`line`}var Jt=new Set([`refund`,`owed`]);function Yt(e){return typeof e==`string`&&Jt.has(e)?e:`owed`}function Xt({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,filingStatus:r,taxYear:o,rows:c,refundOrOwed:u,footer:d,delay:f}){let p=i[t]||i.doc,m=(Array.isArray(c)?c:[]).filter(e=>typeof e?.label==`string`&&e.label.trim().length>0),h=u&&typeof u==`object`?u:{},g=Kt(h.amount),_=Yt(h.direction),v=[r,o!=null&&o!==``?`Tax year ${o}`:``].filter(Boolean).join(` · `);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(f||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:v?4:14},children:[(0,y.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),v&&(0,y.jsx)(`div`,{className:`trs-cap`,children:v}),m.length===0?(0,y.jsx)(l,{message:`No return lines to show`}):(0,y.jsx)(`div`,{className:`trs-scroll`,children:(0,y.jsx)(`table`,{className:`trs-tbl`,children:(0,y.jsx)(`tbody`,{children:m.map((e,t)=>{let n=qt(e.kind),r=Math.max(0,e.indent||0),i=Kt(e.amount);return(0,y.jsxs)(`tr`,{className:`trs-row trs-${n}`,children:[(0,y.jsx)(`td`,{className:`trs-label`,style:{paddingLeft:2+r*14},children:e.label}),(0,y.jsx)(`td`,{className:`trs-val tab-num ${i<0?`neg`:``}`,children:Gt(i)})]},t)})})})}),(0,y.jsxs)(`div`,{className:`trs-banner trs-banner-${_}`,children:[(0,y.jsx)(`span`,{className:`trs-banner-label`,children:_===`refund`?`Refund`:`Amount owed`}),(0,y.jsx)(`span`,{className:`trs-banner-val tab-num`,children:s(g,{currency:`USD`,decimals:0})})]}),d&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function $(e){return typeof e==`number`&&Number.isFinite(e)?s(e,{currency:`USD`,decimals:0}):`—`}function Zt({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,assetDescription:r,cost:o,method:s,usefulLife:c,annualDepreciation:u,rows:d,footer:f,delay:p}){let m=i[t]||i.table,h=(Array.isArray(d)?d:[]).filter(e=>typeof e?.period==`string`&&e.period.trim().length>0),g=h.length-1,_=[{label:`Cost basis`,value:$(o)},{label:`Method`,value:typeof s==`string`&&s?s:`—`},{label:`Useful life`,value:c!=null&&c!==``?String(c):`—`},{label:`Annual depreciation`,value:$(u),highlight:!0}];return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(p||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,style:{marginBottom:r?4:14},children:[(0,y.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,y.jsx)(`div`,{className:`dep-cap`,children:r}),(0,y.jsx)(`div`,{className:`dep-summary`,children:_.map(e=>(0,y.jsxs)(`div`,{className:`dep-field${e.highlight?` highlight`:``}`,children:[(0,y.jsx)(`span`,{className:`dep-field-label`,children:e.label}),(0,y.jsx)(`span`,{className:`dep-field-value`,...e.highlight?{"data-mark":`underline`}:{},children:e.value})]},e.label))}),h.length===0?(0,y.jsx)(l,{message:`No schedule rows to show`}):(0,y.jsx)(`div`,{className:`dep-scroll`,children:(0,y.jsxs)(`table`,{className:`dep-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`dep-th`,children:`Period`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Beginning basis`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Depreciation`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Accumulated`}),(0,y.jsx)(`th`,{className:`dep-th dep-th-num`,children:`Ending basis`})]})}),(0,y.jsx)(`tbody`,{children:h.map((e,t)=>(0,y.jsxs)(`tr`,{className:`dep-row ${t===0||t===g?`edge`:``}`,children:[(0,y.jsx)(`td`,{className:`dep-period`,children:e.period}),(0,y.jsx)(`td`,{className:`dep-num tab-num`,children:$(e.beginningBasis)}),(0,y.jsx)(`td`,{className:`dep-num tab-num`,children:$(e.depreciationExpense)}),(0,y.jsx)(`td`,{className:`dep-num tab-num`,children:$(e.accumulatedDepreciation)}),(0,y.jsx)(`td`,{className:`dep-num dep-ending tab-num`,children:$(e.endingBasis)})]},t))})]})}),f&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var Qt=new Set([`catering`,`venue`,`photo`,`av`,`decor`,`other`]),$t={catering:`cart`,venue:`layers`,photo:`image`,av:`speaker`,decor:`sparkle`,other:`doc`},en={catering:`Catering`,venue:`Venue`,photo:`Photo/Video`,av:`AV`,decor:`Decor`,other:`Other`};function tn(e){return typeof e==`string`&&Qt.has(e)?e:`other`}var nn=new Set([`inquired`,`booked`,`confirmed`]),rn={inquired:`var(--text-muted)`,booked:`var(--warning)`,confirmed:`var(--insight)`};function an(e){return typeof e==`string`&&nn.has(e)?e:`inquired`}function on(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function sn({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,vendors:r,footer:o,delay:c}){let u=i[t]||i.layers,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.name==`string`&&e.name.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No vendors tracked yet`}):(0,y.jsx)(`div`,{className:`vnd-list`,children:d.map((e,t)=>{let n=tn(e.category),r=an(e.status),a=i[$t[n]]||i.doc,o=on(e.depositAmount),c=on(e.balanceDue),l=e.depositPaid?o??0:0,u=(o??0)+(c??0),d=u>0?l/u*100:0,f=u>0?100-d:0;return(0,y.jsxs)(`div`,{className:`vnd-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,y.jsx)(`div`,{className:`vnd-cat`,title:en[n],children:(0,y.jsx)(a,{className:`ic`})}),(0,y.jsxs)(`div`,{className:`vnd-body`,children:[(0,y.jsxs)(`div`,{className:`vnd-top`,children:[(0,y.jsx)(`span`,{className:`vnd-name`,children:e.name}),(0,y.jsx)(`span`,{className:`vnd-catlabel`,children:en[n]}),(0,y.jsx)(`span`,{className:`vnd-spacer`}),(0,y.jsx)(`span`,{className:`vnd-status`,style:{"--vnd-c":rn[r]},children:r})]}),u>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`vnd-track`,children:[(0,y.jsx)(`div`,{className:`vnd-fill-paid`,style:{width:`${d}%`}}),(0,y.jsx)(`div`,{className:`vnd-fill-due`,style:{width:`${f}%`}})]}),(0,y.jsxs)(`div`,{className:`vnd-money`,children:[o!=null&&(0,y.jsxs)(`span`,{className:`vnd-deposit`,children:[`Deposit `,s(o,{currency:`USD`,decimals:0}),e.depositPaid?` · paid`:` · unpaid`]}),c!=null&&(0,y.jsxs)(`span`,{className:`vnd-balance`,children:[`Balance `,s(c,{currency:`USD`,decimals:0}),e.dueDate?` due ${e.dueDate}`:``]}),e.contractSigned&&(0,y.jsx)(`span`,{className:`vnd-contract`,children:`Contract signed`})]})]})]})]},`${e.name}-${t}`)})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var cn=new Set([`pitched`,`negotiating`,`contracted`,`delivered`,`paid`]),ln={pitched:`var(--text-muted)`,negotiating:`var(--warning)`,contracted:`var(--presence)`,delivered:`var(--presence-soft)`,paid:`var(--insight)`};function un(e){return typeof e==`string`&&cn.has(e)?e:`pitched`}function dn(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function fn({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,deals:r,footer:o,delay:c}){let u=i[t]||i.spark,d=(Array.isArray(r)?r:[]).filter(e=>typeof e?.brand==`string`&&e.brand.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(c||0)+`ms`},children:[(0,y.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,y.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length===0?(0,y.jsx)(l,{message:`No sponsorship deals tracked yet`}):(0,y.jsx)(`div`,{className:`spn-scroll`,children:(0,y.jsxs)(`table`,{className:`spn-table`,children:[(0,y.jsx)(`thead`,{children:(0,y.jsxs)(`tr`,{children:[(0,y.jsx)(`th`,{className:`spn-th`,children:`Brand`}),(0,y.jsx)(`th`,{className:`spn-th`,children:`Deliverable`}),(0,y.jsx)(`th`,{className:`spn-th spn-th-num`,children:`Rate`}),(0,y.jsx)(`th`,{className:`spn-th`,children:`Status`}),(0,y.jsx)(`th`,{className:`spn-th`,children:`Date`})]})}),(0,y.jsx)(`tbody`,{children:d.map((e,t)=>{let n=un(e.status),r=dn(e.rate),i=n===`paid`,a=typeof e.currency==`string`&&e.currency.trim()?e.currency:`USD`;return(0,y.jsxs)(`tr`,{className:`spn-row m-stagger-item m-fade-rise ${i?`paid`:`unpaid`}`,style:{"--i":t},children:[(0,y.jsx)(`td`,{className:`spn-brand`,children:e.brand}),(0,y.jsx)(`td`,{className:`spn-deliverable`,children:e.deliverable||`—`}),(0,y.jsx)(`td`,{className:`spn-rate tab-num`,children:r==null?`—`:s(r,{currency:a,decimals:0})}),(0,y.jsx)(`td`,{children:(0,y.jsx)(`span`,{className:`spn-status`,style:{"--spn-c":ln[n]},children:n})}),(0,y.jsx)(`td`,{className:`spn-date`,children:n===`paid`&&e.paidDate?`Paid ${e.paidDate}`:e.dueDate?`Due ${e.dueDate}`:`—`})]},`${e.brand}-${t}`)})})]})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var pn=new Set([`low`,`medium`,`high`]),mn={low:`var(--insight)`,medium:`var(--warning)`,high:`var(--danger)`};function hn(e){return typeof e==`string`&&pn.has(e)?e:null}function gn({title:e,icon:t=`shield`,iconColor:n=`var(--presence)`,cases:r,footer:o,delay:s}){let c=i[t]||i.shield,u=(Array.isArray(r)?r:[]).filter(e=>typeof e?.clientRef==`string`&&e.clientRef.trim().length>0);return(0,y.jsxs)(`div`,{className:`card reveal tbl`,style:{"--delay":(s||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.jsx)(l,{message:`No cases on this list`}):(0,y.jsx)(`div`,{className:`csl-list`,children:u.map((e,t)=>{let n=hn(e.riskLevel);return(0,y.jsxs)(`div`,{className:`csl-row m-stagger-item m-fade-rise`,style:{"--i":t,"--csl-c":n?mn[n]:`var(--line-strong)`},children:[(0,y.jsx)(`div`,{className:`csl-risk-bar`}),(0,y.jsxs)(`div`,{className:`csl-body`,children:[(0,y.jsxs)(`div`,{className:`csl-top`,children:[(0,y.jsx)(`span`,{className:`csl-ref`,children:e.clientRef}),(0,y.jsx)(`span`,{className:`csl-status`,children:e.status||`—`}),(0,y.jsx)(`span`,{className:`csl-spacer`}),n?(0,y.jsxs)(`span`,{className:`csl-riskbadge`,children:[n,` risk`]}):(0,y.jsx)(`span`,{className:`csl-riskbadge csl-unscored`,children:`unscored`})]}),(0,y.jsxs)(`div`,{className:`csl-meta`,children:[e.nextContact&&(0,y.jsxs)(`span`,{className:`csl-contact`,children:[`Next contact `,e.nextContact]}),e.note&&(0,y.jsx)(`span`,{className:`csl-note`,children:e.note})]})]})]},`${e.clientRef}-${t}`)})}),o&&(0,y.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var _n=e({tablesRegistry:()=>vn}),vn={matrix:f(me),datatable:f(x),pivot:f(S),leaderboard:f(T),treetable:f(k),swimlane:f(A),footnotetable:f(j),sparktable:f(I),smallmultiples:f(re),comparebars:f(ie),comparematrix:f(de),matrixgrid:f(fe),sensitivitytable:f(ge),labpanel:f(ve),ingredientmatrix:f(ye),conjugation:f(be),clearancematrix:f(Se),financialstatement:f(we),cohortgrid:f(Te),riskmatrix:f(ke),careplan:f(je),doseladder:f(Me),sizechart:f(Ne),pricingtable:f(Ie),raci:f(Re),rubric:f(ze),interviewscorecard:f(Ve),gradebook:f(He),datadictionary:f(Ye),ablationtable:f($e),spectrumtable:f(nt),fmeatable:f(ot),billofmaterials:f(lt),complexitysummary:f(ut),expressionheatmap:f(pt),discoverytracker:f(xt),dentaltreatmentplan:f(Ot),rollcall:f(Lt),collectiontracker:f(Ht),cma:f(Wt),taxreturnsummary:f(Xt),depreciationschedule:f(Zt),vendortracker:f(sn),sponsorshiptracker:f(fn),caseload:f(gn)};export{vn as n,_n as t};
|