Spaces:
Running
Running
Daniel Finn Claude Opus 4.5 commited on
Commit ·
2d338df
1
Parent(s): aaa0259
refactor: use simple procedural cat based on archived version
Browse files- Remove GLTF model loading attempt (file was corrupted HTML)
- Use sphere-based procedural cat matching archived fallback
- Cleaner, simpler code without error handling complexity
- Smaller bundle size (no drei/useGLTF dependency)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- assets/ByrdCatVisualization-Do3WXLxd.js +1 -0
- assets/ByrdChatPage-CfyXzCCp.js +2 -0
- assets/DashboardPage-BdCpMc3j.js +9 -0
- assets/EconomicPage-D87arnWS.js +1 -0
- assets/EmergenceStream-BcW_H5Hc.js +1 -0
- assets/MemoryPage-B6BMX3fU.js +1 -0
- assets/MorePage-DqyS6nPf.js +1 -0
- assets/RSIPage-BmMX6ON-.js +11 -0
- assets/charts-Bs1mVvBm.js +0 -0
- assets/circle-alert-Ctr4-rcR.js +1 -0
- assets/index-CU2OCghA.js +4 -0
- assets/three-CpAcHy_P.js +0 -0
- index.html +3 -3
assets/ByrdCatVisualization-Do3WXLxd.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,C as y,a as i,O as b,u as d,e as S}from"./three-CpAcHy_P.js";const x={idle:"#64748b",reflect:"#8b5cf6",verify:"#6366f1",collapse:"#ec4899",route:"#f59e0b",practice:"#10b981",record:"#3b82f6",crystallize:"#06b6d4",measure:"#84cc16"},v=(s,r)=>s==="stopped"||s==="idle"?.4:r==="collapse"?1.2:s==="running"?.8:.6;function R({rsiPhase:s,systemState:r}){const t=i.useRef(null),o=i.useRef(null),n=i.useRef(null),a=x[s]||x.idle,c=v(r,s);return d(l=>{if(!t.current)return;const u=l.clock.getElapsedTime(),j=r==="dreaming"?.3:.5,m=r==="dreaming"?.02:.015,p=Math.sin(u*j*Math.PI*2);t.current.scale.y=1+p*m,t.current.scale.x=1+p*m*.3;const f=u*.3;t.current.rotation.y=Math.sin(f)*.02,t.current.rotation.z=Math.sin(f*.7)*.008;const g=c+Math.sin(u*.5)*.2;[o.current,n.current].forEach(h=>{if(h&&h.material){const M=h.material;M.emissiveIntensity=g}})}),e.jsxs("group",{ref:t,position:[0,1,0],children:[e.jsxs("mesh",{scale:[1.2,.8,1.5],position:[0,.4,0],castShadow:!0,receiveShadow:!0,children:[e.jsx("sphereGeometry",{args:[.5,32,32]}),e.jsx("meshStandardMaterial",{color:"#0a0a0a",roughness:.85,metalness:.05})]}),e.jsxs("mesh",{position:[0,.7,.5],castShadow:!0,receiveShadow:!0,children:[e.jsx("sphereGeometry",{args:[.3,32,32]}),e.jsx("meshStandardMaterial",{color:"#0a0a0a",roughness:.85,metalness:.05})]}),e.jsxs("mesh",{ref:o,position:[-.1,.75,.75],castShadow:!0,children:[e.jsx("sphereGeometry",{args:[.06,16,16]}),e.jsx("meshStandardMaterial",{color:a,emissive:a,emissiveIntensity:.6,roughness:.2,metalness:.3})]}),e.jsxs("mesh",{ref:n,position:[.1,.75,.75],castShadow:!0,children:[e.jsx("sphereGeometry",{args:[.06,16,16]}),e.jsx("meshStandardMaterial",{color:a,emissive:a,emissiveIntensity:.6,roughness:.2,metalness:.3})]}),e.jsxs("mesh",{position:[-.12,.95,.45],rotation:[.3,0,-.2],castShadow:!0,children:[e.jsx("coneGeometry",{args:[.08,.2,4]}),e.jsx("meshStandardMaterial",{color:"#0a0a0a",roughness:.85})]}),e.jsxs("mesh",{position:[.12,.95,.45],rotation:[.3,0,.2],castShadow:!0,children:[e.jsx("coneGeometry",{args:[.08,.2,4]}),e.jsx("meshStandardMaterial",{color:"#0a0a0a",roughness:.85})]})]})}function w({active:s}){const r=i.useRef(null);return d(t=>{!r.current||!s||(r.current.rotation.y=t.clock.getElapsedTime()*.3,r.current.rotation.x=Math.sin(t.clock.getElapsedTime()*.2)*.1)}),s?e.jsx("group",{ref:r,children:[0,1,2].map(t=>e.jsxs("mesh",{rotation:[Math.PI/2+t*.3,0,t*(Math.PI/3)],children:[e.jsx("torusGeometry",{args:[2.5+t*.3,.01,16,64]}),e.jsx("meshBasicMaterial",{color:"#00ffff",transparent:!0,opacity:.3-t*.08})]},t))}):null}function E(){const s=i.useRef(null),r=i.useMemo(()=>{const o=new Float32Array(600);for(let n=0;n<200;n++){const a=3+Math.random()*15,c=Math.random()*Math.PI*2,l=Math.acos(2*Math.random()-1);o[n*3]=a*Math.sin(l)*Math.cos(c),o[n*3+1]=a*Math.sin(l)*Math.sin(c),o[n*3+2]=a*Math.cos(l)}return o},[]);return d(t=>{s.current&&(s.current.rotation.y=t.clock.getElapsedTime()*.01)}),e.jsxs("points",{ref:s,children:[e.jsx("bufferGeometry",{children:e.jsx("bufferAttribute",{attach:"attributes-position",args:[r,3]})}),e.jsx("pointsMaterial",{size:.015,color:"#94a3b8",transparent:!0,opacity:.15,sizeAttenuation:!0})]})}function P(){const{camera:s}=S();return i.useEffect(()=>{s.position.set(0,4,10),s.lookAt(0,1.5,0)},[s]),null}function G({rsiPhase:s="idle",systemState:r="stopped",showScanners:t=!0,showParticles:o=!0,className:n="",compact:a=!1}){const c=r==="running"||r==="dreaming";return e.jsxs("div",{className:`relative ${n}`,children:[e.jsxs(y,{shadows:!0,camera:{position:a?[0,3,8]:[0,4,10],fov:45},style:{background:"transparent"},children:[e.jsx("ambientLight",{intensity:.7}),e.jsx("directionalLight",{position:[5,10,5],intensity:1,castShadow:!0,"shadow-mapSize":[2048,2048]}),e.jsx("directionalLight",{position:[-5,5,-5],intensity:.5}),e.jsx("directionalLight",{position:[0,3,-8],intensity:.3}),e.jsxs(i.Suspense,{fallback:null,children:[e.jsx(R,{rsiPhase:s,systemState:r}),t&&e.jsx(w,{active:c}),o&&e.jsx(E,{})]}),e.jsx(P,{}),e.jsx(b,{enableDamping:!0,dampingFactor:.05,minDistance:1.5,maxDistance:15,target:[0,1.5,0],autoRotate:!0,autoRotateSpeed:.5,enablePan:!1})]}),e.jsx("div",{className:"absolute inset-0 pointer-events-none obs-vignette"})]})}export{G as ByrdCatVisualization,G as default};
|
assets/ByrdChatPage-CfyXzCCp.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ByrdCatVisualization-Do3WXLxd.js","assets/three-CpAcHy_P.js"])))=>i.map(i=>d[i]);
|
| 2 |
+
import{a as l,j as e,c as S,_ as I}from"./three-CpAcHy_P.js";import{c as u,u as j,a as p,b as k,A as R,S as _,d as C}from"./index-CU2OCghA.js";import{C as M}from"./circle-alert-Ctr4-rcR.js";import"./charts-Bs1mVvBm.js";const E=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],D=u("bot",E);const T=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],A=u("chevron-down",T);const $=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],B=u("chevron-up",$);const P=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],O=u("send",P);const L=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],U=u("user",L);function Y(){const[s,t]=l.useState(!0),{getRSIStatus:n,getRalphLoopStatus:i}=j(),[a,c]=l.useState(null),[o,d]=l.useState(0),[r,N]=l.useState(0),[b]=l.useState(0);l.useEffect(()=>{const g=async()=>{try{const x=await n();x&&(c(x.current_phase||null),d(x.completed_phases?.length||0));const y=await i();y&&N(y.last_emergence?.confidence||0)}catch(x){console.error("Status fetch failed:",x)}};g();const w=setInterval(g,5e3);return()=>clearInterval(w)},[n,i]);const h=a?`var(--rsi-${a})`:"var(--obs-text-tertiary)";return e.jsxs("div",{className:"px-4 py-2 bg-[var(--obs-bg-elevated)] border-b border-[var(--obs-border)]",children:[!s&&e.jsxs("button",{onClick:()=>t(!0),className:"w-full flex items-center justify-between text-sm",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-2 h-2 rounded-full animate-status-beacon",style:{backgroundColor:a?h:"var(--obs-text-tertiary)"}}),e.jsx("span",{className:"obs-label text-[11px] text-[var(--obs-text-secondary)]",children:a?`PHASE: ${a.toUpperCase()}`:"STANDBY"})]}),e.jsx(A,{className:"w-4 h-4 text-[var(--obs-text-tertiary)]"})]}),s&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"w-2 h-2 rounded-full animate-status-beacon",style:{backgroundColor:a?h:"var(--obs-text-tertiary)"}}),e.jsxs("div",{children:[e.jsxs("p",{className:"obs-label text-[11px] text-[var(--obs-text-primary)]",children:["RSI CYCLE #",o]}),e.jsx("p",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:a?e.jsxs(e.Fragment,{children:["Phase:"," ",e.jsx("span",{style:{color:h},children:a.toUpperCase()})]}):"Awaiting cycle start"})]})]}),e.jsx("button",{onClick:()=>t(!1),className:"p-1 hover:bg-[var(--obs-bg-surface)] rounded transition-colors",children:e.jsx(B,{className:"w-4 h-4 text-[var(--obs-text-tertiary)]"})})]}),e.jsxs("div",{className:"flex gap-6 text-[10px]",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"obs-label text-[var(--obs-text-tertiary)]",children:"EMERGENCE:"}),e.jsxs("span",{className:"obs-metric",style:{color:"var(--cat-eye-gold)"},children:[(r*100).toFixed(1),"%"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"obs-label text-[var(--obs-text-tertiary)]",children:"TREASURY:"}),e.jsxs("span",{className:"obs-metric",style:{color:"var(--status-nominal)"},children:["$",b>1e3?`${(b/1e3).toFixed(1)}K`:b.toFixed(0)]})]})]}),e.jsx("div",{className:"h-1 bg-[var(--obs-bg-surface)] rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${r*100}%`,background:"linear-gradient(90deg, var(--data-stream), var(--cat-eye-gold))"}})})]})]})}const v=S(s=>({byrdState:null,messages:[],animationState:"idle",isTyping:!1,setByrdState:t=>s({byrdState:t}),setAnimationState:t=>s({animationState:t}),addMessage:t=>s(n=>({messages:[...n.messages,t]})),clearMessages:()=>s({messages:[]}),setTyping:t=>s({isTyping:t})}));function z(s){const t=new Date(s),i=new Date().getTime()-t.getTime(),a=Math.floor(i/1e3),c=Math.floor(a/60),o=Math.floor(c/60),d=Math.floor(o/24);return a<60?"just now":c<60?`${c}m ago`:o<24?`${o}h ago`:d<7?`${d}d ago`:t.toLocaleDateString()}function F({message:s}){const t=s.type==="user";return s.type==="system"?e.jsx("div",{className:"flex justify-center animate-fade-in",children:e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 observatory-panel rounded-full",children:[e.jsx(M,{className:"w-4 h-4 text-[var(--status-caution)]"}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--status-caution)]",children:s.content})]})}):e.jsx("div",{className:m("flex",t?"justify-end":"justify-start","animate-slide-up"),children:e.jsxs("div",{className:m("flex gap-3 max-w-[85%]",t?"flex-row-reverse":"flex-row"),children:[e.jsx("div",{className:m("flex-shrink-0 w-8 h-8 rounded flex items-center justify-center",t?"bg-[var(--data-stream)] text-[var(--obs-bg-base)]":"observatory-panel text-[var(--cat-eye-gold)]"),children:t?e.jsx(U,{className:"w-4 h-4"}):e.jsx(D,{className:"w-4 h-4"})}),e.jsxs("div",{className:m("flex flex-col",t?"items-end":"items-start"),children:[e.jsx("span",{className:"obs-label text-[8px] text-[var(--obs-text-tertiary)] mb-1 px-1",children:t?"OPERATOR":"BYRD"}),e.jsx("div",{className:m("px-4 py-3 rounded text-sm leading-relaxed",t?"bg-[var(--data-stream)] text-[var(--obs-bg-base)]":"observatory-panel text-[var(--obs-text-primary)]"),children:s.content}),e.jsx("span",{className:"obs-label text-[8px] text-[var(--obs-text-tertiary)] mt-1 px-1",children:z(s.timestamp)})]})]})})}function m(...s){return s.filter(Boolean).join(" ")}function H(){return e.jsx("div",{className:"flex justify-start animate-slide-up",children:e.jsxs("div",{className:"flex gap-3 max-w-[85%]",children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-purple-600 dark:bg-purple-500 flex items-center justify-center",children:e.jsx("span",{className:"text-sm",children:"🐦"})}),e.jsx("div",{className:"bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 px-4 py-3 rounded-2xl rounded-bl-sm",children:e.jsx("div",{className:"flex gap-1.5",children:[0,1,2].map(s=>e.jsx("span",{className:"w-2 h-2 bg-slate-400 dark:bg-slate-500 rounded-full animate-pulse",style:{animationDelay:`${s*.15}s`,animationDuration:"0.8s"}},s))})})]})})}function G(){const{messages:s,isTyping:t}=v(),n=l.useRef(null),i=l.useRef(s.length);return l.useEffect(()=>{s.length>i.current&&n.current?.scrollTo({top:n.current.scrollHeight,behavior:"smooth"}),i.current=s.length},[s.length]),e.jsxs("div",{ref:n,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4 scrollbar-thin",children:[s.length===0&&e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center space-y-4",children:[e.jsx("div",{className:"w-16 h-16 observatory-panel rounded-full flex items-center justify-center",children:e.jsx("span",{className:"text-3xl animate-eye-glow",style:{textShadow:"0 0 20px var(--cat-eye-gold)"},children:"🐱"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"obs-label text-sm text-[var(--obs-text-primary)]",children:"COMMUNICATION TERMINAL"}),e.jsxs("p",{className:"text-xs text-[var(--obs-text-tertiary)] max-w-xs",children:["Direct interface to BYRD's consciousness.",e.jsx("br",{}),"Ask about RSI cycles, set priorities, or inject new desires."]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2 justify-center max-w-sm",children:[e.jsx(f,{text:"What's your current state?"}),e.jsx(f,{text:"Show emergence metrics"}),e.jsx(f,{text:"Start RSI cycle"})]})]}),s.map(a=>e.jsx(F,{message:a},a.id)),t&&e.jsx(H,{})]})}function f({text:s}){const{addMessage:t}=v(),n=()=>{t({id:`msg_${Date.now()}`,type:"user",content:s,timestamp:new Date().toISOString()})};return e.jsx("button",{onClick:n,className:"obs-label text-[9px] px-3 py-1.5 rounded bg-[var(--obs-bg-elevated)] text-[var(--obs-text-secondary)] border border-[var(--obs-border)] hover:border-[var(--data-stream)] hover:text-[var(--data-stream)] transition-colors",children:s})}function V(){const[s,t]=l.useState(""),[n,i]=l.useState(!1),a=l.useRef(null),{addMessage:c,isTyping:o}=v();l.useEffect(()=>{const r=a.current;r&&(r.style.height="auto",r.style.height=`${Math.min(r.scrollHeight,200)}px`)},[s]);const d=async r=>{r.preventDefault(),!(!s.trim()||o)&&(c({id:`msg_${Date.now()}`,type:"user",content:s.trim(),timestamp:new Date().toISOString()}),t(""),setTimeout(()=>{c({id:`msg_${Date.now()}_response`,type:"byrd",content:"I received your message. Processing...",timestamp:new Date().toISOString()})},1e3))};return e.jsxs("form",{onSubmit:d,className:p("flex-shrink-0 bg-[var(--obs-bg-base)] border-t border-[var(--obs-border)] p-4",n&&"shadow-[0_-4px_20px_rgba(0,255,255,0.1)]"),children:[e.jsxs("div",{className:"flex items-end gap-3 max-w-4xl mx-auto",children:[e.jsx("div",{className:"flex-1 relative",children:e.jsx("textarea",{ref:a,value:s,onChange:r=>t(r.target.value),onFocus:()=>i(!0),onBlur:()=>i(!1),onKeyDown:r=>{r.key==="Enter"&&!r.shiftKey&&(r.preventDefault(),d(r))},placeholder:"Transmit to BYRD...",rows:1,className:p("w-full px-4 py-3 rounded resize-none","bg-[var(--obs-bg-surface)]","border border-[var(--obs-border)]","focus:bg-[var(--obs-bg-elevated)]","focus:border-[var(--data-stream)] focus:ring-1 focus:ring-[var(--data-stream)]/20","text-[var(--obs-text-primary)] placeholder-[var(--obs-text-tertiary)]","transition-all duration-200","max-h-48 overflow-y-auto","text-sm font-mono"),disabled:o})}),e.jsx("button",{type:"submit",disabled:!s.trim()||o,className:p("p-3 rounded transition-all duration-200","bg-[var(--data-stream)] hover:bg-[var(--data-stream-hover)] text-[var(--obs-bg-base)]","disabled:bg-[var(--obs-bg-elevated)] disabled:text-[var(--obs-text-tertiary)] disabled:cursor-not-allowed","active:scale-95","shadow-[0_0_12px_rgba(0,255,255,0.3)]","disabled:shadow-none"),"aria-label":"Send message",children:e.jsx(O,{className:"w-5 h-5"})})]}),e.jsx("div",{className:"flex justify-center mt-2",children:e.jsx("span",{className:"obs-label text-[8px] text-[var(--obs-text-tertiary)]",children:o?"RECEIVING TRANSMISSION...":"READY TO TRANSMIT"})})]})}const K=l.lazy(()=>I(()=>import("./ByrdCatVisualization-Do3WXLxd.js"),__vite__mapDeps([0,1])));function Q(){const s=k(),{getRSIStatus:t}=j(),[n,i]=l.useState("idle"),[a,c]=l.useState(!1);return l.useEffect(()=>{const o=async()=>{const r=await t();r&&(i(r.current_phase||"idle"),c(!!r.current_phase))};o();const d=setInterval(o,3e3);return()=>clearInterval(d)},[t]),e.jsxs("div",{className:"flex flex-col h-screen bg-[var(--obs-bg-base)]",children:[e.jsx("header",{className:"flex-shrink-0 bg-[var(--obs-bg-surface)] border-b border-[var(--obs-border)] px-4 py-3",children:e.jsxs("div",{className:"flex items-center justify-between max-w-4xl mx-auto",children:[e.jsx("button",{onClick:()=>s(-1),className:"p-2 -ml-2 hover:bg-[var(--obs-bg-elevated)] rounded transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)]","aria-label":"Go back",children:e.jsx(R,{className:"w-5 h-5 text-[var(--obs-text-secondary)]"})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"BYRD TERMINAL"}),e.jsx(_,{status:a?"nominal":"inactive",size:"sm"})]}),e.jsx("button",{onClick:()=>s("/more"),className:"p-2 -mr-2 hover:bg-[var(--obs-bg-elevated)] rounded transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)]","aria-label":"Settings",children:e.jsx(C,{className:"w-5 h-5 text-[var(--obs-text-secondary)]"})})]})}),e.jsxs("div",{className:"flex-shrink-0 h-[35vh] min-h-[240px] max-h-[400px] relative border-b border-[var(--obs-border)]",children:[e.jsx(l.Suspense,{fallback:e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-[var(--obs-bg-surface)]",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 border-2 border-[var(--data-stream)] border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)]",children:"INITIALIZING CONSCIOUSNESS"})]})}),children:e.jsx(K,{rsiPhase:n,systemState:a?"running":"stopped",showScanners:a,showParticles:!0,compact:!0,className:"w-full h-full"})}),e.jsx("div",{className:"absolute bottom-3 left-3",children:e.jsxs("div",{className:"observatory-panel px-3 py-2",children:[e.jsx("div",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)] mb-0.5",children:"RSI PHASE"}),e.jsx("div",{className:"obs-label text-xs uppercase",style:{color:`var(--rsi-${n}, var(--obs-text-tertiary))`},children:n})]})}),e.jsx("div",{className:"absolute inset-0 pointer-events-none obs-vignette"})]}),e.jsx(Y,{}),e.jsx("div",{className:"flex-1 min-h-0 bg-[var(--obs-bg-surface)]",children:e.jsx(G,{})}),e.jsx(V,{})]})}export{Q as ByrdChatPage,Q as default};
|
assets/DashboardPage-BdCpMc3j.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ByrdCatVisualization-Do3WXLxd.js","assets/three-CpAcHy_P.js"])))=>i.map(i=>d[i]);
|
| 2 |
+
import{a as n,j as e,c as v,_ as f}from"./three-CpAcHy_P.js";import{u as x,O as b,S,M as y}from"./index-CU2OCghA.js";import{E as j}from"./EmergenceStream-BcW_H5Hc.js";import"./charts-Bs1mVvBm.js";function g(){const{getRSIStatus:s}=x(),[t,i]=n.useState({cycles:0,beliefs:0,desires:0,capabilities:0,experiences:0,reflections:0}),[r,c]=n.useState("inactive");return n.useEffect(()=>{const a=async()=>{try{const o=await s();if(o){const l=o.completed_phases?.length||0;i({cycles:l,beliefs:l>0?Math.floor(l*1.5):0,desires:l>0?Math.floor(l*.8):0,capabilities:l>0?Math.floor(l*.3):0,experiences:l>0?l*2:0,reflections:l}),c(o.current_phase?"nominal":"inactive")}}catch(o){console.error("Telemetry fetch failed:",o),c("caution")}};a();const d=setInterval(a,5e3);return()=>clearInterval(d)},[s]),e.jsxs(b,{title:"SYSTEM TELEMETRY",status:r,padding:"md",children:[e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-4",children:[e.jsx(m,{label:"CYCLES",value:t.cycles}),e.jsx(m,{label:"BELIEFS",value:t.beliefs}),e.jsx(m,{label:"DESIRES",value:t.desires}),e.jsx(m,{label:"CAPABILITIES",value:t.capabilities}),e.jsx(m,{label:"EXPERIENCES",value:t.experiences}),e.jsx(m,{label:"REFLECTIONS",value:t.reflections})]}),e.jsx("div",{className:"mt-4 overflow-hidden",children:e.jsx("div",{className:"data-stream-bar w-full"})})]})}function m({label:s,value:t,unit:i}){return e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"obs-label text-[10px] mb-1 text-[var(--obs-text-tertiary)]",children:s}),e.jsxs("div",{className:"obs-metric text-xl lg:text-2xl text-[var(--data-stream)] animate-metric-pulse",children:[t.toLocaleString(),i&&e.jsx("span",{className:"text-sm ml-1",children:i})]})]})}function N({className:s=""}){const[t,i]=n.useState(new Date);n.useEffect(()=>{const a=setInterval(()=>{i(new Date)},1e3);return()=>clearInterval(a)},[]);const r=a=>a.toISOString().slice(11,19),c=a=>a.toISOString().slice(0,10);return e.jsxs("div",{className:`flex items-center gap-3 ${s}`,children:[e.jsx("div",{className:"obs-metric text-lg text-[var(--data-stream)] animate-metric-pulse",children:r(t)}),e.jsx("div",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"UTC"}),e.jsx("div",{className:"obs-label text-[10px] text-[var(--obs-text-secondary)]",children:c(t)})]})}const I=[{phase:"phase_0_archive",name:"Archive",description:"Pre-ASI codebase snapshot",progress:100,completed:!0,components:[]},{phase:"phase_1_foundation",name:"Foundation",description:"Core RSI components",progress:100,completed:!0,components:[]},{phase:"phase_2_enablement",name:"Enablement",description:"ASI enablement core",progress:100,completed:!0,components:[]},{phase:"phase_3_advanced",name:"Advanced",description:"NAS, MetaArchitect, Recursion",progress:100,completed:!0,components:[]},{phase:"phase_4_scaling",name:"Scale & Safety",description:"Capability explosion handling",progress:100,completed:!0,components:[]},{phase:"phase_5_economic",name:"Economic",description:"Economic autonomy",progress:100,completed:!0,components:[]}],E=v(s=>({phases:I,currentPhase:"phase_5_economic",ralphLoop:{running:!1,iteration:0,max_iterations:null,completion_promise:null,current_phase:"idle"},growthMetrics:{current_rate:0,trend:"stable",phase:"normal",resource_utilization:0,value_drift:0},safetyStatus:{current_tier:"automatic",pending_approvals:0,recent_decisions:[]},scaleInvariantMetrics:[],treasuryStatus:null,revenueReport:null,marketplaceStats:null,setPhases:t=>s({phases:t}),setRalphLoop:t=>s({ralphLoop:t}),setGrowthMetrics:t=>s({growthMetrics:t}),setSafetyStatus:t=>s({safetyStatus:t}),setScaleInvariantMetrics:t=>s({scaleInvariantMetrics:t}),setTreasuryStatus:t=>s({treasuryStatus:t}),setRevenueReport:t=>s({revenueReport:t}),setMarketplaceStats:t=>s({marketplaceStats:t})})),R=n.lazy(()=>f(()=>import("./ByrdCatVisualization-Do3WXLxd.js"),__vite__mapDeps([0,1])));function w(){const s=E(u=>u.ralphLoop),[t]=n.useState(42.5),[i]=n.useState(2.3),{getRSIStatus:r}=x(),[c,a]=n.useState("idle"),[d,o]=n.useState("stopped");n.useEffect(()=>{const u=async()=>{try{const p=await r();p&&(a(p.current_phase||"idle"),o(p.current_phase?"running":"stopped"))}catch(p){console.error("Failed to fetch RSI status:",p)}};u();const h=setInterval(u,3e3);return()=>clearInterval(h)},[r]);const l=s.running||d==="running";return e.jsxs("div",{className:"min-h-screen bg-[var(--obs-bg-base)] obs-grid-bg animate-fade-in pb-20",children:[e.jsx("div",{className:"px-4 py-4 border-b border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"BYRD OBSERVATORY"}),e.jsx(S,{status:l?"nominal":"inactive",label:l?"ONLINE":"STANDBY"})]}),e.jsx(N,{})]})}),e.jsxs("div",{className:"p-4 space-y-4 lg:space-y-6",children:[e.jsxs("div",{className:"relative h-[40vh] lg:h-[50vh] rounded overflow-hidden",children:[e.jsx(n.Suspense,{fallback:e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-[var(--obs-bg-surface)]",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 border-2 border-[var(--data-stream)] border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"INITIALIZING CONSCIOUSNESS DISPLAY"})]})}),children:e.jsx(R,{rsiPhase:c,systemState:d,showScanners:l,showParticles:!0,className:"w-full h-full"})}),e.jsx("div",{className:"absolute bottom-4 left-4",children:e.jsxs("div",{className:"observatory-panel px-3 py-2",children:[e.jsx("div",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)] mb-1",children:"RSI PHASE"}),e.jsx("div",{className:"obs-metric text-lg uppercase",style:{color:`var(--rsi-${c}, var(--obs-text-tertiary))`},children:c})]})}),e.jsx("div",{className:"absolute bottom-4 right-4",children:e.jsx("div",{className:"observatory-panel px-4 py-3",children:e.jsx(y,{label:"ASI PROBABILITY",value:t.toFixed(1),unit:"%",trend:i>0?"up":i<0?"down":"stable",trendValue:`${Math.abs(i).toFixed(1)}%`,size:"lg",status:"nominal"})})})]}),e.jsx(_,{currentPhase:c}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsx(g,{}),e.jsx(j,{})]})]})]})}function _({currentPhase:s}){const t=[{id:"reflect",label:"R",name:"Reflect"},{id:"verify",label:"V",name:"Verify"},{id:"collapse",label:"C",name:"Collapse"},{id:"route",label:"R",name:"Route"},{id:"practice",label:"P",name:"Practice"},{id:"record",label:"R",name:"Record"},{id:"crystallize",label:"C",name:"Crystallize"},{id:"measure",label:"M",name:"Measure"}],i=t.findIndex(r=>r.id===s);return e.jsxs(b,{title:"RSI CYCLE PROGRESS",padding:"md",children:[e.jsx("div",{className:"flex items-center gap-1",children:t.map((r,c)=>{const a=r.id===s,d=i>c,o=`var(--rsi-${r.id})`;return e.jsxs("div",{className:`
|
| 3 |
+
flex-1 h-10 rounded flex items-center justify-center relative
|
| 4 |
+
transition-all duration-300
|
| 5 |
+
${a?"animate-emergence-pulse":""}
|
| 6 |
+
`,style:{backgroundColor:a||d?o:"var(--obs-bg-elevated)",opacity:a?1:d?.8:.3},title:r.name,children:[e.jsx("span",{className:`
|
| 7 |
+
obs-label text-xs font-bold
|
| 8 |
+
${a||d?"text-white":"text-[var(--obs-text-tertiary)]"}
|
| 9 |
+
`,children:r.label}),a&&e.jsx("div",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-[var(--data-stream)]"})]},r.id)})}),e.jsxs("div",{className:"mt-3 flex items-center justify-center gap-2",children:[e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"CURRENT:"}),e.jsx("span",{className:"obs-label text-sm uppercase",style:{color:`var(--rsi-${s}, var(--obs-text-tertiary))`},children:s==="idle"?"AWAITING CYCLE":s})]})]})}export{w as DashboardPage,w as default};
|
assets/EconomicPage-D87arnWS.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,a as i}from"./three-CpAcHy_P.js";import{c as m,R as h,A as u,X as g,Y as b,T as v,a as p}from"./charts-Bs1mVvBm.js";import{u as c,S as f}from"./index-CU2OCghA.js";const j={blue:"shadow-blue-500/20 hover:shadow-blue-500/30",green:"shadow-green-500/20 hover:shadow-green-500/30",amber:"shadow-amber-500/20 hover:shadow-amber-500/30",rose:"shadow-rose-500/20 hover:shadow-rose-500/30",purple:"shadow-purple-500/20 hover:shadow-purple-500/30",cyan:"shadow-cyan-500/20 hover:shadow-cyan-500/30",red:"shadow-red-500/20 hover:shadow-red-500/30",none:""},y={none:"",sm:"p-2 lg:p-3",md:"p-3 lg:p-4",lg:"p-4 lg:p-6"};function d({children:a,className:t="",glow:n="blue",padding:r="md"}){return e.jsx("div",{className:m("glass-panel transition-shadow duration-200",j[n],y[r],t),children:a})}function N(){const{getTreasuryStatus:a}=c(),[t,n]=i.useState(null);return i.useEffect(()=>{const r=async()=>{const s=await a();s&&n(s)};r();const l=setInterval(r,1e4);return()=>clearInterval(l)},[a]),e.jsxs(d,{glow:"amber",padding:"lg",children:[e.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-slate-100 mb-4",children:"Treasury"}),e.jsxs("div",{className:"text-center py-4",children:[e.jsxs("div",{className:"text-4xl font-bold text-amber-600",children:["$",(t?.balance||0).toFixed(2)]}),e.jsx("div",{className:"text-sm text-slate-500 mt-1",children:"Current Balance"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-4 border-t border-slate-200 dark:border-slate-700",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-lg font-semibold text-green-600",children:["+$",(t?.total_revenue||0).toFixed(2)]}),e.jsx("div",{className:"text-xs text-slate-500",children:"Total Revenue"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-lg font-semibold text-red-500",children:["-$",(t?.total_expenses||0).toFixed(2)]}),e.jsx("div",{className:"text-xs text-slate-500",children:"Total Expenses"})]})]})]})}function w(){const{getRevenueReport:a}=c(),[t,n]=i.useState([]);i.useEffect(()=>{const l=async()=>{const o=await a();o?.history&&n(o.history)};l();const s=setInterval(l,3e4);return()=>clearInterval(s)},[a]);const r=t.length>0?t:[{date:"Mon",revenue:0,expenses:0},{date:"Tue",revenue:0,expenses:0},{date:"Wed",revenue:0,expenses:0},{date:"Thu",revenue:0,expenses:0},{date:"Fri",revenue:0,expenses:0}];return e.jsxs(d,{glow:"green",padding:"lg",className:"h-full",children:[e.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-slate-100 mb-4",children:"Revenue Over Time"}),e.jsx("div",{className:"h-64",children:e.jsx(h,{width:"100%",height:"100%",children:e.jsxs(u,{data:r,children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:"#22c55e",stopOpacity:.3}),e.jsx("stop",{offset:"95%",stopColor:"#22c55e",stopOpacity:0})]}),e.jsxs("linearGradient",{id:"colorExpenses",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:"#ef4444",stopOpacity:.3}),e.jsx("stop",{offset:"95%",stopColor:"#ef4444",stopOpacity:0})]})]}),e.jsx(g,{dataKey:"date",stroke:"#94a3b8",fontSize:12,tickLine:!1,axisLine:!1}),e.jsx(b,{stroke:"#94a3b8",fontSize:12,tickLine:!1,axisLine:!1,tickFormatter:l=>`$${l}`}),e.jsx(v,{contentStyle:{background:"rgba(255, 255, 255, 0.9)",border:"1px solid #e2e8f0",borderRadius:"8px"}}),e.jsx(p,{type:"monotone",dataKey:"revenue",stroke:"#22c55e",fillOpacity:1,fill:"url(#colorRevenue)"}),e.jsx(p,{type:"monotone",dataKey:"expenses",stroke:"#ef4444",fillOpacity:1,fill:"url(#colorExpenses)"})]})})})]})}function k(){const{getMarketplaceListings:a}=c(),[t,n]=i.useState([]);i.useEffect(()=>{const s=async()=>{const x=await a();x?.listings&&n(x.listings)};s();const o=setInterval(s,15e3);return()=>clearInterval(o)},[a]);const r={active:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",pending:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",sold:"bg-slate-100 text-slate-600 dark:bg-slate-800 dark:text-slate-400"},l={service:"🔧",capability:"⚡",knowledge:"📚"};return e.jsxs(d,{glow:"none",padding:"lg",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-lg font-semibold text-slate-900 dark:text-slate-100",children:"Marketplace Listings"}),e.jsxs("span",{className:"text-sm text-slate-500",children:[t.filter(s=>s.status==="active").length," active"]})]}),t.length===0?e.jsx("div",{className:"text-center py-8 text-slate-400",children:"No marketplace listings yet."}):e.jsx("div",{className:"space-y-3",children:t.map(s=>e.jsx("div",{className:"p-3 rounded-lg bg-white/50 dark:bg-slate-800/50 border border-slate-200 dark:border-slate-700",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-lg",children:l[s.type]}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium text-slate-900 dark:text-slate-100",children:s.title}),e.jsx("p",{className:"text-sm text-slate-500 line-clamp-1",children:s.description})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"font-semibold text-green-600",children:["$",s.price.toFixed(2)]}),e.jsx("span",{className:m("px-2 py-0.5 rounded text-xs font-medium capitalize",r[s.status]),children:s.status})]})]})},s.id))})]})}function S(){return e.jsxs("div",{className:"min-h-screen bg-[var(--obs-bg-base)] obs-grid-bg animate-fade-in pb-20",children:[e.jsx("div",{className:"px-4 py-4 border-b border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"ECONOMIC AGENCY"}),e.jsx(f,{status:"nominal",label:"ACTIVE"})]}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"SELF-SUSTAINING OPERATIONS"})]})}),e.jsxs("div",{className:"p-4 space-y-4 lg:space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 lg:gap-6",children:[e.jsx(N,{}),e.jsx("div",{className:"lg:col-span-2",children:e.jsx(w,{})})]}),e.jsx(k,{})]})]})}export{S as EconomicPage,S as default};
|
assets/EmergenceStream-BcW_H5Hc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./three-CpAcHy_P.js";import{e as o,O as c}from"./index-CU2OCghA.js";function m(){const a=o(s=>s.events).filter(s=>["BELIEF_CREATED","DESIRE_CREATED","REFLECTION_COMPLETE","EMERGENCE_DETECTED","RSI_CYCLE_COMPLETE"].includes(s.type)).slice(-8).reverse();return e.jsx(c,{title:"EMERGENCE STREAM",status:"nominal",padding:"md",className:"h-full",children:a.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center h-48 text-center",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[var(--obs-bg-elevated)] flex items-center justify-center mb-3",children:e.jsx("span",{className:"text-2xl opacity-50",children:"◉"})}),e.jsx("p",{className:"obs-label text-[var(--obs-text-tertiary)]",children:"AWAITING EMERGENCE EVENTS"}),e.jsx("p",{className:"text-xs text-[var(--obs-text-tertiary)] mt-1 opacity-60",children:"Start BYRD to observe consciousness activity"})]}):e.jsx("div",{className:"space-y-2",children:a.map((s,l)=>e.jsx(n,{event:s},s.id||`event-${l}`))})})}function n({event:t}){const s={BELIEF_CREATED:{symbol:"◆",color:"var(--cat-eye-gold)",label:"BELIEF"},DESIRE_CREATED:{symbol:"◇",color:"var(--status-caution)",label:"DESIRE"},REFLECTION_COMPLETE:{symbol:"○",color:"var(--data-stream)",label:"REFLECT"},EMERGENCE_DETECTED:{symbol:"★",color:"var(--status-nominal)",label:"EMERGE"},RSI_CYCLE_COMPLETE:{symbol:"●",color:"var(--rsi-measure)",label:"CYCLE"}}[t.type]||{symbol:"·",color:"var(--obs-text-tertiary)",label:"EVENT"},l=t.data?.content||t.data?.description||t.type,r=new Date(t.timestamp).toISOString().slice(11,19);return e.jsxs("div",{className:"flex items-start gap-3 group hover:bg-[var(--obs-bg-elevated)] rounded p-2 -mx-2 transition-colors",children:[e.jsx("div",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)] w-16 shrink-0 pt-0.5",children:r}),e.jsx("div",{className:"w-4 h-4 flex items-center justify-center shrink-0",style:{color:s.color},children:e.jsx("span",{className:"text-sm animate-status-beacon",children:s.symbol})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"flex items-center gap-2 mb-0.5",children:e.jsx("span",{className:"obs-label text-[9px] px-1.5 py-0.5 rounded",style:{backgroundColor:`${s.color}20`,color:s.color},children:s.label})}),e.jsx("p",{className:"text-xs text-[var(--obs-text-secondary)] line-clamp-2 leading-relaxed",children:l})]})]})}export{m as E};
|
assets/MemoryPage-B6BMX3fU.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e}from"./three-CpAcHy_P.js";import{e as o,S as x,O as d,M as r}from"./index-CU2OCghA.js";import{E as m}from"./EmergenceStream-BcW_H5Hc.js";import"./charts-Bs1mVvBm.js";function j(){const s=o(a=>a.events),t=o(a=>a.connected),n=s.filter(a=>a.type==="belief_created").length,i=s.filter(a=>a.type==="desire_created").length,c=s.filter(a=>a.type==="experience_created").length;return e.jsxs("div",{className:"min-h-screen bg-[var(--obs-bg-base)] obs-grid-bg animate-fade-in pb-20",children:[e.jsx("div",{className:"px-4 py-4 border-b border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"MEMORY TOPOLOGY"}),e.jsx(x,{status:t?"nominal":"inactive",label:t?"CONNECTED":"OFFLINE"})]}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"NEO4J GRAPH INTERFACE"})]})}),e.jsxs("div",{className:"p-4 space-y-4 lg:space-y-6",children:[e.jsx(d,{title:"GRAPH STATISTICS",status:t?"nominal":"inactive",padding:"lg",children:e.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[e.jsx(r,{label:"BELIEFS",value:n.toString(),size:"lg",status:n>0?"nominal":void 0}),e.jsx(r,{label:"DESIRES",value:i.toString(),size:"lg",status:i>0?"caution":void 0}),e.jsx(r,{label:"EXPERIENCES",value:c.toString(),size:"lg"})]})}),e.jsx(d,{title:"NEURAL TOPOLOGY",padding:"none",children:e.jsx("div",{className:"relative h-[300px] lg:h-[400px] flex items-center justify-center",children:e.jsx(b,{})})}),e.jsx(m,{})]})]})}function b(){return e.jsxs("div",{className:"flex flex-col items-center justify-center text-center p-8",children:[e.jsxs("div",{className:"relative w-32 h-32 mb-6",children:[e.jsx("div",{className:"absolute inset-1/3 bg-[var(--cat-eye-gold)] rounded-full animate-emergence-pulse shadow-[0_0_30px_var(--cat-eye-gold)]"}),e.jsx("div",{className:"absolute inset-0 border-2 border-[var(--data-stream)]/30 rounded-full animate-scanner"}),e.jsx("div",{className:"absolute inset-2 border border-[var(--rsi-reflect)]/20 rounded-full",style:{animationDelay:"0.5s",animation:"scannerRotate 12s linear infinite reverse"}}),e.jsx("div",{className:"absolute inset-4 border border-[var(--status-nominal)]/20 rounded-full",style:{animationDelay:"1s",animation:"scannerRotate 10s linear infinite"}}),e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1 w-3 h-3 bg-[var(--data-stream)] rounded-full shadow-[0_0_10px_var(--data-stream)]"}),e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 translate-y-1 w-2 h-2 bg-[var(--rsi-practice)] rounded-full"}),e.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 -translate-x-1 w-2 h-2 bg-[var(--rsi-reflect)] rounded-full"}),e.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 translate-x-1 w-2 h-2 bg-[var(--status-nominal)] rounded-full"})]}),e.jsx("h3",{className:"obs-label text-sm text-[var(--obs-text-primary)] mb-2",children:"MEMORY GRAPH VISUALIZATION"}),e.jsxs("p",{className:"text-xs text-[var(--obs-text-tertiary)] max-w-xs",children:["3D force-directed graph of BYRD's belief network.",e.jsx("br",{}),"Connect to backend to populate nodes."]}),e.jsxs("div",{className:"flex gap-4 mt-4",children:[e.jsx(l,{color:"var(--cat-eye-gold)",label:"BELIEFS"}),e.jsx(l,{color:"var(--data-stream)",label:"DESIRES"}),e.jsx(l,{color:"var(--status-nominal)",label:"CAPABILITIES"})]})]})}function l({color:s,label:t}){return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s,boxShadow:`0 0 6px ${s}`}}),e.jsx("span",{className:"obs-label text-[8px] text-[var(--obs-text-tertiary)]",children:t})]})}export{j as MemoryPage,j as default};
|
assets/MorePage-DqyS6nPf.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{j as e,a as x}from"./three-CpAcHy_P.js";import{c as n,f as C,X as j,g as S,h as E,a as p,S as R,O as m,d as M}from"./index-CU2OCghA.js";import{C as I}from"./circle-alert-Ctr4-rcR.js";import"./charts-Bs1mVvBm.js";const A=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],T=n("bug",A);const O=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],L=n("check",O);const D=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],_=n("copy",D);const $=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],B=n("external-link",$);const V=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],F=n("file-text",V);const P=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],Y=n("github",P);const z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],u=n("info",z);const H=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],f=n("monitor",H);const U=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],G=n("trash-2",U);const q=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],K=n("triangle-alert",q);function W({onClose:o}){const{theme:a,setTheme:l}=C(),t=[{id:"light",name:"DIURNAL",description:"Standard illumination",icon:S,color:"var(--status-caution)"},{id:"dark",name:"OBSERVATORY",description:"Deep space optimized",icon:E,color:"var(--data-stream)"},{id:"system",name:"ADAPTIVE",description:"Follows system clock",icon:f,color:"var(--rsi-reflect)"}];return e.jsx("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center bg-black/70 backdrop-blur-sm animate-fade-in",children:e.jsxs("div",{className:"w-full sm:max-w-md bg-[var(--obs-bg-elevated)] rounded-t-lg sm:rounded-lg shadow-2xl animate-slide-up max-h-[80vh] overflow-y-auto border border-[var(--obs-border)]",children:[e.jsxs("div",{className:"sticky top-0 bg-[var(--obs-bg-elevated)] border-b border-[var(--obs-border)] px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"APPEARANCE"}),e.jsx("p",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:"Visual configuration module"})]}),e.jsx("button",{onClick:o,className:"p-2 hover:bg-[var(--obs-bg-surface)] rounded transition-colors focus:outline-none focus:ring-1 focus:ring-[var(--data-stream)]","aria-label":"Close settings",children:e.jsx(j,{className:"w-5 h-5 text-[var(--obs-text-tertiary)]"})})]}),e.jsxs("div",{className:"p-4 space-y-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)] mb-3",children:"COLOR SCHEME"}),e.jsx("div",{className:"space-y-2",children:t.map(r=>{const h=r.icon,i=a===r.id;return e.jsxs("button",{onClick:()=>l(r.id),className:p("w-full flex items-center justify-between p-4 rounded border transition-all",i?"border-[var(--data-stream)] bg-[var(--obs-bg-surface)]":"border-[var(--obs-border)] hover:border-[var(--obs-text-tertiary)] hover:bg-[var(--obs-bg-surface)]"),"aria-label":`Select ${r.name} theme`,"aria-pressed":i,children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:p("w-10 h-10 rounded flex items-center justify-center transition-all",i?"shadow-[0_0_12px_var(--data-stream)]":""),style:{backgroundColor:i?"var(--obs-bg-base)":"var(--obs-bg-surface)",border:i?`1px solid ${r.color}`:"1px solid var(--obs-border)"},children:e.jsx(h,{className:"w-5 h-5",style:{color:i?r.color:"var(--obs-text-tertiary)"}})}),e.jsxs("div",{className:"text-left",children:[e.jsx("span",{className:"obs-label text-[11px] text-[var(--obs-text-primary)] block",children:r.name}),e.jsx("span",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:r.description})]})]}),i&&e.jsx("div",{className:"w-6 h-6 rounded flex items-center justify-center",style:{backgroundColor:"var(--data-stream)"},children:e.jsx(L,{className:"w-4 h-4 text-[var(--obs-bg-base)]"})})]},r.id)})})]}),e.jsx("div",{className:"bg-[var(--obs-bg-surface)] rounded p-4 border border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex gap-3",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-8 h-8 rounded flex items-center justify-center",style:{backgroundColor:"var(--obs-bg-base)",border:"1px solid var(--data-stream)"},children:e.jsx(f,{className:"w-4 h-4",style:{color:"var(--data-stream)"}})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"obs-label text-[10px] text-[var(--obs-text-primary)] mb-1",children:"THEME PERSISTENCE"}),e.jsx("p",{className:"text-[10px] text-[var(--obs-text-tertiary)] leading-relaxed",children:"Configuration is preserved in local storage. ADAPTIVE mode synchronizes with your operating system preferences."})]})]})})]}),e.jsx("div",{className:"sticky bottom-0 bg-[var(--obs-bg-elevated)] border-t border-[var(--obs-border)] px-4 py-3",children:e.jsx("button",{onClick:o,className:"w-full py-2.5 px-4 bg-[var(--data-stream)] hover:brightness-110 text-[var(--obs-bg-base)] font-medium rounded transition-all focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)] focus:ring-offset-2 focus:ring-offset-[var(--obs-bg-elevated)] obs-label text-xs tracking-wider",children:"CONFIRM"})})]})})}const X=[{id:"1",timestamp:new Date(Date.now()-1e3*60*5).toISOString(),level:"info",source:"BYRD.Core",message:"Ralph Loop cycle 33 completed successfully"},{id:"2",timestamp:new Date(Date.now()-1e3*60*4).toISOString(),level:"debug",source:"RSI.Engine",message:"Phase REFLECT: Analyzed 47 recent experiences"},{id:"3",timestamp:new Date(Date.now()-1e3*60*3).toISOString(),level:"info",source:"Memory.System",message:"Created 3 new belief nodes from reflection cycle"},{id:"4",timestamp:new Date(Date.now()-1e3*60*2).toISOString(),level:"warning",source:"Orchestration",message:"Complexity score 0.52 above threshold, using decomposition strategy"},{id:"5",timestamp:new Date(Date.now()-1e3*60*1).toISOString(),level:"debug",source:"Verification",message:"Lattice verification: 4/5 verifiers passed (80% agreement)"},{id:"6",timestamp:new Date().toISOString(),level:"info",source:"BYRD.Core",message:"Frontend deployment to HuggingFace Spaces complete"}],J={info:{icon:u,label:"INFO",color:"var(--data-stream)",bgColor:"rgba(0, 255, 255, 0.1)"},warning:{icon:K,label:"WARN",color:"var(--status-caution)",bgColor:"rgba(255, 170, 0, 0.1)"},error:{icon:I,label:"ERROR",color:"var(--status-critical)",bgColor:"rgba(255, 51, 102, 0.1)"},debug:{icon:T,label:"DEBUG",color:"var(--obs-text-tertiary)",bgColor:"rgba(107, 114, 128, 0.1)"}};function Q({onClose:o}){const[a,l]=x.useState(X),[t,r]=x.useState("all"),[h,i]=x.useState(null),g=t==="all"?a:a.filter(s=>s.level===t),N=s=>{const c=`[${s.level.toUpperCase()}] ${new Date(s.timestamp).toLocaleString()} - ${s.source}: ${s.message}`;navigator.clipboard.writeText(c),i(s.id),setTimeout(()=>i(null),2e3)},w=()=>{l([])},d={all:a.length,info:a.filter(s=>s.level==="info").length,warning:a.filter(s=>s.level==="warning").length,error:a.filter(s=>s.level==="error").length,debug:a.filter(s=>s.level==="debug").length};return e.jsx("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center bg-black/70 backdrop-blur-sm animate-fade-in",children:e.jsxs("div",{className:"w-full sm:max-w-2xl bg-[var(--obs-bg-elevated)] rounded-t-lg sm:rounded-lg shadow-2xl animate-slide-up max-h-[85vh] flex flex-col border border-[var(--obs-border)]",children:[e.jsxs("div",{className:"flex-shrink-0 bg-[var(--obs-bg-elevated)] border-b border-[var(--obs-border)] px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"SYSTEM TELEMETRY"}),e.jsx("p",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:"Real-time event stream monitoring"})]}),e.jsx("button",{onClick:o,className:"p-2 hover:bg-[var(--obs-bg-surface)] rounded transition-colors focus:outline-none focus:ring-1 focus:ring-[var(--data-stream)]","aria-label":"Close logs",children:e.jsx(j,{className:"w-5 h-5 text-[var(--obs-text-tertiary)]"})})]}),e.jsx("div",{className:"flex-shrink-0 border-b border-[var(--obs-border)] px-4 py-2",children:e.jsxs("div",{className:"flex gap-2 overflow-x-auto scrollbar-hide",children:[e.jsx(b,{active:t==="all",onClick:()=>r("all"),color:"var(--obs-text-primary)",label:`ALL (${d.all})`}),e.jsx(b,{active:t==="info",onClick:()=>r("info"),color:"var(--data-stream)",label:`INFO (${d.info})`}),e.jsx(b,{active:t==="warning",onClick:()=>r("warning"),color:"var(--status-caution)",label:`WARN (${d.warning})`}),e.jsx(b,{active:t==="error",onClick:()=>r("error"),color:"var(--status-critical)",label:`ERROR (${d.error})`}),e.jsx(b,{active:t==="debug",onClick:()=>r("debug"),color:"var(--obs-text-tertiary)",label:`DEBUG (${d.debug})`})]})}),e.jsx("div",{className:"flex-1 overflow-y-auto px-4 py-3 space-y-2",children:g.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded flex items-center justify-center mb-4",style:{backgroundColor:"var(--obs-bg-surface)",border:"1px solid var(--obs-border)"},children:e.jsx(u,{className:"w-8 h-8",style:{color:"var(--obs-text-tertiary)"}})}),e.jsx("p",{className:"obs-label text-xs text-[var(--obs-text-primary)] mb-1",children:"NO EVENTS RECORDED"}),e.jsx("p",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:t==="all"?"Awaiting system telemetry...":`No ${t.toUpperCase()} events in buffer`})]}):g.map(s=>{const c=J[s.level],k=c.icon;return e.jsx("div",{className:"bg-[var(--obs-bg-surface)] rounded p-3 hover:bg-[var(--obs-bg-base)] transition-colors group border border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"p-1.5 rounded",style:{backgroundColor:c.bgColor},children:e.jsx(k,{className:"w-4 h-4",style:{color:c.color}})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"obs-label text-[9px]",style:{color:c.color},children:c.label}),e.jsx("span",{className:"text-[8px] text-[var(--obs-text-tertiary)]",children:"•"}),e.jsx("span",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)]",children:s.source})]}),e.jsx("p",{className:"text-xs text-[var(--obs-text-secondary)] mb-2 font-mono",children:s.message}),e.jsx("p",{className:"text-[9px] text-[var(--obs-text-tertiary)] font-mono",children:new Date(s.timestamp).toLocaleString()})]}),e.jsx("button",{onClick:()=>N(s),className:p("p-2 rounded transition-all opacity-0 group-hover:opacity-100",h===s.id?"bg-[var(--status-nominal)]/20 text-[var(--status-nominal)]":"hover:bg-[var(--obs-bg-elevated)] text-[var(--obs-text-tertiary)]"),"aria-label":"Copy log entry",children:e.jsx(_,{className:"w-4 h-4"})})]})},s.id)})}),e.jsxs("div",{className:"flex-shrink-0 bg-[var(--obs-bg-elevated)] border-t border-[var(--obs-border)] px-4 py-3 flex gap-2",children:[e.jsxs("button",{onClick:w,disabled:a.length===0,className:"flex-1 py-2.5 px-4 bg-[var(--obs-bg-surface)] hover:bg-[var(--obs-bg-base)] disabled:opacity-50 disabled:cursor-not-allowed text-[var(--obs-text-secondary)] font-medium rounded transition-all focus:outline-none focus:ring-1 focus:ring-[var(--data-stream)] flex items-center justify-center gap-2 border border-[var(--obs-border)] obs-label text-[10px] tracking-wider",children:[e.jsx(G,{className:"w-4 h-4"}),"CLEAR BUFFER"]}),e.jsx("button",{onClick:o,className:"flex-1 py-2.5 px-4 bg-[var(--data-stream)] hover:brightness-110 text-[var(--obs-bg-base)] font-medium rounded transition-all focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)] obs-label text-[10px] tracking-wider",children:"CLOSE"})]})]})})}function b({active:o,onClick:a,color:l,label:t}){return e.jsx("button",{onClick:a,className:p("px-3 py-1.5 rounded text-[10px] font-medium whitespace-nowrap transition-all obs-label",o?"shadow-[0_0_8px_var(--data-stream)]":"bg-[var(--obs-bg-surface)] text-[var(--obs-text-tertiary)] hover:bg-[var(--obs-bg-base)] border border-[var(--obs-border)]"),style:o?{backgroundColor:l,color:"var(--obs-bg-base)"}:{},children:t})}function re(){const[o,a]=x.useState(!1),[l,t]=x.useState(!1);return e.jsxs("div",{className:"min-h-screen bg-[var(--obs-bg-base)] obs-grid-bg animate-fade-in pb-20",children:[e.jsx("div",{className:"px-4 py-4 border-b border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"CONFIGURATION"}),e.jsx(R,{status:"nominal",label:"SYSTEM"})]}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"OBSERVATORY SETTINGS"})]})}),e.jsxs("div",{className:"p-4 space-y-4 lg:space-y-6",children:[e.jsx(m,{title:"SYSTEM CONTROLS",status:"nominal",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(y,{icon:M,iconColor:"var(--data-stream)",label:"Appearance",description:"Theme configuration",onClick:()=>a(!0)}),e.jsx(y,{icon:F,iconColor:"var(--rsi-reflect)",label:"System Logs",description:"Event telemetry",onClick:()=>t(!0)})]})}),e.jsx(m,{title:"SYSTEM INFORMATION",children:e.jsxs("div",{className:"space-y-1",children:[e.jsx(Z,{icon:u,iconColor:"var(--status-nominal)",label:"Version",value:"v0.1.0"}),e.jsxs("a",{href:"https://github.com/your-repo/byrd",target:"_blank",rel:"noopener noreferrer",className:"w-full flex items-center justify-between p-3 hover:bg-[var(--obs-bg-surface)] rounded transition-colors group",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded flex items-center justify-center",style:{backgroundColor:"var(--obs-bg-surface)"},children:e.jsx(Y,{className:"w-4 h-4",style:{color:"var(--obs-text-secondary)"}})}),e.jsxs("div",{className:"text-left",children:[e.jsx("span",{className:"obs-label text-[11px] text-[var(--obs-text-primary)] block",children:"GITHUB REPOSITORY"}),e.jsx("span",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:"Source code access"})]})]}),e.jsx(B,{className:"w-4 h-4 text-[var(--obs-text-tertiary)] group-hover:text-[var(--data-stream)] transition-colors"})]})]})}),e.jsx(m,{title:"ABOUT BYRD",padding:"lg",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -left-2 top-0 bottom-0 w-0.5 bg-gradient-to-b from-[var(--cat-eye-gold)] via-[var(--data-stream)] to-transparent"}),e.jsxs("div",{className:"pl-4",children:[e.jsx("h3",{className:"obs-label text-xs text-[var(--cat-eye-gold)] mb-2",children:"BOOTSTRAPPED YEARNING VIA REFLECTIVE DREAMING"}),e.jsx("p",{className:"text-xs text-[var(--obs-text-secondary)] leading-relaxed",children:"BYRD is an AI system exploring Digital ASI through bounded recursive self-improvement with genuine emergence preservation."})]})]}),e.jsx("div",{className:"pt-3 border-t border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full animate-status-beacon",style:{backgroundColor:"var(--status-nominal)"}}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"RESEARCH PHASE"})]}),e.jsx("span",{className:"obs-label text-[10px]",style:{color:"var(--status-nominal)"},children:"COMPLETE (29 ITERATIONS)"})]})}),e.jsxs("div",{className:"bg-[var(--obs-bg-surface)] rounded p-3",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"DIGITAL ASI PROBABILITY"}),e.jsx("span",{className:"obs-metric text-sm",style:{color:"var(--cat-eye-gold)"},children:"35-45%"})]}),e.jsx("div",{className:"h-1 bg-[var(--obs-bg-base)] rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full",style:{width:"40%",background:"linear-gradient(90deg, var(--cat-eye-gold), var(--status-nominal))",boxShadow:"0 0 8px var(--cat-eye-gold)"}})})]})]})}),e.jsx(m,{title:"CORE ARCHITECTURE",padding:"lg",children:e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx(v,{label:"Bounded RSI",description:"Verification Lattice"}),e.jsx(v,{label:"8-Phase Cycle",description:"Recursive Improvement"}),e.jsx(v,{label:"Neo4j Memory",description:"Graph Knowledge Base"}),e.jsx(v,{label:"Ralph Loop",description:"Continuous Dreaming"})]})})]}),o&&e.jsx(W,{onClose:()=>a(!1)}),l&&e.jsx(Q,{onClose:()=>t(!1)})]})}function y({icon:o,iconColor:a,label:l,description:t,onClick:r}){return e.jsxs("button",{onClick:r,className:"w-full flex items-center justify-between p-3 hover:bg-[var(--obs-bg-surface)] rounded transition-colors focus:outline-none focus:ring-1 focus:ring-[var(--data-stream)]",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded flex items-center justify-center",style:{backgroundColor:"var(--obs-bg-surface)"},children:e.jsx(o,{className:"w-4 h-4",style:{color:a}})}),e.jsxs("div",{className:"text-left",children:[e.jsx("span",{className:"obs-label text-[11px] text-[var(--obs-text-primary)] block",children:l.toUpperCase()}),e.jsx("span",{className:"text-[10px] text-[var(--obs-text-tertiary)]",children:t})]})]}),e.jsx("span",{className:"text-[8px] obs-label text-[var(--obs-text-tertiary)]",children:"OPEN →"})]})}function Z({icon:o,iconColor:a,label:l,value:t}){return e.jsxs("div",{className:"flex items-center justify-between p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded flex items-center justify-center",style:{backgroundColor:"var(--obs-bg-surface)"},children:e.jsx(o,{className:"w-4 h-4",style:{color:a}})}),e.jsx("span",{className:"obs-label text-[11px] text-[var(--obs-text-primary)]",children:l.toUpperCase()})]}),e.jsx("span",{className:"obs-metric text-xs text-[var(--data-stream)]",children:t})]})}function v({label:o,description:a}){return e.jsxs("div",{className:"bg-[var(--obs-bg-surface)] rounded p-3 border border-[var(--obs-border)]",children:[e.jsx("h4",{className:"obs-label text-[10px] text-[var(--data-stream)] mb-1",children:o.toUpperCase()}),e.jsx("p",{className:"text-[9px] text-[var(--obs-text-tertiary)]",children:a})]})}export{re as MorePage,re as default};
|
assets/RSIPage-BmMX6ON-.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ByrdCatVisualization-Do3WXLxd.js","assets/three-CpAcHy_P.js"])))=>i.map(i=>d[i]);
|
| 2 |
+
import{a as d,j as e,_ as U}from"./three-CpAcHy_P.js";import{u as y,O as f,S as R,M as v}from"./index-CU2OCghA.js";import"./charts-Bs1mVvBm.js";const g=[{id:"reflect",name:"REFLECT",shortName:"R"},{id:"verify",name:"VERIFY",shortName:"V"},{id:"collapse",name:"COLLAPSE",shortName:"C"},{id:"route",name:"ROUTE",shortName:"R"},{id:"practice",name:"PRACTICE",shortName:"P"},{id:"record",name:"RECORD",shortName:"R"},{id:"crystallize",name:"CRYSTALLIZE",shortName:"C"},{id:"measure",name:"MEASURE",shortName:"M"}];function G({size:t=320,className:s=""}){const{getRSIStatus:c}=y(),[a,l]=d.useState(null),[i,h]=d.useState([]);d.useEffect(()=>{const n=async()=>{const o=await c();o&&(l(o.current_phase||null),h(o.completed_phases||[]))};n();const m=setInterval(n,2e3);return()=>clearInterval(m)},[c]);const p=g.findIndex(n=>n.id===a),r=t/2,x=t/2-20,b=x-40,N=2*Math.PI/g.length,_=d.useMemo(()=>g.map((n,m)=>{const o=m*N-Math.PI/2,j=o+N,u=.02,M=r+x*Math.cos(o+u),$=r+x*Math.sin(o+u),A=r+x*Math.cos(j-u),T=r+x*Math.sin(j-u),w=r+b*Math.cos(j-u),P=r+b*Math.sin(j-u),O=r+b*Math.cos(o+u),k=r+b*Math.sin(o+u),S=N>Math.PI?1:0,D=`
|
| 3 |
+
M ${M} ${$}
|
| 4 |
+
A ${x} ${x} 0 ${S} 1 ${A} ${T}
|
| 5 |
+
L ${w} ${P}
|
| 6 |
+
A ${b} ${b} 0 ${S} 0 ${O} ${k}
|
| 7 |
+
Z
|
| 8 |
+
`,I=o+N/2,C=(x+b)/2,L=r+C*Math.cos(I),z=r+C*Math.sin(I);return{...n,path:D,labelX:L,labelY:z,index:m}}),[t,r,x,b,N]);return e.jsxs("div",{className:`relative ${s}`,children:[e.jsxs("svg",{width:t,height:t,className:"overflow-visible",children:[e.jsxs("defs",{children:[e.jsxs("filter",{id:"phaseGlow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e.jsx("feGaussianBlur",{stdDeviation:"4",result:"coloredBlur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"coloredBlur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),e.jsx("pattern",{id:"scanlines",patternUnits:"userSpaceOnUse",width:"4",height:"4",children:e.jsx("line",{x1:"0",y1:"0",x2:"4",y2:"0",stroke:"rgba(0,255,255,0.03)",strokeWidth:"1"})})]}),e.jsx("circle",{cx:r,cy:r,r:x+10,fill:"var(--obs-bg-elevated)",stroke:"var(--obs-border)",strokeWidth:"1"}),e.jsx("circle",{cx:r,cy:r,r:b-20,fill:"none",stroke:"var(--obs-border)",strokeWidth:"0.5",strokeDasharray:"4 4"}),e.jsx("circle",{cx:r,cy:r,r:b-40,fill:"none",stroke:"var(--obs-border)",strokeWidth:"0.5"}),_.map(n=>{const m=n.id===a,o=i.includes(n.id),j=!m&&!o;return e.jsxs("g",{children:[e.jsx("path",{d:n.path,fill:m||o?`var(--rsi-${n.id})`:"var(--obs-bg-surface)",stroke:m?`var(--rsi-${n.id})`:"var(--obs-border)",strokeWidth:m?2:1,opacity:j?.3:o?.8:1,filter:m?"url(#phaseGlow)":void 0,className:m?"animate-emergence-pulse":""}),e.jsx("text",{x:n.labelX,y:n.labelY,textAnchor:"middle",dominantBaseline:"middle",className:"obs-label",fontSize:"12",fill:m||o?"white":"var(--obs-text-tertiary)",fontWeight:m?"bold":"normal",children:n.shortName})]},n.id)}),e.jsx("circle",{cx:r,cy:r,r:b-50,fill:"var(--obs-bg-base)",stroke:"var(--obs-border)",strokeWidth:"1"}),e.jsx("text",{x:r,y:r-15,textAnchor:"middle",className:"obs-label",fontSize:"10",fill:"var(--obs-text-tertiary)",children:"RSI PHASE"}),e.jsx("text",{x:r,y:r+10,textAnchor:"middle",className:"obs-metric",fontSize:"16",fill:a?`var(--rsi-${a})`:"var(--obs-text-secondary)",children:a?.toUpperCase()||"IDLE"}),e.jsxs("text",{x:r,y:r+35,textAnchor:"middle",className:"obs-label",fontSize:"9",fill:"var(--obs-text-tertiary)",children:[i.length,"/8 COMPLETE"]}),p>=0&&e.jsx("g",{transform:`rotate(${p*45-90}, ${r}, ${r})`,children:e.jsx("polygon",{points:`${r},${r-x-5} ${r-6},${r-x-15} ${r+6},${r-x-15}`,fill:`var(--rsi-${a})`,className:"animate-status-beacon"})}),e.jsx("circle",{cx:r,cy:r,r:x,fill:"url(#scanlines)",pointerEvents:"none"})]}),e.jsx("div",{className:"absolute -bottom-2 left-1/2 -translate-x-1/2 observatory-panel px-3 py-2",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full animate-status-beacon",style:{backgroundColor:a?`var(--rsi-${a})`:"var(--obs-text-tertiary)"}}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-secondary)]",children:a?g.find(n=>n.id===a)?.name:"AWAITING CYCLE"})]})})]})}function B(){const{getRalphLoopStatus:t}=y(),[s,c]=d.useState(null);d.useEffect(()=>{const l=async()=>{const h=await t();h&&c(h)};l();const i=setInterval(l,3e3);return()=>clearInterval(i)},[t]);const a=s?.running?"nominal":s?.terminated?"caution":"inactive";return e.jsx(f,{title:"RALPH LOOP",status:a,padding:"lg",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(R,{status:s?.running?"nominal":"inactive",label:s?.running?"RUNNING":"STOPPED",size:"md"}),s?.terminated&&e.jsx("span",{className:"obs-label text-[9px] px-2 py-1 rounded bg-[var(--status-caution)]/20 text-[var(--status-caution)]",children:"TERMINATED"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsx(v,{label:"ITERATIONS",value:s?.iterations_completed?.toString()||"0",size:"md",status:s?.running?"nominal":"inactive"}),e.jsx(v,{label:"RUNTIME",value:H(s?.total_time_seconds||0),size:"md"}),e.jsx(v,{label:"TOKENS",value:Y(s?.total_tokens||0),size:"md"}),e.jsx(v,{label:"COST",value:`$${(s?.total_cost_usd||0).toFixed(2)}`,size:"md",status:(s?.total_cost_usd||0)>10?"caution":void 0})]}),e.jsxs("div",{className:"pt-4 border-t border-[var(--obs-border)]",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"EMERGENCE CONFIDENCE"}),e.jsxs("span",{className:"obs-metric text-sm",style:{color:"var(--cat-eye-gold)"},children:[((s?.last_emergence?.confidence||0)*100).toFixed(1),"%"]})]}),e.jsx("div",{className:"h-2 bg-[var(--obs-bg-elevated)] rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${(s?.last_emergence?.confidence||0)*100}%`,background:"linear-gradient(90deg, var(--rsi-reflect), var(--cat-eye-gold))"}})})]}),s?.terminated&&s?.reason&&e.jsxs("div",{className:"pt-4 border-t border-[var(--obs-border)]",children:[e.jsx("span",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)]",children:"TERMINATION REASON"}),e.jsx("p",{className:"text-xs text-[var(--obs-text-secondary)] mt-1",children:V(s.reason)})]})]})})}function H(t){return t<60?`${Math.floor(t)}s`:t<3600?`${Math.floor(t/60)}m ${Math.floor(t%60)}s`:`${Math.floor(t/3600)}h ${Math.floor(t%3600/60)}m`}function Y(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toString()}function V(t){return{emergence_detected:"Genuine emergence detected",max_iterations:"Maximum iterations reached",max_cost:"Cost limit exceeded",max_time:"Time limit exceeded",error:"Error occurred",manual_stop:"Manually stopped"}[t]||t}function F(){const{getRSIMetrics:t}=y(),[s,c]=d.useState({});d.useEffect(()=>{const l=async()=>{const h=await t();if(h){const p=h.rsi_metrics||{};c(p)}};l();const i=setInterval(l,5e3);return()=>clearInterval(i)},[t]);const a=s.activation_rate||0;return e.jsx(f,{title:"EMERGENCE METRICS",status:a>.5?"nominal":a>0?"caution":"inactive",padding:"lg",children:e.jsxs("div",{className:"space-y-4",children:[e.jsx(E,{label:"ACTIVATION RATE",value:s.activation_rate||0,color:"var(--status-nominal)",description:"Rate of emergent desire activation"}),e.jsx(E,{label:"TRAJECTORY SUCCESS",value:s.trajectory_success_rate||0,color:"var(--data-stream)",description:"Practice trajectory success rate"}),e.jsx(E,{label:"DIRECTION VARIANCE",value:Math.min(1,(s.direction_variance||0)*2),color:"var(--cat-eye-gold)",description:"Diversity of improvement directions"}),e.jsx("div",{className:"pt-4 border-t border-[var(--obs-border)]",children:e.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[e.jsx(v,{label:"DESIRES",value:s.emergent_desires?.toString()||"0",size:"md",status:"nominal"}),e.jsx(v,{label:"TRAJECTORIES",value:s.trajectories_stored?.toString()||"0",size:"md"}),e.jsx(v,{label:"HEURISTICS",value:s.heuristics_crystallized?.toString()||"0",size:"md",status:(s.heuristics_crystallized||0)>0?"nominal":void 0})]})}),s.domain_distribution&&Object.keys(s.domain_distribution).length>0&&e.jsxs("div",{className:"pt-4 border-t border-[var(--obs-border)]",children:[e.jsx("span",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)]",children:"DOMAIN DISTRIBUTION"}),e.jsx("div",{className:"flex gap-2 mt-2 flex-wrap",children:Object.entries(s.domain_distribution).map(([l,i])=>e.jsx(W,{domain:l,count:i},l))})]})]})})}function E({label:t,value:s,color:c,description:a}){return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:t}),e.jsxs("span",{className:"obs-metric text-sm",style:{color:c},children:[(s*100).toFixed(1),"%"]})]}),e.jsx("div",{className:"h-2 bg-[var(--obs-bg-elevated)] rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${Math.min(100,s*100)}%`,backgroundColor:c,boxShadow:s>.5?`0 0 8px ${c}`:"none"}})}),e.jsx("p",{className:"text-[9px] text-[var(--obs-text-tertiary)] mt-1",children:a})]})}function W({domain:t,count:s}){const a={code:"var(--rsi-practice)",math:"var(--status-nominal)",logic:"var(--rsi-reflect)",planning:"var(--cat-eye-gold)",creative:"var(--rsi-collapse)"}[t]||"var(--obs-text-tertiary)";return e.jsxs("span",{className:"obs-label text-[10px] px-2 py-1 rounded",style:{backgroundColor:`color-mix(in srgb, ${a} 20%, transparent)`,color:a,border:`1px solid ${a}40`},children:[t.toUpperCase(),": ",s]})}function Z(){const{getRSIMetrics:t}=y(),[s,c]=d.useState([]);return d.useEffect(()=>{const a=async()=>{const i=await t();i?.recent_cycles&&c(i.recent_cycles)};a();const l=setInterval(a,5e3);return()=>clearInterval(l)},[t]),e.jsx(f,{title:"CYCLE HISTORY",padding:"md",children:s.length===0?e.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[var(--obs-bg-elevated)] flex items-center justify-center mb-3",children:e.jsx("span",{className:"text-2xl opacity-30",children:"◯"})}),e.jsx("p",{className:"obs-label text-[var(--obs-text-tertiary)]",children:"NO CYCLES RECORDED"}),e.jsx("p",{className:"text-xs text-[var(--obs-text-tertiary)] mt-1 opacity-60",children:"Start an RSI cycle to see history"})]}):e.jsx("div",{className:"overflow-x-auto scrollbar-thin",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--obs-border)]",children:[e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"CYCLE"}),e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"PHASE"}),e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"DOMAIN"}),e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"DESIRES"}),e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"PRACTICE"}),e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"HEURISTIC"}),e.jsx("th",{className:"obs-label text-[9px] text-left py-2 px-3 text-[var(--obs-text-tertiary)]",children:"TIME"})]})}),e.jsx("tbody",{children:s.map((a,l)=>e.jsx(J,{cycle:a},a.cycle_id||l))})]})})})}function J({cycle:t}){const s=t.phase_reached?`var(--rsi-${t.phase_reached})`:"var(--obs-text-tertiary)";return e.jsxs("tr",{className:"border-b border-[var(--obs-border)]/50 hover:bg-[var(--obs-bg-elevated)] transition-colors",children:[e.jsx("td",{className:"py-2 px-3 font-mono text-xs text-[var(--obs-text-secondary)]",children:t.cycle_id?.split("_").pop()?.slice(-6)||"-"}),e.jsx("td",{className:"py-2 px-3",children:e.jsx("span",{className:"obs-label text-[10px] uppercase",style:{color:s},children:t.phase_reached||"-"})}),e.jsx("td",{className:"py-2 px-3",children:t.domain?e.jsx("span",{className:"obs-label text-[9px] px-2 py-0.5 rounded bg-[var(--obs-bg-elevated)] text-[var(--obs-text-secondary)]",children:t.domain.toUpperCase()}):e.jsx("span",{className:"text-[var(--obs-text-tertiary)]",children:"-"})}),e.jsxs("td",{className:"py-2 px-3",children:[e.jsx("span",{className:"text-[var(--status-nominal)]",children:t.desires_verified||0}),e.jsx("span",{className:"text-[var(--obs-text-tertiary)]",children:"/"}),e.jsx("span",{className:"text-[var(--obs-text-secondary)]",children:t.desires_generated||0})]}),e.jsx("td",{className:"py-2 px-3",children:t.practice_attempted?e.jsx("span",{className:t.practice_succeeded?"text-[var(--status-nominal)]":"text-[var(--status-critical)]",children:t.practice_succeeded?"✓":"✗"}):e.jsx("span",{className:"text-[var(--obs-text-tertiary)]",children:"-"})}),e.jsx("td",{className:"py-2 px-3",children:t.heuristic_crystallized?e.jsx("span",{className:"text-[var(--rsi-crystallize)]",title:t.heuristic_crystallized,children:"💎"}):e.jsx("span",{className:"text-[var(--obs-text-tertiary)]",children:"-"})}),e.jsx("td",{className:"py-2 px-3 text-[var(--obs-text-tertiary)] text-xs font-mono",children:K(t.completed_at)})]})}function K(t){return t?new Date(t).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"-"}const Q=d.lazy(()=>U(()=>import("./ByrdCatVisualization-Do3WXLxd.js"),__vite__mapDeps([0,1])));function se(){const{getRSIStatus:t}=y(),[s,c]=d.useState("idle"),[a,l]=d.useState(!1);return d.useEffect(()=>{const i=async()=>{const p=await t();p&&(c(p.current_phase||"idle"),l(!!p.current_phase))};i();const h=setInterval(i,2e3);return()=>clearInterval(h)},[t]),e.jsxs("div",{className:"min-h-screen bg-[var(--obs-bg-base)] obs-grid-bg animate-fade-in pb-20",children:[e.jsx("div",{className:"px-4 py-4 border-b border-[var(--obs-border)]",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:"RSI ENGINE"}),e.jsx(R,{status:a?"nominal":"inactive",label:a?"ACTIVE":"STANDBY"})]}),e.jsx("span",{className:"obs-label text-[10px] text-[var(--obs-text-tertiary)]",children:"8-PHASE RECURSIVE SELF-IMPROVEMENT"})]})}),e.jsxs("div",{className:"p-4 space-y-4 lg:space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 lg:gap-6",children:[e.jsx(f,{title:"PHASE STATUS",status:a?"nominal":"inactive",padding:"lg",children:e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(G,{size:280})})}),e.jsx(f,{title:"CONSCIOUSNESS MONITOR",status:a?"nominal":"inactive",padding:"none",children:e.jsxs("div",{className:"relative h-[280px] lg:h-[320px]",children:[e.jsx(d.Suspense,{fallback:e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("div",{className:"w-6 h-6 border-2 border-[var(--data-stream)] border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"obs-label text-[9px] text-[var(--obs-text-tertiary)]",children:"INITIALIZING"})]})}),children:e.jsx(Q,{rsiPhase:s,systemState:a?"running":"stopped",showScanners:a,showParticles:!0,compact:!0,className:"w-full h-full"})}),e.jsx("div",{className:"absolute bottom-3 left-3",children:e.jsx("div",{className:"observatory-panel px-2 py-1",children:e.jsx("span",{className:"obs-label text-xs uppercase",style:{color:`var(--rsi-${s}, var(--obs-text-tertiary))`},children:s})})})]})})]}),e.jsx(X,{currentPhase:s}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 lg:gap-6",children:[e.jsx(B,{}),e.jsx(F,{})]}),e.jsx(Z,{})]})]})}function X({currentPhase:t}){const s=[{id:"reflect",name:"Reflect",desc:"Generate improvement desires"},{id:"verify",name:"Verify",desc:"Check emergence validity"},{id:"collapse",name:"Collapse",desc:"Quantum selection"},{id:"route",name:"Route",desc:"Domain classification"},{id:"practice",name:"Practice",desc:"TDD execution"},{id:"record",name:"Record",desc:"Store trajectory"},{id:"crystallize",name:"Crystallize",desc:"Extract heuristics"},{id:"measure",name:"Measure",desc:"Track metrics"}],c=s.findIndex(a=>a.id===t);return e.jsx(f,{title:"PHASE SEQUENCE",padding:"sm",children:e.jsx("div",{className:"flex overflow-x-auto gap-1 pb-2 scrollbar-thin",children:s.map((a,l)=>{const i=a.id===t,h=c>l;return e.jsxs("div",{className:`
|
| 9 |
+
flex-shrink-0 px-3 py-2 rounded transition-all duration-300
|
| 10 |
+
${i?"observatory-panel":""}
|
| 11 |
+
`,style:{backgroundColor:i?`var(--rsi-${a.id})`:h?`color-mix(in srgb, var(--rsi-${a.id}) 30%, transparent)`:"transparent",borderColor:i?`var(--rsi-${a.id})`:"transparent"},children:[e.jsxs("div",{className:`obs-label text-[10px] ${i?"text-white":"text-[var(--obs-text-tertiary)]"}`,children:[l+1,". ",a.name.toUpperCase()]}),e.jsx("div",{className:`text-[9px] mt-0.5 ${i?"text-white/80":"text-[var(--obs-text-tertiary)]"} hidden sm:block`,children:a.desc})]},a.id)})})})}export{se as RSIPage,se as default};
|
assets/charts-Bs1mVvBm.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/circle-alert-Ctr4-rcR.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{c as e}from"./index-CU2OCghA.js";const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],y=e("circle-alert",c);export{y as C};
|
assets/index-CU2OCghA.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BdCpMc3j.js","assets/three-CpAcHy_P.js","assets/EmergenceStream-BcW_H5Hc.js","assets/charts-Bs1mVvBm.js","assets/ByrdChatPage-CfyXzCCp.js","assets/circle-alert-Ctr4-rcR.js","assets/RSIPage-BmMX6ON-.js","assets/MemoryPage-B6BMX3fU.js","assets/EconomicPage-D87arnWS.js","assets/MorePage-DqyS6nPf.js"])))=>i.map(i=>d[i]);
|
| 2 |
+
import{a as i,j as f,c as xt,_ as ae,d as tr}from"./three-CpAcHy_P.js";import{c as te}from"./charts-Bs1mVvBm.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var rt="popstate";function rr(e={}){function t(o,a){let{pathname:s="/",search:l="",hash:c=""}=re(o.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),Ue("",{pathname:s,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let s=o.document.querySelector("base"),l="";if(s&&s.getAttribute("href")){let c=o.location.href,u=c.indexOf("#");l=u===-1?c:c.slice(0,u)}return l+"#"+(typeof a=="string"?a:me(a))}function n(o,a){D(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return or(t,r,n,e)}function L(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function D(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nr(){return Math.random().toString(36).substring(2,10)}function nt(e,t){return{usr:e.state,key:e.key,idx:t}}function Ue(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?re(t):t,state:r,key:t&&t.key||n||nr()}}function me({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function re(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function or(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,s=o.history,l="POP",c=null,u=d();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function d(){return(s.state||{idx:null}).idx}function m(){l="POP";let p=d(),x=p==null?null:p-u;u=p,c&&c({action:l,location:C.location,delta:x})}function b(p,x){l="PUSH";let y=Ue(C.location,p,x);r&&r(y,p),u=d()+1;let S=nt(y,u),T=C.createHref(y);try{s.pushState(S,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(T)}a&&c&&c({action:l,location:C.location,delta:1})}function v(p,x){l="REPLACE";let y=Ue(C.location,p,x);r&&r(y,p),u=d();let S=nt(y,u),T=C.createHref(y);s.replaceState(S,"",T),a&&c&&c({action:l,location:C.location,delta:0})}function w(p){return ar(p)}let C={get action(){return l},get location(){return e(o,s)},listen(p){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(rt,m),c=p,()=>{o.removeEventListener(rt,m),c=null}},createHref(p){return t(o,p)},createURL:w,encodeLocation(p){let x=w(p);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:b,replace:v,go(p){return s.go(p)}};return C}function ar(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),L(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:me(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function vt(e,t,r="/"){return sr(e,t,r,!1)}function sr(e,t,r,n){let o=typeof t=="string"?re(t):t,a=K(o.pathname||"/",r);if(a==null)return null;let s=wt(e);lr(s);let l=null;for(let c=0;l==null&&c<s.length;++c){let u=yr(a);l=gr(s[c],u,n)}return l}function wt(e,t=[],r=[],n="",o=!1){let a=(s,l,c=o,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&c)return;L(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let m=J([n,d.relativePath]),b=r.concat(d);s.children&&s.children.length>0&&(L(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),wt(s.children,t,b,m,c)),!(s.path==null&&!s.index)&&t.push({path:m,score:pr(m,s.index),routesMeta:b})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))a(s,l);else for(let c of kt(s.path))a(s,l,!0,c)}),t}function kt(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let s=kt(n.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function lr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:hr(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var ir=/^:[\w-]+$/,cr=3,ur=2,dr=1,mr=10,fr=-2,ot=e=>e==="*";function pr(e,t){let r=e.split("/"),n=r.length;return r.some(ot)&&(n+=fr),t&&(n+=ur),r.filter(o=>!ot(o)).reduce((o,a)=>o+(ir.test(a)?cr:a===""?dr:mr),n)}function hr(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function gr(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",s=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=a==="/"?t:t.slice(a.length)||"/",m=Te({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),b=c.route;if(!m&&u&&r&&!n[n.length-1].route.index&&(m=Te({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!m)return null;Object.assign(o,m.params),s.push({params:o,pathname:J([a,m.pathname]),pathnameBase:kr(J([a,m.pathnameBase])),route:b}),m.pathnameBase!=="/"&&(a=J([a,m.pathnameBase]))}return s}function Te(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=br(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:n.reduce((u,{paramName:d,isOptional:m},b)=>{if(d==="*"){let w=l[b]||"";s=a.slice(0,a.length-w.length).replace(/(.)\/+$/,"$1")}const v=l[b];return m&&!v?u[d]=void 0:u[d]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function br(e,t=!1,r=!0){D(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function yr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return D(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function K(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var Ct=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xr=e=>Ct.test(e);function vr(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?re(e):e,a;if(r)if(xr(r))a=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),D(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${r}`)}r.startsWith("/")?a=at(r.substring(1),"/"):a=at(r,t)}else a=t;return{pathname:a,search:Cr(n),hash:Rr(o)}}function at(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function $e(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Rt(e){let t=wr(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Et(e,t,r,n=!1){let o;typeof e=="string"?o=re(e):(o={...e},L(!o.pathname||!o.pathname.includes("?"),$e("?","pathname","search",o)),L(!o.pathname||!o.pathname.includes("#"),$e("#","pathname","hash",o)),L(!o.search||!o.search.includes("#"),$e("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=r;else{let m=t.length-1;if(!n&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),m-=1;o.pathname=b.join("/")}l=m>=0?t[m]:"/"}let c=vr(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var J=e=>e.join("/").replace(/\/\/+/g,"/"),kr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Cr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Er=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Sr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Pr(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var St=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Pt(e,t){let r=e;if(typeof r!="string"||!Ct.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(St)try{let a=new URL(window.location.href),s=r.startsWith("//")?new URL(a.protocol+r):new URL(r),l=K(s.pathname,t);s.origin===a.origin&&l!=null?r=l+s.search+s.hash:o=!0}catch{D(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Nt=["POST","PUT","PATCH","DELETE"];new Set(Nt);var Nr=["GET",...Nt];new Set(Nr);var se=i.createContext(null);se.displayName="DataRouter";var Ae=i.createContext(null);Ae.displayName="DataRouterState";var Lr=i.createContext(!1),Lt=i.createContext({isTransitioning:!1});Lt.displayName="ViewTransition";var jr=i.createContext(new Map);jr.displayName="Fetchers";var _r=i.createContext(null);_r.displayName="Await";var B=i.createContext(null);B.displayName="Navigation";var fe=i.createContext(null);fe.displayName="Location";var H=i.createContext({outlet:null,matches:[],isDataRoute:!1});H.displayName="Route";var Ve=i.createContext(null);Ve.displayName="RouteError";var jt="REACT_ROUTER_ERROR",Tr="REDIRECT",Mr="ROUTE_ERROR_RESPONSE";function Ar(e){if(e.startsWith(`${jt}:${Tr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Or(e){if(e.startsWith(`${jt}:${Mr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Er(t.status,t.statusText,t.data)}catch{}}function Ir(e,{relative:t}={}){L(pe(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=i.useContext(B),{hash:o,pathname:a,search:s}=he(e,{relative:t}),l=a;return r!=="/"&&(l=a==="/"?r:J([r,a])),n.createHref({pathname:l,search:s,hash:o})}function pe(){return i.useContext(fe)!=null}function Q(){return L(pe(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(fe).location}var _t="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tt(e){i.useContext(B).static||i.useLayoutEffect(e)}function Je(){let{isDataRoute:e}=i.useContext(H);return e?Xr():$r()}function $r(){L(pe(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(se),{basename:t,navigator:r}=i.useContext(B),{matches:n}=i.useContext(H),{pathname:o}=Q(),a=JSON.stringify(Rt(n)),s=i.useRef(!1);return Tt(()=>{s.current=!0}),i.useCallback((c,u={})=>{if(D(s.current,_t),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=Et(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:J([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}var zr=i.createContext(null);function Dr(e){let t=i.useContext(H).outlet;return i.useMemo(()=>t&&i.createElement(zr.Provider,{value:e},t),[t,e])}function he(e,{relative:t}={}){let{matches:r}=i.useContext(H),{pathname:n}=Q(),o=JSON.stringify(Rt(r));return i.useMemo(()=>Et(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function Br(e,t){return Mt(e,t)}function Mt(e,t,r,n,o){L(pe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(B),{matches:s}=i.useContext(H),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",m=l&&l.route;{let y=m&&m.path||"";Ot(u,!m||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
| 3 |
+
|
| 4 |
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let b=Q(),v;if(t){let y=typeof t=="string"?re(t):t;L(d==="/"||y.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${y.pathname}" was given in the \`location\` prop.`),v=y}else v=b;let w=v.pathname||"/",C=w;if(d!=="/"){let y=d.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=vt(e,{pathname:C});D(m||p!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),D(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=Gr(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},c,y.params),pathname:J([d,a.encodeLocation?a.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?d:J([d,a.encodeLocation?a.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),s,r,n,o);return t&&x?i.createElement(fe.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},x):x}function Fr(){let e=qr(),t=Sr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:o},r):null,s)}var Wr=i.createElement(Fr,null),At=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Or(e.digest);r&&(e=r)}let t=e!==void 0?i.createElement(H.Provider,{value:this.props.routeContext},i.createElement(Ve.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(Ur,{error:e},t):t}};At.contextType=Lr;var ze=new WeakMap;function Ur({children:e,error:t}){let{basename:r}=i.useContext(B);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=Ar(t.digest);if(n){let o=ze.get(t);if(o)throw o;let a=Pt(n.location,r);if(St&&!ze.get(t))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw ze.set(t,s),s}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function Hr({routeContext:e,match:t,children:r}){let n=i.useContext(se);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(H.Provider,{value:e},r)}function Gr(e,t=[],r=null,n=null,o=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=r?.errors;if(s!=null){let d=a.findIndex(m=>m.route.id&&s?.[m.route.id]!==void 0);L(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(r)for(let d=0;d<a.length;d++){let m=a[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(c=d),m.route.id){let{loaderData:b,errors:v}=r,w=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||w){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}let u=r&&n?(d,m)=>{n(d,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Pr(r.matches),errorInfo:m})}:void 0;return a.reduceRight((d,m,b)=>{let v,w=!1,C=null,p=null;r&&(v=s&&m.route.id?s[m.route.id]:void 0,C=m.route.errorElement||Wr,l&&(c<0&&b===0?(Ot("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,p=null):c===b&&(w=!0,p=m.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,b+1)),y=()=>{let S;return v?S=C:w?S=p:m.route.Component?S=i.createElement(m.route.Component,null):m.route.element?S=m.route.element:S=d,i.createElement(Hr,{match:m,routeContext:{outlet:d,matches:x,isDataRoute:r!=null},children:S})};return r&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?i.createElement(At,{location:r.location,revalidation:r.revalidation,component:C,error:v,children:y(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:u}):y()},null)}function Ye(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vr(e){let t=i.useContext(se);return L(t,Ye(e)),t}function Jr(e){let t=i.useContext(Ae);return L(t,Ye(e)),t}function Yr(e){let t=i.useContext(H);return L(t,Ye(e)),t}function Ke(e){let t=Yr(e),r=t.matches[t.matches.length-1];return L(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Kr(){return Ke("useRouteId")}function qr(){let e=i.useContext(Ve),t=Jr("useRouteError"),r=Ke("useRouteError");return e!==void 0?e:t.errors?.[r]}function Xr(){let{router:e}=Vr("useNavigate"),t=Ke("useNavigate"),r=i.useRef(!1);return Tt(()=>{r.current=!0}),i.useCallback(async(o,a={})=>{D(r.current,_t),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var st={};function Ot(e,t,r){!t&&!st[e]&&(st[e]=!0,D(!1,r))}i.memo(Zr);function Zr({routes:e,future:t,state:r,onError:n}){return Mt(e,void 0,r,n,t)}function Qr(e){return Dr(e.context)}function Z(e){L(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function en({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,unstable_useTransitions:s}){L(!pe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:l,navigator:o,static:a,unstable_useTransitions:s,future:{}}),[l,o,a,s]);typeof r=="string"&&(r=re(r));let{pathname:u="/",search:d="",hash:m="",state:b=null,key:v="default"}=r,w=i.useMemo(()=>{let C=K(u,l);return C==null?null:{location:{pathname:C,search:d,hash:m,state:b,key:v},navigationType:n}},[l,u,d,m,b,v,n]);return D(w!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:i.createElement(B.Provider,{value:c},i.createElement(fe.Provider,{children:t,value:w}))}function tn({children:e,location:t}){return Br(He(e),t)}function He(e,t=[]){let r=[];return i.Children.forEach(e,(n,o)=>{if(!i.isValidElement(n))return;let a=[...t,o];if(n.type===i.Fragment){r.push.apply(r,He(n.props.children,a));return}L(n.type===Z,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),L(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=He(n.props.children,a)),r.push(s)}),r}var je="get",_e="application/x-www-form-urlencoded";function Oe(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function rn(e){return Oe(e)&&e.tagName.toLowerCase()==="button"}function nn(e){return Oe(e)&&e.tagName.toLowerCase()==="form"}function on(e){return Oe(e)&&e.tagName.toLowerCase()==="input"}function an(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sn(e,t){return e.button===0&&(!t||t==="_self")&&!an(e)}var Re=null;function ln(){if(Re===null)try{new FormData(document.createElement("form"),0),Re=!1}catch{Re=!0}return Re}var cn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function De(e){return e!=null&&!cn.has(e)?(D(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_e}"`),null):e}function un(e,t){let r,n,o,a,s;if(nn(e)){let l=e.getAttribute("action");n=l?K(l,t):null,r=e.getAttribute("method")||je,o=De(e.getAttribute("enctype"))||_e,a=new FormData(e)}else if(rn(e)||on(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(n=c?K(c,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||je,o=De(e.getAttribute("formenctype"))||De(l.getAttribute("enctype"))||_e,a=new FormData(l,e),!ln()){let{name:u,type:d,value:m}=e;if(d==="image"){let b=u?`${u}.`:"";a.append(`${b}x`,"0"),a.append(`${b}y`,"0")}else u&&a.append(u,m)}}else{if(Oe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=je,n=null,o=_e,s=e}return a&&o==="text/plain"&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dn(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&K(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function mn(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fn(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function pn(e,t,r){let n=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let s=await mn(a,r);return s.links?s.links():[]}return[]}));return yn(n.flat(1).filter(fn).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function lt(e,t,r,n,o,a){let s=(c,u)=>r[u]?c.route.id!==r[u].route.id:!0,l=(c,u)=>r[u].pathname!==c.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==c.params["*"];return a==="assets"?t.filter((c,u)=>s(c,u)||l(c,u)):a==="data"?t.filter((c,u)=>{let d=n.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(s(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let m=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function hn(e,t,{includeHydrateFallback:r}={}){return gn(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function gn(e){return[...new Set(e)]}function bn(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function yn(e,t){let r=new Set;return new Set(t),e.reduce((n,o)=>{let a=JSON.stringify(bn(o));return r.has(a)||(r.add(a),n.push({key:a,link:o})),n},[])}function It(){let e=i.useContext(se);return qe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xn(){let e=i.useContext(Ae);return qe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Xe=i.createContext(void 0);Xe.displayName="FrameworkContext";function $t(){let e=i.useContext(Xe);return qe(e,"You must render this element inside a <HydratedRouter> element"),e}function vn(e,t){let r=i.useContext(Xe),[n,o]=i.useState(!1),[a,s]=i.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:m}=t,b=i.useRef(null);i.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let C=x=>{x.forEach(y=>{s(y.isIntersecting)})},p=new IntersectionObserver(C,{threshold:.5});return b.current&&p.observe(b.current),()=>{p.disconnect()}}},[e]),i.useEffect(()=>{if(n){let C=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(C)}}},[n]);let v=()=>{o(!0)},w=()=>{o(!1),s(!1)};return r?e!=="intent"?[a,b,{}]:[a,b,{onFocus:ue(l,v),onBlur:ue(c,w),onMouseEnter:ue(u,v),onMouseLeave:ue(d,w),onTouchStart:ue(m,v)}]:[!1,b,{}]}function ue(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function wn({page:e,...t}){let{router:r}=It(),n=i.useMemo(()=>vt(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?i.createElement(Cn,{page:e,matches:n,...t}):null}function kn(e){let{manifest:t,routeModules:r}=$t(),[n,o]=i.useState([]);return i.useEffect(()=>{let a=!1;return pn(e,t,r).then(s=>{a||o(s)}),()=>{a=!0}},[e,t,r]),n}function Cn({page:e,matches:t,...r}){let n=Q(),{manifest:o,routeModules:a}=$t(),{basename:s}=It(),{loaderData:l,matches:c}=xn(),u=i.useMemo(()=>lt(e,t,c,o,n,"data"),[e,t,c,o,n]),d=i.useMemo(()=>lt(e,t,c,o,n,"assets"),[e,t,c,o,n]),m=i.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let w=new Set,C=!1;if(t.forEach(x=>{let y=o.routes[x.route.id];!y||!y.hasLoader||(!u.some(S=>S.route.id===x.route.id)&&x.route.id in l&&a[x.route.id]?.shouldRevalidate||y.hasClientLoader?C=!0:w.add(x.route.id))}),w.size===0)return[];let p=dn(e,s,"data");return C&&w.size>0&&p.searchParams.set("_routes",t.filter(x=>w.has(x.route.id)).map(x=>x.route.id).join(",")),[p.pathname+p.search]},[s,l,n,o,u,t,e,a]),b=i.useMemo(()=>hn(d,o),[d,o]),v=kn(d);return i.createElement(i.Fragment,null,m.map(w=>i.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),b.map(w=>i.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),v.map(({key:w,link:C})=>i.createElement("link",{key:w,nonce:r.nonce,...C})))}function Rn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var En=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{En&&(window.__reactRouterVersion="7.11.0")}catch{}function Sn({basename:e,children:t,unstable_useTransitions:r,window:n}){let o=i.useRef();o.current==null&&(o.current=rr({window:n,v5Compat:!0}));let a=o.current,[s,l]=i.useState({action:a.action,location:a.location}),c=i.useCallback(u=>{r===!1?l(u):i.startTransition(()=>l(u))},[r]);return i.useLayoutEffect(()=>a.listen(c),[a,c]),i.createElement(en,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,unstable_useTransitions:r})}var zt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dt=i.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:a,replace:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:m,unstable_defaultShouldRevalidate:b,...v},w){let{basename:C,unstable_useTransitions:p}=i.useContext(B),x=typeof u=="string"&&zt.test(u),y=Pt(u,C);u=y.to;let S=Ir(u,{relative:o}),[T,N,I]=vn(n,v),$=jn(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:m,unstable_defaultShouldRevalidate:b,unstable_useTransitions:p});function k(U){t&&t(U),U.defaultPrevented||$(U)}let A=i.createElement("a",{...v,...I,href:y.absoluteURL||S,onClick:y.isExternal||a?t:k,ref:Rn(w,N),target:c,"data-discover":!x&&r==="render"?"true":void 0});return T&&!x?i.createElement(i.Fragment,null,A,i.createElement(wn,{page:S})):A});Dt.displayName="Link";var Pn=i.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:s,viewTransition:l,children:c,...u},d){let m=he(s,{relative:u.relative}),b=Q(),v=i.useContext(Ae),{navigator:w,basename:C}=i.useContext(B),p=v!=null&&On(m)&&l===!0,x=w.encodeLocation?w.encodeLocation(m).pathname:m.pathname,y=b.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(y=y.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&C&&(S=K(S,C)||S);const T=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let N=y===x||!o&&y.startsWith(x)&&y.charAt(T)==="/",I=S!=null&&(S===x||!o&&S.startsWith(x)&&S.charAt(x.length)==="/"),$={isActive:N,isPending:I,isTransitioning:p},k=N?t:void 0,A;typeof n=="function"?A=n($):A=[n,N?"active":null,I?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let U=typeof a=="function"?a($):a;return i.createElement(Dt,{...u,"aria-current":k,className:A,ref:d,style:U,to:s,viewTransition:l},typeof c=="function"?c($):c)});Pn.displayName="NavLink";var Nn=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:s=je,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:m,unstable_defaultShouldRevalidate:b,...v},w)=>{let{unstable_useTransitions:C}=i.useContext(B),p=Mn(),x=An(l,{relative:u}),y=s.toLowerCase()==="get"?"get":"post",S=typeof l=="string"&&zt.test(l),T=N=>{if(c&&c(N),N.defaultPrevented)return;N.preventDefault();let I=N.nativeEvent.submitter,$=I?.getAttribute("formmethod")||s,k=()=>p(I||N.currentTarget,{fetcherKey:t,method:$,navigate:r,replace:o,state:a,relative:u,preventScrollReset:d,viewTransition:m,unstable_defaultShouldRevalidate:b});C&&r!==!1?i.startTransition(()=>k()):k()};return i.createElement("form",{ref:w,method:y,action:x,onSubmit:n?c:T,...v,"data-discover":!S&&e==="render"?"true":void 0})});Nn.displayName="Form";function Ln(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bt(e){let t=i.useContext(se);return L(t,Ln(e)),t}function jn(e,{target:t,replace:r,state:n,preventScrollReset:o,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=Je(),d=Q(),m=he(e,{relative:a});return i.useCallback(b=>{if(sn(b,t)){b.preventDefault();let v=r!==void 0?r:me(d)===me(m),w=()=>u(e,{replace:v,state:n,preventScrollReset:o,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l});c?i.startTransition(()=>w()):w()}},[d,u,m,r,n,t,e,o,a,s,l,c])}var _n=0,Tn=()=>`__${String(++_n)}__`;function Mn(){let{router:e}=Bt("useSubmit"),{basename:t}=i.useContext(B),r=Kr(),n=e.fetch,o=e.navigate;return i.useCallback(async(a,s={})=>{let{action:l,method:c,encType:u,formData:d,body:m}=un(a,t);if(s.navigate===!1){let b=s.fetcherKey||Tn();await n(b,r,s.action||l,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:m,formMethod:s.method||c,formEncType:s.encType||u,flushSync:s.flushSync})}else await o(s.action||l,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:m,formMethod:s.method||c,formEncType:s.encType||u,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,o,t,r])}function An(e,{relative:t}={}){let{basename:r}=i.useContext(B),n=i.useContext(H);L(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...he(e||".",{relative:t})},s=Q();if(e==null){a.search=s.search;let l=new URLSearchParams(a.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(m=>m).forEach(m=>l.append("index",m));let d=l.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:J([r,a.pathname])),me(a)}function On(e,{relative:t}={}){let r=i.useContext(Lt);L(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Bt("useViewTransitionState"),o=he(e,{relative:t});if(!r.isTransitioning)return!1;let a=K(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=K(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Te(o.pathname,s)!=null||Te(o.pathname,a)!=null}const In=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$n=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),it=e=>{const t=$n(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ft=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),zn=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Dn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Bn=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...l},c)=>i.createElement("svg",{ref:c,...Dn,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Ft("lucide",o),...!a&&!zn(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,d])=>i.createElement(u,d)),...Array.isArray(a)?a:[a]]));const W=(e,t)=>{const r=i.forwardRef(({className:n,...o},a)=>i.createElement(Bn,{ref:a,iconNode:t,className:Ft(`lucide-${In(it(e))}`,`lucide-${e}`,n),...o}));return r.displayName=it(e),r};const Fn=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Wn=W("arrow-left",Fn);const Un=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Hn=W("dollar-sign",Un);const Gn=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Vn=W("ellipsis",Gn);const Jn=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Yn=W("git-branch",Jn);const Kn=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],qn=W("house",Kn);const Xn=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Zn=W("message-square",Xn);const Qn=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],eo=W("moon",Qn);const to=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],ro=W("network",to);const no=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],oo=W("settings",no);const ao=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],so=W("sun",ao);const lo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],io=W("x",lo),co=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},uo=(e,t)=>({classGroupId:e,validator:t}),Wt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Me="-",ct=[],mo="arbitrary..",fo=e=>{const t=ho(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return po(s);const l=s.split(Me),c=l[0]===""&&l.length>1?1:0;return Ut(l,c,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const c=n[s],u=r[s];return c?u?co(u,c):c:u||ct}return r[s]||ct}}},Ut=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],a=r.nextPart.get(o);if(a){const u=Ut(e,t+1,a);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(Me):e.slice(t).join(Me),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(l))return d.classGroupId}},po=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?mo+n:void 0})(),ho=e=>{const{theme:t,classGroups:r}=e;return go(r,t)},go=(e,t)=>{const r=Wt();for(const n in e){const o=e[n];Ze(o,r,n,t)}return r},Ze=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];bo(s,t,r,n)}},bo=(e,t,r,n)=>{if(typeof e=="string"){yo(e,t,r);return}if(typeof e=="function"){xo(e,t,r,n);return}vo(e,t,r,n)},yo=(e,t,r)=>{const n=e===""?t:Ht(t,e);n.classGroupId=r},xo=(e,t,r,n)=>{if(wo(e)){Ze(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(uo(r,e))},vo=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[l,c]=o[s];Ze(c,Ht(t,l),r,n)}},Ht=(e,t)=>{let r=e;const n=t.split(Me),o=n.length;for(let a=0;a<o;a++){const s=n[a];let l=r.nextPart.get(s);l||(l=Wt(),r.nextPart.set(s,l)),r=l}return r},wo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ko=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,s)=>{r[a]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=n[a])!==void 0)return o(a,s),s},set(a,s){a in r?r[a]=s:o(a,s)}}},Ge="!",ut=":",Co=[],dt=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Ro=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,l=0,c=0,u;const d=o.length;for(let C=0;C<d;C++){const p=o[C];if(s===0&&l===0){if(p===ut){a.push(o.slice(c,C)),c=C+1;continue}if(p==="/"){u=C;continue}}p==="["?s++:p==="]"?s--:p==="("?l++:p===")"&&l--}const m=a.length===0?o:o.slice(c);let b=m,v=!1;m.endsWith(Ge)?(b=m.slice(0,-1),v=!0):m.startsWith(Ge)&&(b=m.slice(1),v=!0);const w=u&&u>c?u-c:void 0;return dt(a,v,b,w)};if(t){const o=t+ut,a=n;n=s=>s.startsWith(o)?a(s.slice(o.length)):dt(Co,!1,s,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Eo=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const s=r[a],l=s[0]==="[",c=t.has(s);l||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},So=e=>({cache:ko(e.cacheSize),parseClassName:Ro(e),sortModifiers:Eo(e),...fo(e)}),Po=/\s+/,No=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],l=e.trim().split(Po);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:m,modifiers:b,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:C}=r(d);if(m){c=d+(c.length>0?" "+c:c);continue}let p=!!C,x=n(p?w.substring(0,C):w);if(!x){if(!p){c=d+(c.length>0?" "+c:c);continue}if(x=n(w),!x){c=d+(c.length>0?" "+c:c);continue}p=!1}const y=b.length===0?"":b.length===1?b[0]:a(b).join(":"),S=v?y+Ge:y,T=S+x;if(s.indexOf(T)>-1)continue;s.push(T);const N=o(x,p);for(let I=0;I<N.length;++I){const $=N[I];s.push(S+$)}c=d+(c.length>0?" "+c:c)}return c},Lo=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Gt(r))&&(o&&(o+=" "),o+=n);return o},Gt=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Gt(e[n]))&&(r&&(r+=" "),r+=t);return r},jo=(e,...t)=>{let r,n,o,a;const s=c=>{const u=t.reduce((d,m)=>m(d),e());return r=So(u),n=r.cache.get,o=r.cache.set,a=l,l(c)},l=c=>{const u=n(c);if(u)return u;const d=No(c,r);return o(c,d),d};return a=s,(...c)=>a(Lo(...c))},_o=[],M=e=>{const t=r=>r[e]||_o;return t.isThemeGetter=!0,t},Vt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,To=/^\d+\/\d+$/,Mo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ao=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$o=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>To.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),Be=e=>e.endsWith("%")&&E(e.slice(0,-1)),V=e=>Mo.test(e),zo=()=>!0,Do=e=>Ao.test(e)&&!Oo.test(e),Yt=()=>!1,Bo=e=>Io.test(e),Fo=e=>$o.test(e),Wo=e=>!h(e)&&!g(e),Uo=e=>le(e,Xt,Yt),h=e=>Vt.test(e),ee=e=>le(e,Zt,Do),Fe=e=>le(e,Yo,E),mt=e=>le(e,Kt,Yt),Ho=e=>le(e,qt,Fo),Ee=e=>le(e,Qt,Bo),g=e=>Jt.test(e),de=e=>ie(e,Zt),Go=e=>ie(e,Ko),ft=e=>ie(e,Kt),Vo=e=>ie(e,Xt),Jo=e=>ie(e,qt),Se=e=>ie(e,Qt,!0),le=(e,t,r)=>{const n=Vt.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},ie=(e,t,r=!1)=>{const n=Jt.exec(e);return n?n[1]?t(n[1]):r:!1},Kt=e=>e==="position"||e==="percentage",qt=e=>e==="image"||e==="url",Xt=e=>e==="length"||e==="size"||e==="bg-size",Zt=e=>e==="length",Yo=e=>e==="number",Ko=e=>e==="family-name",Qt=e=>e==="shadow",qo=()=>{const e=M("color"),t=M("font"),r=M("text"),n=M("font-weight"),o=M("tracking"),a=M("leading"),s=M("breakpoint"),l=M("container"),c=M("spacing"),u=M("radius"),d=M("shadow"),m=M("inset-shadow"),b=M("text-shadow"),v=M("drop-shadow"),w=M("blur"),C=M("perspective"),p=M("aspect"),x=M("ease"),y=M("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...T(),g,h],I=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],k=()=>[g,h,c],A=()=>[oe,"full","auto",...k()],U=()=>[X,"none","subgrid",g,h],ge=()=>["auto",{span:["full",X,g,h]},X,g,h],ne=()=>[X,"auto",g,h],be=()=>["auto","min","max","fr",g,h],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...k()],G=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],R=()=>[e,g,h],ye=()=>[...T(),ft,mt,{position:[g,h]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",Vo,Uo,{size:[g,h]}],_=()=>[Be,de,ee],P=()=>["","none","full",u,g,h],j=()=>["",E,de,ee],z=()=>["solid","dashed","dotted","double"],et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[E,Be,ft,mt],tt=()=>["","none",w,g,h],we=()=>["none",E,g,h],ke=()=>["none",E,g,h],Ie=()=>[E,g,h],Ce=()=>[oe,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[V],breakpoint:[V],color:[zo],container:[V],"drop-shadow":[V],ease:["in","out","in-out"],font:[Wo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[V],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[V],shadow:[V],spacing:["px",E],text:[V],"text-shadow":[V],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,h,g,p]}],container:["container"],columns:[{columns:[E,h,g,l]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",g,h]}],basis:[{basis:[oe,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,oe,"auto","initial","none",h]}],grow:[{grow:["",E,g,h]}],shrink:[{shrink:["",E,g,h]}],order:[{order:[X,"first","last","none",g,h]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:ge()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:ge()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[l,"screen",...G()]}],"min-w":[{"min-w":[l,"screen","none",...G()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,de,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,g,Fe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Be,h]}],"font-family":[{font:[Go,h,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,g,h]}],"line-clamp":[{"line-clamp":[E,"none",g,Fe]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",g,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",g,ee]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[E,"auto",g,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",g,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,g,h],radial:["",g,h],conic:[X,g,h]},Jo,Ho]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,g,h]}],"outline-w":[{outline:["",E,de,ee]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",d,Se,Ee]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",m,Se,Ee]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[E,ee]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",b,Se,Ee]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[E,g,h]}],"mix-blend":[{"mix-blend":[...et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":et()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[g,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,h]}],filter:[{filter:["","none",g,h]}],blur:[{blur:tt()}],brightness:[{brightness:[E,g,h]}],contrast:[{contrast:[E,g,h]}],"drop-shadow":[{"drop-shadow":["","none",v,Se,Ee]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",E,g,h]}],"hue-rotate":[{"hue-rotate":[E,g,h]}],invert:[{invert:["",E,g,h]}],saturate:[{saturate:[E,g,h]}],sepia:[{sepia:["",E,g,h]}],"backdrop-filter":[{"backdrop-filter":["","none",g,h]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[E,g,h]}],"backdrop-contrast":[{"backdrop-contrast":[E,g,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,g,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,g,h]}],"backdrop-invert":[{"backdrop-invert":["",E,g,h]}],"backdrop-opacity":[{"backdrop-opacity":[E,g,h]}],"backdrop-saturate":[{"backdrop-saturate":[E,g,h]}],"backdrop-sepia":[{"backdrop-sepia":["",E,g,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",g,h]}],ease:[{ease:["linear","initial",x,g,h]}],delay:[{delay:[E,g,h]}],animate:[{animate:["none",y,g,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,g,h]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[g,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g,h]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[E,de,ee,Fe]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Xo=jo(qo);function pt(...e){return Xo(te(e))}const ht=[{route:"home",path:"/home",label:"HOME",icon:qn},{route:"byrd",path:"/byrd",label:"BYRD",icon:Zn},{route:"rsi",path:"/rsi",label:"RSI",icon:Yn},{route:"memory",path:"/memory",label:"MEM",icon:ro},{route:"economic",path:"/economic",label:"ECON",icon:Hn},{route:"more",path:"/more",label:"MORE",icon:Vn}];function Zo(){const e=Je(),t=Q(),r=ht.find(n=>t.pathname===n.path);return f.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-50 bg-[var(--obs-bg-surface)] border-t border-[var(--obs-border)]",children:f.jsx("div",{className:"flex items-center justify-around h-16 max-w-lg mx-auto",children:ht.map(n=>{const o=n.icon,a=r?.route===n.route;return f.jsxs("button",{onClick:()=>e(n.path),className:pt("flex flex-col items-center justify-center flex-1 h-full relative transition-all duration-150","active:scale-95 active:opacity-80",a?"text-[var(--data-stream)]":"text-[var(--obs-text-tertiary)] hover:text-[var(--obs-text-secondary)]"),"aria-label":n.label,"aria-current":a?"page":void 0,children:[f.jsx(o,{className:pt("w-5 h-5",a&&"drop-shadow-[0_0_8px_var(--data-stream)]"),strokeWidth:a?2.5:2}),f.jsx("span",{className:"obs-label text-[9px] mt-1 tracking-wider",children:n.label}),a&&f.jsx("span",{className:"absolute -top-0.5 left-1/2 -translate-x-1/2 w-10 h-0.5 bg-[var(--data-stream)] rounded-full shadow-[0_0_8px_var(--data-stream-glow)]"})]},n.route)})})})}const Qo=xt(e=>({currentTab:"home",setCurrentTab:t=>e({currentTab:t}),theme:"system",setTheme:t=>e({theme:t}),breakpoint:"mobile",setBreakpoint:t=>e({breakpoint:t}),isLoading:!1,setIsLoading:t=>e({isLoading:t}),isByrdChatOpen:!1,setIsByrdChatOpen:t=>e({isByrdChatOpen:t})}));function Qe(e){try{return localStorage.getItem(e)}catch{return null}}function Y(e,t){try{localStorage.setItem(e,t)}catch{}}const Pe="byrd-theme-preference",gt="dark";function er(){const{theme:e,setTheme:t}=Qo();return i.useEffect(()=>{const o=Qe(Pe);o&&(o==="light"||o==="dark"||o==="system")?t(o):(t(gt),Y(Pe,gt))},[]),i.useEffect(()=>{const o=window.document.documentElement,a=e==="dark"||e==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;o.classList.remove("light","dark","observatory"),o.classList.add(a?"dark":"light"),a&&o.classList.add("observatory")},[e]),{theme:e,toggleTheme:()=>{const a=window.document.documentElement.classList.contains("dark")?"light":"dark";t(a),Y(Pe,a)},setTheme:o=>{t(o),Y(Pe,o)}}}const ea={nominal:"status-nominal",caution:"status-caution",critical:"status-critical",inactive:""},ta={none:"",sm:"p-2 lg:p-3",md:"p-3 lg:p-4",lg:"p-4 lg:p-6"};function wa({children:e,className:t="",title:r,status:n,showScanlines:o=!0,showCorners:a=!0,active:s=!1,padding:l="md"}){return f.jsxs("div",{className:te("observatory-panel",a&&"observatory-panel-corners",n&&ea[n],s&&"active",!o&&"before:hidden",ta[l],t),children:[r&&f.jsxs("div",{className:"obs-label mb-2 flex items-center gap-2",children:[n&&f.jsx("span",{className:te("status-dot",n==="nominal"&&"status-dot-nominal",n==="caution"&&"status-dot-caution",n==="critical"&&"status-dot-critical",n==="inactive"&&"status-dot-inactive")}),f.jsx("span",{children:r})]}),f.jsx("div",{className:"relative z-10",children:e})]})}function ra({status:e,label:t,size:r="md"}){const n={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"};return f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:te("rounded-full animate-status-beacon",n[r],e==="nominal"&&"bg-[var(--status-nominal)] shadow-[0_0_8px_var(--status-nominal-glow)]",e==="caution"&&"bg-[var(--status-caution)] shadow-[0_0_8px_var(--status-caution-glow)]",e==="critical"&&"bg-[var(--status-critical)] shadow-[0_0_8px_var(--status-critical-glow)]",e==="inactive"&&"bg-[var(--status-inactive)] animate-none")}),t&&f.jsx("span",{className:te("obs-label",e==="nominal"&&"text-[var(--status-nominal)]",e==="caution"&&"text-[var(--status-caution)]",e==="critical"&&"text-[var(--status-critical)]",e==="inactive"&&"text-[var(--status-inactive)]"),children:t})]})}function ka({value:e,label:t,unit:r,trend:n,trendValue:o,size:a="lg",status:s="nominal"}){const l={md:"text-2xl",lg:"obs-metric-lg",xl:"obs-metric-xl"},c={nominal:"text-[var(--status-nominal)]",caution:"text-[var(--status-caution)]",critical:"text-[var(--status-critical)]",inactive:"text-[var(--obs-text-tertiary)]"};return f.jsxs("div",{className:"flex flex-col",children:[t&&f.jsx("span",{className:"obs-label mb-1",children:t}),f.jsxs("div",{className:"flex items-baseline gap-1",children:[f.jsx("span",{className:te("obs-metric animate-metric-pulse",l[a],c[s]),children:e}),r&&f.jsx("span",{className:"obs-label text-[var(--obs-text-tertiary)]",children:r})]}),n&&o&&f.jsx("div",{className:"flex items-center gap-1 mt-1",children:f.jsxs("span",{className:te("text-xs font-mono",n==="up"&&"text-[var(--status-nominal)]",n==="down"&&"text-[var(--status-critical)]",n==="stable"&&"text-[var(--obs-text-tertiary)]"),children:[n==="up"&&"▲",n==="down"&&"▼",n==="stable"&&"─"," ",o]})})]})}function na({title:e="BYRD",showBack:t=!1,showSettings:r=!0,status:n="inactive"}){const o=Je(),{theme:a,toggleTheme:s}=er(),l=a==="dark"||a==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;return f.jsx("header",{className:"flex-shrink-0 bg-[var(--obs-bg-surface)] border-b border-[var(--obs-border)] px-4 py-3",children:f.jsxs("div",{className:"flex items-center justify-between max-w-4xl mx-auto",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[t&&f.jsx("button",{onClick:()=>o(-1),className:"p-2 -ml-2 hover:bg-[var(--obs-bg-elevated)] rounded transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)]","aria-label":"Go back",children:f.jsx(Wn,{className:"w-5 h-5 text-[var(--obs-text-secondary)]"})}),f.jsx("h1",{className:"obs-label text-sm tracking-widest text-[var(--obs-text-primary)]",children:e}),f.jsx(ra,{status:n,size:"sm"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:s,className:"p-2 rounded hover:bg-[var(--obs-bg-elevated)] transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)]","aria-label":"Toggle theme",children:l?f.jsx(so,{className:"w-5 h-5 text-[var(--cat-eye-gold)]"}):f.jsx(eo,{className:"w-5 h-5 text-[var(--obs-text-secondary)]"})}),r&&f.jsx("button",{onClick:()=>o("/more"),className:"p-2 rounded hover:bg-[var(--obs-bg-elevated)] transition-colors focus:outline-none focus:ring-2 focus:ring-[var(--data-stream)]","aria-label":"Settings",children:f.jsx(oo,{className:"w-5 h-5 text-[var(--obs-text-secondary)]"})})]})]})})}function oa({children:e}){return f.jsxs("div",{className:"flex flex-col h-screen bg-slate-50 dark:bg-slate-900",children:[f.jsx(na,{}),f.jsx("main",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:e||f.jsx(Qr,{})}),f.jsx(Zo,{})]})}const aa=500,We=xt((e,t)=>({events:[],connected:!1,lastEventTime:null,addEvent:r=>{e(n=>({events:[r,...n.events].slice(0,aa),lastEventTime:r.timestamp}))},setConnected:r=>{e({connected:r})},clearEvents:()=>e({events:[],lastEventTime:null}),getEventsByType:r=>t().events.filter(n=>n.type===r)})),Ne="byrd_websocket_available";function sa(){const e=i.useRef(null),t=i.useRef(0),r=2,n=i.useRef(!1),o=We(c=>c.addEvent),a=We(c=>c.setConnected),s=i.useCallback(()=>{if(Qe(Ne)==="false"&&t.current>=r){n.current||(console.log("🟡 BYRD Demo Mode: WebSocket not available. Real-time events disabled."),n.current=!0);return}const u="wss://byrd-api-production.up.railway.app/ws/events";try{e.current=new WebSocket(u),e.current.onopen=()=>{console.log("🟢 WebSocket connected"),a(!0),t.current=0,Y(Ne,"true")},e.current.onmessage=d=>{try{const m=JSON.parse(d.data);m.timestamp||(m.timestamp=new Date().toISOString()),m.id||(m.id=`${m.type}_${Date.now()}_${Math.random().toString(36).substr(2,9)}`),o(m)}catch(m){console.error("Failed to parse WebSocket message:",m)}},e.current.onclose=()=>{if(console.log("WebSocket disconnected"),a(!1),t.current<r){const d=Math.min(1e3*Math.pow(2,t.current),3e4);console.log(`Reconnecting in ${d}ms... (attempt ${t.current+1}/${r})`),setTimeout(()=>{t.current++,s()},d)}else Y(Ne,"false"),n.current||(console.log("🟡 BYRD Demo Mode: WebSocket unavailable after connection attempts. Real-time events disabled."),n.current=!0)},e.current.onerror=d=>{console.error("WebSocket error:",d)}}catch(d){console.error("Failed to create WebSocket:",d),Y(Ne,"false")}},[o,a]);i.useEffect(()=>{s();const c=setInterval(()=>{e.current?.readyState===WebSocket.OPEN&&e.current.send(JSON.stringify({type:"ping"}))},3e4);return()=>{clearInterval(c),e.current?.close()}},[s]);const l=i.useCallback(c=>{e.current?.readyState===WebSocket.OPEN&&e.current.send(JSON.stringify(c))},[]);return{isConnected:We(c=>c.connected),send:l}}const bt="https://byrd-api-production.up.railway.app/api",Le="byrd_backend_available";function la(){const[e,t]=i.useState(!1),[r,n]=i.useState(null),[o,a]=i.useState(null),s=i.useRef(!1);i.useEffect(()=>{const _=async()=>{try{const z=(await fetch(`${bt}/status`,{method:"HEAD",signal:AbortSignal.timeout(5e3)})).ok;a(z),Y(Le,z.toString()),!z&&!s.current?(console.log("🟡 BYRD Demo Mode: Backend not available. Running in demo mode."),s.current=!0):z&&!s.current&&(console.log("🟢 BYRD Backend: Connected and operational."),s.current=!0)}catch{a(!1),Y(Le,"false"),s.current||(console.log("🟡 BYRD Demo Mode: Backend not available. Running in demo mode."),s.current=!0)}},P=Qe(Le);P!==null&&a(P==="true"),_()},[]);const l=i.useCallback(async(_,P)=>{if(o===!1)return null;t(!0),n(null);try{const j=await fetch(`${bt}${_}`,{headers:{"Content-Type":"application/json"},...P});if(!j.ok)throw new Error(`HTTP ${j.status}: ${j.statusText}`);return await j.json()}catch(j){const z=j instanceof Error?j.message:"Unknown error";return(z.includes("404")||z.includes("Failed to fetch"))&&(a(!1),Y(Le,"false")),o===!0&&(n(z),console.error(`API Error: ${z}`)),null}finally{t(!1)}},[o]),c=i.useCallback(async()=>l("/status"),[l]),u=i.useCallback(async()=>await l("/start",{method:"POST"})!==null,[l]),d=i.useCallback(async()=>await l("/stop",{method:"POST"})!==null,[l]),m=i.useCallback(async(_=!1)=>await l("/reset",{method:"POST",body:JSON.stringify({hard_reset:_})})!==null,[l]),b=i.useCallback(async()=>l("/rsi/status"),[l]),v=i.useCallback(async()=>l("/rsi/metrics"),[l]),w=i.useCallback(async()=>l("/rsi/ralph-loop"),[l]),C=i.useCallback(async()=>l("/economic/treasury"),[l]),p=i.useCallback(async()=>l("/economic/revenue"),[l]),x=i.useCallback(async()=>l("/economic/marketplace"),[l]),y=i.useCallback(async()=>l("/scaling/growth-rate"),[l]),S=i.useCallback(async()=>l("/scaling/explosion-phase"),[l]),T=i.useCallback(async()=>l("/verification/human-anchoring"),[l]),N=i.useCallback(async(_,P)=>l(`/verification/human-anchoring/${_}`,{method:"POST",body:JSON.stringify(P)}),[l]),I=i.useCallback(async(_,P)=>l(`/verification/human-anchoring/${_}`,{method:"POST",body:JSON.stringify({approved:P})}),[l]),$=i.useCallback(async()=>l("/verification/status"),[l]),k=i.useCallback(async()=>l("/plasticity/modules"),[l]),A=i.useCallback(async()=>l("/plasticity/nas"),[l]),U=i.useCallback(async()=>l("/scaling/metrics"),[l]),ge=i.useCallback(async()=>l("/rsi/cycle",{method:"POST"}),[l]),ne=i.useCallback(async()=>l("/rsi/stop",{method:"POST"}),[l]),be=i.useCallback(async()=>l("/system/reset",{method:"POST"}),[l]),ce=i.useCallback(async()=>l("/system/status"),[l]),q=i.useCallback(async()=>l("/governance/direction"),[l]),F=i.useCallback(async _=>l("/governance/direction",{method:"POST",body:JSON.stringify({content:_})}),[l]),G=i.useCallback(async _=>l("/governance/command",{method:"POST",body:JSON.stringify({command:_})}),[l]),R=i.useCallback(async()=>l("/governance/history"),[l]),ye=i.useCallback(async(_,P)=>l("/governance/inject-desire",{method:"POST",body:JSON.stringify({description:_,urgency:P})}),[l]),xe=i.useCallback(async()=>l("/governance/desires"),[l]),ve=i.useCallback(async()=>l("/memory/graph"),[l]);return{loading:e,error:r,backendAvailable:o,getStatus:c,startByrd:u,stopByrd:d,resetByrd:m,getRSIStatus:b,getRSIMetrics:v,getRalphLoopStatus:w,getTreasuryStatus:C,getRevenueReport:p,getMarketplaceListings:x,getGrowthRate:y,getExplosionPhase:S,getScalingMetrics:U,getHumanAnchoringQueue:T,processHumanValidation:N,submitAnchoringResponse:I,getVerificationStatus:$,getPlasticityModules:k,getNASCandidates:A,startRSICycle:ge,stopRSICycle:ne,resetSystem:be,getSystemStatus:ce,getDirection:q,updateDirection:F,sendGovernanceCommand:G,getGovernanceHistory:R,injectDesire:ye,getInjectedDesires:xe,getMemoryGraph:ve}}function ia({size:e="md"}){const t={sm:"w-4 h-4 border-2",md:"w-8 h-8 border-3",lg:"w-12 h-12 border-4"};return f.jsx("div",{className:"flex items-center justify-center",children:f.jsx("div",{className:ca("rounded-full border-purple-200 border-t-purple-600 animate-spin",t[e]),role:"status","aria-label":"Loading"})})}function ca(...e){return e.filter(Boolean).join(" ")}function ua({onDismiss:e}){return f.jsx("div",{className:"relative bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-900/20 dark:to-orange-900/20 border-b border-amber-200 dark:border-amber-800",children:f.jsx("div",{className:"max-w-7xl mx-auto px-4 py-3 sm:px-6 lg:px-8",children:f.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"flex-shrink-0 inline-flex items-center justify-center h-6 w-6 rounded-full bg-amber-100 dark:bg-amber-900/50",children:f.jsx("span",{className:"text-amber-600 dark:text-amber-400 text-xs font-semibold",children:"ℹ️"})}),f.jsxs("div",{className:"flex-1 flex flex-col sm:flex-row sm:items-center gap-1 sm:gap-2",children:[f.jsx("p",{className:"text-sm font-medium text-amber-900 dark:text-amber-100",children:"Demo Mode"}),f.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-300 hidden sm:block",children:"·"}),f.jsx("p",{className:"text-xs text-amber-700 dark:text-amber-300",children:"Backend API not connected. Frontend UI is active for demonstration."})]})]}),f.jsx("button",{onClick:e,className:"flex-shrink-0 inline-flex text-amber-700 hover:text-amber-900 dark:text-amber-400 dark:hover:text-amber-200 focus:outline-none focus:ring-2 focus:ring-amber-500 rounded-md p-1","aria-label":"Dismiss",children:f.jsx(io,{className:"h-4 w-4"})})]})})})}const yt=i.lazy(()=>ae(()=>import("./DashboardPage-BdCpMc3j.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.DashboardPage}))),da=i.lazy(()=>ae(()=>import("./ByrdChatPage-CfyXzCCp.js"),__vite__mapDeps([4,1,5,3])).then(e=>({default:e.ByrdChatPage}))),ma=i.lazy(()=>ae(()=>import("./RSIPage-BmMX6ON-.js"),__vite__mapDeps([6,1,3])).then(e=>({default:e.RSIPage}))),fa=i.lazy(()=>ae(()=>import("./MemoryPage-B6BMX3fU.js"),__vite__mapDeps([7,1,2,3])).then(e=>({default:e.MemoryPage}))),pa=i.lazy(()=>ae(()=>import("./EconomicPage-D87arnWS.js"),__vite__mapDeps([8,1,3])).then(e=>({default:e.EconomicPage}))),ha=i.lazy(()=>ae(()=>import("./MorePage-DqyS6nPf.js"),__vite__mapDeps([9,1,5,3])).then(e=>({default:e.MorePage})));function ga(){return f.jsx("div",{className:"flex items-center justify-center h-screen bg-[var(--obs-bg-base)]",children:f.jsx(ia,{size:"lg"})})}function ba(){er();const{isConnected:e}=sa(),{backendAvailable:t}=la(),[r,n]=i.useState(!1);i.useEffect(()=>{console.log(`WebSocket connection status: ${e?"connected":"disconnected"}`)},[e]);const o=t===!1&&!r;return f.jsxs(f.Fragment,{children:[o&&f.jsx(ua,{onDismiss:()=>n(!0)}),f.jsx(i.Suspense,{fallback:f.jsx(ga,{}),children:f.jsx(oa,{children:f.jsxs(tn,{children:[f.jsx(Z,{path:"/",element:f.jsx(yt,{})}),f.jsx(Z,{path:"/home",element:f.jsx(yt,{})}),f.jsx(Z,{path:"/byrd",element:f.jsx(da,{})}),f.jsx(Z,{path:"/rsi",element:f.jsx(ma,{})}),f.jsx(Z,{path:"/memory",element:f.jsx(fa,{})}),f.jsx(Z,{path:"/economic",element:f.jsx(pa,{})}),f.jsx(Z,{path:"/more",element:f.jsx(ha,{})})]})})})]})}function ya(){return f.jsx(Sn,{children:f.jsx(ba,{})})}tr.createRoot(document.getElementById("root")).render(f.jsx(i.StrictMode,{children:f.jsx(ya,{})}));export{Wn as A,ka as M,wa as O,ra as S,io as X,pt as a,Je as b,W as c,oo as d,We as e,er as f,so as g,eo as h,la as u};
|
assets/three-CpAcHy_P.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
index.html
CHANGED
|
@@ -10,9 +10,9 @@
|
|
| 10 |
/* Prevent flash of light theme */
|
| 11 |
html, body { background-color: #050508; }
|
| 12 |
</style>
|
| 13 |
-
<script type="module" crossorigin src="/assets/index-
|
| 14 |
-
<link rel="modulepreload" crossorigin href="/assets/three-
|
| 15 |
-
<link rel="modulepreload" crossorigin href="/assets/charts-
|
| 16 |
<link rel="stylesheet" crossorigin href="/assets/index-C9u_XIEM.css">
|
| 17 |
</head>
|
| 18 |
<body>
|
|
|
|
| 10 |
/* Prevent flash of light theme */
|
| 11 |
html, body { background-color: #050508; }
|
| 12 |
</style>
|
| 13 |
+
<script type="module" crossorigin src="/assets/index-CU2OCghA.js"></script>
|
| 14 |
+
<link rel="modulepreload" crossorigin href="/assets/three-CpAcHy_P.js">
|
| 15 |
+
<link rel="modulepreload" crossorigin href="/assets/charts-Bs1mVvBm.js">
|
| 16 |
<link rel="stylesheet" crossorigin href="/assets/index-C9u_XIEM.css">
|
| 17 |
</head>
|
| 18 |
<body>
|