modular-studio 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +101 -20
  2. package/dist/assets/Badge-22Ai0eyi.js +1 -0
  3. package/dist/assets/Input-Bgp734xs.js +1 -0
  4. package/dist/assets/KnowledgeTab-DABxirZh.js +4 -0
  5. package/dist/assets/MemoryTab-DZeYElIT.js +16 -0
  6. package/dist/assets/QualificationTab-Dfpy3J30.js +1 -0
  7. package/dist/assets/ReviewTab-SD8lQuCc.js +103 -0
  8. package/dist/assets/Section-DoJrmytO.js +1 -0
  9. package/dist/assets/TestTab-PDyMF8Fw.js +33 -0
  10. package/dist/assets/ToolsTab-B83qGCmG.js +1 -0
  11. package/dist/assets/conversationStore-CkfEU2eV.js +1 -0
  12. package/dist/assets/icons-C2EV-le6.js +1 -0
  13. package/dist/assets/index-DkpMAxX7.css +1 -0
  14. package/dist/assets/index-q24ug5Qs.js +143 -0
  15. package/dist/assets/{jszip.min-BK6ZQWkj.js → jszip.min-wf-D3Ix_.js} +1 -1
  16. package/dist/assets/markdown-DWF7F0i0.js +29 -0
  17. package/dist/assets/services-BaKotDf0.js +343 -0
  18. package/dist/assets/stores-CeKWz7ou.js +1 -0
  19. package/dist/assets/vendor-D1h_O76p.js +9 -0
  20. package/dist/index.html +8 -4
  21. package/dist-server/bin/modular-mcp.js +0 -1
  22. package/dist-server/bin/modular-studio.js +0 -1
  23. package/dist-server/server/config.js +0 -1
  24. package/dist-server/server/data/mcp-tokens.json +3 -3
  25. package/dist-server/server/index.d.ts.map +1 -1
  26. package/dist-server/server/index.js +2 -1
  27. package/dist-server/server/mcp/manager.js +0 -1
  28. package/dist-server/server/mcp/modular-server.js +0 -1
  29. package/dist-server/server/mcp/transport.js +0 -1
  30. package/dist-server/server/routes/agent-sdk.js +0 -1
  31. package/dist-server/server/routes/agents.d.ts +9 -5
  32. package/dist-server/server/routes/agents.d.ts.map +1 -1
  33. package/dist-server/server/routes/agents.js +81 -8
  34. package/dist-server/server/routes/auth-codex.js +0 -1
  35. package/dist-server/server/routes/capabilities.js +0 -1
  36. package/dist-server/server/routes/claude-config.js +0 -1
  37. package/dist-server/server/routes/connectors.d.ts.map +1 -1
  38. package/dist-server/server/routes/connectors.js +194 -1
  39. package/dist-server/server/routes/conversations.js +0 -1
  40. package/dist-server/server/routes/embeddings.js +0 -1
  41. package/dist-server/server/routes/health.js +0 -1
  42. package/dist-server/server/routes/knowledge.js +0 -1
  43. package/dist-server/server/routes/llm.js +0 -1
  44. package/dist-server/server/routes/mcp-oauth.js +0 -1
  45. package/dist-server/server/routes/mcp.js +0 -1
  46. package/dist-server/server/routes/memory.d.ts +3 -0
  47. package/dist-server/server/routes/memory.d.ts.map +1 -0
  48. package/dist-server/server/routes/memory.js +283 -0
  49. package/dist-server/server/routes/pipeline.js +0 -1
  50. package/dist-server/server/routes/providers.js +0 -1
  51. package/dist-server/server/routes/qualification.d.ts.map +1 -1
  52. package/dist-server/server/routes/qualification.js +382 -74
  53. package/dist-server/server/routes/repo-index.js +0 -1
  54. package/dist-server/server/routes/runtime.js +0 -1
  55. package/dist-server/server/routes/skills-search.d.ts.map +1 -1
  56. package/dist-server/server/routes/skills-search.js +39 -5
  57. package/dist-server/server/routes/worktrees.js +0 -1
  58. package/dist-server/server/services/__tests__/embeddingService.test.js +0 -1
  59. package/dist-server/server/services/adapters/postgresAdapter.d.ts +29 -0
  60. package/dist-server/server/services/adapters/postgresAdapter.d.ts.map +1 -0
  61. package/dist-server/server/services/adapters/postgresAdapter.js +224 -0
  62. package/dist-server/server/services/adapters/sqliteAdapter.d.ts +28 -0
  63. package/dist-server/server/services/adapters/sqliteAdapter.d.ts.map +1 -0
  64. package/dist-server/server/services/adapters/sqliteAdapter.js +219 -0
  65. package/dist-server/server/services/adapters/storageAdapter.d.ts +22 -0
  66. package/dist-server/server/services/adapters/storageAdapter.d.ts.map +1 -0
  67. package/dist-server/server/services/adapters/storageAdapter.js +1 -0
  68. package/dist-server/server/services/agentRunner.js +0 -1
  69. package/dist-server/server/services/agentStore.d.ts +18 -3
  70. package/dist-server/server/services/agentStore.d.ts.map +1 -1
  71. package/dist-server/server/services/agentStore.js +116 -23
  72. package/dist-server/server/services/contentStore.js +0 -1
  73. package/dist-server/server/services/embeddingService.d.ts +2 -0
  74. package/dist-server/server/services/embeddingService.d.ts.map +1 -1
  75. package/dist-server/server/services/embeddingService.js +30 -19
  76. package/dist-server/server/services/factExtractor.js +0 -1
  77. package/dist-server/server/services/githubIndexer.js +0 -1
  78. package/dist-server/server/services/mcpOAuth.js +0 -1
  79. package/dist-server/server/services/memoryScorer.js +0 -1
  80. package/dist-server/server/services/repoIndexer.js +0 -1
  81. package/dist-server/server/services/sqliteStore.js +0 -1
  82. package/dist-server/server/services/teamRunner.js +0 -1
  83. package/dist-server/server/services/worktreeManager.js +0 -1
  84. package/dist-server/server/types.d.ts +5 -0
  85. package/dist-server/server/types.d.ts.map +1 -1
  86. package/dist-server/server/types.js +0 -1
  87. package/dist-server/server/utils/pathSecurity.js +0 -1
  88. package/dist-server/src/services/budgetAllocator.js +0 -1
  89. package/dist-server/src/services/contradictionDetector.js +0 -1
  90. package/dist-server/src/services/treeIndexer.js +0 -1
  91. package/dist-server/src/store/knowledgeBase.d.ts +10 -0
  92. package/dist-server/src/store/knowledgeBase.d.ts.map +1 -1
  93. package/dist-server/src/store/knowledgeBase.js +13 -1
  94. package/dist-server/src/store/memoryStore.d.ts +107 -0
  95. package/dist-server/src/store/memoryStore.d.ts.map +1 -0
  96. package/dist-server/src/store/memoryStore.js +263 -0
  97. package/dist-server/tsconfig.server.tsbuildinfo +1 -1
  98. package/package.json +104 -97
  99. package/dist/assets/graphPopulator-B3rQxb5A.js +0 -1
  100. package/dist/assets/index-BA_J-aHx.js +0 -686
  101. package/dist/assets/index-C7vpqKVZ.css +0 -1
