1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1850],{296:(e,t,a)=>{a.r(t),a.d(t,{InteractiveFigure:()=>n});var s=a(5155),r=a(2115);function n(e){let{src:t,title:a,caption:n,aspect:i="4 / 3",testId:o="interactive-figure",className:d}=e,l=(0,r.useRef)(null),[c,x]=(0,r.useState)(null);return(0,r.useEffect)(()=>{function e(e){let t=l.current;if(!t||e.source!==t.contentWindow)return;let a=e.data;if(a&&"figure-height"===a.type&&"number"==typeof a.height){let e=Math.ceil(a.height);e>40&&e<4e3&&x(e)}}return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[]),(0,s.jsxs)("figure",{"data-testid":o,className:null!=d?d:"not-prose my-2",children:[(0,s.jsx)("iframe",{ref:l,src:t,title:a,loading:"lazy",scrolling:"no",sandbox:"allow-scripts","data-testid":"".concat(o,"-frame"),className:"block w-full rounded-2xl border-0 bg-transparent",style:c?{height:"".concat(c,"px")}:{aspectRatio:i}}),n?(0,s.jsx)("figcaption",{className:"mt-3 text-center font-mono text-xs text-synaptix-text-tertiary",children:n}):null]})}},1301:(e,t,a)=>{a.d(t,{SynthCohortDemo:()=>m});var s=a(5155),r=a(2115),n=a(8955);function i(e){let t=0x811c9dc5;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,0x1000193);return t>>>0}let o=["Avery","Noa","Daniel","Maya","Omar","Lior","Tamar","Eitan"],d=["Cohen","Levi","Mizrahi","Katz","Bar","Shalev","Peretz"],l=["female","male","other"],c=[{code:"I10",display:"Essential (primary) hypertension",acuity:0},{code:"E11.9",display:"Type 2 diabetes mellitus",acuity:1},{code:"M15.9",display:"Polyosteoarthritis",acuity:0},{code:"I50.9",display:"Heart failure, unspecified",acuity:2},{code:"J44.9",display:"COPD, unspecified",acuity:2},{code:"N18.9",display:"Chronic kidney disease",acuity:1},{code:"F03.90",display:"Dementia, unspecified",acuity:2},{code:"I48.91",display:"Atrial fibrillation",acuity:1}],x=["Home Care","Assisted Living","Skilled Nursing"],p=["Low","Moderate","High"];function m(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=(0,n.c)("solutionsUi.synth"),[t,a]=(0,r.useState)("happyseniors-001"),[m,h]=(0,r.useState)(4),[y,u]=(0,r.useState)([]),b=e("fhirSyntheticTag"),f=(0,r.useMemo)(()=>{let e=y[0];return e?JSON.stringify({resourceType:"Patient",id:e.id,meta:{tag:[{code:"SYNTHETIC",display:b}]},name:[{text:e.name}],gender:e.gender,_age:e.age,condition:{resourceType:"Condition",code:{coding:[{system:"http://hl7.org/fhir/sid/icd-10",code:e.condition.code,display:e.condition.display}]}},careLevel:e.careLevel,careSetting:e.setting},null,2):null},[y,b]);return(0,s.jsxs)("div",{"data-testid":"synth-demo",className:"rounded-xl border border-synaptix-border bg-synaptix-surface p-6",children:[(0,s.jsx)("p",{className:"font-mono text-xs uppercase tracking-widest accent-text",children:e("heading")}
1),(0,s.jsx)("p",{"data-testid":"synth-cohort-context",className:"mt-2 text-xs text-synaptix-text-secondary",children:e("cohortContext")}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-end gap-4",children:[(0,s.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"font-mono text-xs text-synaptix-text-tertiary",children:e("seedLabel")}),(0,s.jsx)("input",{"data-testid":"synth-seed",value:t,onChange:e=>a(e.target.value),className:"w-48 rounded-lg border border-synaptix-border bg-synaptix-void px-3 py-2 font-mono text-sm text-synaptix-text-primary outline-none focus:accent-border"})]}),(0,s.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"font-mono text-xs text-synaptix-text-tertiary",children:e("sizeLabel",{min:1,max:8})}),(0,s.jsx)("input",{"data-testid":"synth-size",type:"number",min:1,max:8,value:m,onChange:e=>h(Number(e.target.value)||1),className:"w-24 rounded-lg border border-synaptix-border bg-synaptix-void px-3 py-2 font-mono text-sm text-synaptix-text-primary outline-none focus:accent-border"})]}),(0,s.jsx)("button",{type:"button","data-testid":"synth-generate-btn",onClick:function(){u(function(e,t){let a,s=(a=i(e)>>>0,()=>{a|=0;let e=Math.imul((a=a+0x6d2b79f5|0)^a>>>15,1|a);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}),r=e=>e[Math.floor(s()*e.length)],n=[];for(let a=0;a<t;a++){let t=r(c),m=75+Math.floor(21*s()),h=+(m>=88)+t.acuity,y=p[Math.min(h,p.length-1)],u=x[Math.min(h,x.length-1)];n.push({id:"synthetic-".concat((i(e+a)%1e5).toString().padStart(5,"0")),name:"".concat(r(o)," ").concat(r(d)),gender:r(l),age:m,condition:{code:t.code,display:t.display},careLevel:y,setting:u})}return n}(t,Math.min(Math.max(m,1),8)))},className:"rounded-lg bg-gradient-to-r from-orange-500 to-amber-400 px-5 py-2.5 font-mono text-sm font-semibold text-synaptix-void transition-opacity hover:opacity-90",children:e("generateBtn")})]}),y.length>0&&(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsxs)("table",{"data-testid":"synth-cohort
1-table",className:"w-full border-collapse text-left font-mono text-xs",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"text-synaptix-text-tertiary",children:[(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2 pr-3",children:e("colId")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2 pr-3",children:e("colName")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2 pr-3",children:e("colGender")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2 pr-3",children:e("colAge")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2 pr-3",children:e("colCondition")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2 pr-3",children:e("colCareLevel")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-2",children:e("colSetting")})]})}),(0,s.jsx)("tbody",{children:y.map(e=>(0,s.jsxs)("tr",{"data-testid":"synth-patient-row",className:"text-synaptix-text-secondary",children:[(0,s.jsx)("td",{className:"border-b border-synaptix-border py-2 pr-3 accent-text",children:e.id}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-2 pr-3",children:e.name}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-2 pr-3",children:e.gender}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-2 pr-3",children:e.age}),(0,s.jsxs)("td",{className:"border-b border-synaptix-border py-2 pr-3",children:[e.condition.code," \xb7 ",e.condition.display]}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-2 pr-3",children:e.careLevel}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-2",children:e.setting})]},e.id))})]}),f&&(0,s.jsxs)("details",{className:"mt-5",children:[(0,s.jsx)("summary",{className:"cursor-pointer font-mono text-xs text-synaptix-text-tertiary hover:text-synaptix-text-primary",children:e("fhirSummary")}),(0,s.jsx)("pre",{"data-testid":"synth-fhir",className:"mt-2 overflow-x-auto rounded-lg border border-synaptix-border bg-synaptix-void p-4 font-mono text-xs text-synaptix-text-secondary",children:f})]}),(0,s.jsx)("p",{className:"mt-4 text-xs text-synaptix-text-muted",children:e("note")})]})]})}},2644:(e,t,a)=>{a.d(t,{PapyrusScrollyDemo:()=>c});var s=a(5155),r=a(2115),n=a(8955);let i=[{id:"s1",labelKey:"s1Label",bodyKey:"s1Body",cueKey:"s1Cue"},{id:"s2",labelKey:"s2Label",bodyKey:"s2Body",cueKey:"s2Cue"},{id:"s3",labelKey:"s3Label",bodyKey:"s3Body",cueKey:"s3Cue"},{id:"s5",labelKey:"s5Label",bodyKey:"s5Body",cueKey:"s5Cue"},{id:"s7",labelKey:"s7Label",bodyKey:"s7Body",cueKey:"s7Cue"}],o=i.length-1,d=[{id:"summarize",chipKey:"askSummarize",ansKey:"ansSummarize",citeKey:"citeSummarize"},{id:"findings",chipKey:"askFindings",ansKey:"ansFindings",citeKey:"citeFindings"},{id:"simple",chipKey:"askSimple",ansKey:"ansSimple",citeKey:"citeSimple"}];function l(e){let{section:t}=e,a="rgb(232,93,58)";return(0,s.jsxs)("svg",{viewBox:"0 0 240 120",className:"h-[120px] w-full",role:"img","aria-hidden":!0,children:[(0,s.jsx)("rect",{x:"0",y:"0",width:"240",height:"120",fill:"transparent"}),"s1"===t&&(0,s.jsxs)("g",{children:[(0,s.jsx)("line",{x1:"30",y1:"105",x2:"120",y2:"20",stroke:"#5b7",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"210",y1:"105",x2:"120",y2:"20",stroke:"#5b7",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"60",y1:"35",x2:"180",y2:"35",stroke:"#e5683f",strokeWidth:"2.5",strokeDasharray:"5 4",markerEnd:"url(#ar)"}),(0,s.jsx)("text",{x:"120",y:"28",textAnchor:"middle",fill:"#e5683f",fontSize:"9",fontFamily:"monospace",children:"paradox âº"}),(0,s.jsx)("defs",{children:(0,s.jsx)("marker",{id:"ar",markerWidth:"7",markerHeight:"7",refX:"6",refY:"3.5",orient:"auto",children:(0,s.jsx)("path",{d:"M1 1L6 3.5L1 6",fill:"none",stroke:"#e5683f",strokeWidth:"1.4"})})})]}),"s2"===t&&(0,s.jsxs)("g",{children:[(0,s.jsx)("line",{x1:"30",y1:"105",x2:"120",y2:"20",stroke:"#5b7",strokeWidth:"2"}),(0,s.jsx)("line",{x1:"210",y1:"105",x2:"120",y2:"20",stroke:"#5b7",strokeWidth:"2"}),(0,s.jsx)("rect",{x:"55",y:"26",width:"130",height:"20",fill:a,opacity:"0.18",rx:"4"}),(0,s.jsx)("line",{x1:"60",y1:"36",x2:"150",y2:"36",stroke:"#e5683f",strokeWidth:"2",strokeDasharray:"3 5",opacity:"0.35"}),(0,s.jsx)("text",{x:"120",y:"58",textAnchor:"middle",fill:a,fontSize:"9",fontFamily:"monospace",children:"causality drag â damped"})]}),"s3"===t&&(0,s.jsxs)("g",{children:[(0,s.jsx)("line",{x1:"30",y1:"100",x2:"210",y2:"100",stroke:"#456",strokeWidth:"1"}),(0,s.jsx)("line",{x1:"120",y1:"20",x2:"120",y2:"110",stroke:"#456",strokeWidth:"1"}),(0,s.jsx)("line",{x1:"45",y1:"78",x2:"195",y2:"42",stroke:a,strokeWidth:"2.5"}),(0,s.jsx)("text",{x:"150",y:"38",fill:a,fontSize:"9",fontFamily:"monospace",children:"tilted ânowâ"})]}),"s5"===t&&(0,s.jsxs)("g",{children:[(0,s.jsx)("line",{x1:"30",y1:"100",x2:"210",y2:"100",stroke:"#456",strokeWidth:"1"}),(0,s.jsx)("line",{x1:"30",y1:"20",x2:"30",y2:"100",stroke:"#456",strokeWidth:"1"}),(0,s.jsx)("path",{d:"M30 30 C 90 32, 130 80, 210 96",fill:"none",stroke:a,strokeWidth:"2.5"}),(0,s.jsx)("text",{x:"120",y:"22",textAnchor:"middle",fill:a,fontSize:"9",fontFamily:"monospace",children:"safety margin â"})]}),"s7"===t&&(0,s.jsxs)("g",{children:[Array.from({length:4}).map((e,t)=>Array.from({length:8}).map((e,r)=>{let n=(7*t+3*r)%5/4;return(0,s.jsx)("rect",{x:32+22*r,y:28+18*t,width:"20",height:"16",rx:"2",fill:a,opacity:.15+.7*n},"".concat(t,"-").concat(r))})),(0,s.jsx)("text",{x:"120",y:"20",textAnchor:"middle",fill:a,fontSize:"9",fontFamily:"monospace",children:"quality heatmap"})]})]})}function c(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=(0,n.c)("solutionsUi.papyrus"),[t,a]=(0,r.useState)(0),[c,x]=(0,r.useState)(null),p=i[t];return(0,s.jsxs)("div",{"data-testid":"papyrus-demo",className:"overflow-hidden rounded-2xl border border-synaptix-border bg-synaptix-surface",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 border-b border-synaptix-border bg-synaptix-void/40 px-5 py-3",children:[(0,s.jsx)("span",{"aria-hidden":!0,
1className:"text-lg",children:"\uD83D\uDCDC"}),(0,s.jsxs)("div",{className:"mr-auto",children:[(0,s.jsx)("p",{className:"font-mono text-sm font-bold text-synaptix-text-primary",children:e("paperTitle")}),(0,s.jsx)("p",{className:"font-mono text-[11px] text-synaptix-text-tertiary",children:e("paperSub")})]}),(0,s.jsx)("span",{className:"rounded-full accent-bg-soft px-2.5 py-1 font-mono text-[10px] accent-text",children:e("badge")})]}),(0,s.jsx)("ol",{"data-testid":"papyrus-sections",className:"flex flex-wrap gap-2 px-5 pt-4",children:i.map((r,n)=>(0,s.jsx)("li",{children:(0,s.jsx)("button",{type:"button","data-testid":"papyrus-section-".concat(r.id),"aria-current":n===t?"true":void 0,onClick:()=>a(n),className:"rounded-full border px-3 py-1 font-mono text-[11px] transition-colors ".concat(n===t?"accent-border accent-bg-soft accent-text":n<t?"border-synaptix-border-active text-synaptix-text-secondary":"border-synaptix-border text-synaptix-text-tertiary hover:border-synaptix-border-active"),children:e(r.labelKey)})},r.id))}),(0,s.jsxs)("div",{className:"grid gap-4 px-5 py-4 md:grid-cols-2",children:[(0,s.jsxs)("div",{className:"min-h-[150px]",children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-bold uppercase tracking-wider accent-text",children:e(p.labelKey)}),(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-synaptix-text-secondary",children:e(p.bodyKey)}),(0,s.jsxs)("p",{"data-testid":"papyrus-cue",className:"mt-3 inline-flex items-center gap-2 rounded border border-synaptix-border bg-synaptix-void/50 px-2.5 py-1 font-mono text-[10px] text-synaptix-text-tertiary",children:[(0,s.jsx)("span",{className:"accent-text",children:e("cueLabel")}),(0,s.jsx)("code",{children:'{ cue: "'.concat(e(p.cueKey),'" }')})]})]}),(0,s.jsxs)("div",{"data-testid":"papyrus-figure","data-section":p.id,className:"rounded-xl border border-synaptix-border bg-synaptix-void/60 p-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between font-mono text-[10px] text-synaptix-text-tertiary",children:[(0,s.jsxs)("span",{children:[e("vpLabel")," \xb7 causal-damping-protocol/",p.id]}),(0,s.jsx)("span",{className:"rounded-full bg-emerald-500/15 px-2 py-0.5 text-emerald-300",children:e("vpInteractive")})]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(l,{section:p.id})})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 px-5",children:[(0,s.jsx)("button",{type:"button","data-testid":"papyrus-prev-btn",onClick:()=>a(e=>Math.max(e-1,0)),disabled:0===t,className:"rounded-lg border border-synaptix-border px-4 py-1.5 font-mono text-xs text-synaptix-text-secondary transition-colors hover:border-synaptix-border-active disabled:opacity-40",children:e("prevBtn")}),(0,s.jsx)("span",{className:"font-mono text-[10px] text-synaptix-text-tertiary",children:e("progress",{current:t+1,total:i.length})}),(0,s.jsx)("button",{type:"button","data-testid":"papyrus-next-btn",onClick:()=>a(e=>Math.min(e+1,o)),disabled:t===o,className:"rounded-lg bg-gradient-to-r from-orange-500 to-amber-400 px-4 py-1.5 font-mono text-xs font-semibold text-synaptix-void transition-opacity hover:opacity-90 disabled:opacity-40",children:e("nextBtn")})]}),(0,s.jsxs)("div",{className:"mt-4 border-t border-synaptix-border px-5 py-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,s.jsxs)("p",{className:"font-mono text-xs font-bold accent-text",children:["⦠",e("askHeading")]}),(0,s.jsx)("p",{className:"font-mono text-[10px] text-synaptix-text-tertiary",children:e("askHint")})]}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[d.map(t=>(0,s.jsx)("button",{type:"button","data-testid":"papyrus-ask-".concat(t.id),"aria-pressed":c===t.id,onClick:()=>x(t.id),className:"rounded-full border px-3 py-1.5 font-mono text-[11px] transition-colors ".concat(c===t.id?"accent-border accent-bg-soft accent-text":"border-synaptix-border-active text-synaptix-text-primary hover:accent-border"),children:e(t.chipKey)},t.id)),c&&(0,s.jsx)("button",{type:"button","data-testid":"papyrus-ask-clear",onClick:()=>x(null),className:"ml-auto rounded-full px-3 py-1.5 font-mono text-[11px] text-synaptix-text-tertiary hover:text-synaptix-text-primary",children:e("clearAsk")})]}),c&&(0,s.jsxs)("div",{className:"mt-3 rounded-xl border border-synaptix-border bg-synaptix-void/50 p-4",children:[(0,s.jsx)("p",{"data-testid":"papyrus-answer",className:"text-sm leading-relaxed text-synaptix-text-secondary",children:e(d.find(e=>e.id===c).ansKey)}),(0,s.jsxs)("p",{"data-testid":"papyrus-citations",className:"mt-3 border-t border-synaptix-border pt-2 font-mono text-[10px] text-synaptix-text-tertiary",children:[(0,s.jsxs)("span",{className:"accent-text",children:[e("citationsLabel")," "]}),e(d.find(e=>e.id===c).citeKey)]})]})]}),(0,s.jsx)("p",{className:"border-t border-synaptix-border px-5 py-3 text-[11px] text-synaptix-text-muted",children:e("note")})]})}},2681:(e,t,a)=>{a.d(t,{AtlasDemo:()=>n});var s=a(5155),r=a(296);function n(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],(0,s.jsx)("div",{"data-testid":"atlas-demo",className:"not-prose",children:(0,s.jsx)(r.InteractiveFigure,{src:"/figures/atlas.html",title:"Atlas â agentic workspace (v5): humans and agentic teams in governed rooms, with the Atlas DM, an AtlasStrip governance ribbon, and a run/evidence/dissent detail drawer",aspect:"940 / 560",testId:"atlas-figure"})})}},3210:(e,t,a)=>{a.d(t,{HappyPuppyDemo:()=>l});var s=a(5155),r=a(2115),n=a(8955);let i=["Kokopu","Labrador","Poodle","Mixed-breed"],o=[{id:"leash",chipKey:"chipLeash",userKey:"userLeash"},{id:"potty",chipKey:"chipPotty",userKey:"userPotty"},{id:"barking",chipKey:"chipBarking",userKey:"userBarking"},{id:"crate",chipKey:"chipCrate",userKey:"userCrate"},{id:"aggression",chipKey:"chipAggression",userKey:"userAggression",escalation:!0}],d={leash:e=>
1"Loose-leash walking isn't obedience â it's coordination. You and your ".concat(e," are learning to move at the same speed. The game: the second the leash goes tight, stop. Don't pull back â just stop. When it loosens, walk on. Five-minute reps, twice a day. Most dogs feel the difference within a week. \uD83D\uDC3E"),potty:e=>"Potty training is a routine, not a battle. Take your ".concat(e," out every couple of hours â and after every meal, nap, and play â same door, same spot. Reward the instant they finish (outside, not back in). Accidents? Clean it quietly, no scolding. Most pups click in 7â10 days."),barking:e=>"Barking at the door is your ".concat(e," doing their job â they just don't know when to stop. Teach a \"thank you, that's enough\" cue: let them look, then redirect to a mat with a treat. You're rewarding calm, not silence-on-demand. Practice with a friend knocking on repeat."),crate:e=>"The crate should be the best room in the house, not a time-out. Feed your ".concat(e," in there, toss treats in, leave the door open at first â then build up seconds, then minutes. Never use it as punishment. A calm crate is a dog that can settle anywhere."),aggression:()=>"Max here \uD83D\uDC3E â this sounds serious and it's outside what I can safely help with over chat. Dog bites and aggressive lunging need a certified professional who can see your dog in person.\n\nPlease reach out to one of these:\n⢠A certified dog behaviorist (look for CDBC or IAABC-certified near you)\n⢠Your veterinarian â some aggression is medical, not behavioral\n⢠If a person was injured: animal control and a doctor, first\n\nIn the meantime: keep everyone safe â muzzle, leash, separate from triggers. Don't punish the dog; it almost always makes bite risk worse.\n\nI'll be here when you're ready for day-to-day training questions again."};function l(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=(0,n.c)("solutionsUi.happypuppy"),[t,a]=(0,r.useState)("Kokopu"),[l,p]=(0,r.useState)([]),[m,h]=(0,r.useState)(new Set),[y,u]=(0,r.useState)(!1),[b,f]=(0,r.useState)(""),g=(0,r.useRef)([]),j=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>g.current.forEach(clearTimeout),[]);let v=l.filter(e=>"user"===e.who).length>=3;function N(e,t){u(!0);let a=setTimeout(()=>{u(!1),p(a=>[...a,{who:"max",text:e,escalation:t}])},700);g.current.push(a)}(0,r.useEffect)(()=>{let e=j.current;e&&"function"==typeof e.scrollTo&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})},[l.length,y]);let k=l.some(e=>"max"===e.who&&!e.escalation);return(0,s.jsxs)("div",{"data-testid":"happypuppy-demo",className:"not-prose overflow-hidden rounded-[28px] p-4 sm:p-6",style:{"--hp-pu":"#7B5CBF","--hp-puL":"#EDE6FF","--hp-puD":"#5138A0","--hp-sg":"#4DA872","--hp-sgD":"#2F7651","--hp-sky":"#4DA8D0","--hp-bg":"#F4F0FD","--hp-ink":"#1A1233","--hp-tx":"#5E4D85",background:"radial-gradient(120% 120% at 15% 0%, #FBF8FF 0%, var(--hp-bg) 55%, #ECE4FB 100%)"},children:[(0,s.jsx)("style",{children:"\n @keyframes hp-pop { from { opacity:0; transform: translateY(6px) scale(.98); } to { opacity:1; transform:none; } }\n @keyframes hp-bounce { 0%,80%,100%{ transform: translateY(0); opacity:.5 } 40%{ transform: translateY(-4px); opacity:1 } }\n .hp-msg { animation: hp-pop .26s ease-out both; }\n .hp-dot { width:6px;height:6px;border-radius:9999px;background:var(--hp-pu);display:inline-block;animation:hp-bounce 1.1s infinite ease-in-out; }\n @media (prefers-reduced-motion: reduce) { .hp-msg { animation: none; } .hp-dot { animation: none; opacity:.7; } }\n "}),(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-2 px-1",children:[(0,s.jsxs)("div",{dir:"ltr",className:"flex shrink-0 items-baseline gap-0.5 text-2xl font-black tracking-tight",children:[(0,s.jsx)("span",{style:{color:"var(--hp-pu)"},children:"Happy"}),(0,s.jsx)("span",{style:{color:"var(--hp-sgD)"},children:"Puppy"})]}),(0,s.jsxs)("a",{href:"https://happypuppy.synaptixlabs.ai",target:"_blank",rel:"noopener noreferrer",className:"shrink-0 whitespace-nowrap rounded-full px-2.5 py-1 font-mono text-[10px] font-bold transition-opacity hover:opacity-80",style:{background:"var(--hp-puL)",color:"var(--hp-puD)"},children:[(0,s.jsx)("span",{className:"hidden sm:inline",children:"happypuppy.synaptixlabs.ai â"}),(0,s.jsx)("span",{className:"sm:hidden",children:"Live app â"})]})]}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-[24px] bg-white",style:{boxShadow:"0 16px 48px rgba(123,92,191,.22)"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 px-5 py-3",style:{background:"linear-gradient(90deg,var(--hp-puL),#fff)",borderBottom:"1px solid var(--hp-puL)"},children:[(0,s.jsx)(c,{size:40}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-extrabold",style:{color:"var(--hp-ink)"},children:e("maxName")}),(0,s.jsx)("p",{className:"font-mono text-[11px]",style:{color:"var(--hp-tx)"},children:e("maxRole")})]}),(0,s.jsxs)("span",{className:"ml-auto inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-mono text-[10px] font-bold",style:{background:"var(--hp-sg)",color:"#fff"},children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-white"})," ",e("online")]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-5 pt-4",children:[(0,s.jsx)("span",{className:"font-mono text-[11px] font-bold",style:{color:"var(--hp-tx)"},children:e("breedLabel")}),i.map(e=>(0,s.jsx)("button",{type:"button","data-testid":"maxai-breed-".concat(e),"aria-pressed":t===e,onClick:()=>a(e),className:"rounded-full border px-3 py-1 font-mono text-[11px] font-bold transition-colors",style:t===e?{background:"var(--hp-pu)",color:"#fff",borderColor:"var(--hp-pu)"}:{background:"#fff",color:"var(--hp-puD)",borderColor:"var(--hp-puL)"},children:e},e))]}),(0,s.jsxs)("div",{ref:j,"data-testid":"maxai-thread",className:"min-h-[260px] max-h-[300px] space-y-3 overflow-y-auto px-5 py-4",style:{background:"linear-gradient(180deg,#fff,#FBF9FF)"},children:[(0,s.jsx)(x,{who:"max",children:e("greeting")}),l.map((e,t)=>(0,s.jsx)(x,{who:e.who,escalation:e.escalation,children:e.text},t)),y&&(0,s.jsxs)("div",{className:"flex items-end gap-2",children:[(0,s.jsx)(c,{size:28}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-[18px] rounded-bl-sm px-3.5 py-3",style:{background:"var(--hp-puL)"},"aria-label":"Max is typing",children:[(0,s.jsx)("span",{className:"hp-dot"}),(0,s.jsx)("span",{className:"hp-dot",style:{animationDelay:".15s"}}),(0,s.jsx)("span",{className:"hp-dot",style:{animationDelay:".3s"}})]})]}),k&&!y&&(0,s.jsxs)("a",{href:"https://happypuppy.synaptixlabs.ai",target:"_blank",rel:"noopener noreferrer","data-testid":"maxai-softsell",className:"hp-msg ml-9 inline-flex items-center gap-2 rounded-[14px] px-3 py-2 font-mono text-[11px] font-bold transition-transform hover:-translate-y-0.5",style:{background:"var(--hp-sgD)",color:"#fff"}
1,children:[(0,s.jsx)("span",{"aria-hidden":!0,children:"\uD83D\uDCD8"})," ",e("softSell")]})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-5 pt-4",style:{borderTop:"1px solid var(--hp-puL)"},children:[v?(0,s.jsxs)("span",{"data-testid":"maxai-limit",className:"font-mono text-[11px] font-bold",style:{color:"var(--hp-tx)"},children:["\uD83D\uDC3E ",e("limitHint")]}):o.map(a=>(0,s.jsx)("button",{type:"button","data-testid":"maxai-chip-".concat(a.id),onClick:()=>(function(a){if(v||y)return;let s=o.find(e=>e.id===a);p(t=>[...t,{who:"user",text:e(s.userKey)}]),h(e=>new Set(e).add(a)),N(d[a](t),s.escalation)})(a.id),className:"rounded-full border px-3 py-1.5 font-mono text-[11px] font-bold transition-colors",style:a.escalation?{background:"#FFF1F4",color:"#C2334E",borderColor:"#F6C7D2"}:m.has(a.id)?{background:"#fff",color:"#A99CC7",borderColor:"var(--hp-puL)"}:{background:"#fff",color:"var(--hp-puD)",borderColor:"var(--hp-pu)"},children:e(a.chipKey)},a.id)),l.length>0&&(0,s.jsx)("button",{type:"button","data-testid":"maxai-reset-btn",onClick:function(){g.current.forEach(clearTimeout),p([]),h(new Set),u(!1)},className:"ml-auto rounded-full px-3 py-1.5 font-mono text-[11px] font-bold transition-opacity hover:opacity-70",style:{color:"var(--hp-tx)"},children:e("reset")})]}),(0,s.jsxs)("form",{onSubmit:function(e){e.preventDefault();let a=b.trim();if(!a||y||v)return;f(""),p(e=>[...e,{who:"user",text:a}]);let s=function(e){let t=e.toLowerCase();return/\b(bit|bite|bites|aggress|lunge|lunging|attack|maul|growl)/.test(t)?"aggression":/leash|pull|walk|heel/.test(t)?"leash":/pott|toilet|pee|poop|house.?train|accident/.test(t)?"potty":/bark/.test(t)?"barking":/crate|kennel|cage/.test(t)?"crate":null}(a);s?(h(e=>new Set(e).add(s)),N(d[s](t),"aggression"===s)):N("Max here \uD83D\uDC3E â I didn't quite catch that one. Can you try rephrasing? Something like 'my dog pulls on the leash' or 'how do I teach settle' works great.")},className:"m-5 mt-3 flex items-center gap-2 rounded-full p-1.5",style:{background:"var(--hp-bg)",border:"1px solid var(--hp-puL)"},children:[(0,s.jsx)("input",{value:b,onChange:e=>f(e.target.value),disabled:v,placeholder:v?e("limitHint"):e("placeholder"),"aria-label":e("placeholder"),className:"flex-1 bg-transparent px-3 text-sm outline-none disabled:opacity-60",style:{color:"var(--hp-ink)"}}),(0,s.jsx)("button",{type:"submit","aria-label":"Send",disabled:y||!b.trim()||v,className:"grid h-9 w-9 place-items-center rounded-full text-white transition-opacity disabled:opacity-40",style:{background:"var(--hp-pu)"},children:(0,s.jsx)("span",{"aria-hidden":!0,children:"â¤"})})]})]}),(0,s.jsx)("p",{className:"mt-3 px-1 text-[11px] leading-relaxed",style:{color:"var(--hp-tx)"},children:e("note")})]})}function c(e){let{size:t=36}=e;return(0,s.jsx)("span",{"aria-hidden":!0,className:"grid shrink-0 place-items-center rounded-full",style:{width:t,height:t,background:"linear-gradient(140deg,var(--hp-pu),var(--hp-sky))",boxShadow:"0 4px 12px rgba(123,92,191,.35)"},children:(0,s.jsxs)("svg",{width:.56*t,height:.56*t,viewBox:"0 0 24 24",fill:"#fff","aria-hidden":!0,children:[(0,s.jsx)("ellipse",{cx:"7",cy:"8.5",rx:"2.1",ry:"2.7"}),(0,s.jsx)("ellipse",{cx:"12",cy:"6.6",rx:"2.2",ry:"2.9"}),(0,s.jsx)("ellipse",{cx:"17",cy:"8.5",rx:"2.1",ry:"2.7"}),(0,s.jsx)("path",{d:"M12 11.4c3 0 5.4 2.2 5.4 4.6 0 2-1.8 2.8-3.4 2.4-1.1-.3-1-.3-2-.3s-.9 0-2 .3c-1.6.4-3.4-.4-3.4-2.4 0-2.4 2.4-4.6 5.4-4.6Z"})]})})}function x(e){let{who:t,escalation:a,children:r}=e;return"user"===t?(0,s.jsx)("div",{className:"flex justify-end",children:(0,s.jsx)("p",{"data-testid":"maxai-message","data-who":"user",className:"hp-msg max-w-[82%] rounded-[18px] rounded-br-sm px-3.5 py-2 text-sm font-semibold text-white",style:{background:"linear-gradient(135deg,var(--hp-pu),#9B7BE0)"},children:r})}):(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)(c,{size:32}),(0,s.jsx)("p",{"data-testid":"maxai-message","data-who":"max","data-escalation":a||void 0,className:"hp-msg max-w-[84%] whitespace-pre-line rounded-[18px] rounded-bl-sm px-3.5 py-2 text-sm",style:a?{background:"#fff",color:"var(--hp-ink)",borderLeft:"4px solid var(--hp-pu)",boxShadow:"0 2px 10px rgba(123,92,191,.12)"}:{background:"var(--hp-puL)",color:"var(--hp-ink)"},children:r})]})}},3754:(e,t,a)=>{a.d(t,{AiosDemo:()=>m});var s=a(5155),r=a(2115),n=a(8955);let i=[{id:"triage",labelKey:"reqTriage",classified:"fast-classify",model:"Llama 3.3 70B (Groq)",policy:"low-cost \xb7 no PII egress",provider:"Groq",tokens:320},{id:"code",labelKey:"reqCode",classified:"reasoning-code",model:"Claude Sonnet (Anthropic)",policy:"code-safe \xb7 audit-logged",provider:"Anthropic",tokens:1180},{id:"design",labelKey:"reqDesign",classified:"creative-visual",model:"Claude Opus (Anthropic)",policy:"creative \xb7 cost-capped",provider:"Anthropic",tokens:2040}],o=["Anthropic","Google","Groq","OpenAI","xAI","Mistral","DeepSeek","Replicate"],d=["stageClassify","stagePolicy","stageRoute","stageDispatch"],l=[{id:"auth",labelKey:"pipeAuth",subKey:"pipeAuthSub"},{id:"keyvault",labelKey:"pipeKeyvault",subKey:"pipeKeyvaultSub"},{id:"memory",labelKey:"pipeMemory",subKey:"pipeMemorySub"},{id:"route",labelKey:"pipeRoute",subKey:"pipeRouteSub"},{id:"stream",labelKey:"pipeStream",subKey:"pipeStreamSub"},{id:"sxc",labelKey:"pipeSxc",subKey:"pipeSxcSub"}],c=l.findIndex(e=>"route"===e.id),x=l.findIndex(e=>"stream"===e.id),p=l.findIndex(e=>"sxc"===e.id);function m(){let{step:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,n.c)("solutionsUi.aios"),[a,m]=(0,r.useState)(i[0]),[h,y]=(0,r.useState)(-1),[u,b]=(0,r.useState)(-1),[f,g]=(0,r.useState)(0),j=(0,r.useRef)([]),v=()=>{j.current.forEach(clearTimeout),j.current=[]};(0,r.useEffect)(()=>()=>v(),[]),(0,r.useEffect)(()=>
1{if(void 0===e)return;y(Math.max(0,Math.min(e,d.length)));let t=Math.max(0,Math.min(e,l.length));b(t),g(t>x?a.tokens:0)},[e,d.length,a.tokens]);let N=h>=d.length,k=u>=l.length,w=u>c,S=(f/1e3*1.2).toFixed(3);return(0,s.jsxs)("div",{"data-testid":"aios-demo",className:"rounded-xl border border-synaptix-border bg-synaptix-surface p-6",children:[(0,s.jsx)("p",{className:"font-mono text-xs uppercase tracking-widest accent-text",children:t("heading")}),(0,s.jsxs)("fieldset",{className:"mt-4",children:[(0,s.jsx)("legend",{className:"text-sm text-synaptix-text-secondary",children:t("pickLegend")}),(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:i.map(e=>{let r=e.id===a.id;return(0,s.jsx)("button",{type:"button","data-testid":"aios-req-".concat(e.id),"aria-pressed":r,onClick:()=>{v(),m(e),y(-1),b(-1),g(0)},className:"rounded-lg border px-3 py-2 font-mono text-xs transition-colors ".concat(r?"accent-border accent-text accent-bg-soft":"border-synaptix-border text-synaptix-text-secondary hover:border-synaptix-border-active"),children:t(e.labelKey)},e.id)})})]}),(0,s.jsx)("button",{type:"button","data-testid":"aios-route-btn",onClick:function(){v(),y(0),b(0),g(0),d.forEach((e,t)=>{j.current.push(setTimeout(()=>y(t+1),(t+1)*360))}),l.forEach((e,t)=>{j.current.push(setTimeout(()=>{if(b(t+1),t===x){let e=a.tokens;for(let t=1;t<=8;t++)j.current.push(setTimeout(()=>g(Math.round(e*t/8)),60*t))}},(t+1)*360))})},className:"mt-5 rounded-lg bg-gradient-to-r from-orange-500 to-amber-400 px-5 py-2.5 font-mono text-sm font-semibold text-synaptix-void transition-opacity hover:opacity-90",children:t("routeBtn")}),(0,s.jsx)("ol",{"data-testid":"aios-pipeline",className:"mt-6 grid gap-3 sm:grid-cols-4",children:d.map((e,a)=>{let r=h>a;return(0,s.jsxs)("li",{"data-testid":"aios-stage-".concat(a),"data-reached":r,className:"rounded-lg border p-3 text-center font-mono text-xs transition-all ".concat(r?"accent-border accent-text accent-bg-soft":"border-synaptix-border text-synaptix-text-tertiary"),children:[(0,s.jsx)("span",{className:"block text-[0.65rem] uppercase tracking-wide",children:a+1}),t(e)]},e)})}),(0,s.jsx)("ol",{"data-testid":"aios-pipeline-full",className:"mt-4 grid gap-2 sm:grid-cols-3 lg:grid-cols-6",children:l.map((e,a)=>{let r=u>a;return(0,s.jsxs)("li",{"data-testid":"aios-pipe-".concat(e.id),"data-reached":r,className:"rounded-lg border p-2 text-center font-mono text-[0.65rem] transition-all ".concat(r?"accent-border accent-text accent-bg-soft":"border-synaptix-border text-synaptix-text-tertiary"),children:[(0,s.jsx)("span",{className:"block uppercase tracking-wide",children:a+1}),(0,s.jsx)("span",{className:"block font-bold",children:t(e.labelKey)}),(0,s.jsx)("span",{className:"block text-synaptix-text-tertiary",children:t(e.subKey)})]},e.id)})}),(0,s.jsx)("div",{"data-testid":"aios-providers",className:"mt-4 flex flex-wrap gap-1.5","aria-label":t("providersAria"),children:o.map(e=>{let t=w&&e===a.provider;return(0,s.jsx)("span",{"data-testid":"aios-provider-".concat(e.toLowerCase()),"data-lit":t,className:"rounded border px-2 py-1 font-mono text-[0.6rem] transition-colors ".concat(t?"accent-border accent-text accent-bg-soft":"border-synaptix-border text-synaptix-text-tertiary"),children:e},e)})}),u>=x&&(0,s.jsxs)("div",{"data-testid":"aios-token-meter",className:"mt-4 flex flex-wrap items-baseline gap-4 roun
1ded-lg border border-synaptix-border bg-synaptix-void/40 p-3 font-mono text-xs",children:[(0,s.jsxs)("span",{className:"text-synaptix-text-secondary",children:[t("tokenLabel")," ",(0,s.jsx)("span",{"data-testid":"aios-token-count",className:"font-bold accent-text",children:f})]}),(0,s.jsxs)("span",{className:"text-synaptix-text-secondary",children:[t("costLabel")," ",(0,s.jsxs)("span",{"data-testid":"aios-cost",className:"font-bold accent-text",children:[S," SXC"]})]}),u>p&&(0,s.jsx)("span",{"data-testid":"aios-settled",className:"text-synaptix-text-tertiary",children:t("settledNote")})]}),N&&(0,s.jsxs)("div",{"data-testid":"aios-result",className:"mt-6 rounded-lg border accent-border accent-bg-soft p-4",children:[(0,s.jsxs)("p",{className:"font-mono text-sm text-synaptix-text-primary",children:[t("resultClassifiedPrefix"),(0,s.jsx)("span",{className:"accent-text",children:a.classified}),t("resultPolicyPrefix"),(0,s.jsx)("span",{className:"accent-text",children:a.policy})]}),(0,s.jsxs)("p",{className:"mt-2 font-mono text-sm text-synaptix-text-secondary",children:[t("resultDispatchPrefix"),(0,s.jsx)("span",{className:"font-bold text-synaptix-text-primary",children:a.model})]}),k&&(0,s.jsxs)("p",{"data-testid":"aios-result-cost",className:"mt-2 font-mono text-sm text-synaptix-text-secondary",children:[t("resultCostPrefix"),(0,s.jsxs)("span",{className:"font-bold accent-text",children:[f," tok \xb7 ",S," SXC"]})]}),(0,s.jsx)("p",{className:"mt-3 text-xs text-synaptix-text-muted",children:t("resultNote")})]})]})}},5016:(e,t,a)=>{a.d(t,{SynthEngineDemo:()=>c});var s=a(5155),r=a(2115),n=a(8955);let i=[{code:"E11",display:"Type 2 diabetes"},{code:"I10",display:"Hypertension"},{code:"F06.7",display:"Mild cognitive impairment"},{code:"Z91.81",display:"History of falls"},{code:"I50.9",display:"Heart failure"},{code:"J44.9",display:"COPD"},{code:"N18.9",display:"Chronic kidney disease"},{code:"M15.9",display:"Polyosteoarthritis"},{code:"F03.90",display:"Dementia"},{code:"H54.7",display:"Visual impairment"}],o=["Home care","Assisted living","Skilled nursing"],d={minComposite:.85,minFairness:.8},l={patient:{t:"text-rose-300",d:"bg-rose-400"},case_manager:{t:"text-amber-300",d:"bg-amber-400"},provider:{t:"text-sky-300",d:"bg-sky-400"},welfare:{t:"text-emerald-300",d:"bg-emerald-400"}};function c(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=(0,n.c)("solutionsUi.synthEngine"),[t,a]=(0,r.useState)("ltc-42"),[c,y]=(0,r.useState)(8),[u,b]=(0,r.useState)(0),f=Math.min(Math.max(c,3),12),g=(0,r.useMemo)(()=>(function(e,t){var a;let s,r=function(e){let t=0x811c9dc5;for(let a=0;a<e.length;a++)t^=e.charCodeAt(a),t=Math.imul(t,0x1000193);return t>>>0}(e),n=(s=r>>>0,()=>{s|=0;let e=Math.imul((s=s+0x6d2b79f5|0)^s>>>15,1|s);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}),l=e=>e[Math.floor(n()*e.length)],c=[];for(let e=0;e<t;e++){let t=77+Math.floor(15*n()),a=.64>n()?"F":"M",s=3+Math.floor(3*n()),d=[],x=new Set;for(;d.length<s;){let e=l(i);x.has(e.code)||(x.add(e.code),d.push({code:e.code,display:e.display}))}let p=5+Math.floor(7*n()),m=Math.max(0,6-Math.floor(5*n())),h=5+Math.floor(4*n()),y=+(h>=7)+ +(m<=2);c.push({id:"pt-".concat(r%1e5,"-").concat(String(e+1).padStart(3,"0")),age:t,sex:a,conditions:d,meds:p,adl:m,cfs:h,setting:o[Math.min(y,o.length-1)]})}let x=e=>e.reduce((e,t)=>e+t,0)/e.length,p={size:c.length,femalePct:Math.round(c.filter(e=>"F"===e.sex).length/c.length*100),meanAge:Math.round(x(c.map(e=>e.age))),meanMeds:Math.round(x(c.map(e=>e.meds))),medianAdl:(e=>{let t=[...e].sort((e,t)=>e-t);return t[Math.floor(t.length/2)]})(c.map(e=>e.adl))},m=null!=(a=c[Math.floor(n()*c.length)])?a:c[0],h=+(.76+.19*n()).toFixed(2),y=+(.88+.09*n()).toFixed(2),u=5+Math.floor(7*n()),b=+(.03+.05*n()).toFixed(3),f=+(.9+.08*n()).toFixed(2),g=Math.min(1,.8+(u-5)/6*.15),j=Math.min(1,.84+(f-.9)/.08*.12),v=+(.35*h+.25+.2*g+.2*j).toFixed(2),N=v>=d.minComposite&&h>=d.minFairness?"PASS":"HOLD",k={fairness:h,parity:y,provenanceOk:!0,kAnon:u,reidRisk:u>=9?"Low":u>=6?"LowâMed":"Medium",ks:b,corr:f,privacyN:+g.toFixed(2),utilityN:+j.toFixed(2),composite:v,decision:N};return{seedNum:r,cohort:c,stats:p,subject:m,timeline:[{day:0,actor:"case_manager",type:"intake assessment",resource:"Encounter"},{day:3,actor:"provider",type:"vitals \xb7 BP\xb7HR\xb7SpOâ\xb7A1c",resource:"Observation"},{day:7,actor:"case_manager",type:"primary-care follow-up",resource:"Encounter"},{day:12,actor:"patient",type:"fall â care plan",resource:"CarePlan"},{day:18,actor:"welfare",type:"benefit update",resource:"ServiceRequest"},{day:28,actor:"case_manager",type:"care-plan review",resource:"CarePlan"}],score:k}})(t,f),[t,f]),{cohort:j,stats:v,subject:N,timeline:k,score:w}=g,S=j.slice(0,5),C=[e("stepGenerate"),e("stepSimulate"),e("stepJudge"),e("stepPromote")];function K(e){void 0!==e.seed&&a(e.seed),void 0!==e.size&&y(e.size),b(0)}return(0,s.jsxs)("div",{"data-testid":"synth-demo",className:"rounded-xl border border-synaptix-border bg-synaptix-surface p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"font-mono text-xs uppercase tracking-widest accent-text",children:e("heading")}),(0,s.jsx)("p",{className:"mt-2 text-xs text-synaptix-text-secondary",children:e("intro")}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-end gap-3",children:[(0,s.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"font-mono text-[11px] text-synaptix-text-tertiary",children:e("seedLabel")}),(0,s.jsx)("input",{"data-testid":"synth-seed",value:t,onChange:e=>K({seed:e.target.value}),className:"w-40 rounded-lg border border-synaptix-border bg-synaptix-void px-3 py-1.5 font-mono text-sm text-synaptix-text-primary outline-none focus:accent-border"})]}),(0,s.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,s.jsx)("span",{className:"font-mono text-[11px] text-synaptix-text-tertiary",children:e("sizeLabel",{min:3,max:12})}),(0,s.jsx)("input",{"data-testid":"synth-size",type:"number",min:3,max:12,value:c,onChange:e=>K({size:Number(e.target.value)||3}),className:"w-20 rounded-lg border border-synaptix-border bg-synaptix-void px-3 py-1.5 font-mono text-sm text-synaptix-text-primary outline-none focus:accent-border"})]}),(0,s.jsx)("span",{className:"font-mono text-[10px] text-synaptix-text-muted",children:e("reproHint")})]}),(0,s.jsxs)("ol",{"data-testid":"synth-pipeline",className:"relative mt-6 flex items-start justify-between",children:[(0,s.jsx)("span",{"aria-hidden":!0,
1className:"absolute left-[12.5%] right-[12.5%] top-4 h-0.5 -translate-y-1/2 bg-synaptix-border"}),(0,s.jsx)("span",{"aria-hidden":!0,className:"absolute left-[12.5%] top-4 h-0.5 -translate-y-1/2 accent-bg transition-all",style:{width:"".concat(u/3*75,"%")}}),C.map((e,t)=>{let a=t<u?"done":t===u?"active":"todo";return(0,s.jsxs)("li",{className:"relative z-10 flex flex-1 flex-col items-center",children:[(0,s.jsx)("button",{type:"button","data-testid":"synth-step-".concat(t),"aria-current":"active"===a?"step":void 0,onClick:()=>b(t),className:"grid h-8 w-8 place-items-center rounded-full border font-mono text-xs transition-colors ".concat("active"===a?"accent-border accent-bg-soft accent-text":"done"===a?"border-synaptix-border-active bg-synaptix-surface text-synaptix-text-primary":"border-synaptix-border bg-synaptix-surface text-synaptix-text-tertiary hover:border-synaptix-border-active"),children:"done"===a?"â":t+1}),(0,s.jsx)("span",{className:"mt-2 text-center font-mono text-[11px] ".concat("active"===a?"accent-text":"text-synaptix-text-tertiary"),children:e})]},e)})]}),(0,s.jsxs)("div",{className:"mt-5 min-h-[300px] rounded-xl border border-synaptix-border bg-synaptix-void p-4 sm:p-5",children:[0===u&&(0,s.jsxs)("section",{"data-testid":"synth-generate",children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-bold uppercase tracking-wider accent-text",children:e("genTitle")}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap gap-x-5 gap-y-1 font-mono text-[11px] text-synaptix-text-secondary",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{className:"text-synaptix-text-primary",children:v.size})," ",e("statSize")]}),(0,s.jsxs)("span",{children:[(0,s.jsxs)("b",{className:"text-synaptix-text-primary",children:[v.femalePct,"%"]})," ",e("statFemale")]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{className:"text-synaptix-text-primary",children:v.meanAge})," ",e("statAge")]}),(0,s.jsxs)("span",{children:[(0,s.jsx)("b",{className:"text-synaptix-text-primary",children:v.meanMeds})," ",e("statMeds")]}),(0,s.jsxs)("span",{children:[(0,s.jsxs)("b",{className:"text-synaptix-text-primary",children:[v.medianAdl,"/6"]})," ",e("statAdl")]})]}),(0,s.jsxs)("div",{className:"mt-3 overflow-x-auto",children:[(0,s.jsxs)("table",{"data-testid":"synth-cohort
1-table",className:"w-full border-collapse text-left font-mono text-[11px]",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"text-synaptix-text-tertiary",children:[(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e("colId")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e("colAge")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e("colSex")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e("colConditions")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e("colMeds")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e("colAdl")}),(0,s.jsx)("th",{className:"border-b border-synaptix-border py-1.5",children:e("colFrailty")})]})}),(0,s.jsx)("tbody",{children:S.map(e=>(0,s.jsxs)("tr",{"data-testid":"synth-patient-row",className:"text-synaptix-text-secondary",children:[(0,s.jsx)("td",{className:"border-b border-synaptix-border py-1.5 pr-3 accent-text whitespace-nowrap",children:e.id}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e.age}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e.sex}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e.conditions.map(e=>e.code).join(" \xb7 ")}),(0,s.jsx)("td",{className:"border-b border-synaptix-border py-1.5 pr-3",children:e.meds}),(0,s.jsxs)("td",{className:"border-b border-synaptix-border py-1.5 pr-3",children:[e.adl,"/6"]}),(0,s.jsxs)("td",{className:"border-b border-synaptix-border py-1.5",children:[e.cfs,"/9"]})]},e.id))})]}),j.length>5&&(0,s.jsx)("p",{className:"mt-2 font-mono text-[10px] text-synaptix-text-muted",children:e("sampleNote",{shown:5,total:j.length})})]})]}),1===u&&(0,s.jsxs)("section",{"data-testid":"synth-simulate",children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-bold uppercase tracking-wider accent-text",children:e("simTitle")}),(0,s.jsx)("p",{className:"mt-1 font-mono text-[11px] text-synaptix-text-tertiary",children:e("simSubject",{id:N.id})}),(0,s.jsxs)("div",{"data-testid":"synth-sim-timeline",className:"relative mt-5 flex justify-between",children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"absolute left-[6%] right-[6%] top-[22px] h-0.5 bg-synaptix-border"}),k.map((t,a)=>(0,s.jsxs)("div",{"data-testid":"synth-sim-event",className:"relative z-10 flex flex-1 flex-col items-center px-0.5 text-center",children:[(0,s.jsx)("span",{className:"h-4 font-mono text-[10px] leading-4 text-synaptix-text-tertiary",children:e("dayShort",{n:t.day})}),(0,s.jsx)("span",{className:"my-1 h-3 w-3 rounded-full ring-2 ring-synaptix-void ".concat(l[t.actor].d)}),(0,s.jsx)("span",{className:"font-mono text-[10px] leading-tight ".concat(l[t.actor].t),children:t.actor}),(0,s.jsx)("span",{className:"mt-0.5 text-[10px] leading-tight text-synaptix-text-secondary",children:t.type}),(0,s.jsx)("span",{className:"mt-1 rounded border border-synaptix-border px-1.5 py-0.5 font-mono text-[9px] text-synaptix-text-tertiary",children:t.resource})]},a))]}),(0,s.jsx)("p",{className:"mt-4 font-mono text-[10px] text-synaptix-text-muted",children:e("simNote")})]}),2===u&&(0,s.jsxs)("section",{"data-testid":"synth-judge",children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-bold uppercase tracking-wider accent-text",children:e("judgeTitle")}),(0,s.jsxs)("div",{className:"mt-3 grid gap-2 sm:grid-cols-2",children:[(0,s.jsx)(x,{label:e("dimFairness"),value:"".concat(w.fairness.toFixed(2)," \xb7 parity ").concat(w.parity.toFixed(2)),ok:w.fairness>=d.minFairness}),(0,s.jsx)(x,{label:e("dimProvenance"),value:w.provenanceOk?e("lineageOk"):e("lineageFail"),ok:w.provenanceOk}),(0,s.jsx)(x,{label:e("dimPrivacy"),value:"kâ¥".concat(w.kAnon," \xb7 re-id ").concat(w.reidRisk),ok:w.kAnon>=5}),(0,s.jsx)(x,{label:e("dimUtility"),value:"KS ".concat(w.ks.toFixed(3)," \xb7 corr ").concat(w.corr.toFixed(2)),ok:w.ks<.1})]}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-4 border-t border-synaptix-border pt-3 font-mono text-xs",children:[(0,s.jsxs)("span",{className:"text-synaptix-text-tertiary",children:[e("composite"),": ",(0,s.jsx)("b",{className:"text-synaptix-text-primary",children:w.
1composite.toFixed(2)}),(0,s.jsxs)("span",{className:"text-synaptix-text-muted",children:[" / min ",d.minComposite]})]}),(0,s.jsxs)("span",{"data-testid":"synth-judge-decision","data-decision":w.decision,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1 font-bold ".concat("PASS"===w.decision?"bg-emerald-500/15 text-emerald-300":"bg-amber-500/15 text-amber-300"),children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-current"}),e("decision"),": ",w.decision]})]}),(0,s.jsx)("p",{className:"mt-3 font-mono text-[10px] text-synaptix-text-muted",children:e("judgeNote")})]}),3===u&&(0,s.jsxs)("section",{"data-testid":"synth-promote",children:[(0,s.jsx)("h3",{className:"font-mono text-xs font-bold uppercase tracking-wider accent-text",children:e("promoteTitle")}),(0,s.jsxs)("div",{"data-testid":"synth-medallion",className:"mt-3 flex items-stretch gap-2",children:[(0,s.jsx)(p,{name:"Bronze",desc:e("tierBronzeDesc"),state:"from"}),(0,s.jsx)(m,{ok:"PASS"===w.decision}),(0,s.jsx)(p,{name:"Silver",desc:e("tierSilverDesc"),state:"PASS"===w.decision?"active":"target"}),(0,s.jsx)(m,{ok:!1}),(0,s.jsx)(p,{name:"Gold",desc:e("tierGoldDesc"),state:"locked"})]}),(0,s.jsxs)("div",{className:"mt-4 rounded-lg border border-synaptix-border bg-synaptix-surface p-4",children:[(0,s.jsx)("p",{className:"font-mono text-[10px] uppercase tracking-widest text-synaptix-text-tertiary",children:e("gateTitle")}),(0,s.jsxs)("ul",{className:"mt-2 space-y-1 font-mono text-[11px]",children:[(0,s.jsx)(h,{ok:w.composite>=d.minComposite,label:"composite ⥠".concat(d.minComposite),got:w.composite.toFixed(2)}),(0,s.jsx)(h,{ok:w.fairness>=d.minFairness,label:"fairness ⥠".concat(d.minFairness),got:w.fairness.toFixed(2)}),(0,s.jsx)(h,{ok:w.provenanceOk,label:"provenance ok",got:w.provenanceOk?"true":"false"})]}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3 border-t border-synaptix-border pt-3 font-mono text-xs",children:[(0,s.jsx)("span",{"data-testid":"synth-promote-decision","data-decision":w.decision,className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1 font-bold ".concat("PASS"===w.decision?"bg-emerald-500/15 text-emerald-300":"bg-amber-500/15 text-amber-300"),children:"PASS"===w.decision?e("promotedTo",{tier:"Silver"}):e("heldAtBronze")}),(0,s.jsxs)("span",{className:"font-mono text-[10px] text-synaptix-text-muted",children:["sig ","mock-".concat((g.seedNum%0xffffff).toString(16).padStart(6,"0"))]})]})]})]})]}),(0,s.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-3",children:[(0,s.jsx)("button",{type:"button","data-testid":"synth-prev-btn",onClick:()=>b(e=>Math.max(e-1,0)),disabled:0===u,className:"rounded-lg border border-synaptix-border px-4 py-2 font-mono text-sm text-synaptix-text-secondary transition-colors hover:border-synaptix-border-active disabled:cursor-not-allowed disabled:opacity-40",children:e("prev")}),u<3?(0,s.jsx)("button",{type:"button","data-testid":"synth-run-btn",onClick:()=>b(e=>Math.min(e+1,3)),className:"rounded-lg bg-gradient-to-r from-orange-500 to-amber-400 px-5 py-2 font-mono text-sm font-semibold text-synaptix-void transition-opacity hover:opacity-90",children:e("nextStage",{stage:C[u+1]})}):(0,s.jsx)("button",{type:"button","data-testid":"synth-reset-btn",onClick:()=>b(0),className:"rounded-lg border border-synaptix-border px-5 py-2 font-mono text-sm font-semibold text-synaptix-text-primary transition-colors hover:border-synaptix-border-active",children:e("reset")})]}),(0,s.jsx)("p",{className:"mt-5 border-t border-synaptix-border pt-4 text-xs text-synaptix-text-muted",children:e("note")})]})}function x(e){let{label:t,value:a,ok:r}=e;return(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-synaptix-border bg-synaptix-surface px-3 py-2 font-mono text-[11px]",children:[(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"h-1.5 w-1.5 rounded-full ".concat(r?"bg-emerald-400":"bg-amber-400")}),(0,s.jsx)("span",{className:"text-synaptix-text-tertiary",children:t})]}),(0,s.jsx)("span",{className:"text-synaptix-text-secondary",children:a})]})}function p(e){let{name:t,desc:a,state:r}=e;return(0,s.jsxs)("div",{className:"flex-1 rounded-lg border px-3 py-2.5 text-center ".concat("active"===r?"accent-border accent-bg-soft accent-text":"from"===r?"border-synaptix-border-active text-synaptix-text-primary":"border-synaptix-border text-synaptix-text-tertiary"),children:[(0,s.jsx)("div",{className:"font-mono text-xs font-bold",children:t}),(0,s.jsx)("div",{className:"mt-0.5 font-mono text-[9px] uppercase tracking-wide opacity-80",children:a})]})}function m(e){let{ok:t}=e;
1return(0,s.jsx)("span",{"aria-hidden":!0,className:"flex items-center font-mono text-sm ".concat(t?"accent-text":"text-synaptix-text-tertiary"),children:"â"})}function h(e){let{ok:t,label:a,got:r}=e;return(0,s.jsxs)("li",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:t?"text-emerald-400":"text-amber-400",children:t?"â":"â"}),(0,s.jsx)("span",{className:"text-synaptix-text-secondary",children:a}),(0,s.jsxs)("span",{className:"text-synaptix-text-muted",children:["â got ",r]})]})}},6287:(e,t,a)=>{a.d(t,{BudoaiDemo:()=>d});var s=a(5155),r=a(2115),n=a(8955),i=a(296);let o="N3KSQQ--LB0";function d(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=(0,n.c)("content.solutions.budoai"),[t,a]=(0,r.useState)("studio"),d=e=>"rounded-lg px-3.5 py-1.5 font-mono text-[11px] tracking-wide transition-colors ".concat(e?"bg-[#C73E1D] text-white":"border border-white/10 text-white/55 hover:text-white/85");return(0,s.jsxs)("div",{className:"not-prose",children:[(0,s.jsxs)("div",{role:"tablist","aria-label":"BudÅ AI canvas",className:"mb-2 flex items-center justify-center gap-1.5",children:[(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":"studio"===t,onClick:()=>a("studio"),className:d("studio"===t),children:"â 3D Studio"}),(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":"video"===t,onClick:()=>a("video"),className:d("video"===t),children:"â¶ Source video"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(i.InteractiveFigure,{src:"/figures/budoai.html",title:e("viewerLabel"),aspect:"940 / 860",testId:"budoai-demo"}),"video"===t&&(0,s.jsx)("div",{className:"absolute inset-0 z-10 overflow-hidden rounded-2xl bg-black",children:(0,s.jsx)("iframe",{title:"Source kata video â JKA Heian Shodan demonstration",src:"https://www.youtube-nocookie.com/embed/".concat(o,"?rel=0&autoplay=1&modestbranding=1"),loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin",allow:"autoplay; accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",height:"100%",width:"auto",minWidth:"100%",aspectRatio:"16 / 9",border:0}})})]}),(0,s.jsxs)("p",{className:"mt-1.5 text-center font-mono text-[11px] text-synaptix-text-tertiary",children:["Source \xb7 JKA Heian Shodan kata \xb7"," ",(0,s.jsxs)("a",{href:"https://www.youtube.com/watch?v=".concat(o),target:"_blank",rel:"noopener noreferrer",className:"text-synaptix-accent-warm transition-colors hover:text-synaptix-accent-core",children:["youtube.com/watch?v=",o," â"]})]})]})}},6587:(e,t,a)=>{a.d(t,{SectorSimDemo:()=>n});var s=a(5155),r=a(296);function n(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],(0,s.jsx)("div",{"data-testid":"sector-demo",className:"not-prose",children:(0,s.jsx)(r.InteractiveFigure,{src:"/figures/sector001.html",title:"Sector 001 â playable skirmish: U.S.S. Enterprise-E vs a Borg Cube",aspect:"920 / 600",testId:"sector-figure"})})}},9071:(e,t,a)=>{a.d(t,{HappySeniorsDemo:()=>n});var s=a(5155),r=a(296);function n(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],(0,s.jsx)("div",{"data-testid":"happyseniors-demo",className:"not-prose",children:(0,s.jsx)(r.InteractiveFigure,{src:"/figures/happyseniors.html",title:"HappySeniors â the AI-operated senior-care platform: Home (Ask Seniora + 3 paths), Find care (caregiver matching), and the AI-matched Job board, with the real brand logo + Irit-approved introductions",aspect:"940 / 820",testId:"happyseniors-figure"})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.