@mavea/mavea 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -7
  3. package/TERMS.md +9 -3
  4. package/dist/.vite/manifest.json +337 -337
  5. package/dist/assets/{AnnotationLayer-Bh1yiSAK.js → AnnotationLayer-0YQgrjN3.js} +1 -1
  6. package/dist/assets/{AppCommandPalette-DS4sLY_K.js → AppCommandPalette-CeNtZzhG.js} +1 -1
  7. package/dist/assets/{CheckLogRail-onH7DaxW.js → CheckLogRail-CPKGKw7i.js} +1 -1
  8. package/dist/assets/{ConversationVideoStudio-adb7legp.js → ConversationVideoStudio-BLU1b2u_.js} +1 -1
  9. package/dist/assets/{CourseLessonReader-CkzViEij.js → CourseLessonReader-Ci4BguIU.js} +2 -2
  10. package/dist/assets/{CoursesApp-B0HFM8Al.js → CoursesApp-CErXxpH-.js} +2 -2
  11. package/dist/assets/{DashPresent-BdOJ7F9D.js → DashPresent-w5oqKZpo.js} +1 -1
  12. package/dist/assets/{DashboardDetail-Chrpi1Yk.js → DashboardDetail-Dej7CPf7.js} +2 -2
  13. package/dist/assets/{DashboardLoopGate-B01Hpm7O.js → DashboardLoopGate-DzJol3Os.js} +2 -2
  14. package/dist/assets/DashboardLoopRuntime-CX63-Gn4.js +1 -0
  15. package/dist/assets/{DashboardsApp--jjj-GVX.js → DashboardsApp-BQtz_4UA.js} +2 -2
  16. package/dist/assets/{DeepZoomApp-BpQbKTjc.js → DeepZoomApp-STtNq9C3.js} +1 -1
  17. package/dist/assets/{DelegatePanel-e4y0CJsn.js → DelegatePanel-C2_s1eW9.js} +1 -1
  18. package/dist/assets/{DemoGallery-DF1ShRG4.js → DemoGallery-CXoaPF9b.js} +1 -1
  19. package/dist/assets/{DropSelect-D3Q9Su_x.js → DropSelect-rrPFJVkl.js} +1 -1
  20. package/dist/assets/{ExportModal-DkmyBpeN.js → ExportModal-BS3He6V7.js} +1 -1
  21. package/dist/assets/{ExtractionPreview-C6F1q3qG.js → ExtractionPreview-CQ73RXM8.js} +1 -1
  22. package/dist/assets/{FeatureUseNotice-CCI4mM39.js → FeatureUseNotice-lFcApjaS.js} +1 -1
  23. package/dist/assets/{FlagshipCommandPalette-BkjvGrKT.js → FlagshipCommandPalette-D6gjWvTe.js} +1 -1
  24. package/dist/assets/{FlagshipShowcase-Dx2noFrP.js → FlagshipShowcase-mZDqHQtE.js} +1 -1
  25. package/dist/assets/{FlashcardsApp-C1TeLlkY.js → FlashcardsApp-C8gRaBO8.js} +1 -1
  26. package/dist/assets/{GalleryApp-7oBldBKU.js → GalleryApp-ChsuVZqR.js} +1 -1
  27. package/dist/assets/{HonestByDesign-DlRrxgrO.js → HonestByDesign-Czur9n6R.js} +1 -1
  28. package/dist/assets/{HowItWorks-BM2yn2dq.js → HowItWorks-CA9WdZQ6.js} +1 -1
  29. package/dist/assets/{LegalApp-DPfTD0jz.js → LegalApp-BCnZfHNq.js} +1 -1
  30. package/dist/assets/{LegalMarkdownDocument-DJgwmK1q.js → LegalMarkdownDocument-CNsihJ1F.js} +1 -1
  31. package/dist/assets/{LegalPageShell-DuIwSVSJ.js → LegalPageShell-8HHhJAPo.js} +1 -1
  32. package/dist/assets/{LibraryOverlay-DsLhiJzF.js → LibraryOverlay-CGDPmvnX.js} +1 -1
  33. package/dist/assets/{LiveApp-DNYYimuo.js → LiveApp-CnTYFYf1.js} +4 -4
  34. package/dist/assets/{LiveSettings-CDHQnEtF.js → LiveSettings-Bx7Uu6Fl.js} +1 -1
  35. package/dist/assets/{MindMapViewerDrawer-C3BgiubE.js → MindMapViewerDrawer-CBLaSq-i.js} +1 -1
  36. package/dist/assets/{MindShape-DVlgSR1B.js → MindShape-QuVL_EXi.js} +1 -1
  37. package/dist/assets/{PinToDashboard-Dd_egidB.js → PinToDashboard-CddhBx85.js} +1 -1
  38. package/dist/assets/{PlanReview-wOsBpofo.js → PlanReview-DCPDkqLj.js} +1 -1
  39. package/dist/assets/{PresentationDeck-BSMzp5T9.js → PresentationDeck-DV8AeOrh.js} +1 -1
  40. package/dist/assets/{PrismApp-DbbDNVpy.js → PrismApp-BHcClSEQ.js} +2 -2
  41. package/dist/assets/{PrismBriefingPlayer-B1_ziOwl.js → PrismBriefingPlayer-CDkaBWup.js} +2 -2
  42. package/dist/assets/{PrismOverlay-DLxvsh9l.js → PrismOverlay-DRWAI9Mh.js} +3 -3
  43. package/dist/assets/{PrismWorkbench-ZlhI7Mhw.js → PrismWorkbench-B2uSg63W.js} +1 -1
  44. package/dist/assets/{PrivacyApp-Ki_5bM9Z.js → PrivacyApp-CoFgfPwJ.js} +1 -1
  45. package/dist/assets/{ReplayCard-WKBKeSKc.js → ReplayCard-CLlaKpWg.js} +2 -2
  46. package/dist/assets/{ReplayOverlay-PFSJv540.js → ReplayOverlay-W3KwhRaQ.js} +1 -1
  47. package/dist/assets/{RippleApp-DqVyZYKV.js → RippleApp-CEJvJl-c.js} +2 -2
  48. package/dist/assets/{RippleOverlay-4McJCSV8.js → RippleOverlay-DHnHEYoS.js} +2 -2
  49. package/dist/assets/{SeeDontRead-gARjJuF7.js → SeeDontRead-tA-fTWQW.js} +1 -1
  50. package/dist/assets/{ShareModal-C5HVVMtQ.js → ShareModal-Ys5NYDZR.js} +2 -2
  51. package/dist/assets/{ShipCourse-BUm4TKUk.js → ShipCourse-C3pjBELa.js} +1 -1
  52. package/dist/assets/{SignatureLoop-CYspJuij.js → SignatureLoop-BNjDbepH.js} +1 -1
  53. package/dist/assets/{SynthesisApp-BNhF9aJ2.js → SynthesisApp-BCsFms4h.js} +2 -2
  54. package/dist/assets/{SynthesisOverlay-Bvwdc8uQ.js → SynthesisOverlay-iqXO09rf.js} +1 -1
  55. package/dist/assets/{TemplatePicker-DBa4lkpf.js → TemplatePicker-PWw_xyWb.js} +1 -1
  56. package/dist/assets/{TermsApp-BvwDtgIz.js → TermsApp-B1D2SwN7.js} +10 -4
  57. package/dist/assets/{TopicCanvas-Cwc6-K3q.js → TopicCanvas-xwDjwqxn.js} +2 -2
  58. package/dist/assets/{TourPrism-CCjys3-x.js → TourPrism-Do4evVOo.js} +1 -1
  59. package/dist/assets/{TrackerTile-B4j5qtop.js → TrackerTile-Dp7fvG4P.js} +2 -2
  60. package/dist/assets/{TwoSurfaces-fGm1MJrD.js → TwoSurfaces-CZA6zuue.js} +1 -1
  61. package/dist/assets/{WorldOverlay-JOp1rLyU.js → WorldOverlay-EwAFBDvq.js} +1 -1
  62. package/dist/assets/{WowFeatures-D5dJvp9W.js → WowFeatures-DRKs2UGb.js} +1 -1
  63. package/dist/assets/{ZoomDeck-DYmkT0TA.js → ZoomDeck-qJqKFxkc.js} +1 -1
  64. package/dist/assets/{audioTrack-BJ2D_nuy.js → audioTrack-myyVq6Sp.js} +1 -1
  65. package/dist/assets/canvas-OSBUSYbY.js +1 -0
  66. package/dist/assets/{capture-Y6Qm8zCN.js → capture-MMxmbgt1.js} +1 -1
  67. package/dist/assets/{confirmAdd-D-TTCQ31.js → confirmAdd-VLwpBNf_.js} +1 -1
  68. package/dist/assets/{dashboardEvents-MzCzak6K.js → dashboardEvents-CiE91_oj.js} +1 -1
  69. package/dist/assets/{effort-BftNJCCV.js → effort-CQY4uJMS.js} +1 -1
  70. package/dist/assets/{generateBeats-Dqtfd8HC.js → generateBeats-Ci99Isyk.js} +1 -1
  71. package/dist/assets/{generateLive-B7nlaqz8.js → generateLive-DzBVo6Yg.js} +1 -1
  72. package/dist/assets/{index-Db-FgYxX.js → index-yJfYsjAB.js} +3 -3
  73. package/dist/assets/{kokoro-yB7iU_JU.js → kokoro-DogSQaQB.js} +1 -1
  74. package/dist/assets/{loader-Ciz6XbG-.js → loader-BPVv7hEn.js} +2 -2
  75. package/dist/assets/{notes-CEloxKQ3.js → notes-C-RNIoXo.js} +1 -1
  76. package/dist/assets/{perfProbe-DrOeB7yd.js → perfProbe-q5Gt55We.js} +1 -1
  77. package/dist/assets/{pin-C5_s4Ju5.js → pin-BReqt-Wx.js} +1 -1
  78. package/dist/assets/{portal-TqJbr2rR.js → portal-XWyi6FIz.js} +1 -1
  79. package/dist/assets/{prewarm-Bt5X_9CM.js → prewarm-DOqg5zPk.js} +1 -1
  80. package/dist/assets/{quietHours-LtXDl4-v.js → quietHours-kEvnJP2S.js} +1 -1
  81. package/dist/assets/{registry-BHDUu15I.js → registry-B7zPuTCI.js} +1 -1
  82. package/dist/assets/{registry-CfIJ9dJS.js → registry-BB0UFcJi.js} +1 -1
  83. package/dist/assets/{registry-BwlvYVHq.js → registry-BvtWVDCw.js} +1 -1
  84. package/dist/assets/{registry-BPLbZIVz.js → registry-CQ0bMOV_.js} +1 -1
  85. package/dist/assets/{registry-BxkAuBx8.js → registry-CnDAxBcl.js} +1 -1
  86. package/dist/assets/{registry-B_wlsfxh.js → registry-DTNUXJuV.js} +1 -1
  87. package/dist/assets/{relate-CCma73G9.js → relate-CsRMEWBw.js} +1 -1
  88. package/dist/assets/{replay-dMDmsTaD.js → replay-BlrkSDMO.js} +1 -1
  89. package/dist/assets/{useDashboardLoop-Cnxmf7wU.js → useDashboardLoop-CA3LNVME.js} +1 -1
  90. package/dist/assets/{walkSync-D6leFb_u.js → walkSync-BfK0U5vB.js} +1 -1
  91. package/dist/index.html +1 -1
  92. package/dist/legal/TERMS.md +9 -3
  93. package/package.json +1 -1
  94. package/dist/assets/DashboardLoopRuntime-BcdZtIgH.js +0 -1
  95. package/dist/assets/canvas-CYrbzF43.js +0 -1
  96. package/docs/media/go-hub.jpg +0 -0
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PrismOverlay-DLxvsh9l.js","assets/rolldown-runtime-DkW27tQK.js","assets/react-BZJXY1be.js","assets/compiler-runtime-qQQXpJgv.js","assets/jsx-runtime-DeHZSEgm.js","assets/preload-helper-CiWYd9n-.js","assets/cachedImport-DW0gP14h.js","assets/preloadableLazy-MIX1ApBW.js","assets/lazyRetry-D50B1UMY.js","assets/index-Db-FgYxX.js","assets/useInView-DsTvv7L_.js","assets/coreIcons-DDTChE1H.js","assets/theme-D5D55hZi.js","assets/index-CFE0vqqO.css","assets/useFocusTrap-CJmpNZv2.js","assets/toast-BBNs2h3L.js","assets/sourceHost-BV3t2XDb.js","assets/penStrokes-CTC3AYiz.js","assets/gesture-BBS5nQEi.js","assets/attachments-BW-vki-E.js","assets/types-CaO6xOn5.js","assets/providers-CPhoN8j0.js","assets/http-Bqk6nJiH.js","assets/blockTypes-DUDdP3pB.js","assets/info-CiqHR5cs.js","assets/route-CMdTFx0P.js","assets/cache-7UEbF3S6.js","assets/verbatim-DBTj9sPD.js","assets/officeDoc-GU6Cssjf.js","assets/csv-DAqzYXUs.js","assets/pen-UKrUHlDA.js","assets/streamParse-BX0bAppQ.js","assets/citation-BsSvaaer.js","assets/search-ZN7v_P5B.js","assets/PrismOverlay-5ZVXu4WL.css","assets/SynthesisOverlay-Bvwdc8uQ.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./react-BZJXY1be.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{n,t as r}from"./preload-helper-CiWYd9n-.js";import{n as i,t as a}from"./preloadableLazy-MIX1ApBW.js";import{n as o,t as s}from"./theme-D5D55hZi.js";import{E as c}from"./index-Db-FgYxX.js";import{n as l}from"./icons-gLFQTv74.js";import{t as u}from"./FeatureUseNotice-CCI4mM39.js";import{t as d}from"./homeTarget-CDc-r2mj.js";import{n as f,p,r as m,s as h,u as g}from"./attachments-BW-vki-E.js";import{n as _,u as v}from"./useLiveConfig-CvOQTr0s.js";import{l as y,s as b}from"./officeDoc-GU6Cssjf.js";/* empty css */var x=e(),S=/\.(pdf|docx|pptx|xlsx|csv|tsv|txt|text|md|markdown|json|jsonl|ndjson|ya?ml|toml|xml|log|tab|js|ts|jsx|tsx|py|rb|go|rs|java|c|h|cpp|cs|sh|sql|css|html?)$/i,C=/(^|\/)(\.git|node_modules|\.DS_Store|__pycache__|\.venv|dist|build|__MACOSX)(\/|$)/i;function w(e){return e.filter(e=>{let t=e.webkitRelativePath||e.name;return S.test(e.name)&&!C.test(t)})}async function T(e,t={}){let{max:n=200,onProgress:r}=t,i=w(e),a=i.slice(0,n),o=[];for(let e=0;e<a.length;e+=1){let t=await g(a[e]);t.ok&&t.attachment&&o.push(t.attachment),r?.(e+1,a.length)}return{sources:o,skipped:i.length-o.length}}var E={docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`};function D(e){let t=e.split(`.`).pop()?.toLowerCase()??``;return t===`pdf`?`application/pdf`:E[t]??``}async function O(e){let t;try{t=await y(e.data?b(e.data):await m(e))}catch{return[]}if(!t)return[];let n=[];for(let[e,r]of t){if(n.length>=200)break;if(e.endsWith(`/`)||r.length===0||C.test(e))continue;let t=e.split(`/`).pop()??e;if(!t||t.startsWith(`.`))continue;let i={name:t,mime:D(t),data:``,size:r.length,bytes:Uint8Array.from(r).buffer};p(i)&&n.push(i)}return n}function k(e){return e.mime===`application/zip`||e.mime===`application/x-zip-compressed`||/\.zip$/i.test(e.name)}var A=[[`Foci et al. 2024. In the treatment arm we observed 42% improvement at 12 weeks on the primary endpoint. No serious adverse events were reported over the study period.`],[`Maso et al. 2023. Across the full cohort there was no significant effect at 24 weeks on the relapse rate, a secondary endpoint.`],[`Nyra 2024. The trial recorded 38% improvement at 12 weeks in the treatment arm, with mild adverse events in 12% of patients. Adoption remains limited outside academic centers.`],[`Cost Review 2023. The analysis finds the annual treatment cost is $18,400 per patient at list price.`],[`Ledger 2022. After rebates, the intervention costs $9,200 per patient annually.`],[`Adoption Survey 2024. Among surveyed sites, 62% of clinics adopted the protocol within the first year.`]],j={sources:[{id:`s0`,fileName:`foci-2024.pdf`,kind:`pdf`,pageCount:1,label:`Foci et al. 2024`},{id:`s1`,fileName:`maso-2023.pdf`,kind:`pdf`,pageCount:1,label:`Maso et al. 2023`},{id:`s2`,fileName:`nyra-2024.pdf`,kind:`pdf`,pageCount:1,label:`Nyra 2024`},{id:`s3`,fileName:`cost-review-2023.pdf`,kind:`pdf`,pageCount:1,label:`Cost Review 2023`},{id:`s4`,fileName:`ledger-2022.pdf`,kind:`pdf`,pageCount:1,label:`Ledger 2022`},{id:`s5`,fileName:`adoption-survey-2024.pdf`,kind:`pdf`,pageCount:1,label:`Adoption Survey 2024`}],themes:[{id:`Efficacy`,name:`Efficacy`,sourceCount:3,claimCount:3},{id:`Safety`,name:`Safety`,sourceCount:2,claimCount:2},{id:`Cost`,name:`Cost`,sourceCount:2,claimCount:2},{id:`Adoption`,name:`Adoption`,sourceCount:2,claimCount:2}],claims:[{id:`s0c0`,quote:`42% improvement at 12 weeks on the primary endpoint`,page:1,kind:`stat`,title:`42% improvement at 12 weeks`,ask:`On which endpoint?`,role:`load-bearing`,region:`Efficacy`,source:0},{id:`s1c0`,quote:`no significant effect at 24 weeks on the relapse rate`,page:1,kind:`finding`,title:`No effect at 24 weeks`,ask:`Which endpoint?`,role:`load-bearing`,region:`Efficacy`,source:1},{id:`s2c0`,quote:`38% improvement at 12 weeks in the treatment arm`,page:1,kind:`stat`,title:`38% improvement at 12 weeks`,ask:`How measured?`,role:`supporting`,region:`Efficacy`,source:2},{id:`s0c1`,quote:`No serious adverse events were reported`,page:1,kind:`finding`,title:`No serious adverse events`,ask:`Over what period?`,role:`supporting`,region:`Safety`,source:0},{id:`s2c1`,quote:`mild adverse events in 12% of patients`,page:1,kind:`risk`,title:`Mild adverse events in 12%`,ask:`Which events?`,role:`supporting`,region:`Safety`,source:2},{id:`s3c0`,quote:`annual treatment cost is $18,400 per patient`,page:1,kind:`stat`,title:`Cost $18,400 per patient`,ask:`List or net price?`,role:`load-bearing`,region:`Cost`,source:3},{id:`s4c0`,quote:`the intervention costs $9,200 per patient annually`,page:1,kind:`stat`,title:`Cost $9,200 per patient`,ask:`Before or after rebates?`,role:`load-bearing`,region:`Cost`,source:4},{id:`s5c0`,quote:`62% of clinics adopted the protocol`,page:1,kind:`stat`,title:`62% of clinics adopted`,ask:`Over what window?`,role:`supporting`,region:`Adoption`,source:5},{id:`s2c2`,quote:`Adoption remains limited outside academic centers`,page:1,kind:`finding`,title:`Limited outside academia`,ask:`Why limited?`,role:`context`,region:`Adoption`,source:2}],threads:[{a:`s0c0`,b:`s1c0`,relation:`in-tension`,crossDoc:!0},{a:`s3c0`,b:`s4c0`,relation:`contradicts`,crossDoc:!0},{a:`s0c0`,b:`s2c0`,relation:`agrees`,crossDoc:!0}],contradictions:[{id:`x0`,theme:`Efficacy`,a:`s0c0`,b:`s1c0`,relation:`in-tension`,sharedQuantity:`drug efficacy`,comparable:!1,caveat:`timeframe`,label:`Two trials disagree on efficacy`,seedQuestion:`Are these comparable? "42% improvement at 12 weeks" (12week) vs "No effect at 24 weeks" (24week) — do they measure the same endpoint, population, and timeframe?`},{id:`x1`,theme:`Cost`,a:`s3c0`,b:`s4c0`,relation:`contradicts`,sharedQuantity:`annual treatment cost`,comparable:!0,matchPhrase:`per patient`,delta:{aValue:18400,bValue:9200,unit:`$`},label:`Sources disagree on annual treatment cost`,seedQuestion:`Are these comparable? "Cost $18,400 per patient" (unspecified scope) vs "Cost $9,200 per patient" (unspecified scope) — do they measure the same endpoint, population, and timeframe?`}],gaps:[{id:`g0`,theme:`Safety`,facet:{id:`f0`,label:`Pediatric population`,surfaceForms:[`pediatric`,`paediatric`,`children`,`under 18`]},sourcesScanned:6,coveredCount:0,kind:`absent`,searchedForms:[`pediatric`,`paediatric`,`children`,`under 18`],label:`No coverage — Pediatric population`},{id:`g1`,theme:`Efficacy`,facet:{id:`f1`,label:`Long-term outcomes`,surfaceForms:[`long-term`,`long term`,`follow-up`,`5-year`]},sourcesScanned:6,coveredCount:0,kind:`absent`,searchedForms:[`long-term`,`long term`,`follow-up`,`5-year`],label:`No coverage — Long-term outcomes`}],consensus:[{id:`c0`,theme:`Efficacy`,proposition:`The treatment improves the primary endpoint at 12 weeks.`,memberClaimIds:[`s0c0`,`s2c0`],sourceCount:2,corpusSize:6,band:{unit:`%`,min:38,max:42}}],counts:{contradictions:2,gaps:2,consensus:2},pageCount:6},M=t();n();var N=a(()=>r(()=>import(`./PrismOverlay-DLxvsh9l.js`).then(e=>e.n).then(e=>({default:e.PrismOverlay})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]))),P=a(()=>r(()=>import(`./SynthesisOverlay-Bvwdc8uQ.js`).then(e=>({default:e.SynthesisOverlay})),__vite__mapDeps([35,2,1,4,19,21,22,23,24,25,27,0,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,26,28,29,30,31,32,33,34]))),F=N.Component,I=P.Component,L=Math.round(f/1048576);async function R(e){return{name:e.name,mime:e.type||`application/zip`,data:``,size:e.size,file:e}}function z(){let e=d();(0,x.useEffect)(()=>s(o()),[]);let[t,n]=(0,x.useState)([]),[r,a]=(0,x.useState)(null),[f,p]=(0,x.useState)(!1),[m,g]=(0,x.useState)(!1),[y,b]=(0,x.useState)(null),S=(0,x.useRef)(null),C=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=C.current;e&&(e.setAttribute(`webkitdirectory`,``),e.setAttribute(`directory`,``))},[]);let w=(0,x.useMemo)(()=>v(_()),[]),[E]=(0,x.useState)(()=>new URLSearchParams(window.location.hash.split(`?`)[1]??``).get(`demo`)===`1`),D=(0,x.useCallback)(async e=>{if(!e||e.length===0)return;P.preload().catch(()=>{}),g(!0),b(null);let r=Array.from(e),i=r.filter(e=>B(e)&&e.size<=41943040),a=r.filter(e=>B(e)&&e.size>41943040),o=r.filter(e=>!B(e));try{let e=[],r=await T(o);e.push(...r.sources);for(let t of i)try{e.push(...await O(await R(t)))}catch{}n(t=>{let n=new Set(t.map(V)),r=[...t,...e.filter(e=>!n.has(V(e)))];return r.length>200?r.slice(0,200):r}),a.length>0?b(`Archive is too large — up to ${L} MB per .zip.`):e.length===0?b(`No readable sources found. Add PDFs, docs, or text/data files.`):t.length+e.length>200&&b(`Capped at 200 sources.`)}catch{b(`Those files couldn't be read. Try PDFs, docs, or text/data files.`)}finally{g(!1),S.current&&(S.current.value=``),C.current&&(C.current.value=``)}},[t.length]),k=(0,x.useCallback)(e=>{n(t=>t.filter((t,n)=>n!==e))},[]),z=(0,x.useCallback)(e=>{e.preventDefault(),p(!1),D(e.dataTransfer.files)},[D]);return E?(0,M.jsx)(c,{label:`Synthesis world`,overlay:!0,children:(0,M.jsx)(I,{cfg:w,demo:{spec:j,corpus:A},onClose:()=>{window.location.hash=e.href}})}):r?(0,M.jsx)(c,{label:r.mode===`prism`?`Prism workbench`:`Synthesis world`,overlay:!0,children:r.mode===`prism`?(0,M.jsx)(F,{pdf:r.sources,cfg:w,onClose:()=>a(null)}):(0,M.jsx)(I,{sources:r.sources,cfg:w,onClose:()=>a(null)})}):(0,M.jsxs)(`div`,{className:`prism-app`,children:[(0,M.jsxs)(`header`,{className:`prism-app-header`,children:[(0,M.jsx)(`button`,{type:`button`,className:`prism-app-back`,onClick:()=>{window.location.hash=e.href},"aria-label":`Back to ${e.label}`,title:`Back to ${e.label}`,children:(0,M.jsx)(l.chevL,{})}),(0,M.jsx)(`span`,{className:`prism-app-brand`,children:`Synthesis`})]}),(0,M.jsxs)(`main`,{className:`prism-app-main`,children:[(0,M.jsxs)(`div`,{className:`prism-app-hero`,children:[(0,M.jsx)(`h1`,{className:`prism-app-title`,children:`Drop in 100 sources. Walk the one result.`}),(0,M.jsx)(`p`,{className:`prism-app-lede`,children:`Point Mavéa at a whole topic — a folder of papers, a data room, a quarter of notes — and it fuses them into one map: where they agree, where they fight, and where they’re silent.`}),(0,M.jsx)(u,{kind:`upload`})]}),(0,M.jsxs)(`div`,{className:`prism-dropzone${f?` prism-dropzone--over`:``}`,onDrop:z,onDragOver:e=>{e.preventDefault(),p(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||p(!1)},onClick:()=>S.current?.click(),role:`button`,tabIndex:0,"aria-label":`Add sources`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&S.current?.click()},...i(P.preload),children:[(0,M.jsx)(`input`,{ref:S,type:`file`,multiple:!0,className:`prism-dropzone-input`,onChange:e=>void D(e.target.files),"aria-hidden":`true`}),(0,M.jsx)(`input`,{ref:C,type:`file`,className:`prism-dropzone-input`,onChange:e=>void D(e.target.files),"aria-hidden":`true`}),(0,M.jsx)(l.upload,{}),(0,M.jsx)(`span`,{className:`prism-dropzone-label`,children:f?`Drop to add`:m?`Reading…`:`Drop a folder, a .zip, or files`}),(0,M.jsx)(`span`,{className:`prism-dropzone-hint`,children:`PDF · Word · Excel · PowerPoint · Text · CSV — or a whole folder / archive`}),(0,M.jsx)(`button`,{type:`button`,style:{marginTop:12,padding:`7px 16px`,whiteSpace:`nowrap`,borderRadius:`var(--r-full, 999px)`,border:`1px solid var(--line)`,background:`var(--surface-elevated)`,color:`var(--text-secondary)`,fontSize:13,cursor:`pointer`},onClick:e=>{e.stopPropagation(),C.current?.click()},children:`Choose a folder…`})]}),y&&(0,M.jsx)(`p`,{className:`prism-app-error`,role:`status`,children:y}),t.length>0&&(0,M.jsxs)(`div`,{className:`prism-staged`,children:[(0,M.jsx)(`p`,{className:`prism-staged-label`,children:t.length===1?`1 source ready`:`${t.length} sources ready`}),(0,M.jsx)(`ul`,{className:`prism-staged-list`,children:t.slice(0,60).map((e,t)=>(0,M.jsxs)(`li`,{className:`prism-staged-item`,children:[(0,M.jsx)(l.doc,{}),(0,M.jsx)(`span`,{className:`prism-staged-name`,children:h(e)}),(0,M.jsx)(`button`,{type:`button`,className:`prism-staged-remove`,onClick:e=>{e.stopPropagation(),k(t)},"aria-label":`Remove ${e.name}`,children:(0,M.jsx)(l.x,{})})]},`${V(e)}-${t}`))}),t.length>60&&(0,M.jsxs)(`p`,{className:`prism-staged-label`,children:[`+ `,t.length-60,` more`]}),(()=>{let e=e=>{(e===`prism`?N.preload():P.preload()).catch(()=>{}),a({sources:t,mode:e})},n=t.length;return n<=2?(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`prism`),...i(N.preload),children:[n===1?`Open in Prism`:`Compare 2 documents`,(0,M.jsx)(l.chevR,{})]}):n===3?(0,M.jsxs)(`div`,{className:`prism-confirm-row`,children:[(0,M.jsx)(`button`,{type:`button`,className:`prism-confirm-btn prism-confirm-alt`,onClick:()=>e(`prism`),...i(N.preload),children:`Compare 3`}),(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`synth`),...i(P.preload),children:[`Synthesize 3 sources`,(0,M.jsx)(l.chevR,{})]})]}):(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`synth`),...i(P.preload),children:[`Synthesize `,n,` sources`,(0,M.jsx)(l.chevR,{})]})})()]})]})]})}function B(e){return k({name:e.name,mime:e.type,data:``,size:e.size})}function V(e){return`${e.name}:${e.size}`}export{z as SynthesisApp};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PrismOverlay-DRWAI9Mh.js","assets/rolldown-runtime-DkW27tQK.js","assets/react-BZJXY1be.js","assets/compiler-runtime-qQQXpJgv.js","assets/jsx-runtime-DeHZSEgm.js","assets/preload-helper-CiWYd9n-.js","assets/cachedImport-DW0gP14h.js","assets/preloadableLazy-MIX1ApBW.js","assets/lazyRetry-D50B1UMY.js","assets/index-yJfYsjAB.js","assets/useInView-DsTvv7L_.js","assets/coreIcons-DDTChE1H.js","assets/theme-D5D55hZi.js","assets/index-CFE0vqqO.css","assets/useFocusTrap-CJmpNZv2.js","assets/toast-BBNs2h3L.js","assets/sourceHost-BV3t2XDb.js","assets/penStrokes-CTC3AYiz.js","assets/gesture-BBS5nQEi.js","assets/attachments-BW-vki-E.js","assets/types-CaO6xOn5.js","assets/providers-CPhoN8j0.js","assets/http-Bqk6nJiH.js","assets/blockTypes-DUDdP3pB.js","assets/info-CiqHR5cs.js","assets/route-CMdTFx0P.js","assets/cache-7UEbF3S6.js","assets/verbatim-DBTj9sPD.js","assets/officeDoc-GU6Cssjf.js","assets/csv-DAqzYXUs.js","assets/pen-UKrUHlDA.js","assets/streamParse-BX0bAppQ.js","assets/citation-BsSvaaer.js","assets/search-ZN7v_P5B.js","assets/PrismOverlay-5ZVXu4WL.css","assets/SynthesisOverlay-iqXO09rf.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./react-BZJXY1be.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{n,t as r}from"./preload-helper-CiWYd9n-.js";import{n as i,t as a}from"./preloadableLazy-MIX1ApBW.js";import{n as o,t as s}from"./theme-D5D55hZi.js";import{E as c}from"./index-yJfYsjAB.js";import{n as l}from"./icons-gLFQTv74.js";import{t as u}from"./FeatureUseNotice-lFcApjaS.js";import{t as d}from"./homeTarget-CDc-r2mj.js";import{n as f,p,r as m,s as h,u as g}from"./attachments-BW-vki-E.js";import{n as _,u as v}from"./useLiveConfig-CvOQTr0s.js";import{l as y,s as b}from"./officeDoc-GU6Cssjf.js";/* empty css */var x=e(),S=/\.(pdf|docx|pptx|xlsx|csv|tsv|txt|text|md|markdown|json|jsonl|ndjson|ya?ml|toml|xml|log|tab|js|ts|jsx|tsx|py|rb|go|rs|java|c|h|cpp|cs|sh|sql|css|html?)$/i,C=/(^|\/)(\.git|node_modules|\.DS_Store|__pycache__|\.venv|dist|build|__MACOSX)(\/|$)/i;function w(e){return e.filter(e=>{let t=e.webkitRelativePath||e.name;return S.test(e.name)&&!C.test(t)})}async function T(e,t={}){let{max:n=200,onProgress:r}=t,i=w(e),a=i.slice(0,n),o=[];for(let e=0;e<a.length;e+=1){let t=await g(a[e]);t.ok&&t.attachment&&o.push(t.attachment),r?.(e+1,a.length)}return{sources:o,skipped:i.length-o.length}}var E={docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`};function D(e){let t=e.split(`.`).pop()?.toLowerCase()??``;return t===`pdf`?`application/pdf`:E[t]??``}async function O(e){let t;try{t=await y(e.data?b(e.data):await m(e))}catch{return[]}if(!t)return[];let n=[];for(let[e,r]of t){if(n.length>=200)break;if(e.endsWith(`/`)||r.length===0||C.test(e))continue;let t=e.split(`/`).pop()??e;if(!t||t.startsWith(`.`))continue;let i={name:t,mime:D(t),data:``,size:r.length,bytes:Uint8Array.from(r).buffer};p(i)&&n.push(i)}return n}function k(e){return e.mime===`application/zip`||e.mime===`application/x-zip-compressed`||/\.zip$/i.test(e.name)}var A=[[`Foci et al. 2024. In the treatment arm we observed 42% improvement at 12 weeks on the primary endpoint. No serious adverse events were reported over the study period.`],[`Maso et al. 2023. Across the full cohort there was no significant effect at 24 weeks on the relapse rate, a secondary endpoint.`],[`Nyra 2024. The trial recorded 38% improvement at 12 weeks in the treatment arm, with mild adverse events in 12% of patients. Adoption remains limited outside academic centers.`],[`Cost Review 2023. The analysis finds the annual treatment cost is $18,400 per patient at list price.`],[`Ledger 2022. After rebates, the intervention costs $9,200 per patient annually.`],[`Adoption Survey 2024. Among surveyed sites, 62% of clinics adopted the protocol within the first year.`]],j={sources:[{id:`s0`,fileName:`foci-2024.pdf`,kind:`pdf`,pageCount:1,label:`Foci et al. 2024`},{id:`s1`,fileName:`maso-2023.pdf`,kind:`pdf`,pageCount:1,label:`Maso et al. 2023`},{id:`s2`,fileName:`nyra-2024.pdf`,kind:`pdf`,pageCount:1,label:`Nyra 2024`},{id:`s3`,fileName:`cost-review-2023.pdf`,kind:`pdf`,pageCount:1,label:`Cost Review 2023`},{id:`s4`,fileName:`ledger-2022.pdf`,kind:`pdf`,pageCount:1,label:`Ledger 2022`},{id:`s5`,fileName:`adoption-survey-2024.pdf`,kind:`pdf`,pageCount:1,label:`Adoption Survey 2024`}],themes:[{id:`Efficacy`,name:`Efficacy`,sourceCount:3,claimCount:3},{id:`Safety`,name:`Safety`,sourceCount:2,claimCount:2},{id:`Cost`,name:`Cost`,sourceCount:2,claimCount:2},{id:`Adoption`,name:`Adoption`,sourceCount:2,claimCount:2}],claims:[{id:`s0c0`,quote:`42% improvement at 12 weeks on the primary endpoint`,page:1,kind:`stat`,title:`42% improvement at 12 weeks`,ask:`On which endpoint?`,role:`load-bearing`,region:`Efficacy`,source:0},{id:`s1c0`,quote:`no significant effect at 24 weeks on the relapse rate`,page:1,kind:`finding`,title:`No effect at 24 weeks`,ask:`Which endpoint?`,role:`load-bearing`,region:`Efficacy`,source:1},{id:`s2c0`,quote:`38% improvement at 12 weeks in the treatment arm`,page:1,kind:`stat`,title:`38% improvement at 12 weeks`,ask:`How measured?`,role:`supporting`,region:`Efficacy`,source:2},{id:`s0c1`,quote:`No serious adverse events were reported`,page:1,kind:`finding`,title:`No serious adverse events`,ask:`Over what period?`,role:`supporting`,region:`Safety`,source:0},{id:`s2c1`,quote:`mild adverse events in 12% of patients`,page:1,kind:`risk`,title:`Mild adverse events in 12%`,ask:`Which events?`,role:`supporting`,region:`Safety`,source:2},{id:`s3c0`,quote:`annual treatment cost is $18,400 per patient`,page:1,kind:`stat`,title:`Cost $18,400 per patient`,ask:`List or net price?`,role:`load-bearing`,region:`Cost`,source:3},{id:`s4c0`,quote:`the intervention costs $9,200 per patient annually`,page:1,kind:`stat`,title:`Cost $9,200 per patient`,ask:`Before or after rebates?`,role:`load-bearing`,region:`Cost`,source:4},{id:`s5c0`,quote:`62% of clinics adopted the protocol`,page:1,kind:`stat`,title:`62% of clinics adopted`,ask:`Over what window?`,role:`supporting`,region:`Adoption`,source:5},{id:`s2c2`,quote:`Adoption remains limited outside academic centers`,page:1,kind:`finding`,title:`Limited outside academia`,ask:`Why limited?`,role:`context`,region:`Adoption`,source:2}],threads:[{a:`s0c0`,b:`s1c0`,relation:`in-tension`,crossDoc:!0},{a:`s3c0`,b:`s4c0`,relation:`contradicts`,crossDoc:!0},{a:`s0c0`,b:`s2c0`,relation:`agrees`,crossDoc:!0}],contradictions:[{id:`x0`,theme:`Efficacy`,a:`s0c0`,b:`s1c0`,relation:`in-tension`,sharedQuantity:`drug efficacy`,comparable:!1,caveat:`timeframe`,label:`Two trials disagree on efficacy`,seedQuestion:`Are these comparable? "42% improvement at 12 weeks" (12week) vs "No effect at 24 weeks" (24week) — do they measure the same endpoint, population, and timeframe?`},{id:`x1`,theme:`Cost`,a:`s3c0`,b:`s4c0`,relation:`contradicts`,sharedQuantity:`annual treatment cost`,comparable:!0,matchPhrase:`per patient`,delta:{aValue:18400,bValue:9200,unit:`$`},label:`Sources disagree on annual treatment cost`,seedQuestion:`Are these comparable? "Cost $18,400 per patient" (unspecified scope) vs "Cost $9,200 per patient" (unspecified scope) — do they measure the same endpoint, population, and timeframe?`}],gaps:[{id:`g0`,theme:`Safety`,facet:{id:`f0`,label:`Pediatric population`,surfaceForms:[`pediatric`,`paediatric`,`children`,`under 18`]},sourcesScanned:6,coveredCount:0,kind:`absent`,searchedForms:[`pediatric`,`paediatric`,`children`,`under 18`],label:`No coverage — Pediatric population`},{id:`g1`,theme:`Efficacy`,facet:{id:`f1`,label:`Long-term outcomes`,surfaceForms:[`long-term`,`long term`,`follow-up`,`5-year`]},sourcesScanned:6,coveredCount:0,kind:`absent`,searchedForms:[`long-term`,`long term`,`follow-up`,`5-year`],label:`No coverage — Long-term outcomes`}],consensus:[{id:`c0`,theme:`Efficacy`,proposition:`The treatment improves the primary endpoint at 12 weeks.`,memberClaimIds:[`s0c0`,`s2c0`],sourceCount:2,corpusSize:6,band:{unit:`%`,min:38,max:42}}],counts:{contradictions:2,gaps:2,consensus:2},pageCount:6},M=t();n();var N=a(()=>r(()=>import(`./PrismOverlay-DRWAI9Mh.js`).then(e=>e.n).then(e=>({default:e.PrismOverlay})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]))),P=a(()=>r(()=>import(`./SynthesisOverlay-iqXO09rf.js`).then(e=>({default:e.SynthesisOverlay})),__vite__mapDeps([35,2,1,4,19,21,22,23,24,25,27,0,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,26,28,29,30,31,32,33,34]))),F=N.Component,I=P.Component,L=Math.round(f/1048576);async function R(e){return{name:e.name,mime:e.type||`application/zip`,data:``,size:e.size,file:e}}function z(){let e=d();(0,x.useEffect)(()=>s(o()),[]);let[t,n]=(0,x.useState)([]),[r,a]=(0,x.useState)(null),[f,p]=(0,x.useState)(!1),[m,g]=(0,x.useState)(!1),[y,b]=(0,x.useState)(null),S=(0,x.useRef)(null),C=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=C.current;e&&(e.setAttribute(`webkitdirectory`,``),e.setAttribute(`directory`,``))},[]);let w=(0,x.useMemo)(()=>v(_()),[]),[E]=(0,x.useState)(()=>new URLSearchParams(window.location.hash.split(`?`)[1]??``).get(`demo`)===`1`),D=(0,x.useCallback)(async e=>{if(!e||e.length===0)return;P.preload().catch(()=>{}),g(!0),b(null);let r=Array.from(e),i=r.filter(e=>B(e)&&e.size<=41943040),a=r.filter(e=>B(e)&&e.size>41943040),o=r.filter(e=>!B(e));try{let e=[],r=await T(o);e.push(...r.sources);for(let t of i)try{e.push(...await O(await R(t)))}catch{}n(t=>{let n=new Set(t.map(V)),r=[...t,...e.filter(e=>!n.has(V(e)))];return r.length>200?r.slice(0,200):r}),a.length>0?b(`Archive is too large — up to ${L} MB per .zip.`):e.length===0?b(`No readable sources found. Add PDFs, docs, or text/data files.`):t.length+e.length>200&&b(`Capped at 200 sources.`)}catch{b(`Those files couldn't be read. Try PDFs, docs, or text/data files.`)}finally{g(!1),S.current&&(S.current.value=``),C.current&&(C.current.value=``)}},[t.length]),k=(0,x.useCallback)(e=>{n(t=>t.filter((t,n)=>n!==e))},[]),z=(0,x.useCallback)(e=>{e.preventDefault(),p(!1),D(e.dataTransfer.files)},[D]);return E?(0,M.jsx)(c,{label:`Synthesis world`,overlay:!0,children:(0,M.jsx)(I,{cfg:w,demo:{spec:j,corpus:A},onClose:()=>{window.location.hash=e.href}})}):r?(0,M.jsx)(c,{label:r.mode===`prism`?`Prism workbench`:`Synthesis world`,overlay:!0,children:r.mode===`prism`?(0,M.jsx)(F,{pdf:r.sources,cfg:w,onClose:()=>a(null)}):(0,M.jsx)(I,{sources:r.sources,cfg:w,onClose:()=>a(null)})}):(0,M.jsxs)(`div`,{className:`prism-app`,children:[(0,M.jsxs)(`header`,{className:`prism-app-header`,children:[(0,M.jsx)(`button`,{type:`button`,className:`prism-app-back`,onClick:()=>{window.location.hash=e.href},"aria-label":`Back to ${e.label}`,title:`Back to ${e.label}`,children:(0,M.jsx)(l.chevL,{})}),(0,M.jsx)(`span`,{className:`prism-app-brand`,children:`Synthesis`})]}),(0,M.jsxs)(`main`,{className:`prism-app-main`,children:[(0,M.jsxs)(`div`,{className:`prism-app-hero`,children:[(0,M.jsx)(`h1`,{className:`prism-app-title`,children:`Drop in 100 sources. Walk the one result.`}),(0,M.jsx)(`p`,{className:`prism-app-lede`,children:`Point Mavéa at a whole topic — a folder of papers, a data room, a quarter of notes — and it fuses them into one map: where they agree, where they fight, and where they’re silent.`}),(0,M.jsx)(u,{kind:`upload`})]}),(0,M.jsxs)(`div`,{className:`prism-dropzone${f?` prism-dropzone--over`:``}`,onDrop:z,onDragOver:e=>{e.preventDefault(),p(!0)},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||p(!1)},onClick:()=>S.current?.click(),role:`button`,tabIndex:0,"aria-label":`Add sources`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&S.current?.click()},...i(P.preload),children:[(0,M.jsx)(`input`,{ref:S,type:`file`,multiple:!0,className:`prism-dropzone-input`,onChange:e=>void D(e.target.files),"aria-hidden":`true`}),(0,M.jsx)(`input`,{ref:C,type:`file`,className:`prism-dropzone-input`,onChange:e=>void D(e.target.files),"aria-hidden":`true`}),(0,M.jsx)(l.upload,{}),(0,M.jsx)(`span`,{className:`prism-dropzone-label`,children:f?`Drop to add`:m?`Reading…`:`Drop a folder, a .zip, or files`}),(0,M.jsx)(`span`,{className:`prism-dropzone-hint`,children:`PDF · Word · Excel · PowerPoint · Text · CSV — or a whole folder / archive`}),(0,M.jsx)(`button`,{type:`button`,style:{marginTop:12,padding:`7px 16px`,whiteSpace:`nowrap`,borderRadius:`var(--r-full, 999px)`,border:`1px solid var(--line)`,background:`var(--surface-elevated)`,color:`var(--text-secondary)`,fontSize:13,cursor:`pointer`},onClick:e=>{e.stopPropagation(),C.current?.click()},children:`Choose a folder…`})]}),y&&(0,M.jsx)(`p`,{className:`prism-app-error`,role:`status`,children:y}),t.length>0&&(0,M.jsxs)(`div`,{className:`prism-staged`,children:[(0,M.jsx)(`p`,{className:`prism-staged-label`,children:t.length===1?`1 source ready`:`${t.length} sources ready`}),(0,M.jsx)(`ul`,{className:`prism-staged-list`,children:t.slice(0,60).map((e,t)=>(0,M.jsxs)(`li`,{className:`prism-staged-item`,children:[(0,M.jsx)(l.doc,{}),(0,M.jsx)(`span`,{className:`prism-staged-name`,children:h(e)}),(0,M.jsx)(`button`,{type:`button`,className:`prism-staged-remove`,onClick:e=>{e.stopPropagation(),k(t)},"aria-label":`Remove ${e.name}`,children:(0,M.jsx)(l.x,{})})]},`${V(e)}-${t}`))}),t.length>60&&(0,M.jsxs)(`p`,{className:`prism-staged-label`,children:[`+ `,t.length-60,` more`]}),(()=>{let e=e=>{(e===`prism`?N.preload():P.preload()).catch(()=>{}),a({sources:t,mode:e})},n=t.length;return n<=2?(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`prism`),...i(N.preload),children:[n===1?`Open in Prism`:`Compare 2 documents`,(0,M.jsx)(l.chevR,{})]}):n===3?(0,M.jsxs)(`div`,{className:`prism-confirm-row`,children:[(0,M.jsx)(`button`,{type:`button`,className:`prism-confirm-btn prism-confirm-alt`,onClick:()=>e(`prism`),...i(N.preload),children:`Compare 3`}),(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`synth`),...i(P.preload),children:[`Synthesize 3 sources`,(0,M.jsx)(l.chevR,{})]})]}):(0,M.jsxs)(`button`,{type:`button`,className:`prism-confirm-btn`,onClick:()=>e(`synth`),...i(P.preload),children:[`Synthesize `,n,` sources`,(0,M.jsx)(l.chevR,{})]})})()]})]})]})}function B(e){return k({name:e.name,mime:e.type,data:``,size:e.size})}function V(e){return`${e.name}:${e.size}`}export{z as SynthesisApp};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./react-BZJXY1be.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{h as n,v as r}from"./attachments-BW-vki-E.js";import{t as i}from"./providers-CPhoN8j0.js";import{i as a,n as o}from"./verbatim-DBTj9sPD.js";import{a as s,c,d as l,i as u,l as d,o as f,r as p,s as m,t as h,u as g}from"./PrismOverlay-DLxvsh9l.js";import{f as _}from"./pen-UKrUHlDA.js";var v=e(),y=/[a-z0-9]{4,}/g;function b(e){return new Set(e.toLowerCase().match(y)??[])}function x(e,t){if(e.size===0||t.size===0)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/(e.size+t.size-n)}function S(e,t=12){let n=new Map;for(let t of e.toLowerCase().match(y)??[])n.set(t,(n.get(t)??0)+1);return[...n.entries()].sort((e,t)=>t[1]-e[1]||(e[0]<t[0]?-1:1)).slice(0,t).map(([e])=>e)}function C(e,t=2){return e.replace(/\s+/g,` `).split(/(?<=[.!?])\s+/).map(e=>e.trim()).filter(Boolean).slice(0,t)}var w={thousand:1e3,k:1e3,million:1e6,m:1e6,billion:1e9,bn:1e9,b:1e9,trillion:0xe8d4a51000};function T(e){let t=e.toLowerCase();return t===`%`||t===`percent`||t===`pct`?`pct`:/^(week|wk|month|mo|year|yr|day)s?$/.test(t)?`time`:/^(mg|kg|µg|mcg|g|ml|l)$/.test(t)?`dose`:`count`}var E=/(\$|€|£|¥)?\s?(\d{1,3}(?:,\d{3})+|\d+)(?:\.(\d+))?\s?(thousand|million|billion|trillion|bn)?\s?(%|percent|pct|mg|kg|µg|mcg|ml|weeks?|wks?|months?|mos?|years?|yrs?|days?)?/gi;function D(e){let t=[];for(let n of e.matchAll(E)){let[e,r,i,a,o,s]=n;if(!i)continue;let c=Number(`${i.replace(/,/g,``)}${a?`.${a}`:``}`);if(!Number.isFinite(c))continue;o&&(c*=w[o.toLowerCase()]??1);let l=(r??s??``).trim(),u=r?`money`:s?T(s):`count`;t.push({value:c,unit:l,family:u,raw:e.trim()})}return t}function O(e,t){for(let n of D(e))if(!t||n.family===t)return n;return null}function k(e){let t=` ${e.toLowerCase()} `;return/\b(p[ae]diatric|children|child|adolescents?|infants?|neonat|under[\s-]?18|aged? \d{1,2})\b/.test(t)?`pediatric`:/\b(elderly|geriatric|older adults?|aged 65)\b/.test(t)?`elderly`:/\b(adults?|grown[\s-]?ups?)\b/.test(t)?`adult`:null}function A(e){let t=e.toLowerCase(),n=t.match(/\b(\d{1,3})\s?(week|wk|month|mo|year|yr|day)s?\b/);if(n)return`${n[1]}${n[2].replace(/s$/,``)}`;let r=t.match(/\bphase\s?([1-4]|i{1,3}|iv)\b/);if(r)return`phase${r[1]}`;let i=t.match(/\bby\s(20\d{2})\b/);return i?`by${i[1]}`:null}function j(e,t){let n=k(e),r=k(t);if(n&&r&&n!==r)return`population`;let i=A(e),a=A(t);return i&&a&&i!==a?`timeframe`:null}function ee(e){let t=e.slice(0,1200),n=t.match(/\b([A-Z][a-zà-ÿ]+)\s+et al\.?,?\s*(\d{4})/);if(n)return`${n[1]} et al. ${n[2]}`;let r=t.match(/\b([A-Z][a-zà-ÿ]+)\s*\(?(19|20)\d{2}\)?/);return r?`${r[1]} ${r[0].match(/\d{4}/)?.[0]??``}`.trim():``}function te(e,t={}){let{minOverlap:n=.12,topK:r=120,maxDocFraction:i=.35,crossSourceOnly:a=!0}=t,o=e.length;if(o<2)return[];let s=e.map(e=>b(e.text)),c=e.map(e=>e.source),l=new Map;s.forEach((e,t)=>{for(let n of e){let e=l.get(n);e?e.push(t):l.set(n,[t])}});let u=Math.max(6,Math.floor(o*i)),d=new Set,f=[];for(let t of l.values())if(!(t.length<2||t.length>u))for(let r=0;r<t.length;r+=1)for(let i=r+1;i<t.length;i+=1){let o=t[r],l=t[i];if(a&&c[o]===c[l])continue;let u=o<l?`${o}|${l}`:`${l}|${o}`;if(d.has(u))continue;d.add(u);let p=x(s[o],s[l]);if(p>=n){let t=e[o],n=e[l];f.push(t.id<n.id?{a:t.id,b:n.id,overlap:p}:{a:n.id,b:t.id,overlap:p})}}return f.sort((e,t)=>t.overlap-e.overlap||(e.a<t.a?-1:e.a>t.a?1:e.b<t.b?-1:1)),f.slice(0,r)}function M(e){let t=new Map,n=e=>{let n=e;for(;t.get(n)!==n;)n=t.get(n);let r=e;for(;t.get(r)!==n;){let e=t.get(r);t.set(r,n),r=e}return n},r=e=>{t.has(e)||t.set(e,e)};for(let{a:i,b:a}of e)r(i),r(a),t.set(n(i),n(a));let i=new Map;for(let e of t.keys()){let t=n(e),r=i.get(t);r?r.push(e):i.set(t,[e])}return[...i.values()].map(e=>e.slice().sort())}var N=[`pct`,`money`,`dose`,`count`];function P(e,t){let n=Math.max(1,Math.abs(e),Math.abs(t));return Math.abs(e-t)<=.005*n}function F(e,t){return t.some(t=>o(e,t))}function I(e,t,n,r,i){if(t.source===n.source)return null;let a=String(e.relation).toLowerCase();if(a!==`contradicts`&&a!==`in-tension`)return null;let o=j(t.quote,n.quote),s=(e.matchPhrase??``).trim(),c=s.length>0&&F(s,r)&&F(s,i),l,u=!1;for(let e of N){let r=O(t.quote,e),i=O(n.quote,e);if(r&&i){P(r.value,i.value)?u=!0:l={aValue:r.value,bValue:i.value,unit:r.unit||i.unit};break}}let d=!!e.comparable&&c&&!o&&!u,f=a===`contradicts`&&d?`contradicts`:`in-tension`,p;return o?p=o:!d&&!u&&a===`contradicts`&&(p=`scope`),{relation:f,comparable:d,...c?{matchPhrase:s}:{},...p?{caveat:p}:{},...l?{delta:l}:{}}}function L(e,t,n,r={}){let{minCorpus:i=3,minSurfaceForms:a=3,minCorpusForThin:o=10,thinFraction:s=.1}=r;return t<i||n<a?null:e<=0?`absent`:t>=o&&e<=Math.max(1,Math.ceil(t*s))?`thin`:null}function R(e,t){let n=new Set;for(let r of e){let e=t.get(r);e!==void 0&&n.add(e)}return n.size}function z(e,t=2){return e>=t}function B(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}function V(e){return typeof e==`string`?e:``}function H(e,t){if(!e)return[];let n=e[t];return Array.isArray(n)?n:[]}var ne=`You compare pairs of grounded claims from different sources and return strict JSON only. You never invent a quote; a shared "matchPhrase" must be copied verbatim from the claims. When two claims measure different endpoints, populations, or timeframes you mark them "not-comparable".`;function re(e){return`These are candidate claim pairs, each from two DIFFERENT sources in a large corpus. For each
1
+ import{t as e}from"./react-BZJXY1be.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{h as n,v as r}from"./attachments-BW-vki-E.js";import{t as i}from"./providers-CPhoN8j0.js";import{i as a,n as o}from"./verbatim-DBTj9sPD.js";import{a as s,c,d as l,i as u,l as d,o as f,r as p,s as m,t as h,u as g}from"./PrismOverlay-DRWAI9Mh.js";import{f as _}from"./pen-UKrUHlDA.js";var v=e(),y=/[a-z0-9]{4,}/g;function b(e){return new Set(e.toLowerCase().match(y)??[])}function x(e,t){if(e.size===0||t.size===0)return 0;let n=0;for(let r of e)t.has(r)&&(n+=1);return n/(e.size+t.size-n)}function S(e,t=12){let n=new Map;for(let t of e.toLowerCase().match(y)??[])n.set(t,(n.get(t)??0)+1);return[...n.entries()].sort((e,t)=>t[1]-e[1]||(e[0]<t[0]?-1:1)).slice(0,t).map(([e])=>e)}function C(e,t=2){return e.replace(/\s+/g,` `).split(/(?<=[.!?])\s+/).map(e=>e.trim()).filter(Boolean).slice(0,t)}var w={thousand:1e3,k:1e3,million:1e6,m:1e6,billion:1e9,bn:1e9,b:1e9,trillion:0xe8d4a51000};function T(e){let t=e.toLowerCase();return t===`%`||t===`percent`||t===`pct`?`pct`:/^(week|wk|month|mo|year|yr|day)s?$/.test(t)?`time`:/^(mg|kg|µg|mcg|g|ml|l)$/.test(t)?`dose`:`count`}var E=/(\$|€|£|¥)?\s?(\d{1,3}(?:,\d{3})+|\d+)(?:\.(\d+))?\s?(thousand|million|billion|trillion|bn)?\s?(%|percent|pct|mg|kg|µg|mcg|ml|weeks?|wks?|months?|mos?|years?|yrs?|days?)?/gi;function D(e){let t=[];for(let n of e.matchAll(E)){let[e,r,i,a,o,s]=n;if(!i)continue;let c=Number(`${i.replace(/,/g,``)}${a?`.${a}`:``}`);if(!Number.isFinite(c))continue;o&&(c*=w[o.toLowerCase()]??1);let l=(r??s??``).trim(),u=r?`money`:s?T(s):`count`;t.push({value:c,unit:l,family:u,raw:e.trim()})}return t}function O(e,t){for(let n of D(e))if(!t||n.family===t)return n;return null}function k(e){let t=` ${e.toLowerCase()} `;return/\b(p[ae]diatric|children|child|adolescents?|infants?|neonat|under[\s-]?18|aged? \d{1,2})\b/.test(t)?`pediatric`:/\b(elderly|geriatric|older adults?|aged 65)\b/.test(t)?`elderly`:/\b(adults?|grown[\s-]?ups?)\b/.test(t)?`adult`:null}function A(e){let t=e.toLowerCase(),n=t.match(/\b(\d{1,3})\s?(week|wk|month|mo|year|yr|day)s?\b/);if(n)return`${n[1]}${n[2].replace(/s$/,``)}`;let r=t.match(/\bphase\s?([1-4]|i{1,3}|iv)\b/);if(r)return`phase${r[1]}`;let i=t.match(/\bby\s(20\d{2})\b/);return i?`by${i[1]}`:null}function j(e,t){let n=k(e),r=k(t);if(n&&r&&n!==r)return`population`;let i=A(e),a=A(t);return i&&a&&i!==a?`timeframe`:null}function ee(e){let t=e.slice(0,1200),n=t.match(/\b([A-Z][a-zà-ÿ]+)\s+et al\.?,?\s*(\d{4})/);if(n)return`${n[1]} et al. ${n[2]}`;let r=t.match(/\b([A-Z][a-zà-ÿ]+)\s*\(?(19|20)\d{2}\)?/);return r?`${r[1]} ${r[0].match(/\d{4}/)?.[0]??``}`.trim():``}function te(e,t={}){let{minOverlap:n=.12,topK:r=120,maxDocFraction:i=.35,crossSourceOnly:a=!0}=t,o=e.length;if(o<2)return[];let s=e.map(e=>b(e.text)),c=e.map(e=>e.source),l=new Map;s.forEach((e,t)=>{for(let n of e){let e=l.get(n);e?e.push(t):l.set(n,[t])}});let u=Math.max(6,Math.floor(o*i)),d=new Set,f=[];for(let t of l.values())if(!(t.length<2||t.length>u))for(let r=0;r<t.length;r+=1)for(let i=r+1;i<t.length;i+=1){let o=t[r],l=t[i];if(a&&c[o]===c[l])continue;let u=o<l?`${o}|${l}`:`${l}|${o}`;if(d.has(u))continue;d.add(u);let p=x(s[o],s[l]);if(p>=n){let t=e[o],n=e[l];f.push(t.id<n.id?{a:t.id,b:n.id,overlap:p}:{a:n.id,b:t.id,overlap:p})}}return f.sort((e,t)=>t.overlap-e.overlap||(e.a<t.a?-1:e.a>t.a?1:e.b<t.b?-1:1)),f.slice(0,r)}function M(e){let t=new Map,n=e=>{let n=e;for(;t.get(n)!==n;)n=t.get(n);let r=e;for(;t.get(r)!==n;){let e=t.get(r);t.set(r,n),r=e}return n},r=e=>{t.has(e)||t.set(e,e)};for(let{a:i,b:a}of e)r(i),r(a),t.set(n(i),n(a));let i=new Map;for(let e of t.keys()){let t=n(e),r=i.get(t);r?r.push(e):i.set(t,[e])}return[...i.values()].map(e=>e.slice().sort())}var N=[`pct`,`money`,`dose`,`count`];function P(e,t){let n=Math.max(1,Math.abs(e),Math.abs(t));return Math.abs(e-t)<=.005*n}function F(e,t){return t.some(t=>o(e,t))}function I(e,t,n,r,i){if(t.source===n.source)return null;let a=String(e.relation).toLowerCase();if(a!==`contradicts`&&a!==`in-tension`)return null;let o=j(t.quote,n.quote),s=(e.matchPhrase??``).trim(),c=s.length>0&&F(s,r)&&F(s,i),l,u=!1;for(let e of N){let r=O(t.quote,e),i=O(n.quote,e);if(r&&i){P(r.value,i.value)?u=!0:l={aValue:r.value,bValue:i.value,unit:r.unit||i.unit};break}}let d=!!e.comparable&&c&&!o&&!u,f=a===`contradicts`&&d?`contradicts`:`in-tension`,p;return o?p=o:!d&&!u&&a===`contradicts`&&(p=`scope`),{relation:f,comparable:d,...c?{matchPhrase:s}:{},...p?{caveat:p}:{},...l?{delta:l}:{}}}function L(e,t,n,r={}){let{minCorpus:i=3,minSurfaceForms:a=3,minCorpusForThin:o=10,thinFraction:s=.1}=r;return t<i||n<a?null:e<=0?`absent`:t>=o&&e<=Math.max(1,Math.ceil(t*s))?`thin`:null}function R(e,t){let n=new Set;for(let r of e){let e=t.get(r);e!==void 0&&n.add(e)}return n.size}function z(e,t=2){return e>=t}function B(e){if(e&&typeof e==`object`)return e;let t=String(e),n=t.indexOf(`{`);if(n<0)return null;let r=0,i=!1,a=!1;for(let e=n;e<t.length;e+=1){let o=t[e];if(i){a?a=!1:o===`\\`?a=!0:o===`"`&&(i=!1);continue}if(o===`"`)i=!0;else if(o===`{`)r+=1;else if(o===`}`&&(--r,r===0))try{return JSON.parse(t.slice(n,e+1))}catch{return null}}return null}function V(e){return typeof e==`string`?e:``}function H(e,t){if(!e)return[];let n=e[t];return Array.isArray(n)?n:[]}var ne=`You compare pairs of grounded claims from different sources and return strict JSON only. You never invent a quote; a shared "matchPhrase" must be copied verbatim from the claims. When two claims measure different endpoints, populations, or timeframes you mark them "not-comparable".`;function re(e){return`These are candidate claim pairs, each from two DIFFERENT sources in a large corpus. For each
2
2
  pair, decide how the two claims relate on the ONE quantity they share.
3
3
 
4
4
  Pairs:
@@ -1 +1 @@
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,r as a,t as o}from"./theme-D5D55hZi.js";import{C as s,S as c,T as l,b as u,w as d,x as f}from"./index-Db-FgYxX.js";import{d as p}from"./useLiveConfig-CvOQTr0s.js";var m=e({AppearanceSettings:()=>O,TemplatePicker:()=>D}),h=n(),g=t(),_=r(),v=[`smaller`,`normal`,`larger`],y={smaller:`Smaller`,normal:`Normal`,larger:`Larger`},b=`mavea:appearancechange`;function x(e){window.dispatchEvent(new CustomEvent(b,{detail:e}))}function S(){let e=(0,h.c)(11),[t,n]=(0,g.useState)(w),[r,c]=(0,g.useState)(C),[u,m]=p(),_,v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{let e=e=>{let t=e.detail;t&&(n(t.template),c(t.theme))};return window.addEventListener(b,e),()=>window.removeEventListener(b,e)},v=[],e[0]=_,e[1]=v):(_=e[0],v=e[1]),(0,g.useEffect)(_,v);let y;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{d(document,e),f(document,e),s(e);let t={template:e,theme:i()};n(e),c(t.theme),x(t)},e[2]=y):y=e[2];let S=y,T;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>{o(e),a(e);let t={template:l(),theme:e};n(t.template),c(e),x(t)},e[3]=T):T=e[3];let E=T,D;e[4]===m?D=e[5]:(D=e=>m({fontScale:e}),e[4]=m,e[5]=D);let O=D,k;return e[6]!==t||e[7]!==u.fontScale||e[8]!==O||e[9]!==r?(k={active:t,theme:r,fontScale:u.fontScale,pickTemplate:S,pickTheme:E,pickFontScale:O},e[6]=t,e[7]=u.fontScale,e[8]=O,e[9]=r,e[10]=k):k=e[10],k}function C(){return i()}function w(){return l()}function T(e){let t=(0,h.c)(13),{templateId:n}=e,r;t[0]===n?r=t[1]:(r=u.find(e=>e.id===n)??u[0],t[0]=n,t[1]=r);let i=r,a;t[2]!==i.preview.accent||t[3]!==i.preview.background||t[4]!==i.preview.ink||t[5]!==i.preview.surface?(a={"--preview-bg":i.preview.background,"--preview-surface":i.preview.surface,"--preview-ink":i.preview.ink,"--preview-accent":i.preview.accent},t[2]=i.preview.accent,t[3]=i.preview.background,t[4]=i.preview.ink,t[5]=i.preview.surface,t[6]=a):a=t[6];let o=a,s=`appearance-preview appearance-preview--${i.preview.geometry}`,c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,_.jsx)(`span`,{className:`appearance-preview-aa`,children:`Aa`}),t[7]=c):c=t[7];let l,d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,_.jsxs)(`span`,{className:`appearance-preview-copy`,children:[(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{})]}),d=(0,_.jsx)(`span`,{className:`appearance-preview-data`,children:`08`}),t[8]=l,t[9]=d):(l=t[8],d=t[9]);let f;return t[10]!==o||t[11]!==s?(f=(0,_.jsxs)(`span`,{className:s,style:o,"aria-hidden":`true`,children:[c,l,d]}),t[10]=o,t[11]=s,t[12]=f):f=t[12],f}function E({active:e,theme:t,fontScale:n,embedded:r=!1,onPickTemplate:i,onPickTheme:a,onPickFontScale:o,onClose:s,optionRefs:c}){let l=(0,g.useId)(),f=(e,t)=>{let n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)n=(t+1)%u.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)n=(t-1+u.length)%u.length;else if(e.key===`Home`)n=0;else if(e.key===`End`)n=u.length-1;else return;e.preventDefault(),c?.current[n]?.focus()};return(0,_.jsxs)(`div`,{className:`appearance-panel${r?` is-embedded`:``}`,role:r?void 0:`dialog`,"aria-modal":!r||void 0,"aria-labelledby":l,children:[(0,_.jsxs)(`div`,{className:`appearance-head`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h2`,{id:l,children:r?`Appearance`:`Choose your workspace`}),(0,_.jsx)(`p`,{children:`A visual identity for how you think.`})]}),s&&(0,_.jsx)(`button`,{type:`button`,className:`appearance-close`,onClick:s,"aria-label":`Close appearance`,children:`×`})]}),(0,_.jsxs)(`div`,{className:`appearance-mode`,"aria-label":`Color mode`,children:[(0,_.jsx)(`span`,{children:`Color mode`}),(0,_.jsx)(`div`,{className:`appearance-segmented`,children:[`light`,`dark`].map(e=>(0,_.jsxs)(`button`,{type:`button`,"aria-pressed":t===e,className:t===e?`is-active`:``,onClick:()=>a(e),children:[(0,_.jsx)(`span`,{className:`appearance-mode-icon is-${e}`,"aria-hidden":`true`}),e===`light`?`Light`:`Dark`]},e))})]}),(0,_.jsxs)(`div`,{className:`appearance-mode`,"aria-label":`Text size`,children:[(0,_.jsx)(`span`,{children:`Text size`}),(0,_.jsx)(`div`,{className:`appearance-segmented is-triple`,children:v.map(e=>(0,_.jsx)(`button`,{type:`button`,"aria-pressed":n===e,className:n===e?`is-active`:``,onClick:()=>o(e),children:y[e]},e))})]}),(0,_.jsx)(`div`,{className:`appearance-grid`,role:`radiogroup`,"aria-label":`Workspace themes`,children:u.map((t,n)=>(0,_.jsxs)(`button`,{ref:e=>{c&&(c.current[n]=e)},type:`button`,role:`radio`,"aria-label":`${t.label}, ${t.persona}. ${t.tagline} Best for ${t.bestFor}.`,"aria-checked":t.id===e,tabIndex:t.id===e?0:-1,className:`appearance-option${t.id===e?` is-active`:``}`,onClick:()=>i(t.id),onKeyDown:e=>f(e,n),onPointerEnter:()=>d(document,t.id),onFocus:()=>d(document,t.id),children:[(0,_.jsx)(T,{templateId:t.id}),(0,_.jsxs)(`span`,{className:`appearance-option-copy`,children:[(0,_.jsxs)(`span`,{className:`appearance-option-title`,children:[(0,_.jsx)(`strong`,{children:t.label}),(0,_.jsx)(`em`,{children:t.persona})]}),(0,_.jsx)(`span`,{className:`appearance-option-tagline`,children:t.tagline}),(0,_.jsxs)(`span`,{className:`appearance-option-best`,children:[`Best for `,t.bestFor.toLowerCase()]}),(0,_.jsx)(`span`,{className:`appearance-option-font`,children:t.preview.fontRole})]}),(0,_.jsx)(`span`,{className:`appearance-check`,"aria-hidden":`true`,children:`✓`})]},t.id))})]})}function D({triggerClassName:e=`topbar-icon-btn`}={}){let{active:t,theme:n,fontScale:r,pickTemplate:i,pickTheme:a,pickFontScale:o}=S(),[s,l]=(0,g.useState)(!1),d=(0,g.useRef)(null),f=(0,g.useRef)(null),p=(0,g.useRef)([]);(0,g.useEffect)(()=>c(document),[]);let m=(0,g.useCallback)(()=>{l(!1),requestAnimationFrame(()=>f.current?.focus())},[]);(0,g.useEffect)(()=>{if(!s)return;let e=u.findIndex(e=>e.id===t);requestAnimationFrame(()=>{if(window.matchMedia?.(`(max-width: 720px)`).matches??!1){d.current?.querySelector(`.appearance-close`)?.focus({preventScroll:!0});return}p.current[Math.max(0,e)]?.focus({preventScroll:!0})});let n=e=>{d.current&&!d.current.contains(e.target)&&m()},r=e=>{if(e.key===`Escape`){e.preventDefault(),m();return}if(e.key!==`Tab`||!d.current)return;let t=Array.from(d.current.querySelectorAll(`button:not([disabled])`));if(!t.length)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())};return window.addEventListener(`pointerdown`,n),window.addEventListener(`keydown`,r),()=>{window.removeEventListener(`pointerdown`,n),window.removeEventListener(`keydown`,r)}},[t,m,s]);let h=u.find(e=>e.id===t)??u[0];return(0,_.jsxs)(`div`,{className:`tpl-picker appearance-picker`,ref:d,children:[(0,_.jsx)(`button`,{ref:f,type:`button`,className:`${e} tpl-btn appearance-trigger`,onClick:()=>l(e=>!e),title:`Appearance: ${h.label} · ${h.persona} · ${n===`light`?`Light`:`Dark`}`,"aria-label":`Choose appearance (current: ${h.label}, ${h.persona}, ${n} mode)`,"aria-expanded":s,"aria-haspopup":`dialog`,children:(0,_.jsxs)(`span`,{className:`appearance-mark`,"aria-hidden":`true`,children:[(0,_.jsx)(`i`,{style:{background:h.preview.accent}}),(0,_.jsx)(`i`,{style:{background:h.preview.surface}})]})}),s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`appearance-backdrop`,type:`button`,onClick:m,"aria-label":`Close appearance`}),(0,_.jsx)(E,{active:t,theme:n,fontScale:r,onPickTemplate:i,onPickTheme:a,onPickFontScale:o,onClose:m,optionRefs:p})]})]})}function O(){let e=(0,h.c)(7),{active:t,theme:n,fontScale:r,pickTemplate:i,pickTheme:a,pickFontScale:o}=S(),s;return e[0]!==t||e[1]!==r||e[2]!==o||e[3]!==i||e[4]!==a||e[5]!==n?(s=(0,_.jsx)(E,{embedded:!0,active:t,theme:n,fontScale:r,onPickTemplate:i,onPickTheme:a,onPickFontScale:o}),e[0]=t,e[1]=r,e[2]=o,e[3]=i,e[4]=a,e[5]=n,e[6]=s):s=e[6],s}export{D as n,m as r,O as t};
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,r as a,t as o}from"./theme-D5D55hZi.js";import{C as s,S as c,T as l,b as u,w as d,x as f}from"./index-yJfYsjAB.js";import{d as p}from"./useLiveConfig-CvOQTr0s.js";var m=e({AppearanceSettings:()=>O,TemplatePicker:()=>D}),h=n(),g=t(),_=r(),v=[`smaller`,`normal`,`larger`],y={smaller:`Smaller`,normal:`Normal`,larger:`Larger`},b=`mavea:appearancechange`;function x(e){window.dispatchEvent(new CustomEvent(b,{detail:e}))}function S(){let e=(0,h.c)(11),[t,n]=(0,g.useState)(w),[r,c]=(0,g.useState)(C),[u,m]=p(),_,v;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{let e=e=>{let t=e.detail;t&&(n(t.template),c(t.theme))};return window.addEventListener(b,e),()=>window.removeEventListener(b,e)},v=[],e[0]=_,e[1]=v):(_=e[0],v=e[1]),(0,g.useEffect)(_,v);let y;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{d(document,e),f(document,e),s(e);let t={template:e,theme:i()};n(e),c(t.theme),x(t)},e[2]=y):y=e[2];let S=y,T;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>{o(e),a(e);let t={template:l(),theme:e};n(t.template),c(e),x(t)},e[3]=T):T=e[3];let E=T,D;e[4]===m?D=e[5]:(D=e=>m({fontScale:e}),e[4]=m,e[5]=D);let O=D,k;return e[6]!==t||e[7]!==u.fontScale||e[8]!==O||e[9]!==r?(k={active:t,theme:r,fontScale:u.fontScale,pickTemplate:S,pickTheme:E,pickFontScale:O},e[6]=t,e[7]=u.fontScale,e[8]=O,e[9]=r,e[10]=k):k=e[10],k}function C(){return i()}function w(){return l()}function T(e){let t=(0,h.c)(13),{templateId:n}=e,r;t[0]===n?r=t[1]:(r=u.find(e=>e.id===n)??u[0],t[0]=n,t[1]=r);let i=r,a;t[2]!==i.preview.accent||t[3]!==i.preview.background||t[4]!==i.preview.ink||t[5]!==i.preview.surface?(a={"--preview-bg":i.preview.background,"--preview-surface":i.preview.surface,"--preview-ink":i.preview.ink,"--preview-accent":i.preview.accent},t[2]=i.preview.accent,t[3]=i.preview.background,t[4]=i.preview.ink,t[5]=i.preview.surface,t[6]=a):a=t[6];let o=a,s=`appearance-preview appearance-preview--${i.preview.geometry}`,c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,_.jsx)(`span`,{className:`appearance-preview-aa`,children:`Aa`}),t[7]=c):c=t[7];let l,d;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,_.jsxs)(`span`,{className:`appearance-preview-copy`,children:[(0,_.jsx)(`i`,{}),(0,_.jsx)(`i`,{})]}),d=(0,_.jsx)(`span`,{className:`appearance-preview-data`,children:`08`}),t[8]=l,t[9]=d):(l=t[8],d=t[9]);let f;return t[10]!==o||t[11]!==s?(f=(0,_.jsxs)(`span`,{className:s,style:o,"aria-hidden":`true`,children:[c,l,d]}),t[10]=o,t[11]=s,t[12]=f):f=t[12],f}function E({active:e,theme:t,fontScale:n,embedded:r=!1,onPickTemplate:i,onPickTheme:a,onPickFontScale:o,onClose:s,optionRefs:c}){let l=(0,g.useId)(),f=(e,t)=>{let n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)n=(t+1)%u.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)n=(t-1+u.length)%u.length;else if(e.key===`Home`)n=0;else if(e.key===`End`)n=u.length-1;else return;e.preventDefault(),c?.current[n]?.focus()};return(0,_.jsxs)(`div`,{className:`appearance-panel${r?` is-embedded`:``}`,role:r?void 0:`dialog`,"aria-modal":!r||void 0,"aria-labelledby":l,children:[(0,_.jsxs)(`div`,{className:`appearance-head`,children:[(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`h2`,{id:l,children:r?`Appearance`:`Choose your workspace`}),(0,_.jsx)(`p`,{children:`A visual identity for how you think.`})]}),s&&(0,_.jsx)(`button`,{type:`button`,className:`appearance-close`,onClick:s,"aria-label":`Close appearance`,children:`×`})]}),(0,_.jsxs)(`div`,{className:`appearance-mode`,"aria-label":`Color mode`,children:[(0,_.jsx)(`span`,{children:`Color mode`}),(0,_.jsx)(`div`,{className:`appearance-segmented`,children:[`light`,`dark`].map(e=>(0,_.jsxs)(`button`,{type:`button`,"aria-pressed":t===e,className:t===e?`is-active`:``,onClick:()=>a(e),children:[(0,_.jsx)(`span`,{className:`appearance-mode-icon is-${e}`,"aria-hidden":`true`}),e===`light`?`Light`:`Dark`]},e))})]}),(0,_.jsxs)(`div`,{className:`appearance-mode`,"aria-label":`Text size`,children:[(0,_.jsx)(`span`,{children:`Text size`}),(0,_.jsx)(`div`,{className:`appearance-segmented is-triple`,children:v.map(e=>(0,_.jsx)(`button`,{type:`button`,"aria-pressed":n===e,className:n===e?`is-active`:``,onClick:()=>o(e),children:y[e]},e))})]}),(0,_.jsx)(`div`,{className:`appearance-grid`,role:`radiogroup`,"aria-label":`Workspace themes`,children:u.map((t,n)=>(0,_.jsxs)(`button`,{ref:e=>{c&&(c.current[n]=e)},type:`button`,role:`radio`,"aria-label":`${t.label}, ${t.persona}. ${t.tagline} Best for ${t.bestFor}.`,"aria-checked":t.id===e,tabIndex:t.id===e?0:-1,className:`appearance-option${t.id===e?` is-active`:``}`,onClick:()=>i(t.id),onKeyDown:e=>f(e,n),onPointerEnter:()=>d(document,t.id),onFocus:()=>d(document,t.id),children:[(0,_.jsx)(T,{templateId:t.id}),(0,_.jsxs)(`span`,{className:`appearance-option-copy`,children:[(0,_.jsxs)(`span`,{className:`appearance-option-title`,children:[(0,_.jsx)(`strong`,{children:t.label}),(0,_.jsx)(`em`,{children:t.persona})]}),(0,_.jsx)(`span`,{className:`appearance-option-tagline`,children:t.tagline}),(0,_.jsxs)(`span`,{className:`appearance-option-best`,children:[`Best for `,t.bestFor.toLowerCase()]}),(0,_.jsx)(`span`,{className:`appearance-option-font`,children:t.preview.fontRole})]}),(0,_.jsx)(`span`,{className:`appearance-check`,"aria-hidden":`true`,children:`✓`})]},t.id))})]})}function D({triggerClassName:e=`topbar-icon-btn`}={}){let{active:t,theme:n,fontScale:r,pickTemplate:i,pickTheme:a,pickFontScale:o}=S(),[s,l]=(0,g.useState)(!1),d=(0,g.useRef)(null),f=(0,g.useRef)(null),p=(0,g.useRef)([]);(0,g.useEffect)(()=>c(document),[]);let m=(0,g.useCallback)(()=>{l(!1),requestAnimationFrame(()=>f.current?.focus())},[]);(0,g.useEffect)(()=>{if(!s)return;let e=u.findIndex(e=>e.id===t);requestAnimationFrame(()=>{if(window.matchMedia?.(`(max-width: 720px)`).matches??!1){d.current?.querySelector(`.appearance-close`)?.focus({preventScroll:!0});return}p.current[Math.max(0,e)]?.focus({preventScroll:!0})});let n=e=>{d.current&&!d.current.contains(e.target)&&m()},r=e=>{if(e.key===`Escape`){e.preventDefault(),m();return}if(e.key!==`Tab`||!d.current)return;let t=Array.from(d.current.querySelectorAll(`button:not([disabled])`));if(!t.length)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())};return window.addEventListener(`pointerdown`,n),window.addEventListener(`keydown`,r),()=>{window.removeEventListener(`pointerdown`,n),window.removeEventListener(`keydown`,r)}},[t,m,s]);let h=u.find(e=>e.id===t)??u[0];return(0,_.jsxs)(`div`,{className:`tpl-picker appearance-picker`,ref:d,children:[(0,_.jsx)(`button`,{ref:f,type:`button`,className:`${e} tpl-btn appearance-trigger`,onClick:()=>l(e=>!e),title:`Appearance: ${h.label} · ${h.persona} · ${n===`light`?`Light`:`Dark`}`,"aria-label":`Choose appearance (current: ${h.label}, ${h.persona}, ${n} mode)`,"aria-expanded":s,"aria-haspopup":`dialog`,children:(0,_.jsxs)(`span`,{className:`appearance-mark`,"aria-hidden":`true`,children:[(0,_.jsx)(`i`,{style:{background:h.preview.accent}}),(0,_.jsx)(`i`,{style:{background:h.preview.surface}})]})}),s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{className:`appearance-backdrop`,type:`button`,onClick:m,"aria-label":`Close appearance`}),(0,_.jsx)(E,{active:t,theme:n,fontScale:r,onPickTemplate:i,onPickTheme:a,onPickFontScale:o,onClose:m,optionRefs:p})]})]})}function O(){let e=(0,h.c)(7),{active:t,theme:n,fontScale:r,pickTemplate:i,pickTheme:a,pickFontScale:o}=S(),s;return e[0]!==t||e[1]!==r||e[2]!==o||e[3]!==i||e[4]!==a||e[5]!==n?(s=(0,_.jsx)(E,{embedded:!0,active:t,theme:n,fontScale:r,onPickTemplate:i,onPickTheme:a,onPickFontScale:o}),e[0]=t,e[1]=r,e[2]=o,e[3]=i,e[4]=a,e[5]=n,e[6]=s):s=e[6],s}export{D as n,m as r,O as t};
@@ -1,6 +1,6 @@
1
- import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{t as n}from"./LegalMarkdownDocument-DJgwmK1q.js";var r=e(),i=`# Mavéa Terms of Use
1
+ import{t as e}from"./compiler-runtime-qQQXpJgv.js";import{t}from"./jsx-runtime-DeHZSEgm.js";import{t as n}from"./LegalMarkdownDocument-CNsihJ1F.js";var r=e(),i=`# Mavéa Terms of Use
2
2
 
3
- Effective: August 22, 2026
3
+ Effective: August 23, 2026
4
4
 
5
5
  These Terms of Use (the **Terms**) govern your use of the Mavéa application, command-line package, demos, documentation, and related materials (collectively, the **Service**). **Licensor** means each applicable copyright holder offering software under the PolyForm license. **Maintainers** means the people who publish or contribute to Mavéa; a Maintainer is not necessarily a Licensor. **Deployment operator** means the person or organization hosting the copy you use. **Responsible Party** means the applicable Licensor, Maintainer, or deployment operator responsible for a statement, obligation, service, or claim. In these Terms, **we**, **us**, or **our** means the relevant Responsible Party or Parties in context. A separately operated deployment remains independent from the Licensors and Maintainers unless the same person or organization serves both roles.
6
6
 
@@ -8,7 +8,7 @@ The [PolyForm Noncommercial License 1.0.0](./LICENSE) separately governs copyrig
8
8
 
9
9
  ## 1. Acceptance and eligibility
10
10
 
11
- By downloading, installing, accessing, or using the Service, or by selecting the in-product acceptance checkbox, you agree to these Terms and the PolyForm license and acknowledge the [Privacy Notice](./PRIVACY.md) and [Disclaimer](./DISCLAIMER.md). If you use Mavéa for an organization, you represent that you have authority to accept these Terms for it. If you do not agree, do not use the Service.
11
+ By downloading, installing, accessing, or using the Service, by selecting the in-product acceptance checkbox, or by submitting an issue, a discussion post, a message to a published Mavéa contact address, or any other feedback through a Mavéa project channel, you agree to these Terms and the PolyForm license and acknowledge the [Privacy Notice](./PRIVACY.md) and [Disclaimer](./DISCLAIMER.md). Submitting feedback is enough on its own: Section 9 is written to bind whoever sends it, including someone who has never installed or run Mavéa. If you use Mavéa for an organization, you represent that you have authority to accept these Terms for it. If you do not agree, do not use the Service.
12
12
 
13
13
  You must be at least 18 years old, legally capable of entering this agreement, and permitted to use the Service under applicable law. The Service is not directed to children. A parent or guardian should not provide a child access to connected model, upload, microphone, or action features.
14
14
 
@@ -91,7 +91,13 @@ As between you and the Responsible Parties, the Responsible Parties do not claim
91
91
 
92
92
  Bundled and linked third-party materials can carry copyright licences, attribution requirements, personality or publicity rights, privacy interests, trademark rights, property restrictions, or other limitations. A copyright licence or public-domain label does not necessarily clear every depicted person, place, object, logo, or use. Preserve the notices in \`THIRD-PARTY.txt\` and \`public/demo-assets/CREDITS.md\`, follow their source terms, and obtain any additional releases or permissions your use requires.
93
93
 
94
- You may submit issue reports and feature suggestions without including code, patches, documentation changes, confidential information, or trade secrets. You grant the applicable Licensors and Maintainers, and their successors and assigns, a worldwide, perpetual, irrevocable, royalty-free right to use, modify, publish, and commercialize ideas and feedback you voluntarily submit, without restriction or compensation. This does not transfer ownership of inventions or copyrighted materials that are not included in your feedback.
94
+ You may submit issue reports and feature suggestions without including code, patches, documentation changes, confidential information, or trade secrets. Mavéa does not accept external code: material of that kind posted in any channel is not reviewed, not incorporated, and creates no contribution, no authorship, and no rights in Mavéa. The only authorized code maintainers are named in [CONTRIBUTING.md](./CONTRIBUTING.md).
95
+
96
+ You grant the applicable Licensors and Maintainers, and their successors and assigns, a worldwide, perpetual, irrevocable, transferable, sublicensable, royalty-free right to use, modify, publish, and commercialize ideas and feedback you voluntarily submit, without restriction, attribution, accounting, or compensation. This grant applies however the feedback reaches us — an issue, a discussion, an email, or any other project channel — and whether or not you have installed, accessed, or used the Service. It survives any assignment or transfer of these Terms and runs to the benefit of a successor in a financing, merger, acquisition, or sale of assets, on the same terms.
97
+
98
+ Feedback is not confidential and creates no confidential or fiduciary relationship. We may already be working on, or may independently develop, anything your feedback describes, and nothing in it obliges us to use it, keep it, respond to it, or refrain from developing something similar. To the maximum extent permitted by law, you waive any moral rights and any right to be identified in relation to feedback you submit. You represent that you are entitled to submit what you send and that it infringes no one else's rights.
99
+
100
+ This does not transfer ownership of inventions or copyrighted materials that are not included in your feedback.
95
101
 
96
102
  ## 10. Availability, changes, and support
97
103