@@ -0,0 +1,33 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-wf-D3Ix_.js","assets/vendor-D1h_O76p.js","assets/services-BaKotDf0.js","assets/stores-CeKWz7ou.js"])))=>i.map(i=>d[i]);
2
+ import{r as h,j as e}from"./vendor-D1h_O76p.js";import{u as w,e as de,d as Ye,S as Se}from"./index-q24ug5Qs.js";import{useConversationStore as E}from"./conversationStore-CkfEU2eV.js";import{_ as le,m as G,n as B,u as I,r as fe,o as Ve,A as Ne,e as he,a as Ze,p as pe,q as Je,t as Xe,l as Qe,v as et,w as tt,x as st,y as ot,z as nt,B as we}from"./services-BaKotDf0.js";import{a7 as ge,ap as Pe,Q as $e,a6 as ze,a4 as Le,aq as Re,ak as rt,a as W,C as U,Z as Ae,B as at,U as ye,ah as lt,ar as it,a0 as ct,as as dt,X as pt,P as ut,c as mt,at as xt,au as ft,av as ht,h as Ie,aw as yt,$ as gt,x as be,G as bt,ax as jt,i as vt,J as kt,ay as St,az as Nt}from"./icons-C2EV-le6.js";import{M as wt,r as Ct}from"./markdown-DWF7F0i0.js";import"./stores-CeKWz7ou.js";function ae(t){return t?t.includes(`
3
+ `)?`|
4
+ ${t.split(`
5
+ `).map(s=>" "+s).join(`
6
+ `)}`:/[:#"'{}\[\],&*?|>!%@`]/.test(t)?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:t:'""'}function Ce(t,s=0){const n=" ".repeat(s);return t.map(r=>`${n}- ${ae(r)}`).join(`
7
+ `)}function Mt(t){const s=t.agentMeta,n=t.agentConfig,r=[];return r.push(`name: ${ae(s.name||"Untitled Agent")}`),s.description&&r.push(`description: ${ae(s.description)}`),r.push('version: "1.0.0"'),s.tags?.length&&r.push(`tags:
8
+ ${Ce(s.tags)}`),s.avatar&&r.push(`avatar: ${s.avatar}`),s.icon&&r.push(`icon: ${s.icon}`),r.push(""),r.push("# Runtime"),r.push(`model: ${ae(t.selectedModel)}`),n?.temperature!==void 0&&r.push(`temperature: ${n.temperature}`),n?.planningMode&&r.push(`planning: ${n.planningMode}`),r.push(`token_budget: ${t.tokenBudget}`),r.push(""),r.push("# Output"),r.push(`output_format: ${t.outputFormat}`),t.outputFormats.length>1&&r.push(`output_formats:
9
+ ${Ce(t.outputFormats)}`),r.join(`
10
+ `)+`
11
+ `}function Ft(t){const s=t.instructionState,n=t.agentMeta,r=[];if(r.push(`# ${n.name||"Agent"}`),r.push(""),n.description&&(r.push(n.description),r.push("")),s?.persona&&(r.push("## Persona"),r.push(""),r.push(s.persona),r.push("")),s?.tone&&s.tone!=="neutral"&&(r.push(`**Tone:** ${s.tone}`),r.push("")),s?.expertise&&s.expertise!==3){const o=["Beginner","Novice","Intermediate","Advanced","Expert"];r.push(`**Expertise:** ${o[s.expertise-1]} (${s.expertise}/5)`),r.push("")}return r.join(`
12
+ `)}function Tt(t){const s=t.instructionState,n=["# Instructions",""];s?.objectives?.primary&&(n.push("## Objective"),n.push(""),n.push(s.objectives.primary),n.push(""),s.objectives.successCriteria.length>0&&(n.push("### Success Criteria"),n.push(""),s.objectives.successCriteria.forEach(o=>n.push(`- ${o}`)),n.push("")),s.objectives.failureModes.length>0&&(n.push("### Failure Modes to Avoid"),n.push(""),s.objectives.failureModes.forEach(o=>n.push(`- ${o}`)),n.push("")));const r=[];if(s?.constraints){const o=s.constraints;o.neverMakeUp&&r.push("Never fabricate information or make up facts"),o.askBeforeActions&&r.push("Ask for permission before taking significant actions"),o.stayInScope&&r.push(`Stay within scope${o.scopeDefinition?": "+o.scopeDefinition:""}`),o.useOnlyTools&&r.push("Only use tools and capabilities that are explicitly provided"),o.limitWords&&r.push(`Keep responses under ${o.wordLimit} words`),o.customConstraints&&o.customConstraints.split(`
13
+ `).filter(Boolean).forEach(i=>r.push(i.trim()))}return r.length>0&&(n.push("## Constraints"),n.push(""),r.forEach(o=>n.push(`- ${o}`)),n.push("")),t.workflowSteps&&t.workflowSteps.length>0&&(n.push("## Workflow"),n.push(""),t.workflowSteps.forEach((o,i)=>{n.push(`${i+1}. **${o.label}** — ${o.action}`)}),n.push("")),t.prompt&&!s?.persona&&!s?.objectives?.primary&&(n.push("## Additional Instructions"),n.push(""),n.push(t.prompt),n.push("")),n.join(`
14
+ `)}function Et(t){const s=["# Tools",""],n=t.mcpServers.filter(o=>o.enabled&&o.added),r=t.skills.filter(o=>o.enabled&&o.added);return n.length>0&&(s.push("## MCP Servers"),s.push(""),n.forEach(o=>{s.push(`### ${o.name}`),s.push(""),o.description&&s.push(o.description),s.push(""),s.push("```yaml"),s.push(`id: ${o.id}`),s.push("transport: stdio"),s.push("command: npx"),s.push(`args: ["@${o.id}/mcp"]`),s.push("```"),s.push("")})),r.length>0&&(s.push("## Skills"),s.push(""),r.forEach(o=>{s.push(`- **${o.name}**${o.description?" — "+o.description:""}`)}),s.push("")),n.length===0&&r.length===0&&(s.push("No tools configured."),s.push("")),s.join(`
15
+ `)}function Dt(t){const s=["# Knowledge",""],n=t.channels.filter(o=>o.enabled),r=(t.connectors??[]).filter(o=>o.enabled);return n.length>0&&(s.push("## Sources"),s.push(""),n.forEach(o=>{const i=o.knowledgeType||"signal";s.push(`### ${o.name||o.path}`),s.push(""),s.push(`- **Path:** \`${o.path}\``),s.push(`- **Type:** ${i}`),o.content&&s.push(`- **Content Preview:** ${o.content.slice(0,100)}${o.content.length>100?"...":""}`),o.hint&&s.push(`- **Hint:** ${o.hint}`),s.push("")})),r.length>0&&(s.push("## Connectors"),s.push(""),r.forEach(o=>{s.push(`- **${o.name}** (${o.service}) — ${o.direction}${o.hint?", scope: "+o.hint:""}`)}),s.push("")),s.push("## Budget"),s.push(""),s.push(`Token budget: ${t.tokenBudget}`),s.push(""),s.join(`
16
+ `)}function Pt(t){return["# Memory","","<!-- Initial memory for this agent. Add seed context, key facts, or preferences here. -->",""].join(`
17
+ `)}function _e(t){return{"agent.yaml":Mt(t),"SOUL.md":Ft(t),"INSTRUCTIONS.md":Tt(t),"TOOLS.md":Et(t),"KNOWLEDGE.md":Dt(t),"MEMORY.md":Pt()}}async function $t(t){const s=_e(t),n=(t.agentMeta.name||"modular-agent").toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");try{const r=(await le(async()=>{const{default:u}=await import("./jszip.min-wf-D3Ix_.js").then(p=>p.j);return{default:u}},__vite__mapDeps([0,1]))).default,o=new r,i=o.folder(n);for(const[u,p]of Object.entries(s))i.file(u,p);const l=await o.generateAsync({type:"blob"}),c=URL.createObjectURL(l),d=document.createElement("a");d.href=c,d.download=`${n}.zip`,d.click(),URL.revokeObjectURL(c)}catch{for(const[r,o]of Object.entries(s)){const i=new Blob([o],{type:"text/plain"}),l=URL.createObjectURL(i),c=document.createElement("a");c.href=l,c.download=r,c.click(),URL.revokeObjectURL(l)}}}function Be(t){const s={};return t["agent.yaml"]&&(s.agentYaml=Oe(t["agent.yaml"])),t["SOUL.md"]&&(s.soul=t["SOUL.md"]),t["INSTRUCTIONS.md"]&&(s.instructions=t["INSTRUCTIONS.md"]),t["TOOLS.md"]&&(s.tools=t["TOOLS.md"]),t["KNOWLEDGE.md"]&&(s.knowledge=t["KNOWLEDGE.md"]),t["MEMORY.md"]&&(s.memory=t["MEMORY.md"]),s}function Oe(t){const s={};let n=null,r="";for(const o of t.split(`
18
+ `)){const i=o.trim();if(!i||i.startsWith("#"))continue;if(i.startsWith("- ")&&n!==null){n.push(i.slice(2).replace(/^["']|["']$/g,"")),s[r]=n;continue}n=null;const l=i.indexOf(":");if(l===-1)continue;const c=i.slice(0,l).trim();if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const d=i.slice(l+1).trim();if(!d){r=c,n=[];continue}const u=d.replace(/^["']|["']$/g,"");u==="true"?s[c]=!0:u==="false"?s[c]=!1:/^\d+(\.\d+)?$/.test(u)?s[c]=Number(u):s[c]=u}return s}function Ge(t){const s={};if(t.agentYaml){const n=t.agentYaml;s.agentMeta={name:n.name||"",description:n.description||"",avatar:n.avatar||"",icon:n.icon||"",category:n.category||"general",tags:Array.isArray(n.tags)?n.tags:[]},n.model&&(s.selectedModel=n.model),n.token_budget&&(s.tokenBudget=n.token_budget),n.output_format&&(s.outputFormat=n.output_format),s.agentConfig={temperature:n.temperature??.7,planningMode:n.planning??"single-shot",model:n.model??""}}if(t.soul||t.instructions){const n={persona:"",tone:"neutral",expertise:3,constraints:{neverMakeUp:!1,askBeforeActions:!1,stayInScope:!1,useOnlyTools:!1,limitWords:!1,wordLimit:500,customConstraints:"",scopeDefinition:""},objectives:{primary:"",successCriteria:[],failureModes:[]},rawPrompt:"",autoSync:!1};if(t.soul){const r=t.soul.split(`
19
+ `);let o="",i="";for(const l of r){const c=l.trim();c.startsWith("## ")?(o==="persona"&&i.trim()&&(n.persona=i.trim()),o=c.toLowerCase().includes("persona")?"persona":"",i=""):!c.startsWith("#")&&c&&(o||!n.persona)&&(i+=l+`
20
+ `,!n.persona&&!o&&(n.persona=i.trim()))}o==="persona"&&i.trim()&&(n.persona=i.trim())}if(t.instructions){const r=t.instructions.split(`
21
+ `);let o="",i=!1,l=[];for(const c of r){const d=c.trim();if(d.startsWith("## ")){o==="successCriteria"&&l.length>0?n.objectives.successCriteria=l:o==="failureModes"&&l.length>0&&(n.objectives.failureModes=l);const u=d.toLowerCase();u.includes("objective")?o="objective":u.includes("constraint")&&(o="constraints"),i=!1,l=[]}else if(d.startsWith("### ")){const u=d.toLowerCase();u.includes("success")?(o="successCriteria",i=!0,l=[]):u.includes("failure")&&(o="failureModes",i=!0,l=[])}else if(d.startsWith("- ")){if(i)l.push(d.substring(2));else if(o==="constraints"){const u=d.substring(2);if((u.toLowerCase().includes("never fabricate")||u.toLowerCase().includes("never make up"))&&(n.constraints.neverMakeUp=!0),u.toLowerCase().includes("ask")&&u.toLowerCase().includes("permission")&&(n.constraints.askBeforeActions=!0),u.toLowerCase().includes("scope")&&(n.constraints.stayInScope=!0),u.toLowerCase().includes("only use tools")&&(n.constraints.useOnlyTools=!0),u.toLowerCase().includes("word")&&/\d+/.test(u)){n.constraints.limitWords=!0;const p=u.match(/(\d+)/);p&&(n.constraints.wordLimit=parseInt(p[1]))}}}else o==="objective"&&d&&!d.startsWith("#")&&(n.objectives.primary||(n.objectives.primary=d))}o==="successCriteria"&&l.length>0?n.objectives.successCriteria=l:o==="failureModes"&&l.length>0&&(n.objectives.failureModes=l)}s.instructionState=n}return s}async function We(t){try{const s=(await le(async()=>{const{default:g}=await import("./jszip.min-wf-D3Ix_.js").then(y=>y.j);return{default:g}},__vite__mapDeps([0,1]))).default,n=new s,r=10*1024*1024;if(t.size>r)throw new Error(`ZIP file too large (${(t.size/1024/1024).toFixed(1)}MB). Maximum is 10MB.`);const o=await n.loadAsync(t),i=2*1024*1024,l={},c=["agent.yaml","SOUL.md","INSTRUCTIONS.md","TOOLS.md","KNOWLEDGE.md","MEMORY.md"];for(const[g,y]of Object.entries(o.files)){if(y.dir)continue;const b=g.split("/").pop()||"";if(c.includes(b))try{const N=await y.async("text");if(N.length>i){console.warn(`Skipping ${b}: exceeds 2MB limit`);continue}l[b]=N}catch(N){console.warn(`Failed to read ${b}:`,N)}}if(!l["agent.yaml"])throw new Error("agent.yaml is required but not found in the ZIP file");const d=Be(l),u=Ge(d),{useConsoleStore:p}=await le(async()=>{const{useConsoleStore:g}=await import("./services-BaKotDf0.js").then(y=>y.J);return{useConsoleStore:g}},__vite__mapDeps([2,3,1]));p.getState().restoreFullState(u)}catch(s){throw console.error("Import failed:",s),s instanceof Error?s:new Error("Unknown import error")}}const zt=Object.freeze(Object.defineProperty({__proto__:null,agentDirectoryToState:Ge,downloadAgentDirectory:$t,exportAgentDirectory:_e,importAgentFromZip:We,parseAgentDirectory:Be,parseSimpleYaml:Oe},Symbol.toStringTag,{value:"Module"}));function Lt({stats:t,traceId:s}){const[n,r]=h.useState(!1),o=w(),i=G(N=>N.selectTrace),l=G(N=>N.selectedTraceId),c=s!=null&&l===s,d=t.totalContextTokens||0,u=t.retrieval?.selectedChunks||0,p=t.retrieval?.retrievalMs||0,m=t.retrieval?.embeddingMs||0,g=p+m,y=t.retrieval?.queryType||"none",b=t.toolTurns||0;return e.jsxs("div",{className:"mt-2 border rounded-md overflow-hidden transition-all duration-200",style:{border:`1px solid ${c?"#FE5000":o.borderSubtle}`,background:o.isDark?"#0d0d10":"#f8f8fa",fontFamily:"'Geist Mono', monospace"},children:[e.jsxs("div",{className:"flex items-center",children:[e.jsxs("button",{onClick:()=>r(!n),title:n?"Collapse trace":"Expand trace",className:"flex-1 px-3 py-2 text-left text-xs flex items-center justify-between hover:opacity-80 transition-opacity border-none bg-transparent cursor-pointer",style:{color:o.textDim,fontFamily:"'Geist Mono', monospace"},children:[e.jsxs("span",{children:["📊 ",d," tokens • ",u," sources • ",g,"ms",b>0&&` • ${b} tool calls`]}),e.jsx("span",{className:"text-[10px]",style:{color:"#FE5000"},children:n?"▼":"▶"})]}),s&&e.jsx("button",{onClick:N=>{N.stopPropagation(),i(c?null:s)},className:"px-2 py-1.5 text-[10px] border-none cursor-pointer rounded-r-md transition-colors",style:{background:c?"#FE500020":"transparent",color:c?"#FE5000":o.textFaint,fontFamily:"'Geist Mono', monospace"},title:c?"Deselect trace":"Select trace",children:c?"📍":"○"})]}),n&&e.jsxs("div",{className:"px-3 pb-3 pt-1 text-xs space-y-2 border-t",style:{borderTop:`1px solid ${o.borderSubtle}`,color:o.textSecondary},children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Context tokens:"}),e.jsx("span",{style:{color:o.textPrimary},children:d.toLocaleString()})]}),t.retrieval&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Retrieval mode:"}),e.jsx("span",{style:{color:o.textPrimary},children:y})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Sources selected:"}),e.jsxs("span",{style:{color:o.textPrimary},children:[u," / ",t.retrieval.totalChunks]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Retrieval time:"}),e.jsxs("span",{style:{color:o.textPrimary},children:[p,"ms"]})]}),m>0&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Embedding time:"}),e.jsxs("span",{style:{color:o.textPrimary},children:[m,"ms"]})]})]}),b>0&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Tool turns:"}),e.jsx("span",{style:{color:o.textPrimary},children:b})]}),t.systemTokens&&t.systemTokens!==d&&e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"System tokens:"}),e.jsx("span",{style:{color:o.textPrimary},children:t.systemTokens.toLocaleString()})]}),t.memory&&e.jsxs("div",{className:"pt-1 border-t",style:{borderTop:`1px solid ${o.borderSubtle}`},children:[e.jsx("div",{className:"text-[10px] mb-1",style:{color:o.textDim},children:"Memory"}),e.jsxs("div",{className:"flex justify-between text-[11px]",children:[e.jsx("span",{children:"Facts written:"}),e.jsx("span",{style:{color:o.textPrimary},children:t.memory.writtenFacts})]}),t.memory.recalledFacts>0&&e.jsxs("div",{className:"flex justify-between text-[11px]",children:[e.jsx("span",{children:"Facts recalled:"}),e.jsx("span",{style:{color:o.textPrimary},children:t.memory.recalledFacts})]})]})]})]})}const Rt={toolCalling:"Tool Calling",streaming:"Streaming",structuredOutput:"Structured Output",memoryHooks:"Memory Hooks",agentLoop:"Agent Loop",mcpBridge:"MCP Bridge"},F="supported",L="degraded",Q="unsupported",ne={anthropic:{toolCalling:{status:F},streaming:{status:F},structuredOutput:{status:F},memoryHooks:{status:F},agentLoop:{status:F},mcpBridge:{status:F}},"claude-agent-sdk":{toolCalling:{status:F},streaming:{status:F},structuredOutput:{status:F},memoryHooks:{status:F},agentLoop:{status:F},mcpBridge:{status:F}},openai:{toolCalling:{status:F},streaming:{status:F},structuredOutput:{status:F},memoryHooks:{status:L,note:"Requires external memory layer"},agentLoop:{status:F},mcpBridge:{status:L,note:"Via OpenAI-compatible proxy"}},google:{toolCalling:{status:F},streaming:{status:F},structuredOutput:{status:L,note:"JSON mode only, no strict schema"},memoryHooks:{status:Q,note:"Not natively supported"},agentLoop:{status:L,note:"Manual orchestration required"},mcpBridge:{status:Q,note:"No MCP support"}},openrouter:{toolCalling:{status:L,note:"Depends on underlying model"},streaming:{status:F},structuredOutput:{status:L,note:"Depends on underlying model"},memoryHooks:{status:L,note:"Depends on underlying model"},agentLoop:{status:L,note:"Depends on underlying model"},mcpBridge:{status:Q,note:"Not available through proxy"}},custom:{toolCalling:{status:L,note:"Depends on implementation"},streaming:{status:L,note:"Depends on implementation"},structuredOutput:{status:L,note:"Depends on implementation"},memoryHooks:{status:Q,note:"Unknown provider"},agentLoop:{status:L,note:"Depends on implementation"},mcpBridge:{status:Q,note:"Unknown provider"}}};function At(t){return ne[t]?ne[t]:(t.startsWith("custom"),ne.custom)}function It(t,s){const n=[];for(const r of s){const o=t[r],i=Rt[r];o.status==="unsupported"?n.push({level:"error",capability:r,message:`${i} is not supported by this provider${o.note?`: ${o.note}`:""}`}):o.status==="degraded"?n.push({level:"warning",capability:r,message:`${i} has limited support${o.note?`: ${o.note}`:""}`}):n.push({level:"ok",capability:r,message:`${i} is fully supported`})}return n}function _t({matrix:t,requiredCapabilities:s}){const n=w();if(s.length===0)return null;const r=It(t,s),o=r.filter(l=>l.level==="error"),i=r.filter(l=>l.level==="warning");return o.length===0&&i.length===0?null:e.jsxs("div",{className:"flex flex-col gap-1.5",children:[o.map(l=>e.jsxs("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg text-[12px]",style:{background:n.statusErrorBg,color:n.statusError,border:`1px solid ${n.statusError}30`},role:"alert",children:[e.jsx(ge,{size:12,className:"shrink-0 mt-0.5"}),e.jsx("span",{children:l.message})]},l.capability)),i.map(l=>e.jsxs("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg text-[12px]",style:{background:n.statusWarningBg,color:n.statusWarning,border:`1px solid ${n.statusWarning}30`},role:"status",children:[e.jsx(Pe,{size:12,className:"shrink-0 mt-0.5"}),e.jsx("span",{children:l.message})]},l.capability))]})}const Bt={observation:"#3498db",inference:"#f1c40f",decision:"#2ecc71",hypothesis:"#9b59b6",contract:"#FE5000"};function Ue({fact:t}){const s=Bt[t.epistemicType]??"#888";return e.jsx("span",{style:{fontSize:12,padding:"2px 6px",borderRadius:4,background:s+"15",color:s,fontFamily:"'Geist Mono', monospace"},children:t.key})}function Ot({text:t}){const[s,n]=h.useState(!1);return e.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(t),n(!0),setTimeout(()=>n(!1),1500)},style:{background:"none",border:"none",cursor:"pointer",padding:2,opacity:.6},title:"Copy output",children:s?e.jsx(ye,{size:12,style:{color:"#2ecc71"}}):e.jsx(lt,{size:12})})}function Gt({agent:t,expanded:s}){const n=w(),[r,o]=h.useState(s??!1),i={waiting:e.jsx(rt,{size:14,style:{color:n.textDim}}),running:e.jsx($e,{size:14,className:"animate-spin",style:{color:"#FE5000"}}),completed:e.jsx(ze,{size:14,style:{color:"#2ecc71"}}),error:e.jsx(ge,{size:14,style:{color:"#dc2626"}})}[t.status],l=t.status==="completed"?t.output:t.currentMessage,c=(l?.length??0)>300;return e.jsxs("div",{style:{padding:12,borderRadius:8,border:`1px solid ${t.status==="running"?"#FE500040":n.border}`,background:t.status==="running"?"#FE500008":n.surface},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:l?8:0},children:[i,e.jsx("span",{style:{fontSize:14,fontWeight:600,color:n.textPrimary,fontFamily:"'Geist Mono', monospace"},children:t.name}),t.isAgentSdk&&e.jsx("span",{style:{fontSize:10,padding:"2px 6px",borderRadius:4,background:"#FE500015",color:"#FE5000",fontFamily:"'Geist Mono', monospace",fontWeight:600,border:"1px solid #FE500030"},children:"Agent SDK"}),e.jsxs("span",{style:{fontSize:12,color:n.textDim,marginLeft:"auto",display:"flex",alignItems:"center",gap:6},children:[t.status==="running"?`Turn ${t.turns}`:t.status,t.tokens&&(t.tokens.input>0||t.tokens.output>0)&&e.jsxs("span",{style:{fontSize:11,color:n.textFaint},children:[((t.tokens.input+t.tokens.output)/1e3).toFixed(1),"k tok"]})]})]}),l&&e.jsxs("div",{style:{position:"relative"},children:[e.jsx("div",{style:{fontSize:13,padding:10,borderRadius:6,background:n.inputBg,color:n.textPrimary,lineHeight:1.6,whiteSpace:"pre-wrap",overflowY:"auto",maxHeight:r?"none":200},children:l}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,marginTop:4},children:[c&&e.jsx("button",{type:"button",onClick:()=>o(!r),style:{background:"none",border:"none",cursor:"pointer",padding:"2px 6px",fontSize:12,color:"#FE5000",display:"flex",alignItems:"center",gap:4,fontFamily:"'Geist Mono', monospace"},children:r?e.jsxs(e.Fragment,{children:[e.jsx(W,{size:12})," Collapse"]}):e.jsxs(e.Fragment,{children:[e.jsx(U,{size:12})," Expand (",Math.ceil((l?.length??0)/1e3),"k chars)"]})}),l&&e.jsx(Ot,{text:l})]})]}),t.toolCalls.length>0&&e.jsxs("div",{style:{marginTop:8},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[e.jsx(Ae,{size:12,style:{color:"#2ecc71"}}),e.jsxs("span",{style:{fontSize:12,fontWeight:600,color:n.textSecondary,fontFamily:"'Geist Mono', monospace"},children:["Tool Calls (",t.toolCalls.length,")"]})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:t.toolCalls.map((d,u)=>e.jsxs("div",{style:{fontSize:12,padding:6,borderRadius:4,background:"#2ecc7115",border:"1px solid #2ecc7130",color:n.textSecondary,fontFamily:"'Geist Mono', monospace"},children:[e.jsx("div",{style:{fontWeight:600,color:"#2ecc71",marginBottom:2},children:d.tool}),d.args&&e.jsx("div",{style:{color:n.textDim,fontSize:11,lineHeight:1.4},children:d.args.length>100?d.args.slice(0,100)+"…":d.args})]},u))})]}),t.facts.length>0&&e.jsx("div",{style:{marginTop:8,display:"flex",flexWrap:"wrap",gap:4},children:t.facts.map((d,u)=>e.jsx(Ue,{fact:d},u))})]})}function Wt({facts:t}){const s=w();return t.length===0?null:e.jsxs("div",{style:{padding:12,borderRadius:8,border:`1px solid ${s.border}`,background:s.surface},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8},children:[e.jsx(at,{size:14,style:{color:"#FE5000"}}),e.jsxs("span",{style:{fontSize:13,fontWeight:600,color:s.textPrimary,fontFamily:"'Geist Mono', monospace"},children:["Shared Memory (",t.length,")"]})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:t.map((n,r)=>e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:8},children:[e.jsx(Ue,{fact:n}),e.jsx("span",{style:{fontSize:12,color:s.textDim,flex:1},children:n.value})]},r))})]})}function Ut(){const t=w(),s=B(m=>m.status),n=B(m=>m.agents),r=B(m=>m.sharedFacts),o=B(m=>m.startedAt),i=B(m=>m.completedAt),l=B(m=>m.error),[c,d]=h.useState(!1);if(s==="idle")return null;const u=i&&o?((i-o)/1e3).toFixed(1):o?((Date.now()-o)/1e3).toFixed(0):"0",p=e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12,height:"100%"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[s==="running"&&e.jsx($e,{size:14,className:"animate-spin",style:{color:"#FE5000"}}),s==="completed"&&e.jsx(ze,{size:14,style:{color:"#2ecc71"}}),s==="error"&&e.jsx(ge,{size:14,style:{color:"#dc2626"}}),e.jsx("span",{style:{fontSize:13,fontWeight:600,color:t.textPrimary},children:s==="running"?"Running...":s==="completed"?"Completed":"Error"}),e.jsxs("span",{style:{fontSize:12,color:t.textDim},children:[u,"s"]}),e.jsx("button",{type:"button",onClick:()=>d(!c),style:{marginLeft:"auto",background:"none",border:"none",cursor:"pointer",padding:4,color:t.textDim},title:c?"Minimize":"Maximize results",children:c?e.jsx(Le,{size:14}):e.jsx(Re,{size:14})})]}),l&&e.jsx("div",{style:{fontSize:13,color:"#dc2626",padding:8,borderRadius:6,background:"#dc262610"},children:l}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8,flex:1,overflowY:"auto"},children:n.map(m=>e.jsx(Gt,{agent:m,expanded:c},m.agentId))}),e.jsx(Wt,{facts:r})]});return c?e.jsx("div",{style:{position:"fixed",inset:0,zIndex:100,background:t.bg,padding:24,overflowY:"auto"},children:p}):p}function Ht({retrieval:t}){const s=w();if(!t)return null;const n=new Map;for(const m of t.chunks){const g=n.get(m.source)||[];g.push(m),n.set(m.source,g)}const r=m=>({"ground-truth":"#e74c3c",signal:"#f1c40f",evidence:"#3498db",framework:"#2ecc71",guideline:"#FE5000",hypothesis:"#9b59b6"})[m]||s.textDim,o=m=>({"ground-truth":"🔴 Ground Truth",signal:"🟡 Signal",evidence:"🔵 Evidence",framework:"🟢 Framework",guideline:"📏 Guideline",hypothesis:"🟣 Hypothesis"})[m]||m,i=m=>{const g={direct:{background:"#2ecc71",color:"#fff"},"parent-expansion":{background:"#f1c40f",color:"#333"},"sibling-coherence":{background:"#3498db",color:"#fff"},unknown:{background:s.border,color:s.textDim}};return g[m]||g.unknown},l=m=>({direct:"● Direct match","parent-expansion":"↑ Parent expanded","sibling-coherence":"↔ Sibling context",unknown:"? Unknown"})[m]||m,c=m=>({direct:"●","parent-expansion":"↑","sibling-coherence":"↔",unknown:"?"})[m]||"?",d=Array.from(n.keys()),u=t.chunks.length,p=t.chunks.reduce((m,g)=>m+g.tokens,0);return e.jsxs("div",{style:{maxHeight:400,overflowY:"auto",padding:12,fontFamily:"'Geist Mono', monospace",fontSize:12},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12,paddingBottom:8,borderBottom:`1px solid ${s.border}30`},children:[e.jsx("span",{style:{fontSize:10,color:s.textDim,textTransform:"uppercase",fontWeight:700},children:"Retrieved Context"}),e.jsxs("span",{style:{fontSize:10,color:s.textDim},children:[u," chunks selected → ",p.toLocaleString()," tokens sent to LLM"]}),e.jsxs("span",{style:{fontSize:10,color:s.textDim,marginLeft:"auto"},children:["Budget: ",t.budgetUsed.toLocaleString()," / ",t.budgetTotal.toLocaleString()," tokens"]})]}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:10},children:d.map((m,g)=>{const y=n.get(m)||[],b=y.reduce((k,C)=>k+C.tokens,0),N=y[0]?.knowledgeType||"signal",D=y.reduce((k,C)=>{const P=C.inclusionReason||"unknown";return k[P]=(k[P]||0)+1,k},{});return e.jsxs("div",{style:{width:280,border:`1px solid ${s.border}40`,borderRadius:8,padding:10,background:s.isDark?"#ffffff04":"#00000003"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:8},children:[e.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:r(N),flexShrink:0}}),e.jsx("div",{style:{fontSize:12,fontWeight:600,color:s.textPrimary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:m.split("/").pop()||m}),e.jsxs("span",{style:{fontSize:10,color:"#FE5000",fontWeight:600,flexShrink:0},children:[b.toLocaleString()," tok"]})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[e.jsx("span",{style:{fontSize:9,color:s.textDim},children:o(N)}),e.jsxs("span",{style:{fontSize:9,color:s.textDim,marginLeft:"auto"},children:[y.length," chunk",y.length>1?"s":""]})]}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:8},children:Object.entries(D).map(([k,C])=>e.jsxs("span",{title:l(k),style:{fontSize:9,padding:"2px 5px",borderRadius:3,...i(k)},children:[c(k)," ",C]},k))}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[y.sort((k,C)=>C.relevanceScore-k.relevanceScore).slice(0,5).map((k,C)=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[e.jsx("div",{style:{width:20,height:3,borderRadius:1,background:"#333",overflow:"hidden",flexShrink:0},children:e.jsx("div",{style:{width:`${k.relevanceScore*100}%`,height:"100%",background:"#2ecc71"}})}),e.jsxs("span",{style:{fontSize:9,width:22,textAlign:"right",color:s.textDim,flexShrink:0},children:[(k.relevanceScore*100).toFixed(0),"%"]}),e.jsx("span",{style:{fontSize:10,flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:s.textPrimary},children:k.section}),e.jsx("span",{style:{fontSize:8,color:s.textFaint,flexShrink:0},children:k.tokens})]},C)),y.length>5&&e.jsxs("span",{style:{fontSize:9,color:s.textDim,paddingTop:2},children:["+",y.length-5," more"]})]})]},g)})}),e.jsxs("div",{style:{display:"flex",gap:12,marginTop:12,paddingTop:8,borderTop:`1px solid ${s.border}30`,flexWrap:"wrap"},children:[e.jsx("span",{style:{fontSize:9,color:s.textDim,fontWeight:600},children:"HOW CHUNKS ARE SELECTED:"}),[{icon:"●",label:"Direct match (semantic similarity)",color:"#2ecc71"},{icon:"↑",label:"Parent expanded (tree context)",color:"#f1c40f"},{icon:"↔",label:"Sibling coherence (related sections)",color:"#3498db"}].map(m=>e.jsxs("span",{style:{fontSize:9,color:m.color,display:"flex",alignItems:"center",gap:3},children:[e.jsx("span",{style:{fontWeight:700},children:m.icon})," ",m.label]},m.icon))]})]})}function qt(){const t=w(),s=E(p=>p.lastPipelineStats),[n,r]=h.useState(!1);if(!s)return null;const o=s.pipeline,i=p=>p>=1e3?`${(p/1e3).toFixed(1)}K`:`${p}`,l=["#2ecc71","#3498db","#f1c40f","#e67e22","#999"],c=["Full","Detail","Summary","Headlines","Mention"],d=p=>p>.5?"#2ecc71":p>.3?"#f1c40f":"#e74c3c",u=p=>{switch(p){case"factual":return"#3498db";case"analytical":return"#e67e22";case"exploratory":return"#9b59b6";default:return t.textDim}};return e.jsxs("div",{style:{borderTop:`1px solid ${t.border}`},children:[s.retrieval&&e.jsxs("div",{className:"flex items-center gap-3 px-4 py-1.5",style:{fontFamily:"'Geist Mono', monospace",fontSize:11,borderBottom:`1px solid ${t.border}30`},children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{style:{color:t.textDim},children:"Diversity"}),e.jsx("div",{style:{width:40,height:4,borderRadius:2,background:"#333",overflow:"hidden"},children:e.jsx("div",{style:{width:`${s.retrieval.diversityScore*100}%`,height:"100%",background:d(s.retrieval.diversityScore),borderRadius:2}})}),e.jsxs("span",{style:{fontFamily:"'Geist Mono', monospace",color:d(s.retrieval.diversityScore),fontSize:11},children:[(s.retrieval.diversityScore*100).toFixed(0),"%"]})]}),e.jsxs("span",{style:{color:t.textDim},children:[s.retrieval.selectedChunks,"/",s.retrieval.totalChunks," chunks"]}),e.jsxs("span",{style:{color:t.textDim},children:["Budget ",Math.round(s.retrieval.budgetUsed/s.retrieval.budgetTotal*100),"%"]}),e.jsx("span",{style:{fontSize:10,padding:"1px 5px",borderRadius:3,background:u(s.retrieval.queryType)+"15",color:u(s.retrieval.queryType)},children:s.retrieval.queryType}),e.jsxs("span",{style:{fontSize:11,color:t.textFaint,marginLeft:"auto"},children:[s.retrieval.embeddingMs+s.retrieval.retrievalMs,"ms"]}),s.retrieval.collapseWarning&&e.jsx("span",{style:{fontSize:11,color:"#e74c3c"},children:"⚠ Low diversity"})]}),e.jsxs("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-3 px-4 py-1.5 text-[13px] w-full border-none cursor-pointer min-h-[44px]",style:{fontFamily:"'Geist Mono', monospace",color:t.textDim,background:"transparent",transition:"background-color 150ms"},onMouseEnter:p=>{p.currentTarget.style.background=t.isDark?"#ffffff08":"#00000005"},onMouseLeave:p=>{p.currentTarget.style.background="transparent"},"aria-label":"Toggle pipeline statistics","aria-expanded":n,children:[e.jsx(Ae,{size:9,style:{color:"#FE5000",flexShrink:0}}),e.jsxs("span",{title:"Total context tokens sent to LLM",children:["Context: ",i(s.totalContextTokens)]}),e.jsxs("span",{title:"System prompt tokens (persona + instructions)",children:["System: ",i(s.systemTokens)]}),o&&e.jsxs(e.Fragment,{children:[e.jsxs("span",{title:"How much the knowledge was compressed before sending",style:{color:o.compression.ratio<.8?"#2ecc71":t.textDim},children:["Compressed: ",Math.round((1-o.compression.ratio)*100),"%"]}),e.jsxs("span",{title:"Number of knowledge sources indexed",children:[o.sources.length," source",o.sources.length!==1?"s":""]}),e.jsxs("span",{title:"Pipeline processing time",children:[o.timing.totalMs,"ms"]})]}),e.jsx(W,{size:8,style:{transform:n?"none":"rotate(-90deg)",transition:"transform 150ms"}})]}),n&&e.jsx("div",{style:{maxHeight:280,overflowY:"auto",borderBottom:`1px solid ${t.border}30`},children:s.retrieval?e.jsx(Ht,{retrieval:s.retrieval}):s.heatmap.length>0&&e.jsx("div",{className:"px-4 pb-2 flex flex-col gap-2",children:s.heatmap.map(p=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{className:"text-[12px] font-medium",style:{color:t.textPrimary},children:p.name}),e.jsx("span",{className:"text-[12px] px-1.5 py-0.5 rounded",style:{fontFamily:"'Geist Mono', monospace",background:l[p.depth]+"18",color:l[p.depth]},children:c[p.depth]}),e.jsxs("span",{className:"text-[12px]",style:{fontFamily:"'Geist Mono', monospace",color:t.textFaint},children:[i(p.filteredTokens),"/",i(p.totalTokens)]})]}),p.headings.length>0&&e.jsxs("div",{className:"flex flex-col gap-0.5 pl-2",children:[p.headings.slice(0,8).map(m=>{const g=Math.max(...p.headings.map(N=>N.tokens),1),y=Math.max(5,m.tokens/g*100),b=l[Math.min(m.depth,4)];return e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"text-[10px] truncate w-20 text-right",style:{fontFamily:"'Geist Mono', monospace",color:t.textFaint},children:m.title}),e.jsx("div",{style:{flex:1,height:3,background:`${b}18`,borderRadius:1,overflow:"hidden"},children:e.jsx("div",{style:{width:`${y}%`,height:"100%",background:b,borderRadius:1}})}),e.jsx("span",{className:"text-[8px] w-6 text-right",style:{fontFamily:"'Geist Mono', monospace",color:t.textFaint},children:i(m.tokens)})]},m.nodeId)}),p.headings.length>8&&e.jsxs("span",{className:"text-[12px]",style:{fontFamily:"'Geist Mono', monospace",color:t.textFaint},children:["+",p.headings.length-8," more"]})]})]},p.path))})})]})}function Kt(){const t=w(),s=E(a=>a.messages),n=E(a=>a.inputText),r=E(a=>a.setInputText),o=E(a=>a.streaming),i=E(a=>a.addMessage),l=E(a=>a.setStreaming),c=E(a=>a.updateLastAssistant),d=E(a=>a.setLastPipelineStats),u=I(a=>a.channels),p=I(a=>a.connectors),m=I(a=>a.mcpServers),g=I(a=>a.agentMeta),y=I(a=>a.navigationMode),b=(()=>{const a=["streaming"];return p.length>0&&a.push("toolCalling"),m.length>0&&a.push("mcpBridge"),a})(),N=fe(),D=At(N.providerId||"custom"),k=h.useRef(null);h.useEffect(()=>{const a=window.matchMedia("(prefers-reduced-motion: reduce)").matches;k.current?.scrollIntoView({behavior:a?"auto":"smooth"})},[s]);const C=h.useCallback(async()=>{if(!n.trim()||o)return;const a=n.trim();r(""),i({role:"user",content:a}),i({role:"assistant",content:""}),l(!0);let f="";try{const{providerId:S,model:x,error:v}=fe();if(v){c(v),l(!1);return}await Ve({userMessage:a,channels:u,connectors:p,history:s.filter(j=>!(j.role==="assistant"&&j.content.trim()==="")).map(j=>({role:j.role,content:j.content})),agentMeta:{name:g.name,description:g.description,avatar:g.avatar,tags:g.tags},providerId:S,model:x,navigationMode:y,onChunk:j=>{f+=j,c(f)},onDone:j=>{d(j);const H=E.getState().messages,q=[...H].reverse().find($=>$.role==="assistant");q&&E.setState({messages:H.map($=>$.id===q.id?{...$,pipelineStats:j,traceId:j.traceId}:$)})},onError:j=>{c(f+`
22
+
23
+ _Error: ${j.message}_`)}})}catch(S){c(f+`
24
+
25
+ _Error: ${S instanceof Error?S.message:"Unknown error"}_`)}finally{l(!1)}},[n,o,s,u,p,g,y,r,i,l,c,d]),P=a=>{(a.metaKey||a.ctrlKey)&&a.key==="Enter"&&(a.preventDefault(),C())};return e.jsxs("div",{className:"flex flex-col flex-1 min-h-0",children:[e.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3 flex flex-col gap-3","aria-live":"polite","aria-relevant":"additions",children:[s.length===0&&e.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:e.jsxs("div",{className:"max-w-md text-center space-y-4",children:[e.jsx("div",{className:"text-[16px] font-semibold",style:{color:t.textPrimary,fontFamily:"'Geist Mono', monospace"},children:"Ready to test your agent"}),e.jsx("div",{className:"text-[13px] leading-relaxed",style:{color:t.textDim},children:"Start a conversation to see how your agent responds with the current knowledge and configuration."}),e.jsxs("div",{className:"flex flex-wrap gap-2 justify-center mt-6",children:[e.jsx("button",{type:"button",onClick:()=>r("What is this codebase about?"),title:"Ask about codebase",className:"px-3 py-2 rounded-lg border cursor-pointer text-[12px] hover:border-[#FE5000] transition-colors",style:{background:t.surface,border:`1px solid ${t.border}`,color:t.textSecondary,fontFamily:"'Geist Mono', monospace"},children:"What is this codebase about?"}),e.jsx("button",{type:"button",onClick:()=>r("Explain the main architecture"),title:"Ask about architecture",className:"px-3 py-2 rounded-lg border cursor-pointer text-[12px] hover:border-[#FE5000] transition-colors",style:{background:t.surface,border:`1px solid ${t.border}`,color:t.textSecondary,fontFamily:"'Geist Mono', monospace"},children:"Explain the main architecture"}),e.jsx("button",{type:"button",onClick:()=>r("What are the key features?"),title:"Ask about features",className:"px-3 py-2 rounded-lg border cursor-pointer text-[12px] hover:border-[#FE5000] transition-colors",style:{background:t.surface,border:`1px solid ${t.border}`,color:t.textSecondary,fontFamily:"'Geist Mono', monospace"},children:"What are the key features?"})]})]})}),s.map(a=>e.jsxs("div",{className:"max-w-[85%] px-3.5 py-2.5 rounded-xl text-[14px] leading-relaxed",style:{alignSelf:a.role==="user"?"flex-end":"flex-start",background:a.role==="user"?"#FE500015":t.isDark?"#1c1c20":"#f0f0f5",border:`1px solid ${a.role==="user"?"#FE500020":t.border}`,color:a.role==="user"?t.textPrimary:t.textSecondary,borderBottomRightRadius:a.role==="user"?4:12,borderBottomLeftRadius:a.role==="assistant"?4:12},children:[a.role==="assistant"?e.jsx(wt,{remarkPlugins:[Ct],components:{pre:({children:f})=>e.jsx("pre",{style:{background:t.isDark?"#0d0d10":"#e8e8f0",borderRadius:6,padding:"8px 12px",overflowX:"auto",fontSize:13,margin:"8px 0"},children:f}),code:({children:f,className:S})=>!S?e.jsx("code",{style:{background:t.isDark?"#0d0d10":"#e8e8f0",borderRadius:3,padding:"1px 4px",fontSize:13},children:f}):e.jsx("code",{style:{fontFamily:"'Geist Mono', monospace"},children:f}),a:({href:f,children:S})=>e.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",style:{color:"#FE5000",textDecoration:"underline"},children:S}),h1:({children:f})=>e.jsx("h1",{style:{fontSize:16,fontWeight:600,margin:"8px 0 4px"},children:f}),h2:({children:f})=>e.jsx("h2",{style:{fontSize:15,fontWeight:600,margin:"8px 0 4px"},children:f}),h3:({children:f})=>e.jsx("h3",{style:{fontSize:14,fontWeight:600,margin:"6px 0 2px"},children:f}),ul:({children:f})=>e.jsx("ul",{style:{paddingLeft:20,margin:"4px 0"},children:f}),ol:({children:f})=>e.jsx("ol",{style:{paddingLeft:20,margin:"4px 0"},children:f}),li:({children:f})=>e.jsx("li",{style:{marginBottom:2},children:f}),blockquote:({children:f})=>e.jsx("blockquote",{style:{borderLeft:"3px solid #FE5000",paddingLeft:12,margin:"8px 0",color:t.textDim},children:f}),table:({children:f})=>e.jsx("table",{style:{borderCollapse:"collapse",width:"100%",margin:"8px 0",fontSize:13},children:f}),th:({children:f})=>e.jsx("th",{style:{border:`1px solid ${t.border}`,padding:"4px 8px",textAlign:"left",fontWeight:600},children:f}),td:({children:f})=>e.jsx("td",{style:{border:`1px solid ${t.border}`,padding:"4px 8px"},children:f})},children:a.content||(o?"...":"")}):a.content||"",a.role==="assistant"&&a.pipelineStats&&e.jsx(Lt,{stats:a.pipelineStats,traceId:a.traceId})]},a.id)),e.jsx("div",{ref:k})]}),b.length>0&&e.jsx("div",{className:"px-4 py-1.5",children:e.jsx(_t,{matrix:D,requiredCapabilities:b})}),e.jsx(qt,{}),e.jsxs("div",{className:"px-4 py-3 flex gap-2",style:{borderTop:`1px solid ${t.border}`},children:[e.jsx("input",{type:"text",value:n,onChange:a=>r(a.target.value),onKeyDown:P,placeholder:"Test your agent...","aria-label":"Test message",className:"flex-1 px-3.5 py-2.5 rounded-lg outline-none text-[14px]",style:{background:t.inputBg,border:`1px solid ${t.border}`,color:t.textPrimary,fontFamily:"'Geist Sans', sans-serif"}}),e.jsx("button",{type:"button","aria-label":"Send message",title:"Send message",onClick:C,disabled:o||!n.trim(),className:"px-4 rounded-lg cursor-pointer border-none text-[12px] font-semibold tracking-wider uppercase min-h-[44px] min-w-[44px]",style:{background:"#FE5000",color:"#fff",fontFamily:"'Geist Mono', monospace",opacity:o||!n.trim()?.5:1},children:e.jsx(it,{size:12})})]})]})}function Yt(){const t=w(),[s,n]=h.useState([{id:"agent-1",name:"Agent 1",rolePrompt:"",repoUrl:"",source:"blank"},{id:"agent-2",name:"Agent 2",rolePrompt:"",repoUrl:"",source:"blank"}]),[r,o]=h.useState(""),[i,l]=h.useState([]),[c,d]=h.useState(null),u=h.useRef(null),p=B(x=>x.status),m=B(x=>x.reset),g=p==="running";h.useEffect(()=>{fetch(`${Ne}/agents`).then(x=>x.ok?x.json():{data:[]}).then(x=>{const v=x.data??x??[];l(v.map(j=>({id:j.id,name:j.agentMeta?.name||j.id,description:j.agentMeta?.description||""})))}).catch(()=>{})},[]);const y=()=>{const x=s.length+1;n([...s,{id:`agent-${Date.now()}`,name:`Agent ${x}`,rolePrompt:"",repoUrl:"",source:"blank"}])},b=async(x,v)=>{try{const j=await fetch(`${Ne}/agents/${encodeURIComponent(v)}`);if(!j.ok)return;const H=await j.json(),q=H.data??H,$=q.agentMeta??{},T=[],R=q.instructionState??{};$.name&&T.push(`You are ${$.name}. ${$.description||""}`),R.persona&&T.push(`Persona: ${R.persona}`),R.objectives?.primary&&T.push(`Primary Objective: ${R.objectives.primary}`),R.constraints?.customConstraints&&T.push(`Constraints: ${R.constraints.customConstraints}`);const V=T.join(`
26
+
27
+ `);n(A=>A.map(Z=>Z.id===x?{...Z,name:$.name||v,savedSystemPrompt:V,source:v}:Z))}catch{}d(null)},N=x=>{s.length<=1||n(s.filter(v=>v.id!==x))},D=(x,v)=>{n(s.map(j=>j.id===x?{...j,...v}:j))},[k,C]=h.useState(null),[P,a]=h.useState(null),f=h.useCallback(async()=>{if(!r.trim()||g)return;C(null),a(null);const{providerId:x,model:v,error:j}=fe();if(j){C(j),console.error("[TeamRunner] Provider error:",j);return}const $=he.getState().providers.find(T=>T.id===x)?.authMethod==="claude-agent-sdk";try{const T=G.getState(),R=Ze.getState(),V=E.getState(),A=R.currentVersion||"0.0.0",Z=V.conversationId||`conv-${Date.now()}`,te=T.startTrace(Z,A),J=M=>{T.addEvent(te,M)},He=Date.now();let se=pe();J({kind:"retrieval",sourceName:"System Frame",query:"identity + constraints + workflow",resultCount:1,durationMs:Date.now()-He});const je=I.getState(),oe=je.channels,X=oe.filter(M=>M.enabled);let K="",ve="",ie=null;if(X.length>0){a("Preparing knowledge...");const M=Date.now(),z=await Je(X,te);ve=z.frameworkBlock,J({kind:"retrieval",sourceName:"Source Router",query:`${X.length} channels`,resultCount:z.regularChannels?.length??0,durationMs:Date.now()-M});const _=Date.now(),O=await Xe(oe,z.regularChannels,z.residualKnowledgeBlock,{userMessage:r,navigationMode:"manual",providerId:x,model:v},te);K=O.knowledgeBlock,ie=O.provenance,J({kind:"retrieval",sourceName:"Knowledge Pipeline",query:r.substring(0,80),resultCount:X.length,durationMs:Date.now()-_})}const ke=je.connectors.filter(M=>M.enabled&&M.direction!=="write");if(ke.length>0){const z=`<connectors>
28
+ Available data connectors (use via MCP tools):
29
+ ${ke.map(_=>{const O=_.hint?` (scope: ${_.hint})`:"";return`- ${_.name} [${_.service}] — ${_.direction}${O}`}).join(`
30
+ `)}
31
+ </connectors>`;K=K?`${K}
32
+
33
+ ${z}`:z}const qe=Qe.getState();let ce="";if(qe.longTerm.enabled){a("Recalling memory...");const M=Date.now(),z=await et({userMessage:r,agentId:"team",traceId:te});z.contextBlock&&(ce=z.contextBlock),J({kind:"retrieval",sourceName:"Memory Recall",query:r.substring(0,80),durationMs:Date.now()-M})}if(ie&&(se=pe(ie)),X.length>0||K||ce){const M=tt(oe,st.getState().getIndex),z=oe.some(O=>O.enabled&&O.repoMeta);se=ot({frame:se,orientationBlock:M,hasRepos:z,knowledgeFormatGuide:nt(),frameworkBlock:ve,memoryBlock:ce,knowledgeBlock:K})}J({kind:"llm_call",model:v,sourceName:"LLM Request"}),a("Running team..."),C(null);const Ke={teamId:`team-${Date.now()}`,systemPrompt:se,task:r.trim(),providerId:x,model:v,isAgentSdk:$,agents:s.map(M=>({agentId:M.id,name:M.name,systemPrompt:M.savedSystemPrompt||void 0,rolePrompt:M.rolePrompt||void 0,repoUrl:M.repoUrl||void 0}))};u.current=we(Ke),a(null)}catch(T){console.error("[TeamRunner] Knowledge pipeline error:",T),a(null),C(`Knowledge pipeline error: ${T instanceof Error?T.message:"Unknown error"}`);const R=pe(),V={teamId:`team-${Date.now()}`,systemPrompt:R,task:r.trim(),providerId:x,model:v,isAgentSdk:$,agents:s.map(A=>({agentId:A.id,name:A.name,systemPrompt:A.savedSystemPrompt||void 0,rolePrompt:A.rolePrompt||void 0,repoUrl:A.repoUrl||void 0}))};u.current=we(V),a(null)}},[r,s,g]),S=()=>{u.current?.abort(),u.current=null};return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"px-4 py-3 flex flex-col gap-2 overflow-y-auto",style:{maxHeight:"45%"},children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsxs("span",{className:"text-[12px] font-bold tracking-[0.08em] uppercase",style:{fontFamily:"'Geist Mono', monospace",color:t.textDim},children:["Team Agents (",s.length,")"]}),e.jsxs("button",{type:"button",onClick:y,disabled:s.length>=5,className:"flex items-center gap-1 text-[12px] px-2 py-1 rounded cursor-pointer border-none",style:{background:"#FE500015",color:"#FE5000",fontFamily:"'Geist Mono', monospace",opacity:s.length>=5?.4:1},children:[e.jsx(ct,{size:10})," Add"]})]}),s.map(x=>e.jsxs("div",{style:{padding:10,borderRadius:8,border:`1px solid ${x.source!=="blank"?"#FE500030":t.border}`,background:t.surface},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(dt,{size:12,style:{color:x.source!=="blank"?"#FE5000":t.textDim}}),e.jsx("input",{type:"text",value:x.name,onChange:v=>D(x.id,{name:v.target.value}),className:"flex-1 text-[13px] font-semibold px-1.5 py-0.5 rounded outline-none border-none",style:{background:"transparent",color:t.textPrimary,fontFamily:"'Geist Mono', monospace"}}),e.jsx("button",{type:"button",onClick:()=>d(c===x.id?null:x.id),className:"text-[11px] px-2 py-0.5 rounded cursor-pointer border-none",style:{background:"#FE500010",color:"#FE5000",fontFamily:"'Geist Mono', monospace"},children:x.source!=="blank"?"↻ Swap":"↗ Load"}),s.length>1&&e.jsx("button",{type:"button",onClick:()=>N(x.id),className:"border-none cursor-pointer p-0.5 rounded",style:{background:"transparent",color:t.textDim},children:e.jsx(pt,{size:12})})]}),c===x.id&&i.length>0&&e.jsxs("div",{className:"mb-2 flex flex-col gap-1 p-2 rounded",style:{background:t.inputBg,border:`1px solid ${t.border}`},children:[e.jsx("span",{className:"text-[11px] uppercase font-bold tracking-[0.08em] mb-1",style:{color:t.textDim,fontFamily:"'Geist Mono', monospace"},children:"Load from library"}),i.map(v=>e.jsxs("button",{type:"button",onClick:()=>b(x.id,v.id),className:"text-left text-[12px] px-2 py-1.5 rounded cursor-pointer border-none w-full",style:{background:"transparent",color:t.textPrimary},onMouseEnter:j=>{j.currentTarget.style.background=t.surfaceHover},onMouseLeave:j=>{j.currentTarget.style.background="transparent"},children:[e.jsx("span",{style:{fontWeight:600},children:v.name}),v.description&&e.jsxs("span",{style:{color:t.textDim,marginLeft:6},children:["— ",v.description.slice(0,40)]})]},v.id)),i.length===0&&e.jsx("span",{className:"text-[12px]",style:{color:t.textFaint},children:"No saved agents. Save one from the Agent Builder first."})]}),x.source!=="blank"&&e.jsx("div",{className:"mb-1.5",children:e.jsxs("span",{className:"text-[11px] px-1.5 py-0.5 rounded",style:{background:"#FE500015",color:"#FE5000",fontFamily:"'Geist Mono', monospace"},children:["↗ ",x.source]})}),e.jsx("input",{type:"text",value:x.rolePrompt,onChange:v=>D(x.id,{rolePrompt:v.target.value}),placeholder:"Role override (optional — appended to agent instructions)",className:"w-full text-[12px] px-2 py-1.5 rounded outline-none mb-1.5",style:{background:t.inputBg,border:`1px solid ${t.borderSubtle}`,color:t.textSecondary}}),e.jsx("input",{type:"text",value:x.repoUrl,onChange:v=>D(x.id,{repoUrl:v.target.value}),placeholder:"Repository URL (optional — e.g., https://github.com/user/repo)",className:"w-full text-[12px] px-2 py-1.5 rounded outline-none",style:{background:t.inputBg,border:`1px solid ${t.borderSubtle}`,color:t.textSecondary}})]},x.id))]}),e.jsxs("div",{className:"px-4 py-2",style:{borderTop:`1px solid ${t.border}`},children:[e.jsx("textarea",{value:r,onChange:x=>o(x.target.value),placeholder:"Describe the task for the team...",rows:3,className:"w-full text-[13px] px-3 py-2.5 rounded-lg outline-none resize-none",style:{background:t.inputBg,border:`1px solid ${t.border}`,color:t.textPrimary,lineHeight:1.5}}),P&&e.jsx("div",{className:"text-[12px] px-3 py-2 rounded mb-2",style:{background:"#10b98115",color:"#10b981",border:"1px solid #10b98130"},children:P}),k&&e.jsx("div",{className:"text-[12px] px-3 py-2 rounded mb-2",style:{background:"#dc262615",color:"#dc2626",border:"1px solid #dc262630"},children:k}),e.jsxs("div",{className:"flex gap-2 mt-2",children:[g?e.jsxs("button",{type:"button",onClick:S,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg cursor-pointer border-none text-[12px] font-bold tracking-[0.08em] uppercase min-h-[44px]",style:{background:"#dc2626",color:"#fff",fontFamily:"'Geist Mono', monospace"},children:[e.jsx(mt,{size:12})," Stop"]}):e.jsxs("button",{type:"button",onClick:f,disabled:!r.trim(),className:"flex items-center gap-1.5 px-4 py-2 rounded-lg cursor-pointer border-none text-[12px] font-bold tracking-[0.08em] uppercase min-h-[44px]",style:{background:"#FE5000",color:"#fff",fontFamily:"'Geist Mono', monospace",opacity:r.trim()?1:.5},children:[e.jsx(ut,{size:12})," Run Team"]}),p!=="idle"&&!g&&e.jsx("button",{type:"button",onClick:m,className:"text-[12px] px-3 py-2 rounded-lg cursor-pointer border-none",style:{background:t.border,color:t.textDim},children:"Clear"})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-4 py-3",style:{borderTop:`1px solid ${t.border}`},children:e.jsx(Ut,{})})]})}function Vt(){const t=w(),[s,n]=h.useState(null),[r,o]=h.useState(!1),[i,l]=h.useState(null),[c,d]=h.useState(!1),u=h.useRef(null),p=h.useCallback(()=>{const a=I.getState();return{channels:a.channels,selectedModel:a.selectedModel,outputFormat:a.outputFormat,outputFormats:a.outputFormats,prompt:a.prompt,tokenBudget:a.tokenBudget,mcpServers:a.mcpServers,skills:a.skills,agentMeta:a.agentMeta,agentConfig:a.agentConfig,connectors:a.connectors,instructionState:a.instructionState,workflowSteps:a.workflowSteps}},[]),m=h.useCallback(async()=>{try{const{downloadAgentDirectory:a}=await le(async()=>{const{downloadAgentDirectory:f}=await Promise.resolve().then(()=>zt);return{downloadAgentDirectory:f}},void 0);await a(p()),n("dir"),setTimeout(()=>n(null),2e3)}catch(a){console.error("Directory export failed:",a)}},[p]),g=h.useCallback(async a=>{try{const f=p();let S,x;a==="md"?(S=de("claude",f),x=".md"):a==="yaml"?(S=de("openclaw",f),x=".yaml"):(S=de("generic",f),x=".json");const v=(f.agentMeta.name||"modular-agent").toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"");Ye(S,v,x),await navigator.clipboard.writeText(S),n(a),setTimeout(()=>n(null),2e3)}catch{}},[p]),y=h.useCallback(async a=>{if(!a.name.endsWith(".zip")){l("Please select a ZIP file containing an agent directory");return}o(!0),l(null);try{await We(a),n("import"),setTimeout(()=>n(null),2e3)}catch(f){const S=f instanceof Error?f.message:"Unknown import error";l(S),setTimeout(()=>l(null),5e3)}finally{o(!1)}},[]),b=h.useCallback(()=>{u.current?.click()},[]),N=h.useCallback(a=>{const f=a.target.files?.[0];f&&y(f),a.target&&(a.target.value="")},[y]),D=h.useCallback(a=>{a.preventDefault(),a.stopPropagation(),d(!0)},[]),k=h.useCallback(a=>{a.preventDefault(),a.stopPropagation(),d(!1)},[]),C=h.useCallback(a=>{a.preventDefault(),a.stopPropagation(),d(!1);const S=Array.from(a.dataTransfer.files).find(x=>x.name.endsWith(".zip"));if(!S){l("Please drop a ZIP file containing an agent directory"),setTimeout(()=>l(null),5e3);return}y(S)},[y]),P=[{id:"dir",icon:ht,label:"Agent Directory",fmt:".zip",primary:!0},{id:"md",icon:Ie,label:"Claude Code / .claude",fmt:".md",primary:!1},{id:"yaml",icon:yt,label:"OpenClaw Agent",fmt:".yaml",primary:!1},{id:"json",icon:gt,label:"Vibe Kanban / BloopAI",fmt:".json",primary:!1}];return e.jsxs("div",{className:"px-4 py-3",style:{borderTop:`1px solid ${t.border}`},onDragOver:D,onDragLeave:k,onDrop:C,children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("div",{className:"text-[12px] font-bold tracking-[0.08em] uppercase mb-2.5",style:{fontFamily:"'Geist Mono', monospace",color:t.textDim},children:"Import from"}),e.jsxs("button",{type:"button","aria-label":"Import agent from ZIP",onClick:b,disabled:r,className:"flex items-center gap-2.5 px-3 py-2.5 rounded-lg cursor-pointer w-full text-left min-h-[44px] motion-reduce:transition-none",style:{background:c?"#FE500020":"#FE500010",border:`1px solid ${c?"#FE500060":"#FE500030"}`,transition:"all 150ms",opacity:r?.6:1},onMouseEnter:a=>{r||(a.currentTarget.style.borderColor="#FE500040")},onMouseLeave:a=>{r||(a.currentTarget.style.borderColor="#FE500030")},onFocus:a=>{r||(a.currentTarget.style.borderColor="#FE500040")},onBlur:a=>{r||(a.currentTarget.style.borderColor="#FE500030")},children:[e.jsx("div",{className:"w-6 h-6 rounded flex items-center justify-center",style:{background:t.surfaceElevated},children:s==="import"?e.jsx(ye,{size:12,style:{color:"#00ff88"}}):r?e.jsx("div",{className:"w-3 h-3 border border-t-0 border-l-0",style:{borderColor:"#FE5000",borderRadius:"50%",animation:"spin 1s linear infinite"}}):e.jsx(xt,{size:12,style:{color:t.textDim}})}),e.jsx("span",{className:"flex-1 text-[13px]",style:{color:t.textPrimary},children:c?"Drop ZIP file here":r?"Importing...":"Import Agent"}),e.jsx("span",{className:"text-[13px]",style:{fontFamily:"'Geist Mono', monospace",color:t.textDim},children:".zip"})]}),i&&e.jsxs("div",{className:"mt-2 p-2 rounded-lg flex items-start gap-2",style:{background:"#dc262615",border:"1px solid #dc262630"},children:[e.jsx(ft,{size:14,style:{color:"#dc2626",flexShrink:0,marginTop:1}}),e.jsx("span",{className:"text-[12px] leading-relaxed",style:{color:"#dc2626"},children:i})]}),e.jsx("input",{ref:u,type:"file",accept:".zip",style:{display:"none"},onChange:N,"aria-label":"Import agent ZIP file"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[12px] font-bold tracking-[0.08em] uppercase mb-2.5",style:{fontFamily:"'Geist Mono', monospace",color:t.textDim},children:"Export to"}),e.jsx("div",{className:"flex flex-col gap-1.5",children:P.map(a=>{const f=a.icon,S=a.id==="dir"?m:()=>g(a.id);return e.jsxs("button",{type:"button","aria-label":`Export as ${a.fmt}`,onClick:S,className:"flex items-center gap-2.5 px-3 py-2.5 rounded-lg cursor-pointer w-full text-left min-h-[44px] motion-reduce:transition-none",style:{background:a.primary?"#FE500010":t.isDark?"#1c1c20":"#f0f0f5",border:`1px solid ${a.primary?"#FE500030":t.border}`,transition:"border-color 150ms"},onMouseEnter:x=>{x.currentTarget.style.borderColor="#FE500040"},onMouseLeave:x=>{x.currentTarget.style.borderColor=t.border},onFocus:x=>{x.currentTarget.style.borderColor="#FE500040"},onBlur:x=>{x.currentTarget.style.borderColor=t.border},children:[e.jsx("div",{className:"w-6 h-6 rounded flex items-center justify-center",style:{background:t.surfaceElevated},children:s===a.id?e.jsx(ye,{size:12,style:{color:"#00ff88"}}):e.jsx(f,{size:12,style:{color:t.textDim}})}),e.jsx("span",{className:"flex-1 text-[13px]",style:{color:t.textPrimary},children:a.label}),e.jsx("span",{className:"text-[13px]",style:{fontFamily:"'Geist Mono', monospace",color:t.textDim},children:a.fmt})]},a.id)})})]})]})}function re({onCollapse:t,onExpand:s,onMinimize:n,isExpanded:r}){const o=w(),[i,l]=h.useState("chat");return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-center gap-2 px-4 py-3",style:{borderBottom:`1px solid ${o.border}`},children:[e.jsx("div",{style:{width:6,height:6,borderRadius:"50%",background:"#00ff88",boxShadow:"0 0 6px rgba(0,255,136,0.4)"}}),e.jsx("span",{className:"text-[12px] font-bold tracking-[0.08em] uppercase flex-1",style:{fontFamily:"'Geist Mono', monospace",color:o.textSecondary},children:i==="chat"?"Conversation Tester":i==="team"?"Team Runner":i==="traces"?"Execution Traces":"Export"}),e.jsxs("div",{className:"flex gap-0.5 rounded-md overflow-hidden",role:"tablist",style:{border:`1px solid ${o.border}`},children:[e.jsx("button",{type:"button",role:"tab",id:"tab-chat","aria-selected":i==="chat","aria-controls":"tabpanel-chat",onClick:()=>l("chat"),title:"Chat with agent",className:"text-[13px] px-2.5 py-2 cursor-pointer border-none min-h-[44px]",style:{background:i==="chat"?"#FE5000":"transparent",color:i==="chat"?"#fff":o.textDim,fontFamily:"'Geist Mono', monospace"},children:"Chat"}),e.jsx("button",{type:"button",role:"tab",id:"tab-team","aria-selected":i==="team","aria-controls":"tabpanel-team",onClick:()=>l("team"),title:"Run team mode",className:"text-[13px] px-2.5 py-2 cursor-pointer border-none min-h-[44px]",style:{background:i==="team"?"#FE5000":"transparent",color:i==="team"?"#fff":o.textDim,fontFamily:"'Geist Mono', monospace"},children:"Team"}),e.jsx("button",{type:"button",role:"tab",id:"tab-export","aria-selected":i==="export","aria-controls":"tabpanel-export",onClick:()=>l("export"),title:"Export agent",className:"text-[13px] px-2.5 py-2 cursor-pointer border-none min-h-[44px]",style:{background:i==="export"?"#FE5000":"transparent",color:i==="export"?"#fff":o.textDim,fontFamily:"'Geist Mono', monospace"},children:"Export"})]}),r&&n&&e.jsx("button",{type:"button",onClick:n,"aria-label":"Minimize test panel",title:"Minimize panel",className:"w-7 h-7 rounded-md border-none cursor-pointer flex items-center justify-center",style:{background:"transparent",color:o.textDim},children:e.jsx(Le,{size:14})}),!r&&s&&e.jsx("button",{type:"button",onClick:s,"aria-label":"Expand test panel",title:"Expand panel",className:"w-7 h-7 rounded-md border-none cursor-pointer flex items-center justify-center",style:{background:"transparent",color:o.textDim},children:e.jsx(Re,{size:14})}),t&&e.jsx("button",{type:"button",onClick:t,"aria-label":"Collapse test panel",title:"Collapse panel",className:"w-7 h-7 rounded-md border-none cursor-pointer flex items-center justify-center",style:{background:"transparent",color:o.textDim},children:e.jsx(U,{size:14})})]}),i==="chat"&&e.jsx("div",{role:"tabpanel",id:"tabpanel-chat","aria-labelledby":"tab-chat",className:"flex flex-col flex-1 min-h-0",children:e.jsx(Kt,{})}),i==="team"&&e.jsx("div",{role:"tabpanel",id:"tabpanel-team","aria-labelledby":"tab-team",className:"flex flex-col flex-1 min-h-0",children:e.jsx(Yt,{})}),i==="export"&&e.jsx("div",{role:"tabpanel",id:"tabpanel-export","aria-labelledby":"tab-export",className:"flex-1 overflow-y-auto",children:e.jsx(Vt,{})})]})}function Me({}){const t=w(),s=E(c=>c.lastPipelineStats),[n,r]=h.useState(!1),[o,i]=h.useState(null);h.useEffect(()=>{s&&s!==o&&i(o)},[s]);const l=(c,d)=>{if(!d||!n)return c.toString();const u=c-d,p=u>0?`+${u}`:u.toString(),m=u>0?"#22c55e":u<0?"#ef4444":t.textSecondary;return e.jsxs("span",{className:"flex items-center gap-1",children:[c,e.jsxs("span",{style:{color:m,fontSize:"10px",fontWeight:500},children:["(",p,")"]})]})};return e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsx("div",{className:"px-3 py-2 border-b flex-shrink-0",style:{borderColor:t.border,background:t.surfaceElevated,color:t.textPrimary},children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(be,{size:14,style:{color:"#FE5000"}}),e.jsx("h3",{className:"text-sm font-medium",style:{fontFamily:"'Geist Sans', sans-serif"},children:"Context Inspector"})]}),o&&e.jsxs("button",{onClick:()=>r(!n),className:"flex items-center gap-1 px-2 py-1 rounded text-[11px] font-medium transition-colors",style:{background:n?"#FE5000":t.surfaceElevated,color:n?"white":t.textSecondary,border:`1px solid ${n?"#FE5000":t.border}`},children:[e.jsx(bt,{size:12}),"Diff"]})]})}),e.jsx("div",{className:"flex-1 overflow-auto p-3",style:{background:t.surface},children:s?e.jsxs("div",{className:"space-y-3",children:[s.pipeline&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("h4",{className:"text-xs font-medium",style:{color:t.textPrimary},children:["Pipeline Context ",n&&o&&"(Current vs Previous)"]}),e.jsxs("div",{className:"text-[11px] space-y-1",style:{color:t.textSecondary},children:[e.jsxs("div",{children:["Total Tokens: ",l(s.totalContextTokens||0,o?.totalContextTokens)]}),e.jsxs("div",{children:["System Tokens: ",l(s.systemTokens||0,o?.systemTokens)]}),e.jsxs("div",{children:["Tool Turns: ",l(s.toolTurns||0,o?.toolTurns)]})]})]}),s.memory&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-xs font-medium",style:{color:t.textPrimary},children:"Memory"}),e.jsx("div",{className:"text-[11px] space-y-1",style:{color:t.textSecondary},children:e.jsx("div",{children:"Memory available"})})]}),s.toolCalls&&s.toolCalls.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-xs font-medium",style:{color:t.textPrimary},children:"Tool Calls"}),e.jsx("div",{className:"text-[11px] space-y-1",style:{color:t.textSecondary},children:e.jsxs("div",{children:["Count: ",l(s.toolCalls.length,o?.toolCalls?.length)]})})]}),s.retrieval&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-xs font-medium",style:{color:t.textPrimary},children:"Retrieval"}),e.jsxs("div",{className:"text-[11px] space-y-1",style:{color:t.textSecondary},children:[e.jsxs("div",{children:["Query Type: ",s.retrieval.queryType]}),e.jsxs("div",{children:["Selected Chunks: ",l(s.retrieval.selectedChunks,o?.retrieval?.selectedChunks)]}),e.jsxs("div",{children:["Budget Used: ",l(s.retrieval.budgetUsed,o?.retrieval?.budgetUsed)]}),e.jsxs("div",{children:["Diversity Score: ",s.retrieval.diversityScore.toFixed(2)]})]})]}),(s.frameworkSummary||o?.frameworkSummary)&&e.jsxs("div",{className:"space-y-2",children:[e.jsx("h4",{className:"text-xs font-medium",style:{color:t.textPrimary},children:"Framework Summary"}),e.jsxs("div",{className:"text-[11px] space-y-1",style:{color:t.textSecondary},children:[e.jsxs("div",{children:["Constraints: ",l(s.frameworkSummary?.constraints||0,o?.frameworkSummary?.constraints)]}),e.jsxs("div",{children:["Workflow Steps: ",l(s.frameworkSummary?.workflowSteps||0,o?.frameworkSummary?.workflowSteps)]}),e.jsxs("div",{children:["Tool Hints: ",l(s.frameworkSummary?.toolHints||0,o?.frameworkSummary?.toolHints)]})]})]})]}):e.jsx("div",{className:"text-center text-sm",style:{color:t.textSecondary},children:"No context data available"})})]})}function Zt(t){return typeof t=="object"&&t!==null&&Array.isArray(t.sources)}function Jt(t){return typeof t=="object"&&t!==null&&Array.isArray(t.allocations)}function Xt(t){return typeof t=="object"&&t!==null&&Array.isArray(t.chunks)}function Qt(t){return typeof t=="object"&&t!==null&&"contradictionsFound"in t}function es(t){const s=t;return typeof t=="object"&&t!==null&&Array.isArray(s.sources)&&Array.isArray(s.derivationChain)}function Y({data:t}){const s=w(),[n,r]=h.useState(!1);return e.jsxs("div",{className:"px-4 pb-2",children:[e.jsxs("button",{type:"button",onClick:()=>r(o=>!o),className:"flex items-center gap-1 text-xs border-none bg-transparent cursor-pointer",style:{color:s.textFaint},children:[e.jsx(kt,{size:11}),n?"Hide":"Show"," raw JSON"]}),n&&e.jsx("pre",{className:"mt-2 text-xs overflow-auto max-h-40 rounded p-2",style:{background:s.surfaceElevated,color:s.textDim,fontFamily:"'Geist Mono', monospace"},children:JSON.stringify(t,null,2)})]})}function ee({name:t,data:s}){const n=w();return e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"px-4 py-2 text-sm",style:{color:n.textDim},children:["No data available for ",t]}),e.jsx(Y,{data:s})]})}function ts({data:t,expanded:s,onToggle:n}){const r=w(),o=Zt(t)?t:null,i=o?o.sources.filter(l=>l.included).length:0;return e.jsxs("div",{className:"border-b",style:{borderColor:r.border},children:[e.jsxs("button",{type:"button",onClick:n,title:s?"Collapse source assembly":"Expand source assembly",className:"flex items-center gap-3 w-full px-4 py-3 text-left border-none cursor-pointer",style:{background:"transparent",color:r.textPrimary},children:[e.jsx(Ie,{size:16,style:{color:"#3b82f6"}}),e.jsx("span",{className:"flex-1 font-medium",children:"Source Assembly"}),o&&e.jsxs("span",{className:"text-sm",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:[i,"/",o.sources.length," sources"]}),s?e.jsx(W,{size:16}):e.jsx(U,{size:16})]}),s&&e.jsxs(e.Fragment,{children:[o?e.jsx("div",{className:"px-4 pb-4 space-y-2",children:o.sources.map((l,c)=>e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg",style:{background:l.included?r.surface:r.surfaceElevated,border:`1px solid ${l.included?r.border:r.borderSubtle}`},children:[e.jsx("div",{className:`w-2 h-2 rounded-full ${l.included?"bg-green-500":"bg-gray-400"}`}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium text-sm",style:{color:r.textPrimary},children:l.name}),e.jsxs("div",{className:"text-xs",style:{color:r.textDim},children:[l.type," • ",l.rawTokens.toLocaleString()," tokens"]})]}),l.reason&&e.jsx("div",{className:"text-xs px-2 py-1 rounded",style:{background:l.included?"#10b98115":"#ef444415",color:l.included?"#10b981":"#ef4444"},children:l.reason})]},c))}):e.jsx(ee,{name:"Source Assembly",data:t}),e.jsx(Y,{data:t})]})]})}function ss({data:t,expanded:s,onToggle:n}){const r=w(),o=Jt(t)?t:null,i=o?o.allocations.reduce((d,u)=>d+u.allocatedTokens,0):0,l=o?o.allocations.reduce((d,u)=>d+u.usedTokens,0):0,c=i>0?l/i*100:0;return e.jsxs("div",{className:"border-b",style:{borderColor:r.border},children:[e.jsxs("button",{type:"button",onClick:n,className:"flex items-center gap-3 w-full px-4 py-3 text-left border-none cursor-pointer",style:{background:"transparent",color:r.textPrimary},children:[e.jsx(jt,{size:16,style:{color:"#8b5cf6"}}),e.jsx("span",{className:"flex-1 font-medium",children:"Budget Allocation"}),o&&e.jsxs("span",{className:"text-sm",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:[c.toFixed(0),"% utilized"]}),s?e.jsx(W,{size:16}):e.jsx(U,{size:16})]}),s&&e.jsxs(e.Fragment,{children:[o?e.jsx("div",{className:"px-4 pb-4 space-y-3",children:e.jsx("div",{className:"space-y-2",children:o.allocations.map((d,u)=>e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-sm",children:[e.jsx("span",{style:{color:r.textPrimary},children:d.source}),e.jsxs("span",{style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:[d.usedTokens.toLocaleString(),"/",d.allocatedTokens.toLocaleString()]})]}),e.jsxs("div",{className:"flex gap-1 h-2 rounded",style:{background:r.surfaceElevated},children:[e.jsx("div",{className:"h-full rounded",style:{width:`${d.percentage}%`,background:d.cappedBySize?"#f59e0b":"#10b981"}}),e.jsx("div",{className:"h-full rounded",style:{width:`${Math.max(0,d.percentage-d.usedTokens/o.totalBudget*100)}%`,background:d.cappedBySize?"#f59e0b30":"#10b98130"}})]}),d.cappedBySize&&e.jsx("div",{className:"text-xs",style:{color:"#f59e0b"},children:"Capped by content size"})]},u))})}):e.jsx(ee,{name:"Budget Allocation",data:t}),e.jsx(Y,{data:t})]})]})}function os({data:t,expanded:s,onToggle:n}){const r=w(),o=Xt(t)?t:null,i=o?o.diversityScore>.5?"#10b981":o.diversityScore>.3?"#f59e0b":"#ef4444":r.textDim;return e.jsxs("div",{className:"border-b",style:{borderColor:r.border},children:[e.jsxs("button",{type:"button",onClick:n,className:"flex items-center gap-3 w-full px-4 py-3 text-left border-none cursor-pointer",style:{background:"transparent",color:r.textPrimary},children:[e.jsx(be,{size:16,style:{color:"#06b6d4"}}),e.jsx("span",{className:"flex-1 font-medium",children:"Retrieval"}),o&&e.jsxs("span",{className:"text-sm",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:[o.selectedChunks,"/",o.totalChunks," chunks • ",(o.diversityScore*100).toFixed(0),"% diversity"]}),s?e.jsx(W,{size:16}):e.jsx(U,{size:16})]}),s&&e.jsxs(e.Fragment,{children:[o?e.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded",style:{background:r.surface},children:[e.jsx("div",{className:"text-sm font-medium",style:{color:r.textPrimary},children:"Query Type:"}),e.jsx("span",{className:"px-2 py-1 text-xs rounded",style:{background:o.queryType==="factual"?"#3b82f615":o.queryType==="analytical"?"#f59e0b15":"#8b5cf615",color:o.queryType==="factual"?"#3b82f6":o.queryType==="analytical"?"#f59e0b":"#8b5cf6"},children:o.queryType}),e.jsxs("div",{className:"ml-auto text-sm",style:{color:i},children:["Diversity: ",(o.diversityScore*100).toFixed(1),"%"]})]}),e.jsx("div",{className:"space-y-2 max-h-60 overflow-y-auto",children:o.chunks.sort((l,c)=>c.relevanceScore-l.relevanceScore).map((l,c)=>e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded",style:{background:r.surface},children:[e.jsxs("div",{className:"w-8 text-xs text-center",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:["#",c+1]}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-sm font-medium",style:{color:r.textPrimary},children:l.source}),e.jsx("div",{className:"text-xs",style:{color:r.textDim},children:l.section})]}),e.jsx("div",{className:"text-xs px-2 py-1 rounded",style:{background:l.inclusionReason==="direct"?"#10b98115":l.inclusionReason==="parent-expansion"?"#3b82f615":"#8b5cf615",color:l.inclusionReason==="direct"?"#10b981":l.inclusionReason==="parent-expansion"?"#3b82f6":"#8b5cf6"},children:l.inclusionReason.replace("-"," ")}),e.jsx("div",{className:"text-xs",style:{fontFamily:"'Geist Mono', monospace",color:r.textDim},children:l.relevanceScore.toFixed(2)})]},c))})]}):e.jsx(ee,{name:"Retrieval",data:t}),e.jsx(Y,{data:t})]})]})}function ns({data:t,expanded:s,onToggle:n}){const r=w(),o=Qt(t)?t:null,i=o?o.contradictionsFound>0:!1;return e.jsxs("div",{className:"border-b",style:{borderColor:r.border},children:[e.jsxs("button",{type:"button",onClick:n,className:"flex items-center gap-3 w-full px-4 py-3 text-left border-none cursor-pointer",style:{background:"transparent",color:r.textPrimary},children:[e.jsx(Pe,{size:16,style:{color:i?"#ef4444":"#10b981"}}),e.jsx("span",{className:"flex-1 font-medium",children:"Contradiction Check"}),o&&e.jsxs("span",{className:"text-sm",style:{color:i?"#ef4444":"#10b981",fontFamily:"'Geist Mono', monospace"},children:[o.contradictionsFound," conflicts"]}),s?e.jsx(W,{size:16}):e.jsx(U,{size:16})]}),s&&e.jsxs(e.Fragment,{children:[o?e.jsx("div",{className:"px-4 pb-4 space-y-3",children:i?e.jsxs("div",{className:"space-y-3",children:[o.conflicts.map((l,c)=>e.jsxs("div",{className:"p-3 rounded-lg border",style:{background:"#ef444415",borderColor:"#ef444430"},children:[e.jsxs("div",{className:"font-medium text-sm mb-2",style:{color:"#ef4444"},children:["Conflict #",c+1]}),e.jsxs("div",{className:"space-y-1 text-sm",children:[e.jsxs("div",{style:{color:r.textPrimary},children:[e.jsx("span",{style:{color:r.textDim},children:"Sources:"})," ",l.sources.join(", ")]}),e.jsxs("div",{style:{color:r.textPrimary},children:[e.jsx("span",{style:{color:r.textDim},children:"Resolved to:"})," ",l.resolvedTo]}),e.jsx("div",{style:{color:r.textDim},children:l.reason}),e.jsxs("div",{className:"text-xs",style:{color:"#f59e0b",fontFamily:"'Geist Mono', monospace"},children:["Confidence: ",(l.confidence*100).toFixed(0),"%"]})]})]},c)),o.annotations.length>0&&e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-medium",style:{color:r.textDim},children:"Resolution Notes:"}),o.annotations.map((l,c)=>e.jsx("div",{className:"text-xs p-2 rounded",style:{background:r.surface,color:r.textDim},children:l},c))]})]}):e.jsxs("div",{className:"text-center py-4",children:[e.jsx("div",{className:"text-sm",style:{color:"#10b981"},children:"No contradictions detected"}),e.jsx("div",{className:"text-xs mt-1",style:{color:r.textDim},children:"All sources are consistent"})]})}):e.jsx(ee,{name:"Contradiction Check",data:t}),e.jsx(Y,{data:t})]})]})}function rs({data:t,expanded:s,onToggle:n}){const r=w(),o=es(t)?t:null,i=o?o.sources.reduce((l,c)=>l+c.transformations.length,0):0;return e.jsxs("div",{className:"border-b",style:{borderColor:r.border},children:[e.jsxs("button",{type:"button",onClick:n,className:"flex items-center gap-3 w-full px-4 py-3 text-left border-none cursor-pointer",style:{background:"transparent",color:r.textPrimary},children:[e.jsx(vt,{size:16,style:{color:"#f59e0b"}}),e.jsx("span",{className:"flex-1 font-medium",children:"Provenance"}),o&&e.jsxs("span",{className:"text-sm",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:[o.sources.length," sources • ",i," transforms"]}),s?e.jsx(W,{size:16}):e.jsx(U,{size:16})]}),s&&e.jsxs(e.Fragment,{children:[o?e.jsxs("div",{className:"px-4 pb-4 space-y-3",children:[e.jsx("div",{className:"space-y-2",children:o.derivationChain.map((l,c)=>e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded",style:{background:r.surface},children:[e.jsxs("div",{className:"w-8 text-xs text-center",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:["#",c+1]}),e.jsxs("div",{className:"flex-1 text-sm",children:[e.jsx("span",{style:{color:r.textPrimary},children:l.from}),e.jsx("span",{style:{color:r.textDim,margin:"0 8px"},children:"→"}),e.jsx("span",{style:{color:r.textSecondary},children:l.to})]}),e.jsx("div",{className:"text-xs px-2 py-1 rounded",style:{background:"#f59e0b15",color:"#f59e0b"},children:l.method})]},c))}),o.sources.length>0&&e.jsxs("div",{className:"mt-4",children:[e.jsx("div",{className:"text-sm font-medium mb-2",style:{color:r.textDim},children:"Source Transformations:"}),e.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:o.sources.map((l,c)=>e.jsxs("div",{className:"p-2 rounded",style:{background:r.surface},children:[e.jsx("div",{className:"text-sm font-medium mb-1",style:{color:r.textPrimary},children:l.path}),e.jsx("div",{className:"text-xs",style:{color:r.textDim},children:l.type}),l.transformations.length>0&&e.jsx("div",{className:"mt-2 space-y-1",children:l.transformations.map((d,u)=>e.jsxs("div",{className:"text-xs flex items-center gap-2",style:{color:r.textDim},children:[e.jsx("span",{children:d.input}),e.jsx("span",{children:"→"}),e.jsx("span",{children:d.output}),e.jsx("span",{className:"ml-auto text-xs px-1 py-0.5 rounded",style:{background:r.surfaceElevated,color:r.textDim},children:d.method})]},u))})]},c))})]})]}):e.jsx(ee,{name:"Provenance",data:t}),e.jsx(Y,{data:t})]})]})}const as={retrieval:{color:"#3498db",label:"Retrieval"},llm_call:{color:"#9b59b6",label:"LLM"},tool_call:{color:"#2ecc71",label:"Tool"},error:{color:"#e74c3c",label:"Error"},fact_extracted:{color:"#FE5000",label:"Fact"},token_usage:{color:"#f1c40f",label:"Tokens"}};function ls({events:t}){const s=w();return t.length===0?null:e.jsxs("div",{className:"px-4 py-3 space-y-2 border-t",style:{borderColor:s.border},children:[e.jsx("div",{className:"text-xs font-medium mb-2",style:{color:s.textDim},children:"Event Timeline"}),t.map((n,r)=>{const o=as[n.kind]||{color:"#888",label:n.kind},i=n.sourceName||n.toolName||n.model||n.kind,l=(n.inputTokens||0)+(n.outputTokens||0);return e.jsxs("div",{className:"flex items-center gap-3 p-2 rounded",style:{background:s.isDark?"#ffffff06":"#00000006"},children:[e.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{background:o.color}}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[11px] px-1.5 py-0.5 rounded font-medium",style:{background:`${o.color}20`,color:o.color,fontFamily:"'Geist Mono', monospace"},children:o.label}),e.jsx("span",{className:"text-[12px] font-medium truncate",style:{color:s.textPrimary},children:i})]}),n.query&&e.jsx("div",{className:"text-[11px] mt-0.5 truncate",style:{color:s.textDim},children:n.query})]}),e.jsxs("div",{className:"shrink-0 text-right",children:[n.durationMs!=null&&e.jsxs("div",{className:"text-[11px]",style:{color:s.textDim,fontFamily:"'Geist Mono', monospace"},children:[n.durationMs,"ms"]}),n.resultCount!=null&&e.jsxs("div",{className:"text-[10px]",style:{color:s.textFaint},children:[n.resultCount," results"]}),l>0&&e.jsxs("div",{className:"text-[10px]",style:{color:s.textFaint},children:[l," tok"]})]})]},r)})]})}const ue=["source_assembly","budget_allocation","retrieval","contradiction_check","provenance"],is={source_assembly:"Source",budget_allocation:"Budget",retrieval:"Retrieval",contradiction_check:"Conflicts",provenance:"Provenance"};function cs({status:t}){const s="w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold shrink-0";return t==="error"?e.jsx("div",{className:s,style:{background:"#ef4444",color:"white"},children:"✕"}):t==="done"?e.jsx("div",{className:s,style:{background:"#10b981",color:"white"},children:"✓"}):t==="active"?e.jsx("div",{className:`${s} animate-pulse`,style:{background:"#FE5000"}}):e.jsx("div",{className:s,style:{background:"#6b7280"}})}function ds({stages:t,hasError:s}){const n=w(),r=ue.reduce((o,i,l)=>{const c=t.get(i);return c&&c.durationMs===void 0?l:o},-1);return e.jsx("div",{className:"flex items-start px-4 py-3 border-b",style:{borderColor:n.border},children:ue.map((o,i)=>{const l=t.get(o),c=l&&l.durationMs!==void 0,d=l&&l.durationMs===void 0,p=s&&i===r?"error":c?"done":d?"active":"pending",m=c||d;return e.jsxs("div",{className:"flex items-center flex-1 min-w-0",children:[e.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[e.jsx(cs,{status:p}),e.jsx("span",{className:"text-[10px] text-center leading-tight",style:{color:n.textDim},children:is[o]}),l?.durationMs!==void 0&&e.jsxs("span",{className:"text-[10px]",style:{color:n.textFaint,fontFamily:"'Geist Mono', monospace"},children:[l.durationMs,"ms"]})]}),i<ue.length-1&&e.jsx("div",{className:"flex-1 h-px mx-1",style:{background:m?"#10b981":"#6b7280",opacity:.5,marginTop:"-14px"}})]},o)})})}function Fe(){const t=w(),s=G(y=>y.getDisplayTrace),n=G(y=>y.selectedTraceId),r=G(y=>y.eventVersion),[o,i]=h.useState(new Set),l=h.useRef(null),c=s(),d=c?.events??[],u=d.filter(y=>y.kind==="pipeline_stage"),p=new Map;for(const y of u)if(y.provenanceStages)for(const b of y.provenanceStages)p.set(b.stage,b);const m=y=>{const b=new Set(o);b.has(y)?b.delete(y):b.add(y),i(b)},g=d.some(y=>y.kind==="error");return h.useEffect(()=>{for(const y of u)if(y.provenanceStages)for(const b of y.provenanceStages)b.durationMs!==void 0&&!o.has(b.stage)&&i(N=>new Set([...N,b.stage]))},[r]),h.useEffect(()=>{l.current&&u.length>0&&(l.current.scrollTop=l.current.scrollHeight)},[r,u.length]),c?d.length===0?e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx(me,{selectedTraceId:n,stageCount:0,eventCount:0}),e.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:e.jsx("div",{className:"text-center",children:e.jsx("div",{className:"text-sm",style:{color:t.textDim},children:"Trace started, waiting for events…"})})})]}):e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx(me,{selectedTraceId:n,stageCount:p.size,eventCount:d.length}),e.jsxs("div",{ref:l,className:"flex-1 overflow-y-auto",children:[p.size>0&&e.jsx(ds,{stages:p,hasError:g}),p.size===0&&e.jsxs("div",{className:"px-4 py-3",children:[e.jsxs("div",{className:"text-sm",style:{color:t.textDim},children:["Trace has ",d.length," event",d.length!==1?"s":""," but no pipeline stages."]}),e.jsx("div",{className:"text-xs mt-1",style:{color:t.textFaint},children:"Events are visible in the timeline below."})]}),p.has("source_assembly")&&e.jsx(ts,{data:p.get("source_assembly").data,expanded:o.has("source_assembly"),onToggle:()=>m("source_assembly")}),p.has("budget_allocation")&&e.jsx(ss,{data:p.get("budget_allocation").data,expanded:o.has("budget_allocation"),onToggle:()=>m("budget_allocation")}),p.has("retrieval")&&e.jsx(os,{data:p.get("retrieval").data,expanded:o.has("retrieval"),onToggle:()=>m("retrieval")}),p.has("contradiction_check")&&e.jsx(ns,{data:p.get("contradiction_check").data,expanded:o.has("contradiction_check"),onToggle:()=>m("contradiction_check")}),p.has("provenance")&&e.jsx(rs,{data:p.get("provenance").data,expanded:o.has("provenance"),onToggle:()=>m("provenance")}),e.jsx(ls,{events:d})]})]}):e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx(me,{selectedTraceId:n,stageCount:0,eventCount:0}),e.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm",style:{color:t.textDim},children:"No trace yet"}),e.jsx("div",{className:"text-xs mt-2",style:{color:t.textFaint},children:"Run a chat in the Test tab to see how your agent processes knowledge through the pipeline."})]})})]})}function me({selectedTraceId:t,stageCount:s,eventCount:n}){const r=w();return e.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b",style:{borderColor:r.border},children:[e.jsx("div",{className:`w-2 h-2 rounded-full ${t?"bg-blue-500":"bg-green-500 animate-pulse"}`}),e.jsx("span",{className:"text-sm font-medium",style:{color:r.textPrimary},children:"Pipeline Observability"}),t&&e.jsx("button",{type:"button",onClick:()=>G.getState().selectTrace(null),title:"Stop viewing past trace",className:"text-[10px] px-1.5 py-0.5 rounded border-none cursor-pointer",style:{background:"#3b82f620",color:"#3b82f6",fontFamily:"'Geist Mono', monospace"},children:"viewing past · ✕"}),e.jsxs("span",{className:"ml-auto text-xs",style:{color:r.textDim,fontFamily:"'Geist Mono', monospace"},children:[s," stage",s!==1?"s":""," · ",n," event",n!==1?"s":""]})]})}function Te({onResize:t,leftWidthPct:s,minWidthPx:n=200,onDoubleClick:r}){const o=w(),[i,l]=h.useState(!1),c=h.useRef(null),d=h.useCallback(g=>{g.preventDefault(),l(!0)},[]),u=h.useCallback(g=>{if(!i||!c.current)return;const y=c.current.parentElement;if(!y)return;const b=y.getBoundingClientRect(),D=(g.clientX-b.left)/b.width*100,k=n/b.width*100,C=100-k,P=Math.max(k,Math.min(C,D));t(P)},[i,n,t]),p=h.useCallback(()=>{l(!1)},[]),m=h.useCallback(()=>{r?.()},[r]);return h.useEffect(()=>{if(i)return document.addEventListener("mousemove",u),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",p)}},[i,u,p]),e.jsxs("div",{ref:c,className:"relative cursor-col-resize flex-shrink-0",style:{width:"4px",background:i?"#FE5000":"transparent",transition:i?"none":"background-color 0.2s ease"},onMouseDown:d,onDoubleClick:m,children:[e.jsx("div",{className:"absolute inset-y-0 left-1/2 transform -translate-x-1/2 w-1",style:{background:o.border}}),i&&e.jsx("div",{className:"fixed inset-0 cursor-col-resize",style:{zIndex:9999}})]})}const Ee="testTab-panelWidths",xe=25,De=25;function gs(){const t=w(),s=E(a=>a.conversationId),n=I(a=>a.selectedModel),r=I(a=>a.setModel),o=he(a=>a.getAllModels),i=he(a=>a.providers),l=h.useMemo(()=>o().map(a=>({value:`${a.providerId}::${a.id}`,label:`${a.providerName} / ${a.label}`})),[o,i]),c=h.useMemo(()=>o().find(f=>`${f.providerId}::${f.id}`===n)?.label||n,[o,i,n]),[d,u]=h.useState(()=>{const a=localStorage.getItem(Ee);if(a)try{return JSON.parse(a)}catch{return{left:xe,right:De}}return{left:xe,right:De}}),[p,m]=h.useState(0),[g,y]=h.useState(!1),[b,N]=h.useState(!1);h.useEffect(()=>{const a=()=>{N(window.innerWidth<1200)};return a(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),h.useEffect(()=>{localStorage.setItem(Ee,JSON.stringify(d))},[d]);const D=h.useCallback(a=>{u(f=>({...f,left:a}))},[]),k=h.useCallback(a=>{u(f=>({...f,right:100-a}))},[]),C=h.useCallback(()=>{y(!g),u(g?a=>({...a,left:xe}):a=>({...a,left:0}))},[g]),P=100-d.left-d.right;if(b){const a=[{id:"conversation",label:"Conversation",icon:St,component:re},{id:"context",label:"Context",icon:be,component:Me},{id:"pipeline",label:"Pipeline",icon:Nt,component:Fe}],f=a[p]?.component||re;return e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"px-4 py-3",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-2",style:{color:t.textPrimary,fontFamily:"'Geist Sans', sans-serif"},children:"Test Your Agent"}),e.jsx("p",{className:"text-sm mb-3",style:{color:t.textSecondary,lineHeight:1.5},children:"Test your agent with sample conversations, view execution traces, and analyze performance."}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"flex-1 max-w-xs",children:e.jsx(Se,{options:l,value:n,onChange:S=>r(S),placeholder:"Select model..."})}),n&&e.jsxs("span",{className:"text-xs px-2 py-1 rounded-full",style:{background:"#FE500015",color:"#FE5000",border:"1px solid #FE500030"},children:["Current: ",c]})]})]}),e.jsx("div",{className:"flex border-b",style:{borderColor:t.border,background:t.surfaceElevated},children:a.map((S,x)=>{const v=S.icon,j=x===p;return e.jsxs("button",{type:"button",onClick:()=>m(x),title:`View ${S.label.toLowerCase()}`,className:"flex items-center gap-2 px-4 py-3 text-sm font-medium border-none bg-transparent",style:{color:j?"#FE5000":t.textSecondary,borderBottom:j?"2px solid #FE5000":"none",fontFamily:"'Geist Sans', sans-serif"},children:[e.jsx(v,{size:14}),S.label]},S.id)})}),e.jsx("div",{className:"flex-1 overflow-hidden",children:p===0?e.jsx(re,{}):e.jsx(f,{conversationId:s||void 0})})]})}return e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"px-4 py-3 flex-shrink-0",children:[e.jsx("h2",{className:"text-2xl font-semibold mb-2",style:{color:t.textPrimary,fontFamily:"'Geist Sans', sans-serif"},children:"Test Your Agent"}),e.jsx("p",{className:"text-sm mb-3",style:{color:t.textSecondary,lineHeight:1.5},children:"Test your agent with sample conversations, view execution traces, and analyze performance."}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{className:"flex-1 max-w-xs",children:e.jsx(Se,{options:l,value:n,onChange:a=>r(a),placeholder:"Select model..."})}),n&&e.jsxs("span",{className:"text-xs px-2 py-1 rounded-full",style:{background:"#FE500015",color:"#FE5000",border:"1px solid #FE500030"},children:["Current: ",c]})]})]}),e.jsxs("div",{className:"flex-1 flex overflow-hidden",style:{display:"grid",gridTemplateColumns:`${d.left}% 4px ${P}% 4px ${d.right}%`,gap:0},children:[e.jsx("div",{className:"overflow-hidden border-r overflow-y-auto",style:{borderColor:t.border,background:t.surface,display:d.left===0?"none":"block"},children:e.jsx(Me,{conversationId:s||void 0})}),e.jsx(Te,{onResize:D,leftWidthPct:d.left,onDoubleClick:C}),e.jsx("div",{className:"overflow-hidden",style:{background:t.surface},children:e.jsx(re,{isExpanded:!g,onExpand:()=>y(!1),onMinimize:()=>y(!0)})}),e.jsx(Te,{onResize:k,leftWidthPct:100-d.right}),e.jsx("div",{className:"overflow-hidden border-l",style:{borderColor:t.border,background:t.surface,display:d.right===0?"none":"block"},children:e.jsx(Fe,{})})]})]})}export{gs as TestTab};
@@ -0,0 +1 @@
1
+ import{r as i,j as t}from"./vendor-D1h_O76p.js";import{u as D,c,f as $}from"./index-q24ug5Qs.js";import{u as n,c as m}from"./services-BaKotDf0.js";import{c as A}from"./stores-CeKWz7ou.js";import{Z as I,a0 as C,aH as O,O as W,ap as Z,aI as _,aJ as G,R as J}from"./icons-C2EV-le6.js";function v(){return{status:"unknown",latencyMs:null,toolCount:null,errorMessage:null,checkedAt:0}}const q=A((s,p)=>({mcpHealth:{},skillHealth:{},setMcpHealth:(o,l)=>s(a=>({mcpHealth:{...a.mcpHealth,[o]:l}})),setSkillHealth:(o,l)=>s(a=>({skillHealth:{...a.skillHealth,[o]:l}})),setMcpChecking:o=>s(l=>({mcpHealth:{...l.mcpHealth,[o]:{...l.mcpHealth[o]||v(),status:"checking"}}})),setSkillChecking:o=>s(l=>({skillHealth:{...l.skillHealth,[o]:{...l.skillHealth[o]||v(),status:"checking"}}})),clearHealth:()=>s({mcpHealth:{},skillHealth:{}})}));function Y(){const s=D(),p=n(e=>e.removeMcp),o=m(e=>e.removeServer),l=m(e=>e.connectServer),a=m(e=>e.servers),d=q(e=>e.mcpHealth),h=c(e=>e.skills),y=c(e=>e.loaded),u=c(e=>e.loading),b=c(e=>e.loadSkills),M=c(e=>e.toggleSkill),g=n(e=>e.setShowSkillPicker),f=n(e=>e.setShowMarketplace),k=n(e=>e.skills),[j,w]=i.useState(null);i.useEffect(()=>{!y&&!u&&b()},[y,u,b]);const S=i.useMemo(()=>new Set(k.filter(e=>e.added).map(e=>e.id)),[k]),x=i.useMemo(()=>h.filter(e=>S.has(e.id)),[h,S]),E=e=>{const r=d[e.id];return r?.status==="error"?"#ef4444":e.status==="connected"&&r?.status==="healthy"?"#22c55e":e.status==="connecting"||r?.status==="checking"?"#f59e0b":e.status==="error"?"#ef4444":"#6b7280"},T=e=>{const r=d[e.id];return r?.status==="error"?"Error":e.status==="connected"&&r?.status==="healthy"?"Connected":e.status==="connecting"||r?.status==="checking"?"Connecting":e.status==="error"?"Error":"Disconnected"},H=e=>{p(e),o(e)},P=async e=>{try{await l(e)}catch(r){console.error("Failed to reconnect MCP server:",r)}},L=({skill:e})=>{const r=e.enabled;return t.jsx("div",{className:"p-4 rounded-lg border",style:{background:s.surface,borderColor:s.border},children:t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[t.jsx("h3",{className:"text-sm font-medium truncate",style:{color:s.textPrimary},children:e.name}),t.jsx($,{skillPath:e.path})]}),e.description&&t.jsx("p",{className:"text-xs mb-2",style:{color:s.textSecondary,lineHeight:1.4},children:e.description})]}),t.jsxs("label",{className:"flex items-center cursor-pointer",title:r?"Disable skill":"Enable skill",children:[t.jsx("input",{type:"checkbox",checked:r,onChange:()=>M(e.id),className:"sr-only"}),t.jsx("div",{className:`w-10 h-6 rounded-full relative transition-colors ${r?"bg-blue-500":""}`,style:{backgroundColor:r?"#3b82f6":s.borderSubtle},children:t.jsx("div",{className:`w-4 h-4 rounded-full bg-white absolute top-1 transition-transform ${r?"translate-x-5":"translate-x-1"}`,style:{boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}})})]})]})})},F=({server:e})=>{const N=d[e.id]?.toolCount??e.tools?.length??0,R=E(e),z=T(e),B=e.status==="disconnected"||e.status==="error";return t.jsxs("div",{className:"p-4 rounded-lg border",style:{background:s.surface,borderColor:s.border},children:[t.jsxs("div",{className:"flex items-start justify-between gap-3 mb-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:R}}),t.jsx("h3",{className:"text-sm font-medium",style:{color:s.textPrimary},children:e.name})]}),t.jsx("button",{type:"button","aria-label":`Remove ${e.name}`,title:`Remove ${e.name}`,onClick:()=>H(e.id),className:"text-xs p-1 rounded hover:bg-red-100 dark:hover:bg-red-900/20",style:{color:s.textFaint},children:"×"})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-3 text-xs",style:{color:s.textSecondary},children:[t.jsx("span",{children:z}),N>0&&t.jsxs("span",{className:"px-1.5 py-0.5 rounded",style:{background:s.badgeBg,color:s.textDim},children:[N," tools"]})]}),B&&t.jsxs("button",{type:"button",onClick:()=>P(e.id),title:"Reconnect server",className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800",style:{color:s.textSecondary},children:[t.jsx(J,{size:10}),"Reconnect"]})]})]})};return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{children:[t.jsx("h2",{className:"text-2xl font-semibold mb-2 m-0",style:{color:s.textPrimary,fontFamily:"'Geist Sans', sans-serif"},children:"Tools & Capabilities"}),t.jsx("p",{className:"text-sm",style:{color:s.textSecondary,lineHeight:1.5},children:"Configure the tools and capabilities your agent can use. Skills add specialized functionality while MCP servers provide external integrations."})]}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{size:20,style:{color:"#f1c40f"}}),t.jsx("h3",{className:"text-lg font-medium",style:{color:s.textPrimary},children:"Skills"}),t.jsxs("span",{className:"px-2 py-1 rounded text-xs",style:{background:s.badgeBg,color:s.textDim},children:[x.length," total"]})]}),t.jsxs("button",{type:"button",onClick:()=>g(!0),title:"Add skills from library",className:"flex items-center gap-1.5 px-3 py-2 rounded text-sm border transition-colors",style:{borderColor:s.border,color:s.textSecondary},onMouseEnter:e=>{e.currentTarget.style.background="#FE500010",e.currentTarget.style.borderColor="#FE5000",e.currentTarget.style.color="#FE5000"},onMouseLeave:e=>{e.currentTarget.style.background="transparent",e.currentTarget.style.borderColor=s.border,e.currentTarget.style.color=s.textSecondary},children:[t.jsx(C,{size:16}),"Add from library"]}),t.jsx("button",{type:"button",onClick:()=>f(!0),title:"Browse marketplace",className:"flex items-center gap-1.5 px-3 py-2 rounded text-sm border transition-colors",style:{borderColor:s.border,color:s.textSecondary},onMouseEnter:e=>{e.currentTarget.style.background=s.surfaceElevated},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:"Marketplace"})]}),u?t.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((e,r)=>t.jsx("div",{className:"h-20 rounded-lg animate-pulse",style:{background:s.borderSubtle}},r))}):x.length===0?t.jsxs("div",{className:"text-center py-8 rounded-lg border-2 border-dashed",style:{borderColor:s.border},children:[t.jsx(O,{size:32,className:"mx-auto mb-3",style:{color:s.textFaint}}),t.jsx("p",{className:"text-sm font-medium mb-1",style:{color:s.textPrimary},children:"No Skills Installed"}),t.jsx("p",{className:"text-xs mb-4",style:{color:s.textSecondary},children:"Browse the skill library to add specialized capabilities for your agent."}),t.jsx("button",{type:"button",onClick:()=>g(!0),title:"Browse skill library",className:"px-4 py-2 rounded text-sm transition-colors",style:{background:"#f1c40f",color:"#000",border:"none",cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.background="#e1b70f"},onMouseLeave:e=>{e.currentTarget.style.background="#f1c40f"},children:"Browse Skills"}),t.jsx("button",{type:"button",onClick:()=>f(!0),title:"Browse marketplace",className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors",style:{background:"transparent",color:s.textSecondary,border:`1px solid ${s.border}`},onMouseEnter:e=>{e.currentTarget.style.background=s.surfaceElevated},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:"Browse Marketplace"})]}):t.jsx("div",{className:"space-y-3",children:x.map(e=>t.jsx(L,{skill:e},e.id))})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(W,{size:20,style:{color:"#2ecc71"}}),t.jsx("h3",{className:"text-lg font-medium",style:{color:s.textPrimary},children:"MCP Servers"}),t.jsxs("span",{className:"px-2 py-1 rounded text-xs",style:{background:s.badgeBg,color:s.textDim},children:[a.length," servers"]})]}),t.jsxs("button",{type:"button",onClick:()=>n.getState().setShowConnectionPicker(!0),title:"Connect MCP server",className:"flex items-center gap-1.5 px-3 py-2 rounded text-sm border transition-colors",style:{borderColor:s.border,color:s.textSecondary},onMouseEnter:e=>{e.currentTarget.style.background="#FE500010",e.currentTarget.style.borderColor="#FE5000",e.currentTarget.style.color="#FE5000"},onMouseLeave:e=>{e.currentTarget.style.background="transparent",e.currentTarget.style.borderColor=s.border,e.currentTarget.style.color=s.textSecondary},children:[t.jsx(C,{size:16}),"Connect"]})]}),j&&t.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-lg border-l-4",style:{backgroundColor:`${s.statusError}20`,borderLeftColor:s.statusError,color:s.statusError},children:[t.jsx(Z,{size:16}),t.jsx("span",{className:"flex-1 text-sm",children:j}),t.jsx("button",{onClick:()=>w(null),className:"px-2 py-1 text-xs rounded transition-colors",style:{background:s.statusError,color:"#fff",border:"none",cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.opacity="0.9"},onMouseLeave:e=>{e.currentTarget.style.opacity="1"},children:"Dismiss"})]}),a.length===0?t.jsxs("div",{className:"text-center py-8 rounded-lg border-2 border-dashed",style:{borderColor:s.border},children:[t.jsx(_,{size:32,className:"mx-auto mb-3",style:{color:s.textFaint}}),t.jsx("p",{className:"text-sm font-medium mb-1",style:{color:s.textPrimary},children:"No MCP Servers"}),t.jsx("p",{className:"text-xs mb-4",style:{color:s.textSecondary},children:"Connect to external integrations to expand your agent's capabilities."}),t.jsxs("button",{type:"button",onClick:()=>n.getState().setShowConnectionPicker(!0),className:"px-4 py-2 rounded text-sm transition-colors",style:{background:"#2ecc71",color:"#fff",border:"none",cursor:"pointer"},onMouseEnter:e=>{e.currentTarget.style.background="#27ae60"},onMouseLeave:e=>{e.currentTarget.style.background="#2ecc71"},children:[t.jsx(G,{size:16,style:{marginRight:"8px",display:"inline"}}),"Connect Server"]})]}):t.jsx("div",{className:"space-y-3",children:a.map(e=>t.jsx(F,{server:e},e.id))})]})]})]})}export{Y as ToolsTab};
@@ -0,0 +1 @@
1
+ import{c}from"./stores-CeKWz7ou.js";import"./vendor-D1h_O76p.js";const i="";let r=null;const p=c((a,n)=>({panelOpen:!1,panelHeight:40,activeTab:"chat",conversationId:null,conversations:[],messages:[],inputText:"",streaming:!1,lastPipelineStats:null,testCases:[],runningTests:!1,setPanelOpen:e=>a({panelOpen:e}),setPanelHeight:e=>a({panelHeight:Math.max(20,Math.min(80,e))}),setActiveTab:e=>a({activeTab:e}),setInputText:e=>a({inputText:e}),addMessage:e=>{const s=n(),t={...e,id:`msg-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,timestamp:Date.now()};let o=s.conversationId;!o&&s.messages.length===0&&(o=`conv-${Date.now()}-${Math.random().toString(36).slice(2,8)}`),a({messages:[...s.messages,t],conversationId:o}),r&&clearTimeout(r),r=setTimeout(()=>{n().saveToServer().catch(console.error)},1e3)},updateLastAssistant:e=>{const s=[...n().messages];for(let t=s.length-1;t>=0;t--)if(s[t].role==="assistant"){s[t]={...s[t],content:e};break}a({messages:s})},updateMessagePipelineStats:(e,s)=>{a({messages:n().messages.map(t=>t.id===e?{...t,pipelineStats:s}:t)})},clearMessages:()=>a({messages:[],lastPipelineStats:null}),setStreaming:e=>a({streaming:e}),setLastPipelineStats:e=>a({lastPipelineStats:e}),addTestCase:e=>a({testCases:[...n().testCases,{...e,id:`test-${Date.now()}-${Math.random().toString(36).slice(2,6)}`}]}),updateTestCase:(e,s)=>a({testCases:n().testCases.map(t=>t.id===e?{...t,...s}:t)}),removeTestCase:e=>a({testCases:n().testCases.filter(s=>s.id!==e)}),setRunningTests:e=>a({runningTests:e}),saveCurrentAsTest:(e,s)=>{const o=[...n().messages].reverse().find(l=>l.role==="user");o&&n().addTestCase({name:e,input:o.content,expectedBehavior:s,passed:null})},saveToServer:async()=>{const e=n();if(!(!e.conversationId||e.messages.length===0))try{const s=e.messages[0]?.content?.slice(0,50)||"Untitled Conversation";await fetch(`${i}/api/conversations`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.conversationId,title:s,messages:e.messages,lastModified:Date.now()})})}catch(s){console.error("Failed to save conversation:",s)}},listFromServer:async()=>{try{const e=await fetch(`${i}/api/conversations`);if(e.ok){const s=await e.json();a({conversations:s})}}catch(e){console.error("Failed to list conversations:",e)}},loadFromServer:async e=>{try{const s=await fetch(`${i}/api/conversations/${e}`);if(s.ok){const t=await s.json();a({conversationId:t.id,messages:t.messages||[],lastPipelineStats:null})}}catch(s){console.error("Failed to load conversation:",s)}}}));export{p as useConversationStore};
@@ -0,0 +1 @@
1
+ import{r as d}from"./vendor-D1h_O76p.js";const k=(...t)=>t.filter((e,c,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===c).join(" ").trim();const M=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,c,o)=>o?o.toUpperCase():c.toLowerCase());const s=t=>{const e=_(t);return e.charAt(0).toUpperCase()+e.slice(1)};var v={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 m=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const x=d.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:y="",children:h,iconNode:p,...n},i)=>d.createElement("svg",{ref:i,...v,width:e,height:e,stroke:t,strokeWidth:o?Number(c)*24/Number(e):c,className:k("lucide",y),...!h&&!m(n)&&{"aria-hidden":"true"},...n},[...p.map(([r,l])=>d.createElement(r,l)),...Array.isArray(h)?h:[h]]));const a=(t,e)=>{const c=d.forwardRef(({className:o,...y},h)=>d.createElement(x,{ref:h,iconNode:e,className:k(`lucide-${M(s(t))}`,`lucide-${t}`,o),...y}));return c.displayName=s(t),c};const g=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],V2=a("activity",g);const N=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],H2=a("anchor",N);const $=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],L2=a("arrow-down-right",$);const f=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],S2=a("arrow-left",f);const w=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],B2=a("arrow-right",w);const u=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],P2=a("arrow-up-down",u);const z=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]];a("arrow-up-right",z);const b=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],Z2=a("award",b);const j=[["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20",key:"oj1oa8"}],["path",{d:"m20 7 2 .5-2 .5",key:"12nv4d"}],["path",{d:"M10 18v3",key:"1yea0a"}],["path",{d:"M14 17.75V21",key:"1pymcb"}],["path",{d:"M7 18a6 6 0 0 0 3.84-10.61",key:"1npnn0"}]],D2=a("bird",j);const q=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],G2=a("book-open",q);const C=[["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"}]],R2=a("bot",C);const A=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],E2=a("box",A);const V=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]];a("braces",V);const H=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],F2=a("brain",H);const L=[["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"}]],T2=a("bug",L);const S=[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]],W2=a("cat",S);const B=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],U2=a("chart-column",B);const P=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],O2=a("check",P);const Z=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],I2=a("chevron-down",Z);const D=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],K2=a("chevron-left",D);const G=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],J2=a("chevron-right",G);const R=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Q2=a("chevron-up",R);const E=[["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"}]],X2=a("circle-alert",E);const F=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Y2=a("circle-check-big",F);const T=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],a0=a("circle-check",T);const W=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],e0=a("circle-x",W);const U=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],t0=a("circle",U);const O=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],c0=a("clipboard-list",O);const I=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],o0=a("clock",I);const K=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],h0=a("cloud",K);const J=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],d0=a("code",J);const Q=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],y0=a("compass",Q);const X=[["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"}]],n0=a("copy",X);const Y=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],s0=a("cpu",Y);const a1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],k0=a("database",a1);const e1=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],p0=a("dog",e1);const t1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],i0=a("download",t1);const c1=[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]],r0=a("drama",c1);const o1=[["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"}]],l0=a("external-link",o1);const h1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],M0=a("eye-off",h1);const d1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_0=a("eye",d1);const y1=[["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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],v0=a("file-code",y1);const n1=[["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"}]],m0=a("file-text",n1);const s1=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],x0=a("files",s1);const k1=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],g0=a("flame",k1);const p1=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],N0=a("folder-git-2",p1);const i1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],$0=a("folder-open",i1);const r1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],f0=a("folder",r1);const l1=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],w0=a("gem",l1);const M1=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],u0=a("git-branch",M1);const _1=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],z0=a("git-compare",_1);const v1=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]];a("git-fork",v1);const m1=[["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"}]],b0=a("github",m1);const x1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],j0=a("globe",x1);const g1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],q0=a("grid-3x3",g1);const N1=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],C0=a("hard-drive",N1);const $1=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],A0=a("hash",$1);const f1=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],V0=a("heart",f1);const w1=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],H0=a("hexagon",w1);const u1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],L0=a("image",u1);const z1=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],S0=a("key",z1);const b1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],B0=a("layers",b1);const j1=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],P0=a("layout-grid",j1);const q1=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Z0=a("library",q1);const C1=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],D0=a("lightbulb",C1);const A1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],G0=a("loader-circle",A1);const V1=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],R0=a("loader",V1);const H1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],E0=a("mail",H1);const L1=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],F0=a("map",L1);const S1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],T0=a("maximize-2",S1);const B1=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],W0=a("message-circle",B1);const P1=[["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"}]];a("message-square",P1);const Z1=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],U0=a("mic",Z1);const D1=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],O0=a("microscope",D1);const G1=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],I0=a("minimize-2",G1);const R1=[["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"}]],K0=a("monitor",R1);const E1=[["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"}]],J0=a("moon",E1);const F1=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Q0=a("package",F1);const T1=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],X0=a("palette",T1);const W1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Y0=a("panels-top-left",W1);const U1=[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]],aa=a("pen-tool",U1);const O1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ea=a("play",O1);const I1=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],ta=a("plug-zap",I1);const K1=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],ca=a("plug",K1);const J1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],oa=a("plus",J1);const Q1=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],ha=a("presentation",Q1);const X1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],da=a("refresh-cw",X1);const Y1=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ya=a("rocket",Y1);const a2=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],na=a("rotate-ccw",a2);const e2=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],sa=a("save",e2);const t2=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],ka=a("scale",t2);const c2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pa=a("search",c2);const o2=[["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"}]],ia=a("send",o2);const h2=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],ra=a("server",h2);const d2=[["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"}]],la=a("settings",d2);const y2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ma=a("shield-check",y2);const n2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],_a=a("shield",n2);const s2=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],va=a("sparkles",s2);const k2=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ma=a("square-check-big",k2);const p2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],xa=a("square",p2);const i2=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],ga=a("star",i2);const r2=[["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"}]],Na=a("sun",r2);const l2=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]];a("table-2",l2);const M2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],$a=a("target",M2);const _2=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],fa=a("terminal",_2);const v2=[["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"}]],wa=a("trash-2",v2);const m2=[["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"}]],ua=a("triangle-alert",m2);const x2=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],za=a("triangle",x2);const g2=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ba=a("upload",g2);const N2=[["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"}]],ja=a("user",N2);const $2=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qa=a("users",$2);const f2=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],Ca=a("waves",f2);const w2=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],Aa=a("waypoints",w2);const u2=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Va=a("wifi-off",u2);const z2=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Ha=a("wifi",z2);const b2=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],La=a("workflow",b2);const j2=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Sa=a("wrench",j2);const q2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ba=a("x",q2);const C2=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Pa=a("zap",C2);export{i0 as $,S2 as A,F2 as B,J2 as C,k0 as D,U2 as E,f0 as F,z0 as G,C0 as H,L0 as I,d0 as J,h0 as K,U0 as L,J0 as M,ha as N,ca as O,ea as P,G0 as Q,na as R,la as S,$a as T,O2 as U,Q2 as V,Sa as W,Ba as X,fa as Y,Pa as Z,l0 as _,I2 as a,oa as a0,K0 as a1,Aa as a2,L2 as a3,I0 as a4,q0 as a5,Y2 as a6,e0 as a7,ta as a8,M0 as a9,Ma as aA,a0 as aB,b0 as aC,N0 as aD,da as aE,S0 as aF,x0 as aG,Z0 as aH,Va as aI,Ha as aJ,R0 as aK,sa as aL,t0 as aM,ya as aN,O0 as aO,r0 as aP,ga as aQ,w0 as aR,D2 as aS,T2 as aT,W2 as aU,p0 as aV,V0 as aW,ja as aX,_0 as aa,wa as ab,ra as ac,B0 as ad,D0 as ae,P0 as af,Q0 as ag,n0 as ah,R2 as ai,P2 as aj,o0 as ak,B2 as al,ma as am,Z2 as an,K2 as ao,ua as ap,T0 as aq,ia as ar,qa as as,ba as at,X2 as au,$0 as av,v0 as aw,ka as ax,W0 as ay,V2 as az,Na as b,xa as c,_a as d,c0 as e,j0 as f,g0 as g,m0 as h,u0 as i,A0 as j,E0 as k,aa as l,za as m,s0 as n,Y0 as o,E2 as p,Ca as q,y0 as r,va as s,F0 as t,La as u,H0 as v,G2 as w,pa as x,X0 as y,H2 as z};
@@ -0,0 +1 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Geist Sans", sans-serif;--font-mono:"Geist Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-500:oklch(63.7% .237 25.331);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-800:oklch(44.8% .119 151.328);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-2xl:96rem;--container-xs:20rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#111114;--color-surface:#1c1c20;--color-border:#2a2a30;--color-accent:#fe5000;--color-text-primary:#f0f0f0}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{box-sizing:border-box;margin:0;padding:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:calc(var(--spacing) * 1)}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-12{top:calc(var(--spacing) * 12)}.top-13{top:calc(var(--spacing) * 13)}.top-\[2px\]{top:2px}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-5{right:calc(var(--spacing) * 5)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-5{bottom:calc(var(--spacing) * 5)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.left-5{left:calc(var(--spacing) * 5)}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[200\]{z-index:200}.z-\[250\]{z-index:250}.z-\[300\]{z-index:300}.z-\[9999\]{z-index:9999}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.m-4{margin:calc(var(--spacing) * 4)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-auto{margin-top:auto}.mr-4{margin-right:calc(var(--spacing) * 4)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-6{margin-left:calc(var(--spacing) * 6)}.ml-11{margin-left:calc(var(--spacing) * 11)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-20{height:calc(var(--spacing) * 20)}.h-32{height:calc(var(--spacing) * 32)}.h-\[6px\]{height:6px}.h-\[48px\]{height:48px}.h-\[80vh\]{height:80vh}.h-full{height:100%}.h-px{height:1px}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[60vh\]{max-height:60vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[80vh\]{max-height:80vh}.max-h-\[300px\]{max-height:300px}.max-h-\[400px\]{max-height:400px}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-\[36px\]{min-height:36px}.min-h-\[44px\]{min-height:44px}.w-1{width:calc(var(--spacing) * 1)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-44{width:calc(var(--spacing) * 44)}.w-64{width:calc(var(--spacing) * 64)}.w-\[6px\]{width:6px}.w-\[560px\]{width:560px}.w-\[600px\]{width:600px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[85\%\]{max-width:85%}.max-w-md{max-width:var(--container-md)}.max-w-screen-2xl{max-width:var(--breakpoint-2xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-\[44px\]{min-width:44px}.min-w-\[100px\]{min-width:100px}.min-w-\[120px\]{min-width:120px}.min-w-\[260px\]{min-width:260px}.min-w-max{min-width:max-content}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-1{--tw-translate-x:calc(var(--spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-5{--tw-translate-x:calc(var(--spacing) * 5);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[2px\]{gap:2px}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-md{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-border{border-color:var(--color-border)}.bg-\[\#FE5000\]{background-color:#fe5000}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black) 50%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-7{padding-right:calc(var(--spacing) * 7)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[7px\]{font-size:7px}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.1em\]{--tw-tracking:.1em;letter-spacing:.1em}.tracking-\[0\.08em\]{--tw-tracking:.08em;letter-spacing:.08em}.tracking-\[0\.12em\]{--tw-tracking:.12em;letter-spacing:.12em}.tracking-\[1px\]{--tw-tracking:1px;letter-spacing:1px}.tracking-\[2px\]{--tw-tracking:2px;letter-spacing:2px}.tracking-\[3px\]{--tw-tracking:3px;letter-spacing:3px}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-green-600{color:var(--color-green-600)}.text-green-800{color:var(--color-green-800)}.text-red-500{color:var(--color-red-500)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.hover\:border-\[\#FE5000\]:hover{border-color:#fe5000}.hover\:bg-\[\#FE500015\]:hover{background-color:#fe500015}.hover\:bg-\[\#ff000010\]:hover{background-color:#ff000010}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-70:hover{opacity:.7}.hover\:opacity-75:hover{opacity:.75}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:not-sr-only:focus{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.focus\:absolute:focus{position:absolute}.focus\:top-4:focus{top:calc(var(--spacing) * 4)}.focus\:left-4:focus{left:calc(var(--spacing) * 4)}.focus\:z-50:focus{z-index:50}.focus\:rounded:focus{border-radius:.25rem}.focus\:px-3:focus{padding-inline:calc(var(--spacing) * 3)}.focus\:py-2:focus{padding-block:calc(var(--spacing) * 2)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media(prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}.motion-reduce\:transition-none{transition-property:none}}@media(min-width:40rem){.sm\:w-32{width:calc(var(--spacing) * 32)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}}@media(min-width:48rem){.md\:col-span-2{grid-column:span 2/span 2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-\[60\%_40\%\]{grid-template-columns:60% 40%}.lg\:overflow-x-visible{overflow-x:visible}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}}@media(min-width:80rem){.xl\:px-12{padding-inline:calc(var(--spacing) * 12)}}@media(prefers-color-scheme:dark){@media(hover:hover){.dark\:hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-red-900\/20:hover{background-color:#82181a33}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-red-900\/20:hover{background-color:color-mix(in oklab,var(--color-red-900) 20%,transparent)}}}}}:focus-visible{outline:2px solid var(--color-accent,#6366f1);outline-offset:2px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}html,body,#root{background:var(--color-bg);width:100%;height:100%;font-family:var(--font-sans);color:var(--color-text-primary);overflow:hidden}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#111114}::-webkit-scrollbar-thumb{background:#2a2a30;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#3a3a40}[data-theme=light] ::-webkit-scrollbar-track{background:#f0f1f3}[data-theme=light] ::-webkit-scrollbar-thumb{background:#ccccd4}[data-theme=light] ::-webkit-scrollbar-thumb:hover{background:#aaaab0}.react-flow__node{box-shadow:none!important;background:0 0!important;border:none!important;padding:0!important}.react-flow__controls{border-radius:8px!important;overflow:hidden!important;box-shadow:0 2px 8px #00000026!important}.react-flow__controls-button{color:#f0f0f0!important;fill:#f0f0f0!important;background:#1c1c20!important;border:none!important;border-bottom:1px solid #2a2a30!important;justify-content:center!important;align-items:center!important;width:32px!important;height:32px!important;display:flex!important}.react-flow__controls-button:hover{background:#25252a!important}.react-flow__controls-button:last-child{border-bottom:none!important}.react-flow__controls-button svg{fill:currentColor!important;max-width:14px!important;max-height:14px!important}.react-flow__minimap{background:#1c1c20!important;border:1px solid #2a2a30!important;border-radius:8px!important;box-shadow:0 2px 8px #0003!important}.react-flow__minimap-mask{fill:#111114d9!important}.react-flow__minimap-node{fill:#3a3a42!important;stroke:#555!important;stroke-width:1px!important}[data-theme=light] .react-flow__controls-button{color:#1a1a20!important;fill:#1a1a20!important;background:#fff!important;border-bottom-color:#dddde2!important}[data-theme=light] .react-flow__controls-button:hover{background:#f0f0f5!important}[data-theme=light] .react-flow__minimap{background:#fff!important;border-color:#ccccd4!important}[data-theme=light] .react-flow__minimap-mask{fill:#f0f1f3d9!important}[data-theme=light] .react-flow__minimap-node{fill:#ccccd4!important;stroke:#999!important}::placeholder{color:#666!important;opacity:1!important}[data-theme=light] ::placeholder{color:#888!important}.react-flow__edge-textwrapper .react-flow__edge-text{fill:#888!important}[data-theme=light] .react-flow__edge-textwrapper .react-flow__edge-text{fill:#555!important}@keyframes spin{to{transform:rotate(360deg)}}.tab-scrollbar-hidden{scrollbar-width:none;-ms-overflow-style:none}.tab-scrollbar-hidden::-webkit-scrollbar{display:none}@media(prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}.glass-surface{background:#1c1c20cc;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(42,42,48,.6)}[data-theme=light] .glass-surface{background:#ffffffd9;border:1px solid rgba(200,200,210,.6)}@keyframes pulse-glow{0%,to{opacity:.6}50%{opacity:1}}@keyframes run-pulse-ring{0%{box-shadow:0 0 #fe500099,0 0 8px #fe50004d}50%{box-shadow:0 0 0 6px #fe500000,0 0 16px #fe500066}to{box-shadow:0 0 #fe500000,0 0 8px #fe50004d}}@keyframes cursor-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes fade-in-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes modal-in{0%{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.response-modal-overlay{animation:modal-in .2s ease-out}.tile{transition:transform .12s ease,border-color .15s ease,box-shadow .15s ease}.tile:hover{transform:translateY(-1px)}.tile:active{transform:translateY(0)}@keyframes jack-glow{0%,to{box-shadow:0 0 4px currentColor}50%{box-shadow:0 0 8px currentColor,0 0 12px currentColor}}@keyframes cable-sway{0%,to{filter:drop-shadow(0 0 2px currentColor)}50%{filter:drop-shadow(0 0 4px currentColor)}}@keyframes cable-dash{0%{stroke-dashoffset:20}to{stroke-dashoffset:0}}@keyframes ghost-pulse{0%,to{transform:scale(1);opacity:.6}50%{transform:scale(1.02);opacity:.75}}@keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes status-pulse{0%,to{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.1)}}.ghost-tile{border-style:dashed!important;opacity:.6;animation:ghost-pulse 2s ease-in-out infinite}.gradient-mesh-bg{position:relative}.gradient-mesh-bg:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 600px 400px at 15% 50%,rgba(254,80,0,.012) 0%,transparent 70%),radial-gradient(ellipse 500px 500px at 85% 30%,rgba(52,152,219,.008) 0%,transparent 70%);z-index:0}.hover-accent-border{transition:border-color .15s ease,color .15s ease}.hover-accent-border:hover{border-color:#fe5000!important;color:#fe5000!important}.hover-accent-text{transition:color .15s ease}.hover-accent-text:hover{color:#fe5000!important}.hover-row{transition:background-color .15s ease}.hover-row:hover{background-color:#25252a80}[data-theme=light] .hover-row:hover{background-color:#0000000a}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}@media(max-width:1024px){.tools-grid{grid-template-columns:1fr}}