@capagents/forgeqe 2.9.6 → 2.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +18 -0
- package/dist/docs-site/docs/architecture/index.html +1 -1
- package/dist/docs-site/docs/containers/index.html +2 -2
- package/dist/docs-site/docs/cost-architecture/index.html +1 -1
- package/dist/docs-site/docs/custom-agents-first-run/index.html +216 -0
- package/dist/docs-site/docs/desktop/index.html +1 -1
- package/dist/docs-site/docs/desktop-ci/index.html +1 -1
- package/dist/docs-site/docs/evidence/index.html +992 -0
- package/dist/docs-site/docs/feature-test-prompts/index.html +1 -1
- package/dist/docs-site/docs/graphify/index.html +380 -0
- package/dist/docs-site/docs/guardrails/index.html +2 -2
- package/dist/docs-site/docs/index.html +19 -4
- package/dist/docs-site/docs/mobile/index.html +1 -1
- package/dist/docs-site/docs/model-routing/index.html +1 -1
- package/dist/docs-site/docs/product-graph/index.html +356 -0
- package/dist/docs-site/docs/product-knowledge/index.html +3 -3
- package/dist/docs-site/docs/product-views/index.html +431 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +2 -2
- package/dist/forgeqe.js +1509 -1509
- package/dist/web/assets/{Agent-Ckze0-_m.js → Agent-I5mRol1P.js} +1 -1
- package/dist/web/assets/{ApiTests-BVvDTNOF.js → ApiTests--JGFKbOa.js} +1 -1
- package/dist/web/assets/{Browse-DWtHfslb.js → Browse-CIcl1j4N.js} +2 -2
- package/dist/web/assets/{Chat-6ZM6dG91.js → Chat-Baph1nlV.js} +1 -1
- package/dist/web/assets/{CommandPalette-Cdjwbda-.js → CommandPalette-Dd0seTKQ.js} +1 -1
- package/dist/web/assets/{Compare-DFRXMkZb.js → Compare-B7barE31.js} +1 -1
- package/dist/web/assets/{Cost-BAJ8OwYF.js → Cost-CGXZTXSz.js} +1 -1
- package/dist/web/assets/{Data-BKgbQF5L.js → Data-DGKi3KHS.js} +1 -1
- package/dist/web/assets/{Desktop-DR0SPUpa.js → Desktop-wfNhaxat.js} +1 -1
- package/dist/web/assets/{DesktopReview-RwGj52iT.js → DesktopReview-Cxn3mgKO.js} +1 -1
- package/dist/web/assets/{Evidence-CAmhcrWH.js → Evidence-BZ-WKU9t.js} +1 -1
- package/dist/web/assets/{Explore-CEqgVwSY.js → Explore-pa8l7kiC.js} +1 -1
- package/dist/web/assets/{Features-BGwhjQCB.js → Features-JDMSSUpb.js} +1 -1
- package/dist/web/assets/{Flags-xn0sSPIa.js → Flags-DcWTBteQ.js} +1 -1
- package/dist/web/assets/{Flaky-YNkwSUV0.js → Flaky-DnHWlzlk.js} +1 -1
- package/dist/web/assets/{Impact-COvx15JE.js → Impact-Dn5PPQ5Z.js} +1 -1
- package/dist/web/assets/{Jobs-B_AMFjhY.js → Jobs-CNhlUenm.js} +1 -1
- package/dist/web/assets/{KindPage-Bs0utNlI.js → KindPage-BPwFdxHe.js} +1 -1
- package/dist/web/assets/{Migration-CDfhBjFm.js → Migration-DsGwJd40.js} +1 -1
- package/dist/web/assets/{Product-Dk2nFc1g.js → Product-DsolJU4Y.js} +1 -1
- package/dist/web/assets/{Production-CPqGEo0W.js → Production-Cnh3wWiK.js} +1 -1
- package/dist/web/assets/{Quality-DlFvpmDu.js → Quality-W_rQ6nRf.js} +1 -1
- package/dist/web/assets/{Readiness-CyYHV3qv.js → Readiness-IWAIRZwC.js} +1 -1
- package/dist/web/assets/{Record-C1UE1ESU.js → Record-DOImb7O7.js} +1 -1
- package/dist/web/assets/{Regression-n0n9EsCb.js → Regression-DQuiIAFx.js} +1 -1
- package/dist/web/assets/{Reports-CE--CULd.js → Reports-C16UVZtQ.js} +1 -1
- package/dist/web/assets/{Response-C4jADREA.js → Response-Vh2lEWnS.js} +1 -1
- package/dist/web/assets/{RunDiff-CpPIvPDP.js → RunDiff-CVnhT7JE.js} +1 -1
- package/dist/web/assets/{Runs-BE8r8ctC.js → Runs-CI8NJB1v.js} +1 -1
- package/dist/web/assets/{Steps-CknoiWv9.js → Steps-Bwe4WAjy.js} +1 -1
- package/dist/web/assets/{TestCases-CV1sKVIL.js → TestCases-D5oOzYL4.js} +1 -1
- package/dist/web/assets/{TestData-CxmtyZgT.js → TestData-27tyi6OD.js} +1 -1
- package/dist/web/assets/{TestDebt-DLNkmbFY.js → TestDebt-D9k3uAiS.js} +1 -1
- package/dist/web/assets/{Tosca-CYBQxyy-.js → Tosca-CMmixiPy.js} +1 -1
- package/dist/web/assets/{WhatsNew-D2EKxd96.js → WhatsNew-CuCua9dD.js} +1 -1
- package/dist/web/assets/{dataParts-DVmwyJxx.js → dataParts-D06wI4i1.js} +1 -1
- package/dist/web/assets/{fold-C8qhDrNk.js → fold-CeQ84ypG.js} +1 -1
- package/dist/web/assets/{frame-CInX-4Bh.js → frame-BcGZt823.js} +2 -2
- package/dist/web/assets/{index-BCb4cUBF.js → index-CotEpFLY.js} +4 -4
- package/dist/web/assets/{logos-CWOa7QH1.js → logos-DN9jLn4q.js} +1 -1
- package/dist/web/assets/{palette-pcRC5zbt.js → palette-BdMPhc9j.js} +1 -1
- package/dist/web/assets/{qualityParts-Cw5dR80i.js → qualityParts-Cfirt7dZ.js} +1 -1
- package/dist/web/assets/{rows-BzbMQOJ2.js → rows-CiR4hGkv.js} +1 -1
- package/dist/web/assets/{thread-BgQjmXDJ.js → thread-CyTIuLgk.js} +1 -1
- package/dist/web/assets/{usePageChat-DlFXcVhv.js → usePageChat-DOTAHsIS.js} +1 -1
- package/dist/web/index.html +2 -2
- package/docs/user-guide.html +15 -0
- package/env.example.yaml +1 -0
- package/package.json +1 -1
- package/py/forgeqe_engine/logins.py +27 -0
- package/py/forgeqe_engine/service.py +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CommandPalette-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CommandPalette-Dd0seTKQ.js","assets/line-icons-CQ-3V8ax.js","assets/filters-mFECJpMB.js","assets/index-CotEpFLY.js","assets/index-VgSzQGK8.css","assets/palette-BdMPhc9j.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{$ as e,$t as t,Ar as n,At as r,Bn as i,C as a,Cn as o,Cr as s,Ct as c,D as l,Dn as u,Dr as d,Dt as f,E as p,En as m,Et as h,Fn as g,Ft as _,G as v,Gt as y,H as ee,Ir as b,Jn as te,Jt as ne,Kn as re,Kt as ie,L as ae,Ln as oe,Mr as se,Mt as ce,Nn as le,Nr as ue,O as de,Pn as fe,R as pe,S as me,Sn as he,St as ge,T as _e,Tn as ve,Un as ye,Ut as be,V as xe,Vn as Se,Vt as Ce,W as we,Wn as Te,X as Ee,Yn as De,Yt as Oe,Zn as ke,Zt as Ae,_ as je,_n as Me,b as Ne,bn as Pe,bt as Fe,c as Ie,cr as Le,ct as Re,d as ze,dn as Be,dr as Ve,dt as He,gr as Ue,h as We,hr as Ge,ht as Ke,jt as qe,kr as Je,l as Ye,m as Xe,mr as Ze,n as Qe,nn as $e,o as et,or as tt,ot as nt,p as rt,pn as it,pr as at,q as ot,qt as st,r as ct,sn as lt,sr as ut,t as dt,tn as ft,u as pt,v as mt,vn as ht,vt as gt,wt as _t,xn as vt,xr as yt,y as bt,yt as xt,z as St}from"./line-icons-CQ-3V8ax.js";import{A as Ct,B as x,C as wt,D as Tt,E as Et,F as Dt,Ht as Ot,I as kt,It as At,K as jt,Kt as Mt,L as Nt,M as Pt,N as Ft,O as It,P as Lt,R as S,Rt,S as zt,T as Bt,V as Vt,Y as C,_ as w,a as Ht,b as Ut,c as Wt,et as Gt,f as T,g as Kt,h as E,j as qt,k as Jt,l as Yt,n as Xt,o as Zt,qt as Qt,rt as $t,s as en,u as tn,v as nn,w as rn,x as an,y as on}from"./filters-mFECJpMB.js";var D=b(ue(),1),sn=`ForgeQE`,cn=/\bForgeQE\b/g,ln=[`placeholder`,`title`,`aria-label`,`data-tip`,`alt`],un=`input, textarea, pre, code, [contenteditable], [data-keep-name]`,dn=(e,t)=>t===`ForgeQE`?e:e.replace(cn,()=>t),fn=new WeakMap,pn=new WeakMap;function mn(e,t){return e&&e.shown===t?e.from:t}function hn(e){return!!e?.closest(un)}function gn(e,t){if(hn(e.parentElement))return;let n=e.nodeValue??``,r=mn(fn.get(e),n);if(r===n&&!r.includes(`ForgeQE`))return;let i=dn(r,t);fn.set(e,{from:r,shown:i}),i!==n&&(e.nodeValue=i)}function _n(e,t){if(!e.closest(`pre, code, [contenteditable], [data-keep-name]`))for(let n of ln){let r=e.getAttribute(n);if(r===null)continue;let i=pn.get(e),a=mn(i?.get(n),r);if(a===r&&!a.includes(`ForgeQE`))continue;let o=dn(a,t);i||pn.set(e,i=new Map),i.set(n,{from:a,shown:o}),o!==r&&e.setAttribute(n,o)}}function vn(e,t){if(e.nodeType===Node.TEXT_NODE)return gn(e,t);if(e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)return;e.nodeType===Node.ELEMENT_NODE&&_n(e,t);let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT);for(let e=n.nextNode();e;e=n.nextNode())e.nodeType===Node.TEXT_NODE?gn(e,t):_n(e,t)}var O,k=sn,yn,bn=()=>k,xn=e=>dn(e,k);function Sn(e){let t=e?.trim()||`ForgeQE`;typeof document>`u`?k=t:(yn===void 0&&(yn=document.title),!(t===k&&O)&&(k=t,O?.disconnect(),vn(document.body,k),document.title=dn(yn,k),O=new MutationObserver(e=>{O?.disconnect();for(let t of e)if(t.type===`characterData`)gn(t.target,k);else if(t.type===`attributes`)_n(t.target,k);else for(let e of t.addedNodes)vn(e,k);O?.observe(document.body,Cn)}),O.observe(document.body,Cn)))}var Cn={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:[...ln]},wn=`forgeqe.engine.forgeqe-test.forgeqe-read.forgeqe-review.forgeqe-test-plan.forgeqe-heal.forgeqe-migrate.forgeqe-tosca.forgeqe-tosca-assistant.forgeqe-find.forgeqe-pr-review.forgeqe-api.forgeqe-api-plan.forgeqe-explore-plan.forgeqe-defect-rca.forgeqe-refine.forgeqe-agent-builder.forgeqe-bug-report.forgeqe-data.forgeqe-persona.forgeqe-doc-reader.forgeqe-knowledge-agent.forgeqe-judge.forgeqe-model-profile.forgeqe-knowledge.forgeqe-investigate.forgeqe-evidence-acceptance.forgeqe-impact-reader.forgeqe-evidence-content.forgeqe-evidence-scenarios.explore.general`.split(`.`);function Tn(e){try{let t=En(e);return t&&t!==`ForgeQE`?t:void 0}catch{return}}function En(e,t=`the name`){if(e==null)return``;if(typeof e!=`string`)throw Error(`${t} must be text.`);if(/[\u0000-\u001f\u007f-\u009f\u2028\u2029]/.test(e))throw Error(`${t} must be one line of plain text.`);let n=e.replace(/\s+/g,` `).trim();if(n.length>40)throw Error(`${t} is ${n.length} characters; at most 40.`);return n}var Dn={};function On(e){let t={};if(!e||typeof e!=`object`||Array.isArray(e))return t;for(let[n,r]of Object.entries(e))if(wn.includes(n))try{let e=En(r);e&&(t[n]=e)}catch{}return t}function kn(e){Dn=On(e)}var An=e=>Object.hasOwn(Dn,e)?Dn[e]:void 0,jn=[`orchestrator`,`specs`,`api`,`explorer`,`case`,`browser-agent`,`test-finder`,`report`,`scribe`,`knowledge-base`,`healer`,`result`,`pr-reviewer`,`rule`,`trace`,`model`,`context-engine`,`database`],Mn=`context-engine`,Nn={orchestrator:`Orchestrator`,specs:`Specs`,api:`API`,explorer:`Explorer`,case:`Test case`,"browser-agent":`Browser`,"test-finder":`Search`,report:`Report`,scribe:`Coding`,"knowledge-base":`Knowledge`,healer:`Healing`,result:`Result`,"pr-reviewer":`PR review`,rule:`Rule`,trace:`Trace`,model:`Model`,"context-engine":`Helper`,database:`Database`},Pn=new Set(jn),Fn=/^[a-z0-9]+(-[a-z0-9]+)*$/,In=/^(ph|lucide):([a-z0-9]+(?:-[a-z0-9]+)*)$/;function Ln(e){return typeof e==`string`&&Pn.has(e)}function Rn(e){if(typeof e!=`string`||e.length>80)return;let t=In.exec(e);if(!t)return;let n=t[1],r=t[2];if(!(!Fn.test(r)||r.length>64)&&!/-(bold|fill|light|thin|duotone|bold-duotone)$/.test(r))return{set:n,name:r,id:`${n}:${r}`}}function zn(e){return typeof e!=`string`||!e||e.length>80||e.includes(`\0`)||e.includes(`/`)||e.includes(`\\`)||e.includes(`..`)?!1:Pn.has(e)?!0:Rn(e)!==void 0}function Bn(e){if(Ln(e))return Nn[e];let t=Rn(e);return t?t.name.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):e}var Vn=new Map,Hn=`forgeqe`,Un={forgeqe:{name:`Orchestrator agent`,icon:`orchestrator`,hue:`#a78bfa`},"forgeqe-refine":{name:`Refine agent`,icon:`specs`,hue:`#8fa2ff`},"forgeqe-api-plan":{name:`API planning agent`,icon:`ph:list-checks`,hue:`#e0a3f5`},"forgeqe-explore-plan":{name:`Exploration agent`,icon:`explorer`,hue:`#f59fe0`},"forgeqe-test-plan":{name:`Planning agent`,icon:`case`,hue:`#c9b3ff`},engine:{name:`Browser agent`,icon:`browser-agent`,hue:`#5ea6f0`},desktop:{name:`Desktop agent`,icon:`ph:desktop`,hue:`#4f7fd9`},"forgeqe-find":{name:`Search agent`,icon:`test-finder`,hue:`#1fa3c4`},"forgeqe-test":{name:`Coding agent`,icon:`scribe`,hue:`#3a9a7e`},"forgeqe-read":{name:`Coding agent, reading`,icon:`knowledge-base`,hue:`#3fa34d`},"forgeqe-heal":{name:`Healing agent`,icon:`healer`,hue:`#86a92c`},"forgeqe-migrate":{name:`Migration agent`,icon:`ph:arrows-left-right`,hue:`#2f8f63`},"forgeqe-tosca":{name:`Tosca conversion agent`,icon:`ph:bridge`,hue:`#2c7a4b`},"forgeqe-api":{name:`API agent`,icon:`api`,hue:`#1f9c90`},"forgeqe-review":{name:`Engineering review agent`,icon:`result`,hue:`#e0457b`},"forgeqe-pr-review":{name:`PR review agent`,icon:`pr-reviewer`,hue:`#d93a52`},"forgeqe-judge":{name:`Evaluation agent`,icon:`rule`,hue:`#e0603a`},"forgeqe-defect-rca":{name:`Root-cause agent`,icon:`trace`,hue:`#d6701f`},"forgeqe-model-profile":{name:`Model-rating agent`,icon:`model`,hue:`#b88a14`},"forgeqe-data":{name:`DB agent`,icon:`database`,hue:`#2b7fc2`},"forgeqe-persona":{name:`Persona agent`,icon:`ph:identification-badge`,hue:`#7d3f8a`},"forgeqe-knowledge-agent":{name:`Knowledge agent`,icon:`ph:lightbulb`,hue:`#4f6672`},explore:{name:`Research agent`,icon:`ph:binoculars`,hue:`#62789e`},general:{name:`Helper agent`,icon:`context-engine`,hue:`#a07c43`}},Wn={"forgeqe-knowledge":`Knowledge builder`},Gn={"forgeqe-agent-builder":`ph:puzzle-piece`,"forgeqe-bug-report":`ph:bug`,"forgeqe-bi":`report`,"forgeqe-knowledge":`ph:share-network`,"forgeqe-investigate":`ph:magnifying-glass-plus`,"forgeqe-evidence-acceptance":`ph:clipboard-text`,"forgeqe-impact-reader":`ph:waves`,"forgeqe-evidence-content":`ph:quotes`,"forgeqe-evidence-scenarios":`ph:cards`,"forgeqe-doc-reader":`ph:book-open-text`};function Kn(e){let t=An(e),n=Jn(e);return t?{...n,name:t}:n}function qn(e,t=!1){return!/\bagent$/i.test(e.trim())&&!Object.values(Wn).includes(e.trim())?e:`${t?`The`:`the`} ${e}`}function Jn(e){let t=Object.hasOwn(Un,e)?Un[e]:void 0;if(t)return t;let n=Vn.get(e)||(Object.hasOwn(Gn,e)?Gn[e]:void 0)||`context-engine`;if(Object.hasOwn(Wn,e))return{name:Wn[e],icon:n,hue:`#62789e`};let r=e.replace(/^forgeqe-/,``).replace(/[-_]+/g,` `).trim().slice(0,40),i=r?r.charAt(0).toUpperCase()+r.slice(1):``;return{name:i?/ agent$/i.test(i)?i:`${i} agent`:`Helper agent`,icon:n,hue:`#62789e`}}var Yn=[{id:`assisted`,label:`Advisers`,about:`AI assisted: they help with your work, shaping a request, finding tests, reviewing and rating, and you decide.`,short:`Help you decide`},{id:`native`,label:`Builders`,about:`AI native: they make the work itself, plans, tests and diagnoses written from your runs and your descriptions.`,short:`Do the work for you`},{id:`agentic`,label:`Operators`,about:`Agentic: they act on their own across many steps, using the browser, your tools and the other agents to finish a task.`,short:`Work on their own`},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,short:`Made by your team`}],Xn=[{id:`orchestrator`,short:`Leads every chat`,category:`agentic`,agent:`forgeqe`,runs:[`forgeqe`],about:`Leads every chat: works out what you asked, uses ForgeQE's tools and your connected systems, and hands parts to the other agents.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Review requirements`,text:`Review the payments refund brief and list its gaps`}]},{id:`browser`,short:`Runs tests in a browser`,category:`agentic`,agent:`engine`,runs:[`engine`,`browser agent`],about:`Runs your test cases in a real browser, step by step, and keeps a screenshot of every step as evidence.`,starters:[{label:`Run test cases`,text:`Run SHOP-12 and SHOP-14 on Chrome and Edge`},{label:`Check a page`,text:`Sign in to QA and check the dashboard loads with this week's orders`},{label:`Try it as a blind user`,text:`Act as a blind screen reader user and try to check out on QA: list the accessibility barriers`}]},{id:`desktop`,short:`Automates desktop apps`,category:`agentic`,agent:`desktop`,runs:[`desktop`,`desktop agent`],about:`Carries out a goal in a Windows desktop app and saves it as a workflow with checks, records the steps you do by hand, and replays saved workflows with no model. It asks before it takes the mouse and keyboard.`,prompt:!1,starters:[{label:`Automate a task`,text:`Create an invoice for Contoso in the Billing app and save it as a test`},{label:`Record my steps`,text:`I'll show you the steps in Billing: record them`},{label:`Replay a workflow`,text:`Replay the billing workflow with customer Fabrikam`}]},{id:`exploration`,short:`Explores user journeys`,category:`agentic`,agent:`forgeqe-explore-plan`,runs:[`forgeqe-explore-plan`],about:`Explores a journey the way a curious user would, and plans charters for what is worth a closer look.`,starters:[{label:`Explore a journey`,text:`Explore the checkout on QA and report anything that looks wrong`},{label:`Plan charters`,text:`Plan exploratory charters for the new refunds page`}]},{id:`planning`,short:`Places recorded tests`,category:`native`,agent:`forgeqe-test-plan`,runs:[`forgeqe-test-plan`],about:`Plans where a test recorded by hand belongs in your repository, and what it reuses there.`,starters:[{label:`Plan a recording`,text:`Plan where my last recording goes in the repository`}]},{id:`coding`,short:`Writes automated tests`,category:`native`,agent:`forgeqe-test`,runs:[`forgeqe-test`,`forgeqe-read`],about:`Writes automated tests in your repository from a verified run, in your team's style, and shows its plan first.`,starters:[{label:`Write a test`,text:`Write a Playwright test for the login flow on QA`},{label:`Automate a case`,text:`Turn SHOP-12 into an automated test`}]},{id:`search`,short:`Finds the right tests`,category:`assisted`,agent:`forgeqe-find`,runs:[`forgeqe-find`],about:`Finds the tests in your repository that a request means, so they can run without being named one by one.`,starters:[{label:`Find tests`,text:`Which tests in the repository cover the login flow?`},{label:`Find and run`,text:`Find the tests for the basket and run them`}]},{id:`knowledge-agent`,short:`Says what ForgeQE knows`,category:`assisted`,agent:`forgeqe-knowledge-agent`,runs:[`forgeqe-knowledge-agent`,`Knowledge agent`],about:`Tells you what ForgeQE has understood about your product, from its knowledge notes, documents, skills and product graph, and takes your corrections. Each change to a note, a skill, a team prompt or the graph is shown first and written only when you approve it.`,starters:[{label:`Ask what it knows`,text:`What do you know about refunds?`},{label:`Correct it`,text:`Refunds over 1000 EUR need a supervisor, not 500: correct it`}]},{id:`healing`,short:`Fixes broken tests`,category:`agentic`,agent:`forgeqe-heal`,runs:[`forgeqe-heal`],about:`Fixes tests the application outgrew, such as a moved button or a renamed field, and says what it changed.`,starters:[{label:`Heal failing tests`,text:`Heal the tests that failed in last night's run`}]},{id:`migration`,short:`Migrates test suites`,category:`agentic`,agent:`forgeqe-migrate`,runs:[`forgeqe-migrate`],about:`Moves a test suite to another framework or language, such as Selenium Java to Playwright, after a plan you confirm; ForgeQE runs every migrated test.`,starters:[{label:`Plan a migration`,text:`Plan migrating our Selenium tests in tests/ to Playwright TypeScript`}]},{id:`tosca`,short:`Converts Tosca tests`,category:`agentic`,agent:`forgeqe-tosca`,runs:[`forgeqe-tosca`],about:`Converts Tricentis Tosca test cases from a .tsu export into Playwright, Cypress, Selenium or WebdriverIO tests, after a plan you confirm; every Tosca step and check is kept, and ForgeQE runs every converted test.`,starters:[{label:`Inspect an export`,text:`What does the Tosca export tosca/checkout.tsu hold?`},{label:`Plan a conversion`,text:`Plan converting tosca/checkout.tsu to Playwright TypeScript`}]},{id:`api`,short:`Writes API tests`,category:`native`,agent:`forgeqe-api`,runs:[`forgeqe-api`],about:`Writes API and contract tests in your repository from your API's description, with test data from your databases.`,starters:[{label:`Contract tests`,text:`Write contract tests for the orders API`}]},{id:`db`,short:`Finds test data`,category:`native`,agent:`forgeqe-data`,runs:[`forgeqe-data`,`DB agent`],about:`Reads your connected databases and answers in your words: the test data a test needs, as existing rows or new ones with their INSERT script, and queries, data checks and database test scripts. The other agents ask it before they run.`,starters:[{label:`Find test data`,text:`Find two customers with paid orders for the checkout test`},{label:`Check the data`,text:`Check the orders table: no order without a customer, no negative totals`}]},{id:`persona`,short:`Business personas`,category:`native`,agent:`forgeqe-persona`,runs:[`forgeqe-persona`,`Persona agent`],about:`Describes the people who validate your software the way the business does: a subject matter expert such as a payments SME, an end user, a specialist or a business user, with what each one checks before they accept it. Every agent can act as one or test for one.`,starters:[{label:`A payments SME`,text:`Create a persona of an SME in card payments who reconciles settlements and handles refunds`},{label:`Test as a customer`,text:`Test the checkout as the retail-customer persona`}]},{id:`api-planning`,short:`Plans API scenarios`,category:`native`,agent:`forgeqe-api-plan`,runs:[`forgeqe-api-plan`],about:`Plans end-to-end API scenarios from your API's description: the calls, their order and what each checks.`,starters:[{label:`Plan scenarios`,text:`Plan end-to-end scenarios for the payments API`}]},{id:`review`,short:`Reviews written tests`,category:`assisted`,agent:`forgeqe-review`,runs:[`forgeqe-review`],about:`Reviews the tests the Coding agent wrote against your team's rules before you take them.`,starters:[{label:`Review tests`,text:`Review the tests written in my last chat`}]},{id:`pr-review`,short:`Reviews pull requests`,category:`assisted`,agent:`forgeqe-pr-review`,runs:[`forgeqe-pr-review`],about:`Reviews a pull request's tests and changes, and says what is missing or risky.`,starters:[{label:`Review a pull request`,text:`Review the tests in pull request 42`}]},{id:`root-cause`,short:`Explains failures`,category:`native`,agent:`forgeqe-defect-rca`,runs:[`forgeqe-defect-rca`],about:`Finds why a test failed: the defect, the step where it showed, and the evidence for it.`,starters:[{label:`Find a root cause`,text:`Find the root cause of last night's checkout failure`}]},{id:`refine`,short:`Clarifies a request`,category:`assisted`,agent:`forgeqe-refine`,runs:[`forgeqe-refine`],about:`Turns a rough request into a clear task: the steps, the data and the checks that say it worked.`,starters:[{label:`Refine a request`,text:`Test the refund journey for an order that was partly paid by gift card`}]},{id:`evaluation`,short:`Scores test cases`,category:`assisted`,agent:`forgeqe-judge`,runs:[`forgeqe-judge`],about:`Scores test cases against what a domain expert expects them to cover, for ForgeQE's domain evaluations.`,starters:[{label:`Evaluate cases`,text:`Evaluate how well our test cases cover the payments domain`}]},{id:`model-rating`,short:`Rates your models`,category:`assisted`,agent:`forgeqe-model-profile`,runs:[`forgeqe-model-profile`],about:`Rates your configured models for each kind of ForgeQE work, so model routing picks the right one.`,starters:[{label:`Rate the models`,text:`Rate the configured models for routing`}]},{id:`research`,short:`Looks things up`,category:`agentic`,agent:`explore`,runs:[`explore`],about:`Searches and reads the repository and web pages for the agent that calls it; it changes nothing.`,starters:[{label:`Look something up`,text:`Find where the checkout page object is defined`}]},{id:`helper`,short:`Takes on sub-tasks`,category:`agentic`,agent:`general`,runs:[`general`],about:`Takes on a part of a bigger task for the agent that calls it, with the same tools.`,starters:[{label:`Split a task`,text:`Check the three login tests in parallel and summarise what fails`}]}],Zn=e=>Xn.find(t=>t.id===e);function Qn(e,t=`all`){let n=e.toLowerCase().split(/\s+/).filter(Boolean),r=e=>Yn.find(t=>t.id===e)?.label||``;return Xn.filter(e=>(t===`all`||e.category===t)&&n.every(t=>`${Kn(e.agent).name} ${e.about} ${r(e.category)}`.toLowerCase().includes(t)))}var $n=`category`,er=e=>Yn.find(t=>t.id===e);function tr(e){try{let t=JSON.parse(e||`[]`);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`string`&&(Zn(e)!==void 0||ar(e)!==void 0)))]:[]}catch{return[]}}var nr=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function rr(e,t=`merge`){t===`replace`&&Vn.clear();for(let t of e)typeof t.id!=`string`||!nr.test(t.id)||t.id.length>40||zn(t.icon)&&Vn.set(t.id,t.icon)}var ir=e=>`custom:${e}`;function ar(e){let t=e.startsWith(`custom:`)?e.slice(7):``;return nr.test(t)&&t.length<=40?t:void 0}function or(e,t){let n=t.toLowerCase().split(/\s+/).filter(Boolean);return e.filter(e=>n.every(t=>`${e.name} ${e.id} ${e.description} custom`.toLowerCase().includes(t)))}var sr=`ph:acorn.ph:activity.ph:address-book.ph:address-book-tabs.ph:air-traffic-control.ph:airplane.ph:airplane-in-flight.ph:airplane-landing.ph:airplane-takeoff.ph:airplane-taxiing.ph:airplane-tilt.ph:airplay.ph:alarm.ph:alien.ph:align-bottom.ph:align-bottom-simple.ph:align-center-horizontal.ph:align-center-horizontal-simple.ph:align-center-vertical.ph:align-center-vertical-simple.ph:align-left.ph:align-left-simple.ph:align-right.ph:align-right-simple.ph:align-top.ph:align-top-simple.ph:amazon-logo.ph:ambulance.ph:anchor.ph:anchor-simple.ph:android-logo.ph:angle.ph:angular-logo.ph:aperture.ph:app-store-logo.ph:app-window.ph:apple-logo.ph:apple-podcasts-logo.ph:approximate-equals.ph:archive.ph:armchair.ph:arrow-arc-left.ph:arrow-arc-right.ph:arrow-bend-double-up-left.ph:arrow-bend-double-up-right.ph:arrow-bend-down-left.ph:arrow-bend-down-right.ph:arrow-bend-left-down.ph:arrow-bend-left-up.ph:arrow-bend-right-down.ph:arrow-bend-right-up.ph:arrow-bend-up-left.ph:arrow-bend-up-right.ph:arrow-circle-down.ph:arrow-circle-down-left.ph:arrow-circle-down-right.ph:arrow-circle-left.ph:arrow-circle-right.ph:arrow-circle-up.ph:arrow-circle-up-left.ph:arrow-circle-up-right.ph:arrow-clockwise.ph:arrow-counter-clockwise.ph:arrow-down.ph:arrow-down-left.ph:arrow-down-right.ph:arrow-elbow-down-left.ph:arrow-elbow-down-right.ph:arrow-elbow-left.ph:arrow-elbow-left-down.ph:arrow-elbow-left-up.ph:arrow-elbow-right.ph:arrow-elbow-right-down.ph:arrow-elbow-right-up.ph:arrow-elbow-up-left.ph:arrow-elbow-up-right.ph:arrow-fat-down.ph:arrow-fat-left.ph:arrow-fat-line-down.ph:arrow-fat-line-left.ph:arrow-fat-line-right.ph:arrow-fat-line-up.ph:arrow-fat-lines-down.ph:arrow-fat-lines-left.ph:arrow-fat-lines-right.ph:arrow-fat-lines-up.ph:arrow-fat-right.ph:arrow-fat-up.ph:arrow-left.ph:arrow-line-down.ph:arrow-line-down-left.ph:arrow-line-down-right.ph:arrow-line-left.ph:arrow-line-right.ph:arrow-line-up.ph:arrow-line-up-left.ph:arrow-line-up-right.ph:arrow-right.ph:arrow-square-down.ph:arrow-square-down-left.ph:arrow-square-down-right.ph:arrow-square-in.ph:arrow-square-left.ph:arrow-square-out.ph:arrow-square-right.ph:arrow-square-up.ph:arrow-square-up-left.ph:arrow-square-up-right.ph:arrow-u-down-left.ph:arrow-u-down-right.ph:arrow-u-left-down.ph:arrow-u-left-up.ph:arrow-u-right-down.ph:arrow-u-right-up.ph:arrow-u-up-left.ph:arrow-u-up-right.ph:arrow-up.ph:arrow-up-left.ph:arrow-up-right.ph:arrows-clockwise.ph:arrows-counter-clockwise.ph:arrows-down-up.ph:arrows-horizontal.ph:arrows-in.ph:arrows-in-cardinal.ph:arrows-in-line-horizontal.ph:arrows-in-line-vertical.ph:arrows-in-simple.ph:arrows-left-right.ph:arrows-merge.ph:arrows-out.ph:arrows-out-cardinal.ph:arrows-out-line-horizontal.ph:arrows-out-line-vertical.ph:arrows-out-simple.ph:arrows-split.ph:arrows-vertical.ph:article.ph:article-medium.ph:article-ny-times.ph:asclepius.ph:asterisk.ph:asterisk-simple.ph:at.ph:atom.ph:avocado.ph:axe.ph:baby.ph:baby-carriage.ph:backpack.ph:backspace.ph:bag.ph:bag-simple.ph:balloon.ph:bandaids.ph:bank.ph:barbell.ph:barcode.ph:barn.ph:barricade.ph:baseball.ph:baseball-cap.ph:baseball-helmet.ph:basket.ph:basketball.ph:bathtub.ph:battery-charging.ph:battery-charging-vertical.ph:battery-empty.ph:battery-full.ph:battery-high.ph:battery-low.ph:battery-medium.ph:battery-plus.ph:battery-plus-vertical.ph:battery-vertical-empty.ph:battery-vertical-full.ph:battery-vertical-high.ph:battery-vertical-low.ph:battery-vertical-medium.ph:battery-warning.ph:battery-warning-vertical.ph:beach-ball.ph:beanie.ph:bed.ph:beer-bottle.ph:beer-stein.ph:behance-logo.ph:bell.ph:bell-ringing.ph:bell-simple.ph:bell-simple-ringing.ph:bell-simple-slash.ph:bell-simple-z.ph:bell-slash.ph:bell-z.ph:belt.ph:bezier-curve.ph:bicycle.ph:binary.ph:binoculars.ph:biohazard.ph:bird.ph:blueprint.ph:bluetooth.ph:bluetooth-connected.ph:bluetooth-slash.ph:bluetooth-x.ph:boat.ph:bomb.ph:bone.ph:book.ph:book-bookmark.ph:book-open.ph:book-open-text.ph:book-open-user.ph:bookmark.ph:bookmark-simple.ph:bookmarks.ph:bookmarks-simple.ph:books.ph:boot.ph:boules.ph:bounding-box.ph:bowl-food.ph:bowl-steam.ph:bowling-ball.ph:box-arrow-down.ph:box-arrow-up.ph:boxing-glove.ph:brackets-angle.ph:brackets-curly.ph:brackets-round.ph:brackets-square.ph:brain.ph:brandy.ph:bread.ph:bridge.ph:briefcase.ph:briefcase-metal.ph:briefcase-simple.ph:broadcast.ph:broom.ph:browser.ph:browsers.ph:bug.ph:bug-beetle.ph:bug-droid.ph:building.ph:building-apartment.ph:building-office.ph:buildings.ph:bulldozer.ph:bus.ph:butterfly.ph:cable-car.ph:cactus.ph:cake.ph:calculator.ph:calendar.ph:calendar-blank.ph:calendar-check.ph:calendar-dot.ph:calendar-dots.ph:calendar-heart.ph:calendar-minus.ph:calendar-plus.ph:calendar-slash.ph:calendar-star.ph:calendar-x.ph:call-bell.ph:camera.ph:camera-plus.ph:camera-rotate.ph:camera-slash.ph:campfire.ph:car.ph:car-battery.ph:car-profile.ph:car-simple.ph:cardholder.ph:cards.ph:cards-three.ph:caret-circle-double-down.ph:caret-circle-double-left.ph:caret-circle-double-right.ph:caret-circle-double-up.ph:caret-circle-down.ph:caret-circle-left.ph:caret-circle-right.ph:caret-circle-up.ph:caret-circle-up-down.ph:caret-double-down.ph:caret-double-left.ph:caret-double-right.ph:caret-double-up.ph:caret-down.ph:caret-left.ph:caret-line-down.ph:caret-line-left.ph:caret-line-right.ph:caret-line-up.ph:caret-right.ph:caret-up.ph:caret-up-down.ph:carrot.ph:cash-register.ph:cassette-tape.ph:castle-turret.ph:cat.ph:cell-signal-full.ph:cell-signal-high.ph:cell-signal-low.ph:cell-signal-medium.ph:cell-signal-none.ph:cell-signal-slash.ph:cell-signal-x.ph:cell-tower.ph:certificate.ph:chair.ph:chalkboard.ph:chalkboard-simple.ph:chalkboard-teacher.ph:champagne.ph:charging-station.ph:chart-bar.ph:chart-bar-horizontal.ph:chart-donut.ph:chart-line.ph:chart-line-down.ph:chart-line-up.ph:chart-pie.ph:chart-pie-slice.ph:chart-polar.ph:chart-scatter.ph:chat.ph:chat-centered.ph:chat-centered-dots.ph:chat-centered-slash.ph:chat-centered-text.ph:chat-circle.ph:chat-circle-dots.ph:chat-circle-slash.ph:chat-circle-text.ph:chat-dots.ph:chat-slash.ph:chat-teardrop.ph:chat-teardrop-dots.ph:chat-teardrop-slash.ph:chat-teardrop-text.ph:chat-text.ph:chats.ph:chats-circle.ph:chats-teardrop.ph:check.ph:check-circle.ph:check-fat.ph:check-square.ph:check-square-offset.ph:checkerboard.ph:checks.ph:cheers.ph:cheese.ph:chef-hat.ph:cherries.ph:church.ph:cigarette.ph:cigarette-slash.ph:circle.ph:circle-dashed.ph:circle-half.ph:circle-half-tilt.ph:circle-notch.ph:circle-wavy.ph:circle-wavy-check.ph:circle-wavy-question.ph:circle-wavy-warning.ph:circles-four.ph:circles-three.ph:circles-three-plus.ph:circuitry.ph:city.ph:clipboard.ph:clipboard-text.ph:clock.ph:clock-afternoon.ph:clock-clockwise.ph:clock-countdown.ph:clock-counter-clockwise.ph:clock-user.ph:closed-captioning.ph:cloud.ph:cloud-arrow-down.ph:cloud-arrow-up.ph:cloud-check.ph:cloud-fog.ph:cloud-lightning.ph:cloud-moon.ph:cloud-rain.ph:cloud-slash.ph:cloud-snow.ph:cloud-sun.ph:cloud-warning.ph:cloud-x.ph:clover.ph:club.ph:coat-hanger.ph:coda-logo.ph:code.ph:code-block.ph:code-simple.ph:codepen-logo.ph:codesandbox-logo.ph:coffee.ph:coffee-bean.ph:coin.ph:coin-vertical.ph:coins.ph:columns.ph:columns-plus-left.ph:columns-plus-right.ph:command.ph:compass.ph:compass-rose.ph:compass-tool.ph:computer-tower.ph:confetti.ph:contactless-payment.ph:control.ph:cookie.ph:cooking-pot.ph:copy.ph:copy-simple.ph:copyleft.ph:copyright.ph:corners-in.ph:corners-out.ph:couch.ph:court-basketball.ph:cow.ph:cowboy-hat.ph:cpu.ph:crane.ph:crane-tower.ph:credit-card.ph:cricket.ph:crop.ph:cross.ph:crosshair.ph:crosshair-simple.ph:crown.ph:crown-cross.ph:crown-simple.ph:cube.ph:cube-focus.ph:cube-transparent.ph:currency-btc.ph:currency-circle-dollar.ph:currency-cny.ph:currency-dollar.ph:currency-dollar-simple.ph:currency-eth.ph:currency-eur.ph:currency-gbp.ph:currency-inr.ph:currency-jpy.ph:currency-krw.ph:currency-kzt.ph:currency-ngn.ph:currency-rub.ph:cursor.ph:cursor-click.ph:cursor-text.ph:cylinder.ph:database.ph:desk.ph:desktop.ph:desktop-tower.ph:detective.ph:dev-to-logo.ph:device-mobile.ph:device-mobile-camera.ph:device-mobile-slash.ph:device-mobile-speaker.ph:device-rotate.ph:device-tablet.ph:device-tablet-camera.ph:device-tablet-speaker.ph:devices.ph:diamond.ph:diamonds-four.ph:dice-five.ph:dice-four.ph:dice-one.ph:dice-six.ph:dice-three.ph:dice-two.ph:disc.ph:disco-ball.ph:discord-logo.ph:divide.ph:dna.ph:dog.ph:door.ph:door-open.ph:dot.ph:dot-outline.ph:dots-nine.ph:dots-six.ph:dots-six-vertical.ph:dots-three.ph:dots-three-circle.ph:dots-three-circle-vertical.ph:dots-three-outline.ph:dots-three-outline-vertical.ph:dots-three-vertical.ph:download.ph:download-simple.ph:dress.ph:dresser.ph:dribbble-logo.ph:drone.ph:drop.ph:drop-half.ph:drop-half-bottom.ph:drop-simple.ph:drop-slash.ph:dropbox-logo.ph:ear.ph:ear-slash.ph:egg.ph:egg-crack.ph:eject.ph:eject-simple.ph:elevator.ph:empty.ph:engine.ph:envelope.ph:envelope-open.ph:envelope-simple.ph:envelope-simple-open.ph:equalizer.ph:equals.ph:eraser.ph:escalator-down.ph:escalator-up.ph:exam.ph:exclamation-mark.ph:exclude.ph:exclude-square.ph:export.ph:eye.ph:eye-closed.ph:eye-slash.ph:eyedropper.ph:eyedropper-sample.ph:eyeglasses.ph:eyes.ph:face-mask.ph:facebook-logo.ph:factory.ph:faders.ph:faders-horizontal.ph:fallout-shelter.ph:fan.ph:farm.ph:fast-forward.ph:fast-forward-circle.ph:feather.ph:fediverse-logo.ph:figma-logo.ph:file.ph:file-archive.ph:file-arrow-down.ph:file-arrow-up.ph:file-audio.ph:file-c.ph:file-c-sharp.ph:file-cloud.ph:file-code.ph:file-cpp.ph:file-css.ph:file-csv.ph:file-dashed.ph:file-doc.ph:file-dotted.ph:file-html.ph:file-image.ph:file-ini.ph:file-jpg.ph:file-js.ph:file-jsx.ph:file-lock.ph:file-magnifying-glass.ph:file-md.ph:file-minus.ph:file-pdf.ph:file-plus.ph:file-png.ph:file-ppt.ph:file-py.ph:file-rs.ph:file-search.ph:file-sql.ph:file-svg.ph:file-text.ph:file-ts.ph:file-tsx.ph:file-txt.ph:file-video.ph:file-vue.ph:file-x.ph:file-xls.ph:file-zip.ph:files.ph:film-reel.ph:film-script.ph:film-slate.ph:film-strip.ph:fingerprint.ph:fingerprint-simple.ph:finn-the-human.ph:fire.ph:fire-extinguisher.ph:fire-simple.ph:fire-truck.ph:first-aid.ph:first-aid-kit.ph:fish.ph:fish-simple.ph:flag.ph:flag-banner.ph:flag-banner-fold.ph:flag-checkered.ph:flag-pennant.ph:flame.ph:flashlight.ph:flask.ph:flip-horizontal.ph:flip-vertical.ph:floppy-disk.ph:floppy-disk-back.ph:flow-arrow.ph:flower.ph:flower-lotus.ph:flower-tulip.ph:flying-saucer.ph:folder.ph:folder-dashed.ph:folder-dotted.ph:folder-lock.ph:folder-minus.ph:folder-notch.ph:folder-notch-minus.ph:folder-notch-open.ph:folder-notch-plus.ph:folder-open.ph:folder-plus.ph:folder-simple.ph:folder-simple-dashed.ph:folder-simple-dotted.ph:folder-simple-lock.ph:folder-simple-minus.ph:folder-simple-plus.ph:folder-simple-star.ph:folder-simple-user.ph:folder-star.ph:folder-user.ph:folders.ph:football.ph:football-helmet.ph:footprints.ph:fork-knife.ph:four-k.ph:frame-corners.ph:framer-logo.ph:function.ph:funnel.ph:funnel-simple.ph:funnel-simple-x.ph:funnel-x.ph:game-controller.ph:garage.ph:gas-can.ph:gas-pump.ph:gauge.ph:gavel.ph:gear.ph:gear-fine.ph:gear-six.ph:gender-female.ph:gender-intersex.ph:gender-male.ph:gender-neuter.ph:gender-nonbinary.ph:gender-transgender.ph:ghost.ph:gif.ph:gift.ph:git-branch.ph:git-commit.ph:git-diff.ph:git-fork.ph:git-merge.ph:git-pull-request.ph:github-logo.ph:gitlab-logo.ph:gitlab-logo-simple.ph:globe.ph:globe-hemisphere-east.ph:globe-hemisphere-west.ph:globe-simple.ph:globe-simple-x.ph:globe-stand.ph:globe-x.ph:goggles.ph:golf.ph:goodreads-logo.ph:google-cardboard-logo.ph:google-chrome-logo.ph:google-drive-logo.ph:google-logo.ph:google-photos-logo.ph:google-play-logo.ph:google-podcasts-logo.ph:gps.ph:gps-fix.ph:gps-slash.ph:gradient.ph:graduation-cap.ph:grains.ph:grains-slash.ph:graph.ph:graphics-card.ph:greater-than.ph:greater-than-or-equal.ph:grid-four.ph:grid-nine.ph:guitar.ph:hair-dryer.ph:hamburger.ph:hammer.ph:hand.ph:hand-arrow-down.ph:hand-arrow-up.ph:hand-coins.ph:hand-deposit.ph:hand-eye.ph:hand-fist.ph:hand-grabbing.ph:hand-heart.ph:hand-palm.ph:hand-peace.ph:hand-pointing.ph:hand-soap.ph:hand-swipe-left.ph:hand-swipe-right.ph:hand-tap.ph:hand-waving.ph:hand-withdraw.ph:handbag.ph:handbag-simple.ph:hands-clapping.ph:hands-praying.ph:handshake.ph:hard-drive.ph:hard-drives.ph:hard-hat.ph:hash.ph:hash-straight.ph:head-circuit.ph:headlights.ph:headphones.ph:headset.ph:heart.ph:heart-break.ph:heart-half.ph:heart-straight.ph:heart-straight-break.ph:heartbeat.ph:hexagon.ph:high-definition.ph:high-heel.ph:highlighter.ph:highlighter-circle.ph:hockey.ph:hoodie.ph:horse.ph:hospital.ph:hourglass.ph:hourglass-high.ph:hourglass-low.ph:hourglass-medium.ph:hourglass-simple.ph:hourglass-simple-high.ph:hourglass-simple-low.ph:hourglass-simple-medium.ph:house.ph:house-line.ph:house-simple.ph:hurricane.ph:ice-cream.ph:identification-badge.ph:identification-card.ph:image.ph:image-broken.ph:image-square.ph:images.ph:images-square.ph:infinity.ph:info.ph:instagram-logo.ph:intersect.ph:intersect-square.ph:intersect-three.ph:intersection.ph:invoice.ph:island.ph:jar.ph:jar-label.ph:jeep.ph:joystick.ph:kanban.ph:key.ph:key-return.ph:keyboard.ph:keyhole.ph:knife.ph:ladder.ph:ladder-simple.ph:lamp.ph:lamp-pendant.ph:laptop.ph:lasso.ph:lastfm-logo.ph:layout.ph:leaf.ph:lectern.ph:lego.ph:lego-smiley.ph:less-than.ph:less-than-or-equal.ph:letter-circle-h.ph:letter-circle-p.ph:letter-circle-v.ph:lifebuoy.ph:lightbulb.ph:lightbulb-filament.ph:lighthouse.ph:lightning.ph:lightning-a.ph:lightning-slash.ph:line-segment.ph:line-segments.ph:line-vertical.ph:link.ph:link-break.ph:link-simple.ph:link-simple-break.ph:link-simple-horizontal.ph:link-simple-horizontal-break.ph:linkedin-logo.ph:linktree-logo.ph:linux-logo.ph:list.ph:list-bullets.ph:list-checks.ph:list-dashes.ph:list-heart.ph:list-magnifying-glass.ph:list-numbers.ph:list-plus.ph:list-star.ph:lock.ph:lock-key.ph:lock-key-open.ph:lock-laminated.ph:lock-laminated-open.ph:lock-open.ph:lock-simple.ph:lock-simple-open.ph:lockers.ph:log.ph:magic-wand.ph:magnet.ph:magnet-straight.ph:magnifying-glass.ph:magnifying-glass-minus.ph:magnifying-glass-plus.ph:mailbox.ph:map-pin.ph:map-pin-area.ph:map-pin-line.ph:map-pin-plus.ph:map-pin-simple.ph:map-pin-simple-area.ph:map-pin-simple-line.ph:map-trifold.ph:markdown-logo.ph:marker-circle.ph:martini.ph:mask-happy.ph:mask-sad.ph:mastodon-logo.ph:math-operations.ph:matrix-logo.ph:medal.ph:medal-military.ph:medium-logo.ph:megaphone.ph:megaphone-simple.ph:member-of.ph:memory.ph:messenger-logo.ph:meta-logo.ph:meteor.ph:metronome.ph:microphone.ph:microphone-slash.ph:microphone-stage.ph:microscope.ph:microsoft-excel-logo.ph:microsoft-outlook-logo.ph:microsoft-powerpoint-logo.ph:microsoft-teams-logo.ph:microsoft-word-logo.ph:minus.ph:minus-circle.ph:minus-square.ph:money.ph:money-wavy.ph:monitor.ph:monitor-arrow-up.ph:monitor-play.ph:moon.ph:moon-stars.ph:moped.ph:moped-front.ph:mosque.ph:motorcycle.ph:mountains.ph:mouse.ph:mouse-left-click.ph:mouse-middle-click.ph:mouse-right-click.ph:mouse-scroll.ph:mouse-simple.ph:music-note.ph:music-note-simple.ph:music-notes.ph:music-notes-minus.ph:music-notes-plus.ph:music-notes-simple.ph:navigation-arrow.ph:needle.ph:network.ph:network-slash.ph:network-x.ph:newspaper.ph:newspaper-clipping.ph:not-equals.ph:not-member-of.ph:not-subset-of.ph:not-superset-of.ph:notches.ph:note.ph:note-blank.ph:note-pencil.ph:notebook.ph:notepad.ph:notification.ph:notion-logo.ph:nuclear-plant.ph:number-circle-eight.ph:number-circle-five.ph:number-circle-four.ph:number-circle-nine.ph:number-circle-one.ph:number-circle-seven.ph:number-circle-six.ph:number-circle-three.ph:number-circle-two.ph:number-circle-zero.ph:number-eight.ph:number-five.ph:number-four.ph:number-nine.ph:number-one.ph:number-seven.ph:number-six.ph:number-square-eight.ph:number-square-five.ph:number-square-four.ph:number-square-nine.ph:number-square-one.ph:number-square-seven.ph:number-square-six.ph:number-square-three.ph:number-square-two.ph:number-square-zero.ph:number-three.ph:number-two.ph:number-zero.ph:numpad.ph:nut.ph:ny-times-logo.ph:octagon.ph:office-chair.ph:onigiri.ph:open-ai-logo.ph:option.ph:orange.ph:orange-slice.ph:oven.ph:package.ph:paint-brush.ph:paint-brush-broad.ph:paint-brush-household.ph:paint-bucket.ph:paint-roller.ph:palette.ph:panorama.ph:pants.ph:paper-plane.ph:paper-plane-right.ph:paper-plane-tilt.ph:paperclip.ph:paperclip-horizontal.ph:parachute.ph:paragraph.ph:parallelogram.ph:park.ph:password.ph:path.ph:patreon-logo.ph:pause.ph:pause-circle.ph:paw-print.ph:paypal-logo.ph:peace.ph:pen.ph:pen-nib.ph:pen-nib-straight.ph:pencil.ph:pencil-circle.ph:pencil-line.ph:pencil-ruler.ph:pencil-simple.ph:pencil-simple-line.ph:pencil-simple-slash.ph:pencil-slash.ph:pentagon.ph:pentagram.ph:pepper.ph:percent.ph:person.ph:person-arms-spread.ph:person-simple.ph:person-simple-bike.ph:person-simple-circle.ph:person-simple-hike.ph:person-simple-run.ph:person-simple-ski.ph:person-simple-snowboard.ph:person-simple-swim.ph:person-simple-tai-chi.ph:person-simple-throw.ph:person-simple-walk.ph:perspective.ph:phone.ph:phone-call.ph:phone-disconnect.ph:phone-incoming.ph:phone-list.ph:phone-outgoing.ph:phone-pause.ph:phone-plus.ph:phone-slash.ph:phone-transfer.ph:phone-x.ph:phosphor-logo.ph:pi.ph:piano-keys.ph:picnic-table.ph:picture-in-picture.ph:piggy-bank.ph:pill.ph:ping-pong.ph:pint-glass.ph:pinterest-logo.ph:pinwheel.ph:pipe.ph:pipe-wrench.ph:pix-logo.ph:pizza.ph:placeholder.ph:planet.ph:plant.ph:play.ph:play-circle.ph:play-pause.ph:playlist.ph:plug.ph:plug-charging.ph:plugs.ph:plugs-connected.ph:plus.ph:plus-circle.ph:plus-minus.ph:plus-square.ph:poker-chip.ph:police-car.ph:polygon.ph:popcorn.ph:popsicle.ph:potted-plant.ph:power.ph:prescription.ph:presentation.ph:presentation-chart.ph:printer.ph:prohibit.ph:prohibit-inset.ph:projector-screen.ph:projector-screen-chart.ph:pulse.ph:push-pin.ph:push-pin-simple.ph:push-pin-simple-slash.ph:push-pin-slash.ph:puzzle-piece.ph:qr-code.ph:question.ph:question-mark.ph:queue.ph:quotes.ph:rabbit.ph:racquet.ph:radical.ph:radio.ph:radio-button.ph:radioactive.ph:rainbow.ph:rainbow-cloud.ph:ranking.ph:read-cv-logo.ph:receipt.ph:receipt-x.ph:record.ph:rectangle.ph:rectangle-dashed.ph:recycle.ph:reddit-logo.ph:repeat.ph:repeat-once.ph:replit-logo.ph:resize.ph:rewind.ph:rewind-circle.ph:road-horizon.ph:robot.ph:rocket.ph:rocket-launch.ph:rows.ph:rows-plus-bottom.ph:rows-plus-top.ph:rss.ph:rss-simple.ph:rug.ph:ruler.ph:sailboat.ph:scales.ph:scan.ph:scan-smiley.ph:scissors.ph:scooter.ph:screencast.ph:screwdriver.ph:scribble.ph:scribble-loop.ph:scroll.ph:seal.ph:seal-check.ph:seal-percent.ph:seal-question.ph:seal-warning.ph:seat.ph:seatbelt.ph:security-camera.ph:selection.ph:selection-all.ph:selection-background.ph:selection-foreground.ph:selection-inverse.ph:selection-plus.ph:selection-slash.ph:shapes.ph:share.ph:share-fat.ph:share-network.ph:shield.ph:shield-check.ph:shield-checkered.ph:shield-chevron.ph:shield-plus.ph:shield-slash.ph:shield-star.ph:shield-warning.ph:shipping-container.ph:shirt-folded.ph:shooting-star.ph:shopping-bag.ph:shopping-bag-open.ph:shopping-cart.ph:shopping-cart-simple.ph:shovel.ph:shower.ph:shrimp.ph:shuffle.ph:shuffle-angular.ph:shuffle-simple.ph:sidebar.ph:sidebar-simple.ph:sigma.ph:sign-in.ph:sign-out.ph:signature.ph:signpost.ph:sim-card.ph:siren.ph:sketch-logo.ph:skip-back.ph:skip-back-circle.ph:skip-forward.ph:skip-forward-circle.ph:skull.ph:skype-logo.ph:slack-logo.ph:sliders.ph:sliders-horizontal.ph:slideshow.ph:smiley.ph:smiley-angry.ph:smiley-blank.ph:smiley-meh.ph:smiley-melting.ph:smiley-nervous.ph:smiley-sad.ph:smiley-sticker.ph:smiley-wink.ph:smiley-x-eyes.ph:snapchat-logo.ph:sneaker.ph:sneaker-move.ph:snowflake.ph:soccer-ball.ph:sock.ph:solar-panel.ph:solar-roof.ph:sort-ascending.ph:sort-descending.ph:soundcloud-logo.ph:spade.ph:sparkle.ph:speaker-hifi.ph:speaker-high.ph:speaker-low.ph:speaker-none.ph:speaker-simple-high.ph:speaker-simple-low.ph:speaker-simple-none.ph:speaker-simple-slash.ph:speaker-simple-x.ph:speaker-slash.ph:speaker-x.ph:speedometer.ph:sphere.ph:spinner.ph:spinner-ball.ph:spinner-gap.ph:spiral.ph:split-horizontal.ph:split-vertical.ph:spotify-logo.ph:spray-bottle.ph:square.ph:square-half.ph:square-half-bottom.ph:square-logo.ph:square-split-horizontal.ph:square-split-vertical.ph:squares-four.ph:stack.ph:stack-minus.ph:stack-overflow-logo.ph:stack-plus.ph:stack-simple.ph:stairs.ph:stamp.ph:standard-definition.ph:star.ph:star-and-crescent.ph:star-four.ph:star-half.ph:star-of-david.ph:steam-logo.ph:steering-wheel.ph:steps.ph:stethoscope.ph:sticker.ph:stool.ph:stop.ph:stop-circle.ph:storefront.ph:strategy.ph:stripe-logo.ph:student.ph:subset-of.ph:subset-proper-of.ph:subtitles.ph:subtitles-slash.ph:subtract.ph:subtract-square.ph:subway.ph:suitcase.ph:suitcase-rolling.ph:suitcase-simple.ph:sun.ph:sun-dim.ph:sun-horizon.ph:sunglasses.ph:superset-of.ph:superset-proper-of.ph:swap.ph:swatches.ph:swimming-pool.ph:sword.ph:synagogue.ph:syringe.ph:t-shirt.ph:table.ph:tabs.ph:tag.ph:tag-chevron.ph:tag-simple.ph:target.ph:taxi.ph:tea-bag.ph:telegram-logo.ph:television.ph:television-simple.ph:tennis-ball.ph:tent.ph:terminal.ph:terminal-window.ph:test-tube.ph:text-a-underline.ph:text-aa.ph:text-align-center.ph:text-align-justify.ph:text-align-left.ph:text-align-right.ph:text-b.ph:text-bolder.ph:text-columns.ph:text-h.ph:text-h-five.ph:text-h-four.ph:text-h-one.ph:text-h-six.ph:text-h-three.ph:text-h-two.ph:text-indent.ph:text-italic.ph:text-outdent.ph:text-strikethrough.ph:text-subscript.ph:text-superscript.ph:text-t.ph:text-t-slash.ph:text-underline.ph:textbox.ph:thermometer.ph:thermometer-cold.ph:thermometer-hot.ph:thermometer-simple.ph:threads-logo.ph:three-d.ph:thumbs-down.ph:thumbs-up.ph:ticket.ph:tidal-logo.ph:tiktok-logo.ph:tilde.ph:timer.ph:tip-jar.ph:tipi.ph:tire.ph:toggle-left.ph:toggle-right.ph:toilet.ph:toilet-paper.ph:toolbox.ph:tooth.ph:tornado.ph:tote.ph:tote-simple.ph:towel.ph:tractor.ph:trademark.ph:trademark-registered.ph:traffic-cone.ph:traffic-sign.ph:traffic-signal.ph:train.ph:train-regional.ph:train-simple.ph:tram.ph:translate.ph:trash.ph:trash-simple.ph:tray.ph:tray-arrow-down.ph:tray-arrow-up.ph:treasure-chest.ph:tree.ph:tree-evergreen.ph:tree-palm.ph:tree-structure.ph:tree-view.ph:trend-down.ph:trend-up.ph:triangle.ph:triangle-dashed.ph:trolley.ph:trolley-suitcase.ph:trophy.ph:truck.ph:truck-trailer.ph:tumblr-logo.ph:twitch-logo.ph:twitter-logo.ph:umbrella.ph:umbrella-simple.ph:union.ph:unite.ph:unite-square.ph:upload.ph:upload-simple.ph:usb.ph:user.ph:user-check.ph:user-circle.ph:user-circle-check.ph:user-circle-dashed.ph:user-circle-gear.ph:user-circle-minus.ph:user-circle-plus.ph:user-focus.ph:user-gear.ph:user-list.ph:user-minus.ph:user-plus.ph:user-rectangle.ph:user-sound.ph:user-square.ph:user-switch.ph:users.ph:users-four.ph:users-three.ph:van.ph:vault.ph:vector-three.ph:vector-two.ph:vibrate.ph:video.ph:video-camera.ph:video-camera-slash.ph:video-conference.ph:vignette.ph:vinyl-record.ph:virtual-reality.ph:virus.ph:visor.ph:voicemail.ph:volleyball.ph:wall.ph:wallet.ph:warehouse.ph:warning.ph:warning-circle.ph:warning-diamond.ph:warning-octagon.ph:washing-machine.ph:watch.ph:wave-sawtooth.ph:wave-sine.ph:wave-square.ph:wave-triangle.ph:waveform.ph:waveform-slash.ph:waves.ph:webcam.ph:webcam-slash.ph:webhooks-logo.ph:wechat-logo.ph:whatsapp-logo.ph:wheelchair.ph:wheelchair-motion.ph:wifi-high.ph:wifi-low.ph:wifi-medium.ph:wifi-none.ph:wifi-slash.ph:wifi-x.ph:wind.ph:windmill.ph:windows-logo.ph:wine.ph:wrench.ph:x.ph:x-circle.ph:x-logo.ph:x-square.ph:yarn.ph:yin-yang.ph:youtube-logo.lucide:a-arrow-down.lucide:a-arrow-up.lucide:a-large-small.lucide:accessibility.lucide:activity.lucide:ad.lucide:air-vent.lucide:airplay.lucide:alarm-clock.lucide:alarm-clock-check.lucide:alarm-clock-minus.lucide:alarm-clock-off.lucide:alarm-clock-plus.lucide:alarm-smoke.lucide:album.lucide:align-center.lucide:align-center-horizontal.lucide:align-center-vertical.lucide:align-end-horizontal.lucide:align-end-vertical.lucide:align-horizontal-distribute-center.lucide:align-horizontal-distribute-end.lucide:align-horizontal-distribute-start.lucide:align-horizontal-justify-center.lucide:align-horizontal-justify-end.lucide:align-horizontal-justify-start.lucide:align-horizontal-space-around.lucide:align-horizontal-space-between.lucide:align-justify.lucide:align-left.lucide:align-right.lucide:align-start-horizontal.lucide:align-start-vertical.lucide:align-vertical-distribute-center.lucide:align-vertical-distribute-end.lucide:align-vertical-distribute-start.lucide:align-vertical-justify-center.lucide:align-vertical-justify-end.lucide:align-vertical-justify-start.lucide:align-vertical-space-around.lucide:align-vertical-space-between.lucide:ambulance.lucide:ampersand.lucide:ampersands.lucide:amphora.lucide:anchor.lucide:angle.lucide:angry.lucide:annoyed.lucide:antenna.lucide:anvil.lucide:aperture.lucide:app-window.lucide:app-window-mac.lucide:apple.lucide:archive.lucide:archive-restore.lucide:archive-x.lucide:area-chart.lucide:armchair.lucide:armenian-dram.lucide:arrow-big-down.lucide:arrow-big-down-dash.lucide:arrow-big-left.lucide:arrow-big-left-dash.lucide:arrow-big-right.lucide:arrow-big-right-dash.lucide:arrow-big-up.lucide:arrow-big-up-dash.lucide:arrow-down.lucide:arrow-down-0-1.lucide:arrow-down-1-0.lucide:arrow-down-a-z.lucide:arrow-down-from-line.lucide:arrow-down-left.lucide:arrow-down-narrow-wide.lucide:arrow-down-right.lucide:arrow-down-to-dot.lucide:arrow-down-to-line.lucide:arrow-down-up.lucide:arrow-down-wide-narrow.lucide:arrow-down-z-a.lucide:arrow-left.lucide:arrow-left-from-line.lucide:arrow-left-right.lucide:arrow-left-to-line.lucide:arrow-right.lucide:arrow-right-from-line.lucide:arrow-right-left.lucide:arrow-right-to-line.lucide:arrow-up.lucide:arrow-up-0-1.lucide:arrow-up-1-0.lucide:arrow-up-a-z.lucide:arrow-up-down.lucide:arrow-up-from-dot.lucide:arrow-up-from-line.lucide:arrow-up-left.lucide:arrow-up-narrow-wide.lucide:arrow-up-right.lucide:arrow-up-to-line.lucide:arrow-up-wide-narrow.lucide:arrow-up-z-a.lucide:arrows-up-from-line.lucide:asterisk.lucide:astroid.lucide:at-sign.lucide:atom.lucide:audio-lines.lucide:audio-lines-off.lucide:audio-lines-x.lucide:audio-waveform.lucide:avocado.lucide:award.lucide:axe.lucide:axis-3d.lucide:baby.lucide:backpack.lucide:bacon.lucide:badge.lucide:badge-alert.lucide:badge-cent.lucide:badge-check.lucide:badge-dollar-sign.lucide:badge-euro.lucide:badge-indian-rupee.lucide:badge-info.lucide:badge-japanese-yen.lucide:badge-minus.lucide:badge-percent.lucide:badge-plus.lucide:badge-pound-sterling.lucide:badge-question-mark.lucide:badge-russian-ruble.lucide:badge-swiss-franc.lucide:badge-turkish-lira.lucide:badge-x.lucide:baggage-claim.lucide:balloon.lucide:ban.lucide:banana.lucide:bandage.lucide:bangladeshi-taka.lucide:banknote.lucide:banknote-arrow-down.lucide:banknote-arrow-up.lucide:banknote-check.lucide:banknote-x.lucide:bar-chart-3.lucide:bar-chart-4.lucide:bar-chart-big.lucide:bar-chart-horizontal.lucide:bar-chart-horizontal-big.lucide:barcode.lucide:barrel.lucide:baseline.lucide:bath.lucide:battery.lucide:battery-charging.lucide:battery-full.lucide:battery-low.lucide:battery-medium.lucide:battery-plus.lucide:battery-warning.lucide:beaker.lucide:bean.lucide:bean-off.lucide:bed.lucide:bed-double.lucide:bed-single.lucide:beef.lucide:beef-off.lucide:beer.lucide:beer-off.lucide:belarusian-ruble.lucide:bell.lucide:bell-check.lucide:bell-dot.lucide:bell-electric.lucide:bell-minus.lucide:bell-off.lucide:bell-plus.lucide:bell-ring.lucide:between-horizontal-end.lucide:between-horizontal-start.lucide:between-vertical-end.lucide:between-vertical-start.lucide:biceps-flexed.lucide:bike.lucide:binary.lucide:binoculars.lucide:biohazard.lucide:bird.lucide:birdhouse.lucide:bitcoin.lucide:blend.lucide:blender.lucide:blinds.lucide:blocks.lucide:bluetooth.lucide:bluetooth-connected.lucide:bluetooth-off.lucide:bluetooth-searching.lucide:bold.lucide:bolt.lucide:bomb.lucide:bone.lucide:bone-fracture.lucide:book.lucide:book-a.lucide:book-alert.lucide:book-audio.lucide:book-bookmark.lucide:book-check.lucide:book-copy.lucide:book-dashed.lucide:book-down.lucide:book-headphones.lucide:book-heart.lucide:book-image.lucide:book-key.lucide:book-lock.lucide:book-marked.lucide:book-minus.lucide:book-open.lucide:book-open-check.lucide:book-open-text.lucide:book-plus.lucide:book-search.lucide:book-text.lucide:book-type.lucide:book-up.lucide:book-up-2.lucide:book-user.lucide:book-x.lucide:bookmark.lucide:bookmark-check.lucide:bookmark-minus.lucide:bookmark-off.lucide:bookmark-plus.lucide:bookmark-x.lucide:boom-box.lucide:bot.lucide:bot-message-square.lucide:bot-off.lucide:bottle-wine.lucide:bow-arrow.lucide:box.lucide:boxes.lucide:braces.lucide:brackets.lucide:brain.lucide:brain-circuit.lucide:brain-cog.lucide:brain-off.lucide:brick-wall.lucide:brick-wall-fire.lucide:brick-wall-shield.lucide:bridge.lucide:briefcase.lucide:briefcase-business.lucide:briefcase-conveyor-belt.lucide:briefcase-medical.lucide:briefcase-plus.lucide:bring-to-front.lucide:broccoli.lucide:broom.lucide:broom-sparkles.lucide:brush.lucide:brush-cleaning.lucide:bubbles.lucide:bug.lucide:bug-off.lucide:bug-play.lucide:building.lucide:building-complex.lucide:building-complex-plus.lucide:bus.lucide:bus-front.lucide:cable.lucide:cable-car.lucide:cake.lucide:cake-slice.lucide:calculator.lucide:calendar.lucide:calendar-1.lucide:calendar-arrow-down.lucide:calendar-arrow-up.lucide:calendar-check.lucide:calendar-check-2.lucide:calendar-chevrons-left.lucide:calendar-chevrons-right.lucide:calendar-clock.lucide:calendar-cog.lucide:calendar-days.lucide:calendar-fold.lucide:calendar-heart.lucide:calendar-minus.lucide:calendar-minus-2.lucide:calendar-off.lucide:calendar-plus.lucide:calendar-plus-2.lucide:calendar-range.lucide:calendar-search.lucide:calendar-sync.lucide:calendar-x.lucide:calendar-x-2.lucide:calendars.lucide:camera.lucide:camera-off.lucide:can.lucide:can-soda.lucide:candlestick-chart.lucide:candy.lucide:candy-cane.lucide:candy-off.lucide:cannabis.lucide:cannabis-off.lucide:captions.lucide:captions-off.lucide:car.lucide:car-battery.lucide:car-front.lucide:car-taxi-front.lucide:caravan.lucide:card-sim.lucide:carrot.lucide:carton.lucide:carton-off.lucide:case-lower.lucide:case-sensitive.lucide:case-upper.lucide:cassette-tape.lucide:cast.lucide:castle.lucide:cat.lucide:cctv.lucide:cctv-off.lucide:certificate.lucide:chart-area.lucide:chart-bar.lucide:chart-bar-big.lucide:chart-bar-decreasing.lucide:chart-bar-increasing.lucide:chart-bar-stacked.lucide:chart-candlestick.lucide:chart-column.lucide:chart-column-big.lucide:chart-column-decreasing.lucide:chart-column-increasing.lucide:chart-column-stacked.lucide:chart-gantt.lucide:chart-line.lucide:chart-network.lucide:chart-no-axes-column.lucide:chart-no-axes-column-decreasing.lucide:chart-no-axes-column-increasing.lucide:chart-no-axes-combined.lucide:chart-no-axes-gantt.lucide:chart-pie.lucide:chart-scatter.lucide:chart-spline.lucide:check.lucide:check-check.lucide:check-line.lucide:chef-hat.lucide:cherry.lucide:chess-bishop.lucide:chess-king.lucide:chess-knight.lucide:chess-pawn.lucide:chess-queen.lucide:chess-rook.lucide:chevron-down.lucide:chevron-first.lucide:chevron-last.lucide:chevron-left.lucide:chevron-right.lucide:chevron-up.lucide:chevrons-down.lucide:chevrons-down-up.lucide:chevrons-left.lucide:chevrons-left-right.lucide:chevrons-left-right-ellipsis.lucide:chevrons-right.lucide:chevrons-right-left.lucide:chevrons-up.lucide:chevrons-up-down.lucide:chrome.lucide:chromium.lucide:church.lucide:cigarette.lucide:cigarette-off.lucide:circle.lucide:circle-alert.lucide:circle-arrow-down.lucide:circle-arrow-left.lucide:circle-arrow-out-down-left.lucide:circle-arrow-out-down-right.lucide:circle-arrow-out-up-left.lucide:circle-arrow-out-up-right.lucide:circle-arrow-right.lucide:circle-arrow-up.lucide:circle-check.lucide:circle-check-big.lucide:circle-chevron-down.lucide:circle-chevron-left.lucide:circle-chevron-right.lucide:circle-chevron-up.lucide:circle-chevrons-down.lucide:circle-chevrons-left.lucide:circle-chevrons-right.lucide:circle-chevrons-up.lucide:circle-dashed.lucide:circle-dashed-check.lucide:circle-divide.lucide:circle-dollar-sign.lucide:circle-dot.lucide:circle-dot-dashed.lucide:circle-ellipsis.lucide:circle-equal.lucide:circle-euro.lucide:circle-fading-arrow-up.lucide:circle-fading-play.lucide:circle-fading-plus.lucide:circle-gauge.lucide:circle-minus.lucide:circle-off.lucide:circle-parking.lucide:circle-parking-off.lucide:circle-pause.lucide:circle-percent.lucide:circle-pile.lucide:circle-play.lucide:circle-plus.lucide:circle-pound-sterling.lucide:circle-power.lucide:circle-question-mark.lucide:circle-slash.lucide:circle-slash-2.lucide:circle-small.lucide:circle-star.lucide:circle-stop.lucide:circle-user.lucide:circle-user-round.lucide:circle-x.lucide:circuit-board.lucide:citrus.lucide:clapperboard.lucide:clef-alto.lucide:clef-bass.lucide:clef-treble.lucide:clipboard.lucide:clipboard-check.lucide:clipboard-clock.lucide:clipboard-copy.lucide:clipboard-list.lucide:clipboard-minus.lucide:clipboard-paste.lucide:clipboard-pen.lucide:clipboard-pen-line.lucide:clipboard-plus.lucide:clipboard-type.lucide:clipboard-x.lucide:clock.lucide:clock-1.lucide:clock-10.lucide:clock-11.lucide:clock-12.lucide:clock-2.lucide:clock-3.lucide:clock-4.lucide:clock-5.lucide:clock-6.lucide:clock-7.lucide:clock-8.lucide:clock-9.lucide:clock-alert.lucide:clock-arrow-down.lucide:clock-arrow-left.lucide:clock-arrow-right.lucide:clock-arrow-up.lucide:clock-check.lucide:clock-fading.lucide:clock-plus.lucide:closed-caption.lucide:cloud.lucide:cloud-alert.lucide:cloud-backup.lucide:cloud-check.lucide:cloud-cog.lucide:cloud-download.lucide:cloud-drizzle.lucide:cloud-fog.lucide:cloud-hail.lucide:cloud-lightning.lucide:cloud-moon.lucide:cloud-moon-rain.lucide:cloud-off.lucide:cloud-rain.lucide:cloud-rain-wind.lucide:cloud-snow.lucide:cloud-sun.lucide:cloud-sun-rain.lucide:cloud-sync.lucide:cloud-upload.lucide:cloudy.lucide:clover.lucide:club.lucide:code.lucide:code-xml.lucide:codepen.lucide:codesandbox.lucide:coffee.lucide:cog.lucide:coins.lucide:columns-2.lucide:columns-3.lucide:columns-3-cog.lucide:columns-4.lucide:combine.lucide:command.lucide:compass.lucide:component.lucide:computer.lucide:concierge-bell.lucide:cone.lucide:construction.lucide:contact.lucide:contact-round.lucide:container.lucide:contrast.lucide:cookie.lucide:cooking-pot.lucide:copy.lucide:copy-check.lucide:copy-minus.lucide:copy-plus.lucide:copy-slash.lucide:copy-x.lucide:copyleft.lucide:copyright.lucide:corner-down-left.lucide:corner-down-right.lucide:corner-left-down.lucide:corner-left-up.lucide:corner-right-down.lucide:corner-right-up.lucide:corner-up-left.lucide:corner-up-right.lucide:cpu.lucide:cpu-ai.lucide:creative-commons.lucide:credit-card.lucide:credit-card-check.lucide:credit-card-minus.lucide:credit-card-plus.lucide:credit-card-reader.lucide:credit-card-x.lucide:croissant.lucide:crop.lucide:cross.lucide:crosshair.lucide:crown.lucide:cuboid.lucide:cup-soda.lucide:cupcake.lucide:currency.lucide:cylinder.lucide:dam.lucide:database.lucide:database-arrow-down.lucide:database-arrow-up.lucide:database-backup.lucide:database-check.lucide:database-minus.lucide:database-plus.lucide:database-search.lucide:database-x.lucide:database-zap.lucide:decimals-arrow-left.lucide:decimals-arrow-right.lucide:delete.lucide:dessert.lucide:diameter.lucide:diamond.lucide:diamond-minus.lucide:diamond-percent.lucide:diamond-plus.lucide:dice-1.lucide:dice-2.lucide:dice-3.lucide:dice-4.lucide:dice-5.lucide:dice-6.lucide:dices.lucide:diff.lucide:disc.lucide:disc-2.lucide:disc-3.lucide:disc-album.lucide:divide.lucide:dna.lucide:dna-off.lucide:dock.lucide:dog.lucide:dollar-sign.lucide:dome.lucide:donut.lucide:door-closed.lucide:door-closed-cog.lucide:door-closed-locked.lucide:door-closed-package.lucide:door-open.lucide:door-stairwell.lucide:dot.lucide:download.lucide:drafting-compass.lucide:drama.lucide:dribbble.lucide:drill.lucide:drone.lucide:droplet.lucide:droplet-off.lucide:droplets.lucide:drum.lucide:drumstick.lucide:dumbbell.lucide:ear.lucide:ear-off.lucide:earth.lucide:earth-lock.lucide:eclipse.lucide:egg.lucide:egg-fried.lucide:egg-off.lucide:eighth-note.lucide:eighth-notes.lucide:eject.lucide:ellipse.lucide:ellipsis.lucide:ellipsis-vertical.lucide:engine.lucide:equal.lucide:equal-approximately.lucide:equal-approximately-not.lucide:equal-not.lucide:eraser.lucide:ethernet-port.lucide:euro.lucide:ev-charger.lucide:expand.lucide:external-link.lucide:eye.lucide:eye-closed.lucide:eye-dashed.lucide:eye-off.lucide:face-angry.lucide:face-expressionless.lucide:face-grinning.lucide:face-neutral.lucide:face-slightly-frowning.lucide:face-slightly-smiling.lucide:face-slightly-smiling-plus.lucide:facebook.lucide:factory.lucide:fan.lucide:fast-forward.lucide:faucet.lucide:feather.lucide:fence.lucide:ferris-wheel.lucide:figma.lucide:file.lucide:file-archive.lucide:file-audio.lucide:file-audio-2.lucide:file-axis-3d.lucide:file-badge.lucide:file-badge-2.lucide:file-box.lucide:file-braces.lucide:file-braces-corner.lucide:file-chart-column.lucide:file-chart-column-increasing.lucide:file-chart-line.lucide:file-chart-pie.lucide:file-check.lucide:file-check-2.lucide:file-check-corner.lucide:file-clock.lucide:file-code.lucide:file-code-2.lucide:file-code-corner.lucide:file-cog.lucide:file-diff.lucide:file-digit.lucide:file-down.lucide:file-exclamation-point.lucide:file-headphone.lucide:file-heart.lucide:file-image.lucide:file-input.lucide:file-json.lucide:file-json-2.lucide:file-key.lucide:file-key-2.lucide:file-lock.lucide:file-lock-2.lucide:file-minus.lucide:file-minus-2.lucide:file-minus-corner.lucide:file-music.lucide:file-output.lucide:file-pen.lucide:file-pen-line.lucide:file-pie-chart.lucide:file-play.lucide:file-plus.lucide:file-plus-2.lucide:file-plus-corner.lucide:file-question-mark.lucide:file-scan.lucide:file-search.lucide:file-search-2.lucide:file-search-corner.lucide:file-signal.lucide:file-sliders.lucide:file-spreadsheet.lucide:file-stack.lucide:file-symlink.lucide:file-terminal.lucide:file-text.lucide:file-type.lucide:file-type-2.lucide:file-type-corner.lucide:file-up.lucide:file-user.lucide:file-video-camera.lucide:file-volume.lucide:file-volume-2.lucide:file-warning.lucide:file-x.lucide:file-x-2.lucide:file-x-corner.lucide:files.lucide:film.lucide:filter.lucide:filter-x.lucide:fingerprint-pattern.lucide:fire-extinguisher.lucide:fish.lucide:fish-off.lucide:fish-symbol.lucide:fishing-hook.lucide:fishing-rod.lucide:flag.lucide:flag-off.lucide:flag-triangle-left.lucide:flag-triangle-right.lucide:flame.lucide:flame-kindling.lucide:flashlight.lucide:flashlight-off.lucide:flask-conical.lucide:flask-conical-off.lucide:flask-round.lucide:flip-horizontal-2.lucide:flip-vertical-2.lucide:flower.lucide:flower-2.lucide:focus.lucide:fold-horizontal.lucide:fold-vertical.lucide:folder.lucide:folder-archive.lucide:folder-bookmark.lucide:folder-check.lucide:folder-clock.lucide:folder-closed.lucide:folder-code.lucide:folder-cog.lucide:folder-dot.lucide:folder-down.lucide:folder-git.lucide:folder-git-2.lucide:folder-heart.lucide:folder-input.lucide:folder-kanban.lucide:folder-key.lucide:folder-lock.lucide:folder-minus.lucide:folder-open.lucide:folder-open-dot.lucide:folder-output.lucide:folder-pen.lucide:folder-plus.lucide:folder-root.lucide:folder-search.lucide:folder-search-2.lucide:folder-symlink.lucide:folder-sync.lucide:folder-tree.lucide:folder-up.lucide:folder-user.lucide:folder-users.lucide:folder-x.lucide:folders.lucide:footprints.lucide:forklift.lucide:form.lucide:forward.lucide:frame.lucide:framer.lucide:frown.lucide:fuel.lucide:fullscreen.lucide:funnel.lucide:funnel-plus.lucide:funnel-x.lucide:galaxy.lucide:gallery-horizontal.lucide:gallery-horizontal-end.lucide:gallery-thumbnails.lucide:gallery-vertical.lucide:gallery-vertical-end.lucide:gamepad.lucide:gamepad-2.lucide:gamepad-directional.lucide:gap-horizontal.lucide:gap-vertical.lucide:gauge.lucide:gavel.lucide:gem.lucide:georgian-lari.lucide:germ.lucide:germ-off.lucide:ghost.lucide:gift.lucide:git-branch.lucide:git-branch-minus.lucide:git-branch-plus.lucide:git-commit-horizontal.lucide:git-commit-vertical.lucide:git-compare.lucide:git-compare-arrows.lucide:git-fork.lucide:git-graph.lucide:git-merge.lucide:git-merge-conflict.lucide:git-pull-request.lucide:git-pull-request-arrow.lucide:git-pull-request-closed.lucide:git-pull-request-create.lucide:git-pull-request-create-arrow.lucide:git-pull-request-draft.lucide:github.lucide:gitlab.lucide:glass-water.lucide:glasses.lucide:globe.lucide:globe-check.lucide:globe-code.lucide:globe-lock.lucide:globe-off.lucide:globe-x.lucide:goal.lucide:gpu.lucide:graduation-cap.lucide:grape.lucide:graph-hub.lucide:graph-star.lucide:grid-2x2.lucide:grid-2x2-check.lucide:grid-2x2-plus.lucide:grid-2x2-x.lucide:grid-3x2.lucide:grid-3x3.lucide:grip.lucide:grip-horizontal.lucide:grip-vertical.lucide:groceries.lucide:group.lucide:guitar.lucide:guitar-electric.lucide:half-note.lucide:ham.lucide:hamburger.lucide:hammer.lucide:hand.lucide:hand-coins.lucide:hand-fist.lucide:hand-grab.lucide:hand-heart.lucide:hand-helping.lucide:hand-metal.lucide:hand-platter.lucide:handbag.lucide:handle-bottom-right.lucide:handshake.lucide:hard-drive.lucide:hard-drive-download.lucide:hard-drive-upload.lucide:hard-hat.lucide:hash.lucide:hat-glasses.lucide:haze.lucide:hd.lucide:hdmi-port.lucide:heading.lucide:heading-1.lucide:heading-2.lucide:heading-3.lucide:heading-4.lucide:heading-5.lucide:heading-6.lucide:headphone-off.lucide:headphones.lucide:headset.lucide:heart.lucide:heart-crack.lucide:heart-handshake.lucide:heart-minus.lucide:heart-off.lucide:heart-plus.lucide:heart-pulse.lucide:heart-x.lucide:heater.lucide:helicopter.lucide:hexagon.lucide:highlighter.lucide:hiking-stick.lucide:hop.lucide:hop-off.lucide:hospital.lucide:hotel.lucide:hourglass.lucide:hourglass-cog.lucide:house.lucide:house-cog.lucide:house-heart.lucide:house-plug.lucide:house-plus.lucide:house-wifi.lucide:houses.lucide:ice-cream-bowl.lucide:ice-cream-cone.lucide:id-card.lucide:id-card-lanyard.lucide:image.lucide:image-down.lucide:image-minus.lucide:image-off.lucide:image-play.lucide:image-plus.lucide:image-up.lucide:image-upscale.lucide:images.lucide:import.lucide:inbox.lucide:indent-decrease.lucide:indent-increase.lucide:indian-rupee.lucide:infinity.lucide:info.lucide:inspection-panel.lucide:instagram.lucide:italic.lucide:iteration-ccw.lucide:iteration-cw.lucide:iv-bag.lucide:japanese-yen.lucide:joystick.lucide:kanban.lucide:kayak.lucide:kazakh-tenge.lucide:key.lucide:key-round.lucide:key-square.lucide:keyboard.lucide:keyboard-music.lucide:keyboard-off.lucide:lambda.lucide:lamp.lucide:lamp-ceiling.lucide:lamp-desk.lucide:lamp-floor.lucide:lamp-wall-down.lucide:lamp-wall-up.lucide:land-plot.lucide:landmark.lucide:languages.lucide:laptop.lucide:laptop-minimal.lucide:laptop-minimal-check.lucide:lasso.lucide:lasso-select.lucide:laugh.lucide:layer-arrow-down.lucide:layer-arrow-up.lucide:layers.lucide:layers-2.lucide:layers-3.lucide:layers-arrow-down.lucide:layers-arrow-up.lucide:layers-minus.lucide:layers-plus.lucide:layout-arrow-down.lucide:layout-arrow-right.lucide:layout-dashboard.lucide:layout-freeform.lucide:layout-grid.lucide:layout-grid-circles.lucide:layout-list.lucide:layout-panel-left.lucide:layout-panel-top.lucide:layout-template.lucide:leaf.lucide:leafy-green.lucide:lectern.lucide:lens.lucide:lens-concave.lucide:lens-convex.lucide:letter-spacing.lucide:letter-text.lucide:letters.lucide:library.lucide:library-big.lucide:life-buoy.lucide:ligature.lucide:lightbulb.lucide:lightbulb-off.lucide:lighthouse.lucide:line-chart.lucide:line-dot-bottom-vertical.lucide:line-dot-left-horizontal.lucide:line-dot-right-horizontal.lucide:line-dot-top-vertical.lucide:line-height.lucide:line-squiggle.lucide:line-style.lucide:link.lucide:link-2.lucide:link-2-off.lucide:linkedin.lucide:list.lucide:list-check.lucide:list-checks.lucide:list-chevrons-down-up.lucide:list-chevrons-up-down.lucide:list-clock.lucide:list-collapse.lucide:list-end.lucide:list-filter.lucide:list-filter-plus.lucide:list-indent-decrease.lucide:list-indent-increase.lucide:list-minus.lucide:list-music.lucide:list-ordered.lucide:list-plus.lucide:list-restart.lucide:list-sort-ascending.lucide:list-sort-descending.lucide:list-start.lucide:list-todo.lucide:list-tree.lucide:list-video.lucide:list-x.lucide:loader.lucide:loader-circle.lucide:loader-pinwheel.lucide:locate.lucide:locate-fixed.lucide:locate-off.lucide:lock.lucide:lock-keyhole.lucide:lock-keyhole-open.lucide:lock-open.lucide:log-in.lucide:log-out.lucide:logs.lucide:lollipop.lucide:luggage.lucide:magnet.lucide:mail.lucide:mail-badge.lucide:mail-check.lucide:mail-clock.lucide:mail-dot.lucide:mail-minus.lucide:mail-open.lucide:mail-pen.lucide:mail-plus.lucide:mail-question-mark.lucide:mail-search.lucide:mail-warning.lucide:mail-x.lucide:mailbox.lucide:mails.lucide:map.lucide:map-minus.lucide:map-pin.lucide:map-pin-check.lucide:map-pin-check-inside.lucide:map-pin-house.lucide:map-pin-minus.lucide:map-pin-minus-inside.lucide:map-pin-off.lucide:map-pin-pen.lucide:map-pin-plus.lucide:map-pin-plus-inside.lucide:map-pin-search.lucide:map-pin-x.lucide:map-pin-x-inside.lucide:map-pinned.lucide:map-plus.lucide:mars.lucide:mars-stroke.lucide:martini.lucide:maximize.lucide:maximize-2.lucide:medal.lucide:megaphone.lucide:megaphone-off.lucide:meh.lucide:memory-stick.lucide:menu.lucide:merge.lucide:message-circle.lucide:message-circle-check.lucide:message-circle-code.lucide:message-circle-dashed.lucide:message-circle-dashed-check.lucide:message-circle-heart.lucide:message-circle-more.lucide:message-circle-off.lucide:message-circle-plus.lucide:message-circle-question-mark.lucide:message-circle-reply.lucide:message-circle-text.lucide:message-circle-warning.lucide:message-circle-x.lucide:message-square.lucide:message-square-check.lucide:message-square-code.lucide:message-square-dashed.lucide:message-square-diff.lucide:message-square-dot.lucide:message-square-heart.lucide:message-square-lock.lucide:message-square-more.lucide:message-square-off.lucide:message-square-plus.lucide:message-square-quote.lucide:message-square-reply.lucide:message-square-share.lucide:message-square-text.lucide:message-square-warning.lucide:message-square-x.lucide:messages-circle.lucide:messages-square.lucide:metronome.lucide:mic.lucide:mic-audio-lines.lucide:mic-off.lucide:mic-signal.lucide:mic-vocal.lucide:microchip.lucide:microscope.lucide:microwave.lucide:midi-port.lucide:milestone.lucide:milk.lucide:milk-off.lucide:minimize.lucide:minimize-2.lucide:minus.lucide:mirror-rectangular.lucide:mirror-round.lucide:monitor.lucide:monitor-check.lucide:monitor-cloud.lucide:monitor-cog.lucide:monitor-dot.lucide:monitor-down.lucide:monitor-off.lucide:monitor-pause.lucide:monitor-pc.lucide:monitor-play.lucide:monitor-smartphone.lucide:monitor-speaker.lucide:monitor-stop.lucide:monitor-up.lucide:monitor-x.lucide:moon.lucide:moon-star.lucide:mop.lucide:mop-sparkles.lucide:mosque.lucide:motorbike.lucide:mountain.lucide:mountain-snow.lucide:mouse.lucide:mouse-left.lucide:mouse-off.lucide:mouse-pointer.lucide:mouse-pointer-2.lucide:mouse-pointer-2-off.lucide:mouse-pointer-ban.lucide:mouse-pointer-click.lucide:mouse-right.lucide:mouth.lucide:mouth-off.lucide:move.lucide:move-3d.lucide:move-diagonal.lucide:move-diagonal-2.lucide:move-down.lucide:move-down-left.lucide:move-down-right.lucide:move-horizontal.lucide:move-left.lucide:move-right.lucide:move-up.lucide:move-up-left.lucide:move-up-right.lucide:move-vertical.lucide:music.lucide:music-2.lucide:music-4.lucide:navigation.lucide:navigation-2.lucide:navigation-2-off.lucide:navigation-off.lucide:nepali-rupee.lucide:network.lucide:newspaper.lucide:nfc.lucide:non-binary.lucide:notebook.lucide:notebook-dot.lucide:notebook-pen.lucide:notebook-tabs.lucide:notebook-text.lucide:notepad-text.lucide:notepad-text-dashed.lucide:nut.lucide:nut-off.lucide:octagon.lucide:octagon-alert.lucide:octagon-minus.lucide:octagon-pause.lucide:octagon-x.lucide:omega.lucide:option.lucide:orbit.lucide:origami.lucide:package.lucide:package-2.lucide:package-check.lucide:package-minus.lucide:package-open.lucide:package-plus.lucide:package-search.lucide:package-x.lucide:paint-bucket.lucide:paint-roller.lucide:paintbrush.lucide:paintbrush-vertical.lucide:palette.lucide:panda.lucide:panel-bottom.lucide:panel-bottom-close.lucide:panel-bottom-dashed.lucide:panel-bottom-open.lucide:panel-left.lucide:panel-left-close.lucide:panel-left-dashed.lucide:panel-left-open.lucide:panel-left-right-dashed.lucide:panel-right.lucide:panel-right-close.lucide:panel-right-dashed.lucide:panel-right-open.lucide:panel-top.lucide:panel-top-bottom-dashed.lucide:panel-top-close.lucide:panel-top-dashed.lucide:panel-top-open.lucide:panels-left-bottom.lucide:panels-right-bottom.lucide:panels-top-left.lucide:paper-bag.lucide:paperclip.lucide:parasol.lucide:parentheses.lucide:park.lucide:parking-meter.lucide:party-popper.lucide:pause.lucide:paw-print.lucide:pc-case.lucide:pen.lucide:pen-line.lucide:pen-off.lucide:pen-tool.lucide:pencil.lucide:pencil-line.lucide:pencil-off.lucide:pencil-ruler.lucide:pencil-sparkles.lucide:pentagon.lucide:percent.lucide:perfume-bottle.lucide:person-standing.lucide:phi.lucide:philippine-peso.lucide:phone.lucide:phone-call.lucide:phone-forwarded.lucide:phone-incoming.lucide:phone-log.lucide:phone-missed.lucide:phone-off.lucide:phone-outgoing.lucide:pi.lucide:piano.lucide:pickaxe.lucide:picture-in-picture.lucide:picture-in-picture-2.lucide:pie-chart.lucide:piggy-bank.lucide:pilcrow.lucide:pilcrow-left.lucide:pilcrow-right.lucide:pill.lucide:pill-bottle.lucide:pin.lucide:pin-off.lucide:pipette.lucide:pizza.lucide:plane.lucide:plane-landing.lucide:plane-takeoff.lucide:plant-pot.lucide:play.lucide:play-off.lucide:playing-card.lucide:playing-cards.lucide:playing-cards-fan.lucide:plug.lucide:plug-2.lucide:plug-zap.lucide:plus.lucide:pocket.lucide:pocket-knife.lucide:podcast.lucide:podium.lucide:pointer.lucide:pointer-off.lucide:popcorn.lucide:popsicle.lucide:pound-sterling.lucide:power.lucide:power-off.lucide:presentation.lucide:printer.lucide:printer-3d.lucide:printer-check.lucide:printer-x.lucide:projector.lucide:proportions.lucide:puzzle.lucide:pyramid.lucide:qr-code.lucide:quote.lucide:rabbit.lucide:radar.lucide:radiation.lucide:radical.lucide:radio.lucide:radio-off.lucide:radio-receiver.lucide:radio-tower.lucide:radius.lucide:rail-symbol.lucide:rainbow.lucide:rat.lucide:ratio.lucide:receipt.lucide:receipt-cent.lucide:receipt-euro.lucide:receipt-indian-rupee.lucide:receipt-japanese-yen.lucide:receipt-pound-sterling.lucide:receipt-russian-ruble.lucide:receipt-swiss-franc.lucide:receipt-text.lucide:receipt-turkish-lira.lucide:rectangle-circle.lucide:rectangle-ellipsis.lucide:rectangle-goggles.lucide:rectangle-horizontal.lucide:rectangle-vertical.lucide:recycle.lucide:redo.lucide:redo-2.lucide:redo-dot.lucide:refresh-ccw.lucide:refresh-ccw-dot.lucide:refresh-cw.lucide:refresh-cw-off.lucide:refrigerator.lucide:regex.lucide:remove-formatting.lucide:repeat.lucide:repeat-1.lucide:repeat-2.lucide:repeat-off.lucide:replace.lucide:replace-all.lucide:reply.lucide:reply-all.lucide:rewind.lucide:ribbon.lucide:road.lucide:robot-arm.lucide:robot-vacuum.lucide:rocket.lucide:rocking-chair.lucide:roller-coaster.lucide:rose.lucide:rotate-3d.lucide:rotate-ccw.lucide:rotate-ccw-clock.lucide:rotate-ccw-key.lucide:rotate-ccw-square.lucide:rotate-cw.lucide:rotate-cw-clock.lucide:rotate-cw-fading-clock.lucide:rotate-cw-square.lucide:route.lucide:route-off.lucide:router.lucide:rows-2.lucide:rows-3.lucide:rows-4.lucide:rss.lucide:rugby-ball.lucide:ruler.lucide:ruler-dimension-line.lucide:russian-ruble.lucide:sailboat.lucide:salad.lucide:sandwich.lucide:satellite.lucide:satellite-dish.lucide:saudi-riyal.lucide:save.lucide:save-all.lucide:save-check.lucide:save-off.lucide:save-pen.lucide:save-plus.lucide:scale.lucide:scale-3d.lucide:scaling.lucide:scan.lucide:scan-barcode.lucide:scan-box.lucide:scan-eye.lucide:scan-face.lucide:scan-heart.lucide:scan-line.lucide:scan-qr-code.lucide:scan-search.lucide:scan-square.lucide:scan-text.lucide:scatter-chart.lucide:school.lucide:scissors.lucide:scissors-line-dashed.lucide:scooter.lucide:scratch-blocks.lucide:screen-share.lucide:screen-share-off.lucide:screw.lucide:scroll.lucide:scroll-text.lucide:search.lucide:search-alert.lucide:search-check.lucide:search-code.lucide:search-large.lucide:search-slash.lucide:search-x.lucide:section.lucide:send.lucide:send-horizontal.lucide:send-to-back.lucide:separator-horizontal.lucide:separator-vertical.lucide:server.lucide:server-cog.lucide:server-crash.lucide:server-nas.lucide:server-off.lucide:server-plus.lucide:settings.lucide:settings-2.lucide:shapes.lucide:share.lucide:share-2.lucide:sheet.lucide:shell.lucide:shelving-unit.lucide:shield.lucide:shield-alert.lucide:shield-ban.lucide:shield-check.lucide:shield-cog.lucide:shield-cog-corner.lucide:shield-ellipsis.lucide:shield-half.lucide:shield-house.lucide:shield-keyhole.lucide:shield-lock.lucide:shield-minus.lucide:shield-off.lucide:shield-plus.lucide:shield-question-mark.lucide:shield-user.lucide:shield-x.lucide:ship.lucide:ship-cargo.lucide:ship-wheel.lucide:shirt.lucide:shopping-bag.lucide:shopping-basket.lucide:shopping-cart.lucide:shopping-cart-minus.lucide:shopping-cart-plus.lucide:shovel.lucide:shower-head.lucide:shredder.lucide:shrimp.lucide:shrimp-off.lucide:shrink.lucide:shrub.lucide:shuffle.lucide:sigma.lucide:signal.lucide:signal-high.lucide:signal-low.lucide:signal-medium.lucide:signal-zero.lucide:signature.lucide:signpost.lucide:signpost-big.lucide:siren.lucide:sixteenth-notes.lucide:skip-back.lucide:skip-forward.lucide:skull.lucide:slack.lucide:slash.lucide:slice.lucide:sliders-horizontal.lucide:sliders-vertical.lucide:smartphone.lucide:smartphone-charging.lucide:smartphone-nfc.lucide:smartphone-user-round.lucide:smile.lucide:smile-plus.lucide:snail.lucide:snowflake.lucide:soap-dispenser-droplet.lucide:sofa.lucide:solar-panel.lucide:soup.lucide:space.lucide:spade.lucide:sparkle.lucide:sparkles.lucide:speaker.lucide:speech.lucide:spell-check.lucide:spell-check-2.lucide:spline.lucide:spline-pointer.lucide:split.lucide:spool.lucide:sport-shoe.lucide:spotlight.lucide:spray-can.lucide:sprout.lucide:square.lucide:square-activity.lucide:square-arrow-down.lucide:square-arrow-down-left.lucide:square-arrow-down-right.lucide:square-arrow-left.lucide:square-arrow-out-down-left.lucide:square-arrow-out-down-right.lucide:square-arrow-out-up-left.lucide:square-arrow-out-up-right.lucide:square-arrow-right.lucide:square-arrow-right-enter.lucide:square-arrow-right-exit.lucide:square-arrow-up.lucide:square-arrow-up-left.lucide:square-arrow-up-right.lucide:square-asterisk.lucide:square-bookmark.lucide:square-bottom-dashed-scissors.lucide:square-centerline-dashed-horizontal.lucide:square-centerline-dashed-vertical.lucide:square-chart-gantt.lucide:square-check.lucide:square-check-big.lucide:square-chevron-down.lucide:square-chevron-left.lucide:square-chevron-right.lucide:square-chevron-up.lucide:square-code.lucide:square-dashed.lucide:square-dashed-bottom.lucide:square-dashed-bottom-code.lucide:square-dashed-kanban.lucide:square-dashed-mouse-pointer.lucide:square-dashed-plus.lucide:square-dashed-text.lucide:square-dashed-top-solid.lucide:square-dashed-x.lucide:square-dashed-x-corner.lucide:square-dimensions.lucide:square-divide.lucide:square-dot.lucide:square-equal.lucide:square-exclamation-point.lucide:square-function.lucide:square-kanban.lucide:square-library.lucide:square-m.lucide:square-menu.lucide:square-minus.lucide:square-mouse-pointer.lucide:square-off.lucide:square-parking.lucide:square-parking-off.lucide:square-pause.lucide:square-pen.lucide:square-percent.lucide:square-pi.lucide:square-pilcrow.lucide:square-play.lucide:square-plus.lucide:square-power.lucide:square-radical.lucide:square-round-corner.lucide:square-scissors.lucide:square-sigma.lucide:square-slash.lucide:square-sparkles.lucide:square-split-horizontal.lucide:square-split-vertical.lucide:square-square.lucide:square-stack.lucide:square-star.lucide:square-stop.lucide:square-terminal.lucide:square-text.lucide:square-user.lucide:square-user-round.lucide:square-x.lucide:squares-exclude.lucide:squares-intersect.lucide:squares-subtract.lucide:squares-unite.lucide:squircle.lucide:squircle-dashed.lucide:squirrel.lucide:stamp.lucide:star.lucide:star-check.lucide:star-half.lucide:star-minus.lucide:star-off.lucide:star-plus.lucide:star-x.lucide:step-back.lucide:step-forward.lucide:stethoscope.lucide:sticker.lucide:sticky-note.lucide:sticky-note-check.lucide:sticky-note-minus.lucide:sticky-note-off.lucide:sticky-note-plus.lucide:sticky-note-x.lucide:sticky-notes.lucide:stone.lucide:store.lucide:stretch-horizontal.lucide:stretch-vertical.lucide:strikethrough.lucide:subscript.lucide:summary.lucide:sun.lucide:sun-dim.lucide:sun-medium.lucide:sun-moon.lucide:sun-snow.lucide:sunrise.lucide:sunset.lucide:superscript.lucide:swatch-book.lucide:swiss-franc.lucide:switch-camera.lucide:sword.lucide:swords.lucide:syringe.lucide:table.lucide:table-2.lucide:table-cells-merge.lucide:table-cells-split.lucide:table-columns-split.lucide:table-of-contents.lucide:table-properties.lucide:table-rows-split.lucide:tablet.lucide:tablet-smartphone.lucide:tablets.lucide:tag.lucide:tag-plus.lucide:tag-x.lucide:tags.lucide:tally-1.lucide:tally-2.lucide:tally-3.lucide:tally-4.lucide:tally-5.lucide:tangent.lucide:target.lucide:telescope.lucide:tent.lucide:tent-tree.lucide:terminal.lucide:test-tube.lucide:test-tube-diagonal.lucide:test-tubes.lucide:text.lucide:text-align-center.lucide:text-align-end.lucide:text-align-justify.lucide:text-align-justify-center.lucide:text-align-justify-end.lucide:text-align-justify-start.lucide:text-align-start.lucide:text-cursor.lucide:text-cursor-input.lucide:text-initial.lucide:text-quote.lucide:text-search.lucide:text-wrap.lucide:theater.lucide:thermometer.lucide:thermometer-snowflake.lucide:thermometer-sun.lucide:thumbs-down.lucide:thumbs-up.lucide:tic-tac-toe.lucide:ticket.lucide:ticket-check.lucide:ticket-minus.lucide:ticket-percent.lucide:ticket-plus.lucide:ticket-slash.lucide:ticket-x.lucide:tickets.lucide:tickets-plane.lucide:timeline.lucide:timer.lucide:timer-off.lucide:timer-reset.lucide:toggle-left.lucide:toggle-right.lucide:toilet.lucide:tombstone.lucide:tool-case.lucide:toolbox.lucide:toothbrush.lucide:toothbrush-sparkles.lucide:tornado.lucide:torus.lucide:touchpad.lucide:touchpad-off.lucide:towel-rack.lucide:tower-control.lucide:toy-brick.lucide:tractor.lucide:traffic-cone.lucide:trailer.lucide:train-front.lucide:train-front-tunnel.lucide:train-track.lucide:tram-front.lucide:transgender.lucide:trash.lucide:trash-off.lucide:tree-deciduous.lucide:tree-palm.lucide:tree-pine.lucide:trees.lucide:trello.lucide:trending-down.lucide:trending-up.lucide:trending-up-down.lucide:triangle.lucide:triangle-alert.lucide:triangle-dashed.lucide:triangle-right.lucide:triangles-centerline-dashed-horizontal.lucide:triangles-centerline-dashed-vertical.lucide:trophy.lucide:truck.lucide:truck-electric.lucide:tube-lotion.lucide:turkish-lira.lucide:turntable.lucide:turtle.lucide:tv.lucide:tv-minimal.lucide:tv-minimal-play.lucide:twitch.lucide:twitter.lucide:type.lucide:type-outline.lucide:umbrella.lucide:umbrella-off.lucide:underline.lucide:undo.lucide:undo-2.lucide:undo-dot.lucide:unfold-horizontal.lucide:unfold-vertical.lucide:ungroup.lucide:university.lucide:unlink.lucide:unlink-2.lucide:unplug.lucide:upload.lucide:usb.lucide:usb-c-port.lucide:user.lucide:user-check.lucide:user-cog.lucide:user-group.lucide:user-key.lucide:user-lock.lucide:user-minus.lucide:user-pen.lucide:user-plus.lucide:user-round.lucide:user-round-arrow-left.lucide:user-round-check.lucide:user-round-cog.lucide:user-round-group.lucide:user-round-key.lucide:user-round-minus.lucide:user-round-pen.lucide:user-round-plus.lucide:user-round-search.lucide:user-round-star.lucide:user-round-x.lucide:user-search.lucide:user-shield.lucide:user-star.lucide:user-x.lucide:users.lucide:users-collaboration.lucide:users-round.lucide:users-round-collaboration.lucide:utensils.lucide:utensils-crossed.lucide:utility-pole.lucide:van.lucide:variable.lucide:vault.lucide:vector-polygon.lucide:vector-square.lucide:vegan.lucide:venetian-mask.lucide:venus.lucide:venus-and-mars.lucide:vibrate.lucide:vibrate-off.lucide:video.lucide:video-off.lucide:videotape.lucide:view.lucide:virus.lucide:virus-off.lucide:voicemail.lucide:volleyball.lucide:volume.lucide:volume-1.lucide:volume-2.lucide:volume-off.lucide:volume-x.lucide:vote.lucide:wallet.lucide:wallet-cards.lucide:wallet-minimal.lucide:wallpaper.lucide:wand.lucide:wand-sparkles.lucide:warehouse.lucide:washing-machine.lucide:watch.lucide:waves.lucide:waves-arrow-down.lucide:waves-arrow-up.lucide:waves-horizontal.lucide:waves-ladder.lucide:waves-vertical.lucide:waypoints.lucide:webcam.lucide:webcam-off.lucide:webhook.lucide:webhook-off.lucide:weight.lucide:weight-tilde.lucide:wheat.lucide:wheat-off.lucide:whistle.lucide:whole-word.lucide:wifi.lucide:wifi-cog.lucide:wifi-high.lucide:wifi-lock.lucide:wifi-low.lucide:wifi-off.lucide:wifi-pen.lucide:wifi-sync.lucide:wifi-zero.lucide:wind.lucide:wind-arrow-down.lucide:wind-arrow-up.lucide:wine.lucide:wine-off.lucide:workflow.lucide:worm.lucide:wrap-text.lucide:wrench.lucide:wrench-off.lucide:x.lucide:x-line-top.lucide:youtube.lucide:zap.lucide:zap-off.lucide:zodiac-aquarius.lucide:zodiac-aries.lucide:zodiac-cancer.lucide:zodiac-capricorn.lucide:zodiac-gemini.lucide:zodiac-leo.lucide:zodiac-libra.lucide:zodiac-ophiuchus.lucide:zodiac-pisces.lucide:zodiac-sagittarius.lucide:zodiac-scorpio.lucide:zodiac-taurus.lucide:zodiac-virgo.lucide:zoom-in.lucide:zoom-out`.split(`.`),cr=`modulepreload`,lr=function(e){return`/`+e},ur={},dr=function(e){return e.pathname.endsWith(`.css`)},fr=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},pr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=lr(t,n);let r=s(t),i=dr(r);return fr(ur,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:cr,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};new Set(sr);var mr=new Map,hr;async function gr(){if(mr.size)return mr;hr||=pr(()=>import(`./agentIconBodies-Cpn22UTR.js`).then(e=>e.AGENT_LIBRARY_BODIES),[]);let e=await hr;for(let[t,n]of Object.entries(e))mr.set(t,n);return mr}function _r(e){return mr.get(e)}function vr(e,t,n){if(!n)return 0;let r=e.toLowerCase();if(t===n||r===n)return 0;if(t.startsWith(n)||r.startsWith(n))return 1;if(t.includes(n)||r.includes(n))return 2;let i=n.split(/\s+/).filter(Boolean);return i.length>1&&i.every(e=>t.includes(e)||r.includes(e))?3:9}function yr(e,t=10,n=0){let r=e.trim().toLowerCase().replace(/^(ph|lucide):/,``).replace(/\s+/g,` `);if(!r){let e=jn.map(e=>({id:e,label:Nn[e],kind:`face`})),r=sr.length,i=e.length+r;if(n+t<=e.length)return{hits:e.slice(n,n+t),total:i};let a=Math.max(0,n-e.length),o=t-Math.max(0,e.length-n),s=n<e.length?e.slice(n):[],c=sr.slice(a,a+o).map(e=>({id:e,label:Bn(e),kind:`library`}));return{hits:[...s,...c],total:i}}let i=[];for(let e of jn){let t=Nn[e],n=vr(t,e,r);n<9&&i.push({id:e,label:t,kind:`face`,s:n})}for(let e of sr){let t=Rn(e);if(!t)continue;let n=Bn(e),a=vr(n,t.name,r);a<9&&i.push({id:e,label:n,kind:`library`,s:a})}return i.sort((e,t)=>e.s-t.s||(e.kind===t.kind?e.label.localeCompare(t.label):e.kind===`face`?-1:1)),{hits:i.slice(n,n+t).map(({id:e,label:t,kind:n})=>({id:e,label:t,kind:n})),total:i.length}}var A=Qt(),br={};try{br=Object.assign({"./agents/api.svg":kt,"./agents/browser-agent.svg":Dt,"./agents/case.svg":Lt,"./agents/context-engine.svg":Ft,"./agents/database.svg":Pt,"./agents/explorer.svg":qt,"./agents/healer.svg":Ct,"./agents/knowledge-base.svg":Jt,"./agents/model.svg":It,"./agents/orchestrator.svg":Tt,"./agents/pr-reviewer.svg":Et,"./agents/report.svg":Bt,"./agents/result.svg":rn,"./agents/rule.svg":wt,"./agents/scribe.svg":zt,"./agents/specs.svg":an,"./agents/test-finder.svg":Ut,"./agents/trace.svg":on})}catch{}function xr({id:e,px:t,alt:n,className:r}){let[i,a]=(0,D.useState)(()=>_r(e));if((0,D.useEffect)(()=>{if(i)return;let t=!0;return gr().then(n=>{t&&a(n.get(e))}),()=>{t=!1}},[e,i]),!i)return(0,A.jsx)(`span`,{"aria-hidden":!n||void 0,className:x(`inline-block flex-none rounded-md bg-line-soft/60`,r),style:{width:t,height:t}});let o=`url("data:image/svg+xml,${encodeURIComponent(i)}")`;return(0,A.jsx)(`span`,{role:n?`img`:void 0,"aria-label":n||void 0,"aria-hidden":!n||void 0,className:x(`inline-block flex-none bg-current`,r),style:{width:t,height:t,WebkitMask:`${o} center / contain no-repeat`,mask:`${o} center / contain no-repeat`}})}function Sr({agent:e,icon:t,px:n=20,decorative:r=!1,working:i=!1,className:a}){let o=Kn(e),s=zn(t)?t:o.icon,c=r?``:o.name;if(Rn(s))return(0,A.jsx)(xr,{id:s,px:n,alt:c,className:a});let l=Ln(s)?s:o.icon,u=br[`./agents/${l}.svg`];if(!i)return(0,A.jsx)(Kt,{src:u,name:l,px:n,alt:c,className:a});let d=(0,A.jsx)(`img`,{src:u,alt:c,width:n,height:n,draggable:!1,className:`block flex-none object-contain`,style:{width:n,height:n}}),f=nn(l);return(0,A.jsx)(`span`,{"data-flat":f?``:void 0,className:x(`agent-shine`,a),style:{width:n,height:n,"--agent-icon":`url("${u}")`,...f},children:d})}function Cr({open:e,onClose:t,title:r,description:i,children:a,footer:o,wide:s}){let c=(0,D.useRef)(null),l=(0,D.useId)(),u=(0,D.useRef)({title:r,description:i,children:a,footer:o});e&&(u.current={title:r,description:i,children:a,footer:o});let[d,f]=(0,D.useState)(!1),p=e?{title:r,description:i,children:a,footer:o}:u.current;return(0,D.useEffect)(()=>{let t=c.current;if(!t)return;if(e){t.classList.remove(`is-closing`),f(!1),t.open||t.showModal();return}if(!t.open)return;if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return t.close();t.classList.add(`is-closing`),f(!0);let n=setTimeout(()=>{t.classList.remove(`is-closing`),f(!1),t.close()},180);return()=>clearTimeout(n)},[e]),(0,A.jsx)(`dialog`,{ref:c,"aria-labelledby":l,onCancel:e=>{e.preventDefault(),t()},onClick:e=>{e.target===c.current&&t()},className:x(`sheet fixed inset-y-0 right-0 left-auto m-0 h-[calc(100dvh/var(--ui-zoom))] max-h-none w-full border-0 border-l border-line bg-bg p-0 text-ink shadow-menu backdrop:bg-[rgba(17,25,40,0.28)]`,s?`max-w-[760px]`:`max-w-[480px]`),children:(e||d)&&(0,A.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,A.jsxs)(`div`,{className:`flex items-start gap-3 border-b border-line-soft px-6 pt-5 pb-4`,children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,A.jsx)(`h2`,{id:l,className:`m-0 text-lg font-semibold`,children:p.title}),p.description&&(0,A.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-muted`,children:p.description})]}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Close`,"data-tip":`Close`,onClick:t,className:`-mt-1 -mr-2`,children:(0,A.jsx)(n,{size:20,"aria-hidden":`true`})})]}),(0,A.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 pb-6`,children:p.children}),(0,A.jsx)(`div`,{className:`flex flex-wrap justify-end gap-2 border-t border-line-soft px-6 py-4`,children:p.footer})]})})}function wr({open:e,id:t,className:n,children:r}){let[i,a]=(0,D.useState)(e),[o,s]=(0,D.useState)(e),[c,l]=(0,D.useState)(e);return(0,D.useEffect)(()=>{if(e){a(!0);let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>s(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}s(!1),l(!1);let t=setTimeout(()=>a(!1),320);return()=>clearTimeout(t)},[e]),i?(0,A.jsx)(`div`,{id:t,inert:!e||void 0,className:x(`collapse-box`,o&&`is-open`),onTransitionEnd:t=>{t.target===t.currentTarget&&t.propertyName===`grid-template-rows`&&(e?l(!0):a(!1))},children:(0,A.jsx)(`div`,{className:x(`min-h-0 min-w-0`,c?`overflow-visible`:`overflow-hidden`),children:(0,A.jsx)(`div`,{className:n,children:r})})}):null}function Tr({icon:e,logo:t,pixel:n,size:r=`md`,className:i}){return(0,A.jsx)(`span`,{"aria-hidden":`true`,className:x(`inline-flex flex-none items-center justify-center rounded-[10px]`,t?`border border-line bg-bg`:n||e&&Nt.has(e)?`theme-side border border-line-soft`:`bg-surface-strong text-ink-2`,r===`lg`?`size-10`:`size-9`,i),children:n?(0,A.jsx)(w,{name:n,px:r===`lg`?24:20}):t?(0,A.jsx)(t,{className:r===`lg`?`size-5`:`size-[18px]`}):e?(0,A.jsx)(E,{icon:e,size:r===`lg`?20:18}):null})}var Er=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function Dr(e,t){let[n,r]=(0,D.useState)(e);return(0,D.useEffect)(()=>{if(e||Er()){r(e);return}let n=setTimeout(()=>r(!1),t);return()=>clearTimeout(n)},[e,t]),e||n}var Or=e=>e&&typeof e==`object`&&!Array.isArray(e)?e:{};function kr(e,t){let n=e;for(let e of t)n=Or(n)[e];return n}var Ar=e=>e===void 0||e===``||typeof e==`number`&&Number.isNaN(e);function jr(e,t,n){let[r,...i]=t;if(r===void 0)return e;let a={...e},o=i.length?jr(Or(e[r]),i,n):n;return Ar(o)||i.length&&Ar(n)&&!Object.keys(Or(o)).length?delete a[r]:a[r]=o,a}function Mr(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[i===t?n:i]=a;return r}function Nr(e,t){if(!(t in e))return t;for(let n=2;;n++)if(!(`${t}-${n}`in e))return`${t}-${n}`}var Pr=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Fr({checked:e,onChange:t,label:n,id:r,disabled:i}){return(0,A.jsx)(`button`,{type:`button`,role:`switch`,id:r,"aria-checked":e,"aria-label":n,disabled:i,onClick:()=>t(!e),className:x(`relative h-5 w-9 flex-none cursor-pointer rounded-full border-0 p-0 transition-colors disabled:cursor-not-allowed disabled:opacity-50`,e?`bg-accent`:`bg-line`),children:(0,A.jsx)(`span`,{"aria-hidden":`true`,className:x(`absolute top-1/2 size-4 -translate-y-1/2 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,.25)] transition-[left]`,e?`left-[18px]`:`left-0.5`)})})}var Ir={record:`screenshot`,desktop:`desktop`,regression:`replay`,impact:`board`,"api-tests":`plug`,migration:`table`,tosca:`network`,quality:`columns`,flaky:`bug`,"run-diff":`code`,"test-debt":`folder`,flags:`feature`,production:`web`,cost:`coins`,explore:`sparkle`,readiness:`shield`,"test-cases":`ticket`,accessibility:`accessibility`,performance:`pulse`,visual:`visual`,data:`container`,"test-data":`flask`,runs:`terminal`,reports:`report`,jobs:`speed`,knowledge:`knowledge-base`,product:`columns`,memory:`architecture`,guardrails:`shield`,skills:`feature`,prompts:`stories`,features:`branch`,"whats-new":`scroll`,help:`wikis`,theme:`theme`,settings:`desktop`,chats:`orchestrator`,agents:`board`,evidence:`flask`,"evidence-runs":`scroll`,"evidence-contracts":`file`,"evidence-review":`ticket`,"evidence-releases":`history`,"evidence-learn":`replay`,"evidence-monitor":`pulse`},Lr={env:`web`,usage:`network`,changes:`code`,outputs:`download`},j=(e,t,n,r,i,a={})=>({id:e,label:t,about:n,path:r,icon:i,...a}),M=(e,t,n,r)=>j(`settings-${e}`,t,n,[`settings`,e],r),N=[{id:`agents`,label:`Agents`,about:`Chat with ForgeQE, and find, make and schedule its agents.`,icon:`agents-hub`,agents:[`orchestrator`,`helper`,`research`,`refine`],areas:[{id:`chat`,label:`Chat`,about:`Ask and delegate in plain words.`,items:[j(`new-chat`,`New chat`,`Start a conversation with any agent`,[],`orchestrator`,{words:`home ask message`}),j(`chats`,`Chat history`,`Every earlier chat`,[`chats`],`chat`,{words:`conversations history`})]},{id:`catalogue`,label:`Built-in agents`,about:`The agents ForgeQE comes with.`,items:[j(`agents`,`All agents`,`Every agent, with favourites on top`,[`agents`],`board`),j(`agents-assisted`,`Advisers`,`Help you decide: review, refine and rate`,[`agents`,`category`,`assisted`],`board`),j(`agents-native`,`Builders`,`Make the work: plans, tests and diagnoses`,[`agents`,`category`,`native`],`board`),j(`agents-agentic`,`Operators`,`Act on their own across many steps`,[`agents`,`category`,`agentic`],`board`)]},{id:`custom`,label:`Custom agents`,about:`Agents your team makes for its own work.`,items:[j(`agents-custom`,`Custom agents`,`Drafts, approved versions and their runs`,[`agents`,`category`,`custom`],`board`),j(`agents-new`,`Make an agent`,`The agent builder, step by step`,[`agents`,`custom`,`new`],`wand`)]},{id:`background`,label:`In the background`,about:`Work that runs on a schedule.`,items:[j(`jobs`,`Jobs and schedules`,`Scheduled runs and their history`,[`jobs`],`speed`,{also:[[`schedules`]],words:`schedule cron nightly`})]}]},{id:`knowledge`,label:`Knowledge`,about:`What the agents know about your product, and the rules they follow.`,icon:`knowledge-base`,agents:[`search`,`knowledge-agent`],areas:[{id:`product`,label:`Product understanding`,about:`Your product as the agents read it.`,items:[j(`knowledge`,`Knowledge`,`Search everything the agents know`,[`knowledge`],`knowledge-base`),j(`product`,`Product landscape`,`The systems and how they connect`,[`product`],`columns`),j(`product-services`,`Services`,`Each repository's services`,[`product`,`services`],`columns`,{also:[[`product`,`systems`],[`product`,`links`]]}),j(`product-code`,`Code map`,`Repository structure`,[`product`,`code`],`code`),j(`product-business`,`Business view`,`Capabilities, journeys, rules and glossary`,[`product`,`business`],`stories`)]},{id:`memory`,label:`Memory`,about:`What the agents learnt from earlier work.`,items:[j(`memory`,`Memory`,`Flows and pages remembered per site and app`,[`memory`],`architecture`)]},{id:`behaviour`,label:`Agent behaviour`,about:`How the agents work in this project.`,items:[j(`skills`,`Skills`,`Your conventions, frameworks and apps`,[`skills`],`feature`),j(`prompts`,`Prompts`,`The instructions each agent starts from`,[`prompts`],`stories`),j(`guardrails`,`Guardrails`,`Rules every chat and schedule follows`,[`guardrails`],`shield`)]}]},{id:`quality`,label:`Quality Engineering`,about:`Design, automate, run and analyse tests across web, API, mobile and desktop.`,icon:`quality-engineering`,agents:[`browser`,`desktop`,`exploration`,`planning`,`persona`,`coding`,`healing`,`migration`,`tosca`,`api`,`api-planning`,`review`],areas:[{id:`design`,label:`Test design`,about:`Decide what to test.`,items:[j(`test-cases`,`Test cases`,`From your test case system`,[`test-cases`],`ticket`),j(`explore`,`Exploratory`,`Charters and sessions that look for bugs`,[`explore`],`sparkle`,{words:`exploratory explore charter session find bugs`})]},{id:`automation`,label:`Automation`,about:`Turn journeys and old suites into tests.`,items:[j(`record`,`Record`,`Record a journey and make it a test`,[`record`],`screenshot`),j(`desktop`,`Desktop apps`,`Explore, record and replay Windows apps`,[`desktop`],`desktop`,{words:`desktop windows thick client workflow replay heal ufo`}),j(`migration`,`Migration`,`Selenium and Cypress suites to Playwright`,[`migration`],`table`,{words:`migration convert selenium cypress suites`}),j(`tosca`,`Tosca`,`Tosca exports to code`,[`tosca`],`network`)]},{id:`execution`,label:`Execution`,about:`Run tests and suites.`,items:[j(`regression`,`Regression packs`,`Build, run and heal a pack`,[`regression`],`replay`),j(`runs`,`Runs`,`Every run, with what it did`,[`runs`],`terminal`,{words:`sessions history chats`})]},{id:`specialised`,label:`Specialised testing`,about:`APIs, and what every page should be.`,items:[j(`api-tests`,`API tests`,`Contracts, scenarios and the workbench`,[`api-tests`],`plug`),j(`quality`,`Quality`,`Accessibility, performance and visual, together`,[`quality`],`columns`,{words:`a11y wcag core web vitals`}),j(`accessibility`,`Accessibility`,`WCAG checks on the pages a run visits`,[`accessibility`],`accessibility`),j(`performance`,`Performance`,`Core Web Vitals of each page`,[`performance`],`pulse`),j(`visual`,`Visual`,`Screenshots against baselines`,[`visual`],`visual`)]},{id:`insights`,label:`Insights`,about:`What the runs tell you.`,items:[j(`reports`,`Execution reports`,`One run in detail`,[`reports`],`report`),j(`reports-project`,`Project report`,`Across all runs`,[`reports`,`project`],`report`),j(`run-diff`,`Run diff`,`Two runs side by side`,[`run-diff`],`code`,{words:`compare runs side by side difference`}),j(`flaky`,`Flaky tests`,`Unstable tests and quarantine`,[`flaky`],`bug`,{words:`flaky quarantine heal unstable intermittent`}),j(`test-debt`,`Test debt`,`Gaps, duplicates and tests that never fail`,[`test-debt`],`folder`,{words:`coverage gaps untested duplicate tests never fail not automated`})]}]},{id:`data`,label:`Data`,about:`Ask your databases questions, check the data and follow it through flows.`,icon:`database`,agents:[`db`],areas:[{id:`databases`,label:`Databases`,about:`Read and understand your data.`,items:[j(`data`,`Data agent`,`Ask for queries, checks and test scripts`,[`data`],`container`,{words:`databases db data flows`}),j(`data-databases`,`Databases`,`Each database and its tables`,[`data`,`databases`],`database`),j(`data-ask`,`Ask`,`Questions about the data in plain words`,[`data`,`ask`],`chat`),j(`data-flows`,`Data flows`,`How data moves between systems`,[`data`,`flows`],`route`)]},{id:`test-data`,label:`Test data`,about:`Data for tests.`,items:[j(`test-data`,`Test data`,`Rows found or made for tests`,[`test-data`],`flask`),j(`test-data-specs`,`Data specs`,`Specs new rows are made from`,[`test-data`,`specs`],`specs`)]}]},{id:`delivery`,label:`Delivery & Operations`,about:`From a change, to a release, to production.`,icon:`rocket`,agents:[`pr-review`,`root-cause`],areas:[{id:`change`,label:`Change`,about:`What a change touches.`,items:[j(`impact`,`Change impact`,`The tests and areas a change reaches`,[`impact`],`board`)]},{id:`release`,label:`Release`,about:`Decide when to ship.`,items:[j(`readiness`,`Release readiness`,`Go or no-go, with the evidence`,[`readiness`],`shield`,{words:`release readiness go no-go sign off verdict`}),j(`flags`,`Feature flags`,`Flag combinations to cover`,[`flags`],`feature`,{words:`feature flags launchdarkly unleash toggles combinations matrix`})]},{id:`production`,label:`Production`,about:`What happens live.`,items:[j(`production`,`Production signals`,`Errors and crashes from your monitoring`,[`production`],`web`,{words:`production errors sentry datadog app insights crashes`})]}]},{id:`assurance`,label:`AI Assurance`,about:`Evaluate, govern and improve AI agents: ForgeQE's and your teams'.`,icon:`ai-assurance`,agents:[`evaluation`,`model-rating`],areas:[{id:`evaluation`,label:`Evaluation`,about:`How the agents did.`,items:[j(`evidence`,`Overview`,`Runs judged and where trust stands`,[`evidence`],`flask`),j(`evidence-runs`,`Agent runs`,`Every run with its verdict`,[`evidence-runs`],`scroll`),j(`evidence-review`,`Review queue`,`Runs waiting for a person`,[`evidence-review`],`ticket`)]},{id:`governance`,label:`Governance`,about:`What the agents must do, and when a version may ship.`,items:[j(`evidence-contracts`,`Contracts`,`Each agent's contract`,[`evidence-contracts`],`file`,{words:`contracts governance`}),j(`evidence-releases`,`Releases`,`Release gates per version`,[`evidence-releases`],`history`)]},{id:`improvement`,label:`Improvement`,about:`Make the agents better over time.`,items:[j(`evidence-learn`,`Learn`,`Causes, and fixes proven on replays`,[`evidence-learn`],`replay`),j(`evidence-monitor`,`Monitor`,`Baselines and trust`,[`evidence-monitor`],`pulse`)]}]},{id:`admin`,label:`Administration`,about:`Settings, arranged in the same areas as the product.`,icon:`desktop`,areas:[{id:`project`,label:`Project`,about:`This project and the places the agents work.`,items:[M(`setup`,`Set up`,`The project folder and this computer`,`folder`),M(`environments`,`Environments`,`Where the agents work, and the apps in each`,`layers`),M(`signins`,`Sign-ins`,`Apps the agents sign in to`,`key`),M(`secrets`,`Secrets`,`Passwords, keys, repository tokens, and vaults to pull them from`,`shield`),M(`appearance`,`Appearance`,`Logo, name and colours`,`palette`),M(`files`,`Settings as text`,`forgeqe.yaml, llms.json and env.yaml as they are`,`file`)]},{id:`ai`,label:`AI`,about:`Models, agents and their tools.`,items:[M(`models`,`Models`,`The models the agents use`,`model`),M(`routing`,`Routing`,`Which model each kind of work gets`,`route`),M(`agents`,`Agents`,`Names, instructions, custom agents and tools`,`board`),M(`mcp`,`MCP servers`,`More tools for the agents`,`server`)]},{id:`connections`,label:`Connections`,about:`Other systems ForgeQE talks to.`,items:[M(`integrations`,`Integrations`,`Test case systems, bugs and browser grids`,`plug`),M(`notifications`,`Notifications`,`Teams channels and email lists`,`bell`),M(`evidence`,`Product sources`,`Repositories, requirements and documents`,`knowledge-base`)]},{id:`quality`,label:`Quality engineering`,about:`How tests are written and run.`,items:[M(`tests`,`Code`,`Where passed runs become tests`,`code`),M(`runs`,`Reports and memory`,`Exports, suites, flaky tests and readiness`,`report`),M(`registry`,`Replays`,`Repeat a passed test without the AI`,`replay`),M(`parallel`,`Parallel execution`,`How much runs at once`,`speed`),M(`browser`,`Browser`,`Where and how the browser runs`,`web`),M(`mobile`,`Mobile`,`Android and iOS apps`,`mobile`),M(`desktop`,`Desktop`,`Windows desktop apps`,`desktop`),M(`containers`,`Containers`,`Services for test runs`,`container`),M(`quality`,`Quality checks`,`Accessibility, performance and visual`,`columns`)]},{id:`data`,label:`Data and operations`,about:`Databases and checks on a schedule.`,items:[M(`databases`,`Databases`,`Databases the agents may read or write`,`database`),M(`monitor`,`Monitor`,`Checks on a schedule, and their alerts`,`pulse`)]},{id:`activity`,label:`Activity`,about:`What happened, and what it cost.`,items:[M(`logs`,`Logs`,`Each chat, run and suite`,`scroll`),M(`audit`,`Audit`,`Who did and changed what`,`history`),j(`cost`,`Cost`,`Spend by model, agent and run`,[`cost`],`coins`,{words:`cost spend tokens models price usage`}),M(`tokenomics`,`Tokenomics`,`Budgets and where the tokens went`,`coins`),M(`generated`,`Generated code`,`How much of it is still in the repository`,`wand`)]},{id:`help`,label:`Help`,about:`About ForgeQE.`,items:[M(`features`,`What's ready`,`What ForgeQE can do here`,`feature`),M(`whats-new`,`What's new`,`What each release added`,`rocket`),M(`about`,`About ForgeQE`,`Version, updates and guides`,`info`),M(`report`,`Report a problem`,`Tell the ForgeQE team`,`bug`)]}]}],P=N.flatMap(e=>e.areas.flatMap(t=>t.items.map(n=>({item:n,category:e,area:t})))),Rr=e=>T(...e.path),zr=e=>T(`browse`,e.id),Br=(e,t)=>T(`browse`,e.id,t.id),Vr=(e,t)=>t.length<=e.length&&t.every((t,n)=>e[n]===t);function Hr(e,t){return e.path.length?Math.max(...[e.path,...e.also||[]].map(e=>Vr(t,e)?e.length:0)):+!t.length}function Ur(e){let t,n=0;for(let r of P){let i=Hr(r.item,e);i>n&&([t,n]=[r,i])}return t}function Wr(e){if(e[0]!==`browse`)return{};let t=N.find(t=>t.id===e[1]);return{category:t,area:t?.areas.find(t=>t.id===e[2])}}var Gr=`forgeqe-pinned`,Kr=`forgeqe-pinned`;function qr(e,t){try{let n=JSON.parse(e||`[]`);if(!Array.isArray(n))return[];let r=new Set(P.map(e=>e.item.id));return[...new Set(n.filter(e=>typeof e==`string`&&r.has(e)))].slice(0,t)}catch{return[]}}var Jr=e=>qr(e,8);function Yr(){let e=()=>{try{return Jr(localStorage.getItem(Gr))}catch{return[]}},[t,n]=(0,D.useState)(e);return(0,D.useEffect)(()=>{let t=()=>n(e());return window.addEventListener(Kr,t),window.addEventListener(`storage`,t),()=>{window.removeEventListener(Kr,t),window.removeEventListener(`storage`,t)}},[]),{pins:t,toggle:e=>{let r=t.includes(e)?t.filter(t=>t!==e):[...t,e].slice(-8);n(r);try{localStorage.setItem(Gr,JSON.stringify(r)),window.dispatchEvent(new Event(Kr))}catch{}}}}var Xr=`forgeqe-recent-pages`,Zr=`forgeqe-recent-pages`,Qr=e=>qr(e,12);function $r(e,t){let n=Ur(t);return!n||!n.item.path.length?e:[n.item.id,...e.filter(e=>e!==n.item.id)].slice(0,12)}function ei(){try{return Qr(localStorage.getItem(Xr))}catch{return[]}}function ti(e){let t=ei(),n=$r(t,e);if(n.join()!==t.join())try{localStorage.setItem(Xr,JSON.stringify(n)),window.dispatchEvent(new Event(Zr))}catch{}}function ni(){let[e,t]=(0,D.useState)(ei);return(0,D.useEffect)(()=>{let e=()=>t(ei());return window.addEventListener(Zr,e),window.addEventListener(`storage`,e),()=>{window.removeEventListener(Zr,e),window.removeEventListener(`storage`,e)}},[]),e}function ri(e,t,n){let r=t=>t.map(t=>P.find(n=>n.item.id===t&&n.category.id===e.id)?.item).filter(e=>!!e);return{pinned:r(t),recent:r(n.filter(e=>!t.includes(e))).slice(0,5)}}var ii=/^[A-Za-z0-9_-]{1,64}$/;function ai(e,t=5){let n=e=>Date.parse(e.lastAt||e.started)||0;return e.filter(e=>typeof e.id==`string`&&ii.test(e.id)).sort((e,t)=>n(t)-n(e)).slice(0,t)}var oi=e=>!!e.waiting||e.state===`ready`&&e.outcome===`needs_input`;function si(e){let[t,n]=(0,D.useState)(null);return(0,D.useEffect)(()=>{let e=!1,t=()=>$t.list().then(t=>!e&&n(ai(t.chats)),()=>!e&&n(e=>e||[]));t();let r=setInterval(t,3e4);return()=>{e=!0,clearInterval(r)}},[e]),t}var ci={good:`pass`,bad:`fail`,same:`neutral`},li={good:`text-pass`,bad:`text-fail`,same:`text-muted`};function ui(e){return e.dir===`same`||e.good===void 0?`same`:e.good?`good`:`bad`}function di({children:e,label:t,className:n}){return(0,A.jsx)(`section`,{"aria-label":t,className:x(`grid grid-cols-[repeat(auto-fit,minmax(min(100%,150px),1fr))] overflow-hidden rounded-[14px] card border`,n),children:e})}function F({label:e,value:t,note:n,icon:r,period:i,change:a,tone:o,big:s,compact:c,className:l}){let u=a&&ui(a),d=a?.dir===`up`?Ge:a?.dir===`down`?Ze:void 0;return(0,A.jsxs)(`div`,{className:x(`-mr-px -mb-px flex min-w-0 flex-col border-r border-b border-line-soft`,c?`gap-0.5 px-3 py-2.5`:`gap-1 px-5 py-4`,l),children:[(0,A.jsxs)(`span`,{className:x(`flex min-w-0 items-center gap-1.5 font-medium text-ink`,c?`text-[13px]`:`text-[14px]`),children:[r&&(0,A.jsx)(E,{icon:r,size:14,className:`flex-none text-muted`}),(0,A.jsx)(`span`,{className:`min-w-0`,children:e})]}),i&&(0,A.jsx)(`span`,{className:`text-[13px] text-muted`,children:i}),(0,A.jsxs)(`span`,{className:x(`flex flex-wrap items-center gap-x-2.5 gap-y-1`,c?`mt-0`:i?`mt-2`:`mt-1`),children:[(0,A.jsx)(`span`,{className:x(`leading-tight font-semibold tracking-[-0.02em] tabular-nums`,s?`text-[26px]`:c?`text-[20px]`:`text-[24px]`,o),children:t}),a&&u&&(0,A.jsx)(`span`,{"aria-hidden":a.against?!0:void 0,className:`inline-flex`,children:(0,A.jsxs)(Wt,{tone:ci[u],icon:!1,className:`tabular-nums`,children:[d&&(0,A.jsx)(d,{size:12,strokeWidth:2.5,"aria-hidden":`true`,className:`flex-none`}),a.text]})})]}),(n||a?.against)&&(0,A.jsx)(`span`,{className:x(`text-muted tabular-nums`,c?`truncate text-[12px]`:`text-[13px]`),children:a?.against&&u?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`span`,{className:li[u],children:a.amount??a.text}),` `,a.against,n?(0,A.jsxs)(A.Fragment,{children:[` · `,n]}):null]}):n})]})}var fi=`px-3 py-1.5 text-left text-[11.5px] font-medium whitespace-nowrap text-muted`,pi=`px-3 py-1.5 text-right text-[11.5px] font-medium whitespace-nowrap text-muted`,mi=`border-t border-line-soft align-top`,hi=`cursor-pointer border-t border-line-soft align-top hover:bg-surface-muted`,gi=`px-3 py-2`,_i=`px-3 py-2 text-right whitespace-nowrap tabular-nums`,vi=new Set([`className`,`style`,`key`,`ref`,`id`,`role`,`type`,`colSpan`,`rowSpan`,`scope`,`data-tip-side`]);function yi(e,t=0){if(e==null||typeof e==`boolean`||typeof e==`function`||t>12)return``;if(typeof e==`string`||typeof e==`number`)return String(e);if(Array.isArray(e))return e.map(e=>yi(e,t+1)).join(` `);if((0,D.isValidElement)(e))return yi(e.props,t+1);if(typeof e==`object`){let n=[];for(let[r,i]of Object.entries(e))vi.has(r)||r.startsWith(`on`)||r.startsWith(`aria-`)||n.push(yi(i,t+1));return n.join(` `)}return``}function bi({label:e,head:t,children:n,empty:r=`None.`,size:i=25,resetKey:a,fixed:o=!1,minWidth:s,className:c,search:l=!0,placeholder:u,tools:d,height:f}){let p=D.Children.toArray(n),[m,h]=(0,D.useState)(``),g=m.toLowerCase().split(/\s+/).filter(Boolean),_=(0,D.useMemo)(()=>l?p.map(e=>yi(e).toLowerCase()):[],[n,l]),v=g.length?p.filter((e,t)=>g.every(e=>_[t].includes(e))):p,[y,ee]=(0,D.useState)(0);(0,D.useEffect)(()=>ee(0),[a,m]);let b=(0,D.useRef)(null);(0,D.useEffect)(()=>{f&&b.current&&(b.current.scrollTop=0)},[y,m,a,f]);let te=Math.max(1,Math.ceil(v.length/i)),ne=Math.min(y,te-1),re=v.slice(ne*i,ne*i+i),ie=D.Children.toArray((0,D.isValidElement)(t)&&t.type===D.Fragment?t.props.children:t).length;return(0,A.jsxs)(`div`,{className:x(`overflow-hidden border-t border-line`,c),children:[(l||d)&&(0,A.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-line-soft px-2.5 py-2`,children:[l&&(0,A.jsxs)(`label`,{className:`relative flex min-w-0 w-full max-w-[320px] flex-[0_1_320px] items-center`,children:[(0,A.jsx)(Se,{size:14,"aria-hidden":`true`,className:`pointer-events-none absolute left-2.5 text-muted`}),(0,A.jsxs)(`span`,{className:`sr-only`,children:[`Find in `,e.toLowerCase()]}),(0,A.jsx)(Ht,{size:`sm`,type:`search`,value:m,spellCheck:!1,placeholder:u??`Find in ${e.toLowerCase()}`,onChange:e=>h(e.target.value),className:`pl-8`})]}),d,g.length>0&&(0,A.jsxs)(`span`,{className:`text-[12px] whitespace-nowrap text-muted`,role:`status`,children:[v.length,` of `,p.length]})]}),(0,A.jsx)(`div`,{ref:b,className:x(`relative overflow-x-auto`,f&&`overflow-y-auto overscroll-contain`),style:f?{height:f}:void 0,children:(0,A.jsxs)(`table`,{"aria-label":e,className:x(`w-full border-collapse text-[13px]`,o&&`table-fixed`),style:s?{minWidth:s}:void 0,children:[(0,A.jsx)(`thead`,{children:(0,A.jsx)(`tr`,{className:x(`bg-surface-strong text-left text-[11.5px] text-muted`,f&&`sticky top-0 z-[1]`),children:t})}),(0,A.jsxs)(`tbody`,{children:[re,!v.length&&(0,A.jsx)(`tr`,{children:(0,A.jsx)(`td`,{colSpan:Math.max(1,ie),className:`px-3 py-4 text-center text-muted`,children:g.length&&p.length?`Nothing matches.`:r})})]})]})}),v.length>0&&(0,A.jsx)(Xt,{page:ne,size:i,total:v.length,onPage:ee,label:`Pages of ${e.toLowerCase()}`})]})}var xi=(0,D.createContext)({pending:{},set:()=>{},saved:new Set,vars:{},store:`the credential store`}),Si=()=>(0,D.useContext)(xi);function Ci(e){return/[\\/]/.test(e)?`ForgeQE's private credentials file (readable only by you)`:e}var wi=/^[A-Za-z_][A-Za-z0-9_]*$/;function Ti(e,t){return t in e.pending?e.pending[t]===null?`removing`:`pending`:e.saved.has(t)?`saved`:e.vars[t]?`environment`:`missing`}var Ei={pending:`Not saved yet`,removing:`Removed when you save`,saved:`Saved`,environment:`Set in the environment`,missing:`Not set`},Di=(e,t)=>[`pending`,`saved`,`environment`].includes(Ti(e,t));function Oi({name:e}){let t=Si();if(!e)return null;if(!wi.test(e))return(0,A.jsx)(`span`,{className:`text-[13px] text-fail`,children:`Not a variable name`});let n=Ti(t,e);return(0,A.jsx)(`span`,{className:x(`text-[13px]`,n===`saved`||n===`environment`?`text-pass`:n===`missing`?`text-muted`:`text-accent-fg`),children:Ei[n]})}var ki=/user|email|login|client_id|account/i;function Ai({id:e,name:t,field:n,onRename:r,compact:i}){let o=Si(),s=(0,D.useId)(),c=e||s,[l,u]=(0,D.useState)(!1),d=Ti(o,t),f=typeof o.pending[t]==`string`?o.pending[t]:``,p=ki.test(n)||ki.test(t);return(0,A.jsxs)(`div`,{className:`flex w-full min-w-0 flex-col gap-1.5`,children:[(0,A.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,A.jsx)(Ht,{id:c,type:p?`text`:`password`,autoComplete:`off`,spellCheck:!1,value:f,disabled:!wi.test(t),placeholder:d===`saved`?`Saved. Type a new value to replace it`:d===`environment`?`Set in the environment. Type a value to save one`:p?`Type it once`:`Paste it once`,onChange:e=>o.set(t,e.target.value||void 0)}),d===`saved`&&(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,onClick:()=>o.set(t,null),"aria-label":`Remove the saved value of ${t}`,"data-tip":`Remove the saved value of ${t}`,children:(0,A.jsx)(at,{"aria-hidden":`true`})}),d===`removing`&&(0,A.jsxs)(S,{size:`sm`,"data-tip":`Keep the saved value of ${t}`,onClick:()=>o.set(t,void 0),children:[(0,A.jsx)(a,{"aria-hidden":`true`}),`Keep`]})]}),!i&&(0,A.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] text-muted`,children:[(0,A.jsx)(Oi,{name:t}),(0,A.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),l&&r?(0,A.jsx)(Ht,{size:`sm`,"aria-label":`Variable name`,autoFocus:!0,defaultValue:t,spellCheck:!1,onBlur:e=>{let n=e.target.value.trim();n&&wi.test(n)&&n!==t&&r(n),u(!1)},onKeyDown:e=>e.key===`Enter`&&e.target.blur(),className:`max-w-[260px] font-mono`}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`span`,{children:[`Kept as `,(0,A.jsx)(`span`,{className:`font-mono text-[12px]`,children:t})]}),r&&(0,A.jsxs)(`button`,{type:`button`,onClick:()=>u(!0),"data-tip":`Change the variable's name`,className:`inline-flex min-h-8 cursor-pointer items-center gap-1 border-0 bg-transparent p-0 text-[13px] font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-3.5`,children:[(0,A.jsx)(ve,{"aria-hidden":`true`}),`Rename`]})]})]})]})}function ji({name:e}){return(0,A.jsx)(Oi,{name:e})}function Mi({id:e,name:t,field:n,named:r,onName:i}){let a=Si();return(0,A.jsx)(Ni,{onFirstValue:()=>{!r&&t&&i(t)},secrets:a,children:(0,A.jsx)(Ai,{id:e,name:t,field:n,onRename:i})})}function Ni({secrets:e,onFirstValue:t,children:n}){return(0,A.jsx)(xi.Provider,{value:{...e,set:(n,r)=>{r&&t(),e.set(n,r)}},children:n})}function Pi({label:e,help:t,htmlFor:n,children:r,className:i,stacked:a,yamlKey:o}){let s=o?(0,A.jsx)(`code`,{className:`font-mono text-[11.5px] text-muted [overflow-wrap:anywhere]`,children:o}):null;return a?(0,A.jsxs)(`div`,{className:x(`flex flex-col gap-3 py-4`,i),children:[(0,A.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[n?(0,A.jsx)(`label`,{htmlFor:n,className:`text-[14px] leading-snug font-medium text-ink`,children:e}):(0,A.jsx)(`span`,{className:`text-[14px] leading-snug font-medium text-ink`,children:e}),t&&(0,A.jsx)(`span`,{className:`text-[13px] leading-relaxed text-ink-2`,children:t}),s]}),(0,A.jsx)(`div`,{className:`[&>*]:max-w-none`,children:r})]}):(0,A.jsxs)(`div`,{className:x(`flex min-h-16 flex-wrap items-center gap-x-10 gap-y-3 border-t border-line-soft py-4`,i),children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-1`,children:[n?(0,A.jsx)(`label`,{htmlFor:n,className:`text-[14px] leading-snug font-medium text-ink`,children:e}):(0,A.jsx)(`span`,{className:`text-[14px] leading-snug font-medium text-ink`,children:e}),t&&(0,A.jsx)(`span`,{className:`max-w-[62ch] text-[13px] leading-relaxed text-ink-2`,children:t}),s]}),r!=null&&r!==!1&&(0,A.jsx)(`div`,{className:`flex w-full flex-wrap items-center gap-2 sm:w-[340px] sm:flex-none sm:justify-end`,children:r})]})}var Fi=`flex w-full flex-wrap items-center gap-2 sm:w-[340px] sm:flex-none sm:justify-end`,Ii={"Where runs happen":lt,"The browser window":ct,"Limits and checks":Ve,"Remote browser, set here":xe,"Where tests go":c,"How hard it tries":le,"Help it gets":Oe,Reports:nt,"Memory and replays":je,Suites:t,"Flaky tests":te,"Release readiness":fe,"Regression packs in a pipeline":ht,"Defect analysis":mt,Accessibility:dt,"Performance and visual changes":h,"API tests":d,"The product":We,"Instructions and knowledge":rt,Capabilities:Je,"Project report":me,"Report datasets":tt,"Running in parallel":v,Driver:Ee,Appium:De,"Devices on this computer":y,"TestMu AI devices":xe,"BrowserStack devices":xe,"Browser devices":st,"Appium on this computer":De,Maestro:ut,"Windows desktop apps":it,Runtime:ot,"Tests in a container":xt,"The coding agents' workspace":ee,"Browser in a container":qe,"How skills are used":ce,Budgets:s,"Project folder":Fe,"ForgeQE in this folder":ge,"This computer":y,"A model":ke,"Models file":Re,"Default model":ke,"Product knowledge graph":Me,Repositories:c,"Documents and links":ne,"Search service":rt,Documents:ne,"The product and its knowledge":We,"Building the graph":Je,"The team's knowledge":yt,"Agent names":Le,"Custom agents":Xe,"Sign-ins":be,"Recent runs":_,"Saved runs":le,"Test data":tt,"Areas of work":oe,"Which model a call gets":oe,Alerts:pt,"When to alert":Qe,Apps:st,"By kind of run":re,"By run, newest first":_,Guides:rt,"Last 30 days":Ne,"Latest problems":Ue,"Links in alerts":Ae,"Model calls":Be,Plans:ft,"Recent requests":Ce,"Results and bugs":pe,"Runs that used the most":gt,"Send a test":ye,Services:Te,"Tools used":Je,"What runs":u,"Check the agent's domain knowledge":Ie,"Test cases and bugs":St,"Browser grids":xe,Notifications:Ye,"Other tools":ze},Li=e=>typeof e==`string`?e.trim().replace(/^\d+\.\s*/,``):``;function I({children:e,help:t,first:n,icon:r}){let i=r??Ii[Li(e)];return(0,A.jsxs)(`div`,{className:x(`mb-3 flex flex-col gap-1.5`,n?`mt-0`:`mt-12`),children:[(0,A.jsxs)(`h3`,{className:`m-0 flex items-center gap-2.5 text-[16px] leading-snug font-semibold text-ink`,children:[i&&(0,A.jsx)(E,{icon:i,size:18,className:`flex-none text-muted`}),e]}),t&&(0,A.jsx)(`p`,{className:x(`m-0 max-w-[64ch] text-[13.5px] leading-relaxed text-ink-2`,i&&`pl-[28px]`),children:t})]})}var Ri=e=>Array.isArray(e)?e.map(String).join(`, `):typeof e==`string`?e:``,zi=e=>e.split(`,`).map(e=>e.trim()).filter(Boolean);function Bi({id:e,value:t,onChange:n,placeholder:r,mono:i}){let[a,o]=(0,D.useState)(Ri(t)),[s,c]=(0,D.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(Ri(t))),(0,A.jsx)(Ht,{id:e,value:a,placeholder:r,className:x(i&&`font-mono text-[13px]`),onChange:e=>{o(e.target.value);let t=zi(e.target.value);c(t.length?t:void 0),n(t.length?t:void 0)}})}function Vi({def:e,edit:t,base:n,stacked:r}){let i=(0,D.useId)(),a=e.key?[...n,...e.key.split(`.`)]:n,o=kr(t.value,a),s=e=>t.set(jr(t.value,a,e)),c=`w-full`,l=t.file?a.join(`.`):void 0,u;switch(e.type){case`switch`:{let t=o===void 0?!!e.default:o===!0||o===`true`||o===`on`;return(0,A.jsx)(Pi,{label:e.label,help:e.help,yamlKey:l,children:(0,A.jsx)(Fr,{checked:t,onChange:s,label:e.label})})}case`select`:u=(0,A.jsxs)(Zt,{id:i,value:String(o===void 0?e.default??``:o),onChange:e=>s(e.target.value!==`false`&&e.target.value),className:`w-full`,children:[e.default===void 0&&(0,A.jsx)(`option`,{value:``,children:e.emptyLabel||`Not set`}),e.options.map(e=>(0,A.jsx)(`option`,{value:e.value,children:e.label},e.value))]});break;case`number`:u=(0,A.jsx)(Ht,{id:i,type:`number`,inputMode:`numeric`,value:o==null?``:String(o),placeholder:e.default===void 0?e.placeholder:String(e.default),onChange:e=>s(e.target.value===``?void 0:Number(e.target.value)),className:`w-full`});break;case`list`:u=(0,A.jsx)(`div`,{className:c,children:(0,A.jsx)(Bi,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`kv`:u=(0,A.jsx)(`div`,{className:c,children:(0,A.jsx)(Hi,{id:i,value:o,onChange:s,placeholder:e.placeholder})});break;case`textarea`:u=(0,A.jsx)(en,{id:i,rows:3,value:o===void 0?``:String(o),placeholder:e.placeholder,onChange:e=>s(e.target.value),className:c});break;case`var`:{let t=String(o??e.default??e.placeholder??``);return u=(0,A.jsx)(`div`,{className:c,children:(0,A.jsx)(Mi,{id:i,name:t,field:e.key,named:o!==void 0||e.default!==void 0,onName:e=>s(e)})}),(0,A.jsx)(Pi,{label:e.label.replace(/ variable$/,``),help:e.help,htmlFor:i,stacked:r,yamlKey:l,children:u})}default:u=(0,A.jsx)(Ht,{id:i,type:e.type===`url`?`url`:`text`,value:o===void 0?``:String(o),placeholder:e.placeholder??(e.default===void 0?void 0:String(e.default)),spellCheck:e.type===`text`,onChange:e=>s(e.target.value),className:x(c,e.type===`path`&&`font-mono text-[13px]`)})}return(0,A.jsx)(Pi,{label:e.label,help:e.help,htmlFor:i,stacked:r,yamlKey:l,children:u})}function Hi({id:e,value:t,onChange:n,placeholder:r}){let i=e=>Object.entries(e&&typeof e==`object`&&!Array.isArray(e)?e:{}).map(([e,t])=>`${e} = ${typeof t==`object`?JSON.stringify(t):String(t)}`).join(`
|
|
3
3
|
`),[a,o]=(0,D.useState)(i(t)),[s,c]=(0,D.useState)(t);return JSON.stringify(s)!==JSON.stringify(t)&&(c(t),o(i(t))),(0,A.jsx)(en,{id:e,rows:3,value:a,spellCheck:!1,placeholder:r??`NAME = value`,className:`font-mono`,onChange:e=>{o(e.target.value);let t={};for(let n of e.target.value.split(`
|
|
4
|
-
`)){let e=n.indexOf(`=`),r=(e<0?n:n.slice(0,e)).trim();if(!r)continue;let i=e<0?``:n.slice(e+1).trim();t[r]=/^-?\d+(\.\d+)?$/.test(i)?Number(i):i===`true`||i!==`false`&&i}let r=Object.keys(t).length?t:void 0;c(r),n(r)}})}function Ui({defs:e,edit:t,base:n,stacked:r}){let i=kr(t.value,n),a=i&&typeof i==`object`&&!Array.isArray(i)?i:{};return(0,A.jsx)(A.Fragment,{children:e.filter(e=>!e.when||e.when(a)).map(e=>(0,A.jsx)(Vi,{def:e,edit:t,base:n,stacked:r},e.key))})}function Wi({title:e,meta:t,state:n,open:r,onToggle:i,lead:a,actions:o,children:s,expandable:c}){let l=(0,D.useId)();return(0,A.jsxs)(`div`,{className:`border-t border-line-soft`,children:[(0,A.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 py-3`,children:[a,c===!1?(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,A.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}):(0,A.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":l,onClick:i,className:`flex min-w-0 flex-[1_1_260px] cursor-pointer items-center gap-3 rounded-[10px] border-0 bg-transparent p-0 text-left text-ink`,children:[(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,A.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}),(0,A.jsx)(_e,{size:18,"aria-hidden":`true`,className:x(`flex-none text-muted transition-transform`,r&&`rotate-180`)})]}),n,o]}),c!==!1&&(0,A.jsx)(wr,{open:r,id:l,children:(0,A.jsx)(`div`,{className:`mb-4 border-l-2 border-line-soft pb-2 pl-4 sm:pl-5 [&>*:first-child]:border-t-0`,children:s})})]})}function Gi(e){let[t,n]=(0,D.useState)(null),[r,i]=(0,D.useState)(``),a=(0,D.useCallback)(()=>{i(``),e().then(n,e=>i(e.message))},[e]);return(0,D.useEffect)(a,[a]),{data:t,error:r,reload:a}}function Ki({error:e,reload:t}){return e?(0,A.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] card border p-5`,children:[(0,A.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-ink-2`,children:e}),(0,A.jsxs)(S,{size:`sm`,onClick:t,children:[(0,A.jsx)(g,{"aria-hidden":`true`}),`Retry`]})]}):(0,A.jsx)(`p`,{role:`status`,className:`m-0 py-3 text-sm text-muted`,children:`Loading…`})}function L({children:e}){return(0,A.jsx)(Yt,{className:`py-4`,children:e})}function R(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}var z=null;function qi(e){z=e}function B(e,t){if(!t)return`—`;let n=z?.to,r=z?.perEur?.[t],i=n?z?.perEur?.[n]:void 0,[a,o]=n&&n!==t&&r&&i?[e/r*i,n]:[e,t];try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:o,maximumFractionDigits:a<1?3:2}).format(a)}catch{return`${a.toFixed(2)} ${o}`}}function Ji(e){if(!z?.perEur||!e||z.to===e||!z.perEur[e])return``;let t=B(1,e);return`Shown in ${z.to}, converted from ${e} at the European Central Bank's rate of ${z.date}: ${new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).format(1)} = ${t}.`}var V=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})},Yi=e=>e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} bytes`;function H({head:e,children:t,label:n}){return(0,A.jsx)(bi,{label:n,head:e.map((e,t)=>(0,A.jsx)(`th`,{scope:`col`,className:t>0?pi:fi,children:e},e||t)),children:t})}function U({cells:e}){return(0,A.jsx)(`tr`,{className:`border-t border-line-soft`,children:e.map((e,t)=>(0,A.jsx)(`td`,{className:x(`px-3 py-2 align-top`,t>0?`text-right whitespace-nowrap tabular-nums`:`min-w-[200px]`),children:e},t))})}var Xi={title:`How skills are used`,base:[`skills`],fields:[{key:`enabled`,label:`Use skills`,type:`switch`,default:!0},{key:`external`,label:`Also read Claude and agent skills`,help:`~/.claude/skills, ~/.agents/skills, and the repository's own.`,type:`switch`,default:!1},{key:`dirs`,label:`More skill folders`,help:`Comma separated. They win over the others.`,type:`list`,placeholder:`../shared-skills`},{key:`browser_max_chars`,label:`Skill text per browser run`,help:`Characters.`,type:`number`,default:6e3}]},Zi={"no match":`not run before`,"not a rerun":`not run before`,"not a recorded goal":`not run before`,"no recorded run matches":`not run before`,"its last run did not pass":`its last run failed`,"marked stale":`its saved steps are out of date`,"more than one recorded start page for this goal":`saved from more than one start page`};function Qi(e,t){return e===`tier0`?t===`shadow`?`Test mode: AI ran it, could have replayed`:`Replayed for free`:`AI: ${Zi[e]||e}`}function $i({edit:e}){let{data:t,error:n,reload:r}=Gi(C.registry),[i,a]=(0,D.useState)(!1),o=String(kr(e.value,[`registry`,`mode`])??`on`);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pi,{label:`Replay passed runs for free`,help:o===`shadow`?`In test mode now: ForgeQE only notes what it would have replayed, and the AI runs everything. Turn it on to use replays.`:`If the page changed, the AI takes over.`,yamlKey:e.file?`registry.mode`:void 0,children:(0,A.jsx)(Fr,{checked:o===`on`,onChange:t=>e.set(jr(e.value,[`registry`,`mode`],t?`on`:`off`)),label:`Replay passed runs for free`})}),t?!t.exists||t.plans.length===0?(0,A.jsx)(L,{children:`Nothing to replay yet. When a run passes, ForgeQE saves its steps, and running it again is free.`}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(di,{label:`Replays`,className:`mt-4`,children:[(0,A.jsx)(F,{icon:le,label:`Free reruns`,value:String(t.replayed),note:`of ${Vt(t.total,`run`)}`}),(0,A.jsx)(F,{icon:m,label:`Tokens saved`,value:R(t.tokensSaved),note:`${Vt(t.plans.length,`passed run`)} ready to replay`})]}),(0,A.jsxs)(`button`,{type:`button`,"aria-expanded":i,"aria-controls":`replay-details`,onClick:()=>a(!i),"data-tip":i?`Hide details`:`Show details`,className:`mt-2 inline-flex min-h-10 cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[i?(0,A.jsx)(de,{"aria-hidden":`true`}):(0,A.jsx)(_e,{"aria-hidden":`true`}),i?`Less`:`Details`]}),(0,A.jsxs)(wr,{open:i,id:`replay-details`,children:[(0,A.jsx)(I,{first:!0,children:`Saved runs`}),(0,A.jsx)(H,{label:`Saved runs`,head:[`Goal`,`Passed`,`Failed`,`Tokens the first time`,`Last used`],children:t.plans.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`line-clamp-2`,children:e.goal}),e.stale&&(0,A.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Out of date: the AI runs it next time`})]}),e.successes,e.failures,e.firstTokens?R(e.firstTokens):`—`,V(e.lastAt)]},e.id))}),(0,A.jsx)(I,{children:`Recent runs`}),t.requests.length===0?(0,A.jsx)(L,{children:`No runs yet.`}):(0,A.jsx)(H,{label:`Recent runs`,head:[`Request`,`How it ran`,`Result`,`Tokens`,`When`],children:t.requests.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsx)(`span`,{className:`line-clamp-2`,children:e.request||e.planGoal||e.id}),Qi(e.decision,e.mode),e.outcome||`—`,R(e.tokens),V(e.startedAt)]},e.id))})]})]}):(0,A.jsx)(Ki,{error:n,reload:r})]})}function ea(){let{data:e,error:t,reload:r}=Gi(C.logs),[a,o]=(0,D.useState)(null),[s,c]=(0,D.useState)(``);return e?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Kept in `,(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.dir}),`. Secrets are replaced with their names before a log is shown.`]}),s&&(0,A.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:s}),e.logs.length===0?(0,A.jsx)(L,{children:`No session logs yet. ForgeQE writes one for each chat, run and suite.`}):e.logs.map(e=>(0,A.jsxs)(`div`,{className:`flex min-h-[60px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-2`,children:[(0,A.jsx)(Tr,{icon:i}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-mono text-[13px] break-all`,children:e.name}),(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.modified),`, `,Yi(e.size)]})]}),(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,"aria-label":`Open ${e.name}`,"data-tip":`Open ${e.name}`,onClick:()=>{c(``),C.log(e.name).then(o,e=>c(e.message))},children:(0,A.jsx)(i,{"aria-hidden":`true`})})]},e.name)),(0,A.jsx)(Cr,{wide:!0,open:!!a,onClose:()=>o(null),title:a?.name||``,description:a?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,A.jsxs)(S,{onClick:()=>o(null),children:[(0,A.jsx)(n,{"aria-hidden":`true`}),`Close`]}),children:a&&(0,A.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap break-all`,children:a.text})})]}):(0,A.jsx)(Ki,{error:t,reload:r})}var ta={error:`Error`,tool:`Tool call failed`,run:`Run failed`,engine:`Browser engine stopped`,agent:`Agent error`,model:`Model call failed`},na={chat:`Chat`,start:`Shell`,run:`Run`,suite:`Suite`,code:`Write tests`,heal:`Heal`,monitor:`Monitor`,mcp:`MCP`,explore:`Explore`};function ra(){let[e,t]=(0,D.useState)(null),[r,i]=(0,D.useState)(``);return{show:e=>{i(``),C.log(e).then(t,e=>i(e.message))},error:r,sheet:(0,A.jsx)(Cr,{wide:!0,open:!!e,onClose:()=>t(null),title:e?.name||``,description:e?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,A.jsxs)(S,{onClick:()=>t(null),children:[(0,A.jsx)(n,{"aria-hidden":`true`}),`Close`]}),children:e&&(0,A.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed break-all whitespace-pre-wrap`,children:e.text})})}}function ia({entries:e}){let[t,n]=(0,D.useState)(-1);return e.length?(0,A.jsx)(A.Fragment,{children:e.map((e,r)=>(0,A.jsx)(Wi,{lead:(0,A.jsx)(Tr,{icon:_}),title:`${e.action}: ${e.file}`,meta:`${V(e.at)}, ${e.user} on ${e.machine}, ${e.changes.length} change${e.changes.length===1?``:`s`}`,open:t===r,onToggle:()=>n(t===r?-1:r),children:(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0 py-3`,children:e.changes.map((e,t)=>(0,A.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-sm`,children:[(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.key}),(0,A.jsx)(`span`,{className:`text-muted`,children:e.before===void 0?(0,A.jsxs)(A.Fragment,{children:[`added `,(0,A.jsx)(`span`,{className:`text-ink`,children:e.after})]}):e.after===void 0?(0,A.jsxs)(A.Fragment,{children:[`removed `,(0,A.jsx)(`span`,{className:`text-ink line-through`,children:e.before})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`span`,{className:`text-ink line-through`,children:e.before}),` → `,(0,A.jsx)(`span`,{className:`text-ink`,children:e.after})]})})]},t))})},r))}):(0,A.jsx)(L,{children:`No changes made in Settings yet.`})}function aa({tabs:e,current:t,onPick:n,label:r}){return(0,A.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`mb-5 flex flex-wrap gap-x-5 border-b border-line-soft`,children:e.map((r,i)=>(0,A.jsx)(`button`,{id:`tab-${r.id}`,type:`button`,role:`tab`,"aria-selected":t===r.id,"aria-controls":`panel-${r.id}`,tabIndex:t===r.id?0:-1,onClick:()=>n(r.id),onKeyDown:t=>{let r=t.key===`ArrowRight`?e[(i+1)%e.length]:t.key===`ArrowLeft`?e[(i-1+e.length)%e.length]:void 0;r&&(n(r.id),document.getElementById(`tab-${r.id}`)?.focus())},className:x(`-mb-px min-h-11 cursor-pointer border-0 border-b-2 bg-transparent px-0.5 text-sm font-medium`,t===r.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:r.label},r.id))})}function oa(){let{data:e,error:t,reload:n}=Gi(C.audit),[r,a]=(0,D.useState)(`summary`),o=ra();if(!e)return(0,A.jsx)(Ki,{error:t,reload:n});let s=e.summary,c=s.totals,l=e=>e?`${e} failed`:`None failed`;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:`The last 30 days, from the session logs on this machine and its usage ledger. Model calls count every project on this machine.`}),(0,A.jsx)(aa,{label:`Audit`,current:r,onPick:a,tabs:[{id:`summary`,label:`Summary`},{id:`problems`,label:`Problems (${s.problems.length})`},{id:`sessions`,label:`Sessions (${s.sessions.length})`},{id:`changes`,label:`Settings changes (${e.entries.length})`}]}),o.error&&(0,A.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:o.error}),(0,A.jsxs)(`div`,{id:`panel-${r}`,role:`tabpanel`,"aria-labelledby":`tab-${r}`,children:[r===`summary`&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(di,{label:`Activity summary`,children:[(0,A.jsx)(F,{icon:Be,label:`Sessions`,value:String(c.sessions),note:c.replays?`${c.replays} request${c.replays===1?``:`s`} replayed without the agent`:void 0}),(0,A.jsx)(F,{icon:Je,label:`Tool calls`,value:String(c.toolCalls),note:l(c.toolErrors)}),(0,A.jsx)(F,{icon:u,label:`Runs`,value:String(c.runs),note:l(c.runsFailed)}),(0,A.jsx)(F,{icon:ke,label:`Model calls`,value:String(c.modelCalls),note:l(c.modelErrors)}),(0,A.jsx)(F,{icon:Ue,label:`Errors`,value:String(c.errors),note:c.escalations?`${c.escalations} switch${c.escalations===1?``:`es`} to a stronger model`:void 0})]}),s.problems.length>0&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I,{children:`Latest problems`}),(0,A.jsx)(sa,{problems:s.problems.slice(0,5),onLog:o.show}),s.problems.length>5&&(0,A.jsxs)(`button`,{type:`button`,onClick:()=>a(`problems`),"data-tip":`All ${s.problems.length} problems`,className:`mt-3 inline-flex min-h-10 cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[(0,A.jsx)(et,{"aria-hidden":`true`}),`All (`,s.problems.length,`)`]})]}),(0,A.jsx)(I,{children:`Tools used`}),s.tools.length===0?(0,A.jsx)(L,{children:`No tool calls logged in the last 30 days.`}):(0,A.jsx)(H,{label:`Tools used`,head:[`Tool`,`Calls`,`Failed`,`Average time`],children:s.tools.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.name}),e.calls,e.errors?(0,A.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,e.calls?`${(e.ms/e.calls/1e3).toFixed(1)} s`:`—`]},e.name))}),(0,A.jsx)(I,{children:`Model calls`}),s.models.length===0?(0,A.jsx)(L,{children:`No model calls in the usage ledger in the last 30 days.`}):(0,A.jsx)(H,{label:`Model calls`,head:[`Model`,`Calls`,`Failed`,`Tokens`],children:s.models.map(e=>(0,A.jsx)(U,{cells:[e.model,e.calls,e.errors?(0,A.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,R(e.tokens)]},e.model))})]}),r===`problems`&&(s.problems.length?(0,A.jsx)(sa,{problems:s.problems,onLog:o.show}):(0,A.jsx)(L,{children:`Nothing failed in the last 30 days.`})),r===`sessions`&&(s.sessions.length?(0,A.jsx)(H,{label:`Sessions`,head:[`Session`,`Tool calls`,`Runs`,`Errors`,`Tokens`,``],children:s.sessions.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:na[e.command]||e.command}),(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.started),e.model?`, ${e.model}`:``]})]}),e.toolErrors?`${e.tools} (${e.toolErrors} failed)`:e.tools,e.runsFailed?`${e.runs} (${e.runsFailed} failed)`:e.runs,e.errors?(0,A.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,R(e.tokens),(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log of the ${na[e.command]||e.command} session at ${V(e.started)}`,"data-tip":`Open the log of the ${na[e.command]||e.command} session at ${V(e.started)}`,onClick:()=>o.show(e.log),children:(0,A.jsx)(i,{"aria-hidden":`true`})})]},e.log))}):(0,A.jsx)(L,{children:`No sessions logged in the last 30 days.`})),r===`changes`&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every change made in Settings, kept in `,(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.file}),`. Changes made to the files by hand are not here.`]}),(0,A.jsx)(ia,{entries:e.entries})]})]}),o.sheet]})}function sa({problems:e,onLog:t}){return(0,A.jsx)(A.Fragment,{children:e.map((e,n)=>(0,A.jsxs)(`div`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,A.jsx)(Tr,{icon:e.kind===`run`||e.kind===`tool`?ae:Ue,className:`bg-fail-soft text-fail`}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:ta[e.kind]}),(0,A.jsx)(`span`,{className:`text-sm break-words text-ink-2`,children:e.text}),(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.at),`, `,na[e.command]||e.command]})]}),e.log&&(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log for: ${e.text.slice(0,60)}`,"data-tip":`Open the log for: ${e.text.slice(0,60)}`,onClick:()=>t(e.log),children:(0,A.jsx)(i,{"aria-hidden":`true`})})]},n))})}var ca={title:`Budgets`,help:`Money in the model's price currency, or GitHub Copilot premium requests. They only warn, at 80, 90 and 100 percent, and never stop a run. Day and month count every ForgeQE process on this machine.`,base:[`budget`],fields:[{key:`run`,label:`Per browser run`,type:`number`},{key:`day`,label:`Per day`,type:`number`},{key:`month`,label:`Per month`,type:`number`},{key:`currency`,label:`Currency`,type:`text`,placeholder:`USD`},{key:`premium_requests.run`,label:`Premium requests per browser run`,help:`GitHub Copilot: each call uses the model's multiplier, 0 for a model included in your plan.`,type:`number`},{key:`premium_requests.day`,label:`Premium requests per day`,type:`number`},{key:`premium_requests.month`,label:`Premium requests per month`,type:`number`}]},la={suite:`Suites`,monitor:`Monitor rounds`,run:`Browser runs`,explore:`Exploratory`,api:`API tests`,desktop:`Desktop runs`,mobile:`Mobile runs`};function ua({days:e,currency:t}){let[n,r]=(0,D.useState)(-1),i=Math.max(1,...e.map(e=>e.input+e.output)),a=e.reduce((e,t)=>e+t.input+t.output,0),o=e.filter(e=>e.runs>0).length,s=e.reduce((e,t)=>t.input+t.output>e.input+e.output?t:e,e[0]),c=n>=0?e[n]:e[e.length-1],l=e=>new Date(`${e}T12:00:00Z`).toLocaleDateString(void 0,{month:`short`,day:`numeric`});return(0,A.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,A.jsxs)(`p`,{"aria-live":`polite`,className:`m-0 text-sm text-ink-2`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:l(c.day)}),`: `,R(c.input+c.output),` tokens, `,c.runs,` run`,c.runs===1?``:`s`,t?`, ${B(c.amount,t)}`:``]}),(0,A.jsx)(`div`,{role:`img`,"aria-label":`Tokens a day for the last 30 days: ${R(a)} in all, on ${o} days with runs; the busiest was ${l(s.day)} with ${R(s.input+s.output)}.`,className:`flex h-[160px] items-end gap-[2px] border-b border-line`,onMouseLeave:()=>r(-1),children:e.map((t,a)=>{let o=t.input+t.output;return(0,A.jsx)(`div`,{className:`flex h-full flex-1 cursor-default items-end`,onMouseEnter:()=>r(a),children:(0,A.jsx)(`div`,{className:x(`w-full rounded-t-[4px] transition-[height]`,a===e.length-1||a===n?`bg-accent`:`bg-accent-line`),style:{height:o?`${Math.max(2,o/i*100)}%`:`0`}})},t.day)})}),(0,A.jsxs)(`div`,{"aria-hidden":`true`,className:`flex justify-between text-[12px] text-muted`,children:[(0,A.jsx)(`span`,{children:l(e[0].day)}),(0,A.jsx)(`span`,{children:l(e[e.length-1].day)})]})]})}function da({rows:e,currency:t,label:n}){if(!e.length)return(0,A.jsx)(L,{children:`Nothing yet.`});let r=Math.max(1,...e.map(e=>e.sum.input+e.sum.output));return(0,A.jsx)(`ul`,{"aria-label":n,className:`m-0 flex list-none flex-col gap-3 p-0`,children:e.map(e=>{let n=e.sum.input+e.sum.output;return(0,A.jsxs)(`li`,{className:`flex flex-col gap-1`,children:[(0,A.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,A.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:e.name}),(0,A.jsxs)(`span`,{className:`whitespace-nowrap text-ink-2 tabular-nums`,children:[R(n),` tokens`,t&&e.sum.amount?`, ${B(e.sum.amount,t)}`:``]})]}),(0,A.jsx)(`div`,{"aria-hidden":`true`,className:`h-2 rounded-full bg-surface-strong`,children:(0,A.jsx)(`div`,{className:`h-2 rounded-full bg-accent transition-[width] duration-200 ease-out`,style:{width:`${Math.max(1,n/r*100)}%`}})})]},e.name)})})}var fa=e=>{let t=Math.round(e*100)/100;return`${t} premium request${t===1?``:`s`}`};function pa({label:e,spent:t,limit:n,currency:r,premium:i}){let a=e=>i?fa(e):B(e,r),o=t/n*100,s=o>=100?`fail`:o>=80?`warn`:`ok`;return(0,A.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,A.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:e}),(0,A.jsxs)(`span`,{className:x(`tabular-nums`,s===`fail`?`text-fail`:s===`warn`?`text-warn`:`text-ink-2`),children:[a(t),` of `,a(n),s===`fail`?`, over budget`:s===`warn`?`, ${Math.round(o)} percent used`:``]})]}),(0,A.jsx)(`div`,{role:`img`,"aria-label":`${e}: ${a(t)} of ${a(n)}, ${Math.round(o)} percent`,className:`h-2 rounded-full bg-surface-strong`,children:(0,A.jsx)(`div`,{className:x(`h-2 rounded-full transition-[width] duration-200 ease-out`,s===`fail`?`bg-fail`:s===`warn`?`bg-warn`:`bg-accent`),style:{width:`${Math.min(100,Math.max(1,o))}%`}})})]})}function ma({edit:t}){let{data:n,error:r,reload:i}=Gi(C.tokenomics),a=(0,A.jsx)(Ui,{defs:ca.fields,edit:t,base:ca.base});if(!n)return(0,A.jsx)(Ki,{error:r,reload:i});let o=n,c=o.currency,l=o.totals.input+o.totals.output,u=o.budget,d=u?.currency||o.spent?.currency||c,f=o.project?.days30.calls?o.project:void 0,p=f?f.days30.input+f.days30.output:0;return(0,A.jsxs)(A.Fragment,{children:[f&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every model call made for this project from `,o.days[0]?.day,` to today: chats, runs and the agents they started, each priced when it was made. These are the figures the workspace panel shows. `,(0,A.jsx)(`a`,{href:T(`cost`),children:`Cost and model usage`}),` breaks them down by agent, job and model, priced at today's prices.`]}),(0,A.jsxs)(di,{label:`All model calls, last 30 days`,children:[(0,A.jsx)(F,{icon:we,label:`Tokens`,value:R(p),note:`${R(f.days30.input)} in, ${R(f.days30.output)} out`}),(0,A.jsx)(F,{icon:s,label:`Cost`,value:f.currency?B(f.days30.amount,f.currency):`—`,note:f.currency?`When each call was made`:`No prices known`}),(0,A.jsx)(F,{icon:h,label:`Calls`,value:f.days30.calls.toLocaleString(),note:`${R(f.today.input+f.today.output)} tokens today`}),(0,A.jsx)(F,{icon:e,label:`Cached input`,value:f.days30.input?`${Math.round(f.days30.cached/f.days30.input*100)}%`:`—`,note:`Of the input tokens`})]}),Ji(f.currency)&&(0,A.jsx)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:Ji(f.currency)}),(0,A.jsx)(I,{children:`Test runs`})]}),o.totals.runs===0?(0,A.jsx)(L,{children:`No test runs with token counts in the last 30 days. Every run and suite ForgeQE reports on is counted here; chats are not.`}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`From `,o.totals.runs,` run`,o.totals.runs===1?``:`s`,` in this project's reports in the last 30 days`,o.from?`, ${o.from} to ${o.to}`:``,`: test runs only, not chats. Models and agents come from the `,o.totals.withCalls,` run`,o.totals.withCalls===1?``:`s`,` that kept their model calls.`]}),(0,A.jsxs)(di,{label:`Test runs, last 30 days`,children:[(0,A.jsx)(F,{icon:we,label:`Tokens`,value:R(l),note:`${R(o.totals.input)} in, ${R(o.totals.output)} out`}),(0,A.jsx)(F,{icon:s,label:`Cost`,value:B(o.totals.amount,c),note:o.totals.unpriced?`${o.totals.unpriced} run${o.totals.unpriced===1?``:`s`} had no price`:c?`At the models' prices`:`No prices known`}),(0,A.jsx)(F,{icon:h,label:`Per run`,value:R(Math.round(l/o.totals.runs)),note:c?B(o.totals.amount/o.totals.runs,c):void 0}),(0,A.jsx)(F,{icon:e,label:`Cached input`,value:o.totals.input?`${Math.round(o.totals.cached/o.totals.input*100)}%`:`—`,note:`Of the input tokens`})]}),Ji(o.currency)&&f?.currency!==o.currency&&(0,A.jsx)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:Ji(o.currency)}),o.otherCurrency>0&&(0,A.jsxs)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:[o.otherCurrency,` run`,o.otherCurrency===1?` was`:`s were`,` priced in another currency and left out of the cost.`]}),(0,A.jsx)(I,{children:`Last 30 days`}),(0,A.jsx)(ua,{days:o.days,currency:c}),(0,A.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-x-10 gap-y-8`,children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,A.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By model`}),(0,A.jsx)(da,{label:`Tokens by model`,rows:o.byModel.map(e=>({name:e.model,sum:e})),currency:c})]}),(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,A.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By agent`}),(0,A.jsx)(da,{label:`Tokens by agent`,rows:o.byAgent.map(e=>({name:e.agent,sum:e})),currency:c})]})]}),(0,A.jsx)(I,{children:`By kind of run`}),(0,A.jsx)(da,{label:`Tokens by kind of run`,rows:o.byKind.map(e=>({name:`${la[e.kind]||e.kind} (${e.runs})`,sum:e})),currency:c}),(0,A.jsx)(I,{children:`Runs that used the most`}),(0,A.jsx)(H,{label:`Runs that used the most tokens`,head:[`Run`,`Kind`,`Tokens`,`Cost`,`When`],children:o.top.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsx)(`span`,{className:`line-clamp-2`,children:e.title}),la[e.kind]||e.kind,R(e.tokens),e.amount===void 0?`—`:B(e.amount,c),e.startedAt?V(e.startedAt):`—`]},`${e.kind}/${e.id}`))})]}),(0,A.jsx)(I,{help:ca.help,children:ca.title}),u&&o.spent&&(u.day||u.month)?(0,A.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[u.day?(0,A.jsx)(pa,{label:`Today`,spent:o.spent.today,limit:u.day,currency:d}):null,u.month?(0,A.jsx)(pa,{label:`This month`,spent:o.spent.month,limit:u.month,currency:d}):null]}):null,u?.premium&&o.spent&&(u.premium.day||u.premium.month)?(0,A.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[u.premium.day?(0,A.jsx)(pa,{label:`Premium requests today`,spent:o.spent.premiumToday||0,limit:u.premium.day,premium:!0}):null,u.premium.month?(0,A.jsx)(pa,{label:`Premium requests this month`,spent:o.spent.premiumMonth||0,limit:u.premium.month,premium:!0}):null]}):null,a]})}var ha=`forgeqe-sidebar-panels`;function ga(e,t){let[n,r]=(0,D.useState)(()=>{try{return JSON.parse(localStorage.getItem(ha)||`{}`)[e]??t}catch{return t}});return[n,()=>{r(!n);try{let t=JSON.parse(localStorage.getItem(ha)||`{}`);localStorage.setItem(ha,JSON.stringify({...t,[e]:!n}))}catch{}}]}function _a({id:e,title:t,children:n,initial:r=!0}){let[i,a]=ga(e,r);return(0,A.jsxs)(`section`,{"aria-labelledby":`panel-${e}`,className:`flex flex-col border-t border-line pt-1`,children:[(0,A.jsx)(`h3`,{id:`panel-${e}`,className:`m-0`,children:(0,A.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:`flex min-h-8 w-full cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 text-left text-[13px] font-semibold text-ink hover:bg-surface-muted`,children:[(0,A.jsx)(`span`,{className:`flex-1`,children:t}),(0,A.jsx)(_e,{size:14,"aria-hidden":`true`,className:x(`text-muted transition-transform`,!i&&`-rotate-90`)})]})}),(0,A.jsx)(wr,{open:i,className:`flex flex-col pt-0.5 pb-0.5`,children:n})]})}function va({icon:e,label:t,value:n,to:r,title:i}){let a=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(E,{icon:e,size:14,className:`flex-none`}),(0,A.jsx)(`span`,{className:`max-w-[120px] flex-none truncate text-[12px] text-muted`,children:t}),(0,A.jsx)(`span`,{className:`line-clamp-2 min-w-0 flex-1 text-right text-[12.5px] leading-snug [overflow-wrap:anywhere] text-ink`,children:n})]}),o=`flex min-h-7 items-center gap-2 rounded-[8px] px-2 py-1 no-underline`;return r?(0,A.jsx)(`a`,{href:r,"data-tip":i,className:x(o,`hover:bg-surface-muted`),children:a}):(0,A.jsx)(`div`,{"data-tip":i,className:o,children:a})}function ya({icon:e,label:t,value:n,detail:r,to:i,title:a,onClick:o,open:s,muted:c}){let u=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(E,{icon:e,size:16,className:`mt-0.5 flex-none text-muted`}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`text-[12px] leading-tight text-muted`,children:t}),(0,A.jsx)(`span`,{className:x(`line-clamp-2 text-[13.5px] leading-snug font-medium [overflow-wrap:anywhere]`,c?`text-muted`:`text-ink`),children:n}),r&&(0,A.jsx)(`span`,{className:`truncate text-[12.5px] leading-snug text-muted`,children:r})]}),(i||o)&&(0,A.jsx)(l,{size:14,"aria-hidden":`true`,className:x(`mt-1 flex-none text-muted opacity-0 transition group-hover:opacity-100 group-focus-visible:opacity-100`,s&&`rotate-90 opacity-100`)})]}),d=`group flex w-full items-start gap-3 rounded-[10px] px-2.5 py-2.5 text-left no-underline`;return o?(0,A.jsx)(`button`,{type:`button`,"aria-expanded":s,"data-tip":a,onClick:o,className:x(d,`cursor-pointer border-0 bg-transparent hover:bg-surface-muted`),children:u}):i?(0,A.jsx)(`a`,{href:i,"data-tip":a,className:x(d,`hover:bg-surface-muted`),children:u}):(0,A.jsx)(`div`,{"data-tip":a,className:d,children:u})}function ba({title:e,children:t}){return(0,A.jsxs)(`div`,{className:`flex flex-col`,children:[(0,A.jsx)(`span`,{className:`px-2 pt-1.5 pb-0.5 text-[11.5px] font-medium tracking-wide text-muted uppercase`,children:e}),t]})}var xa=e=>`${R(e.input)} read by the models (each call reads the conversation so far${e.cached?`; ${R(e.cached)} of it from the provider's cache`:``}) and ${R(e.output)} written.`;function Sa({a:e,working:t}){let n=Kn(e.agent);return(0,A.jsxs)(`div`,{className:`flex flex-col gap-0.5 rounded-[8px] px-2 py-1`,"data-tip":xa(e.usage),children:[(0,A.jsxs)(`span`,{className:`flex min-h-6 items-center gap-2`,children:[(0,A.jsx)(Sr,{agent:e.agent,px:16,decorative:!0,working:t}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[12.5px] text-ink`,children:n.name}),(0,A.jsx)(`span`,{className:`flex-none text-[12.5px] text-ink tabular-nums`,children:R(e.usage.input+e.usage.output)})]}),e.context&&e.context.limit>0&&(0,A.jsxs)(`span`,{className:`flex flex-col pl-6`,children:[(0,A.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[11.5px] text-muted`,children:[(0,A.jsx)(`span`,{className:`flex-1`,children:`Context now`}),(0,A.jsxs)(`span`,{className:`tabular-nums`,children:[R(e.context.tokens),` / `,R(e.context.limit)]})]}),(0,A.jsx)(Ca,{value:e.context.tokens,max:e.context.limit,warnAt:e.context.compactsAt})]})]})}function Ca({value:e,max:t,warnAt:n}){let r=t>0?Math.min(1,e/t):0,i=n?e>=n*.9:r>.75;return(0,A.jsx)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`Context used`,className:`mt-1 block h-1.5 w-full overflow-hidden rounded-full bg-line`,children:(0,A.jsx)(`span`,{className:x(`block h-full rounded-full transition-[width] duration-200 ease-out`,i?`bg-warn`:`bg-accent`),style:{width:`${Math.max(2,r*100)}%`}})})}var wa=e=>{try{return e?new URL(e).host:``}catch{return``}},Ta=e=>e.split(/[\\/]/).filter(Boolean).pop()||e;function Ea({path:e,icon:t,extra:n}){let[r,i]=(0,D.useState)(``);return(0,A.jsxs)(`li`,{className:`flex flex-col`,children:[(0,A.jsxs)(`button`,{type:`button`,"data-tip":`Open ${e}`,onClick:async()=>i(await tn(e)),className:`flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 bg-transparent px-3 text-left hover:bg-surface-muted`,children:[(0,A.jsx)(E,{icon:t,size:15,className:`flex-none text-muted`}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[12px] text-accent-fg`,children:Ta(e)}),n]}),r&&(0,A.jsx)(`span`,{className:`px-3 text-[12px] text-fail`,children:r})]})}function Da(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=Math.max(0,Math.round((Date.now()-t)/1e3));return n<60?`${n}s`:`${Math.floor(n/60)} min`}function Oa({chat:e}){let[t,n]=(0,D.useState)(null),[i,a]=(0,D.useState)(null),[o,s]=(0,D.useState)(null),[c,l]=(0,D.useState)(!1),[u,d]=(0,D.useState)([]);(0,D.useEffect)(()=>{let e=!1,t=()=>Gt.list().then(t=>!e&&d(t.tasks),()=>{});t();let n=setInterval(t,4e3);return()=>{e=!0,clearInterval(n)}},[]);let p=location.hash.replace(/^#\/?/,``),m=u.filter(e=>e.to!==p);(0,D.useEffect)(()=>{let e=!1,t=()=>At.state().then(t=>{if(!e){if(n(t),!t.ready)return a(null);Mt.get().then(t=>!e&&a(t),()=>{})}},()=>{});return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]),(0,D.useEffect)(()=>{if(!t?.ready)return;let n=!1,r=()=>C.tokenomics().then(e=>!n&&s(e),()=>{});r();let i=setInterval(r,e?.busy?3e4:18e4);return()=>{n=!0,clearInterval(i)}},[t?.ready,t?.project,e?.busy]);let h=t?t.project.split(/[\\/]/).filter(Boolean).pop()||t.project:``,g=i?.codeRepo||i?.repo,_=o?.days.find(e=>e.day===new Date().toISOString().slice(0,10)),v=i?.environment,y=(e,t)=>`${R(e.input+e.output)} tokens${t&&e.amount?` · ${B(e.amount,t)}`:``}`,ee=o?.project?y(o.project.today,o.project.currency):_?y(_,o?.currency):void 0,b=o?o.project?{tokens:o.project.days30.input+o.project.days30.output,line:y(o.project.days30,o.project.currency),title:`Every model call made for this project in the last 30 days.`}:{tokens:o.totals.input+o.totals.output,line:y(o.totals,o.currency),title:`Test runs of this project in the last 30 days.`}:void 0;return(0,A.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,A.jsx)(_a,{id:`env`,title:`Environment`,children:(0,A.jsxs)(`div`,{className:`flex flex-col gap-1 py-1`,children:[(0,A.jsx)(ya,{icon:Fe,label:`Project`,value:t?.ready?h:`Not set up`,muted:!t?.ready,to:T(`settings`,`setup`),title:t?.project}),i&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ya,{icon:f,label:i.codeRepo?`Tests go to`:`Repository`,value:g?g.name:`Not a git repository`,muted:!g,detail:g?.branch?`Branch ${g.branch}`:g?.commit?`Commit ${g.commit}`:void 0,title:g?`${g.root}${g.commit?` @ ${g.commit}`:``}`:void 0,to:T(`settings`,`tests`)}),(0,A.jsx)(ya,{icon:Te,label:`Test environment`,value:v?.active?v.active:v?.names.length?`None active`:`None yet`,muted:!v?.active,detail:v?.active&&wa(v.startUrl)||void 0,title:v?.names.length?`${v.names.length} environment${v.names.length===1?``:`s`}: ${v.names.join(`, `)}${v.apps.length?`. Apps: ${v.apps.join(`, `)}`:``}`:void 0,to:T(`settings`,`environments`)}),(0,A.jsx)(ya,{icon:Re,label:`Files`,value:`${i.files.filter(e=>e.exists).length} in this project`,onClick:()=>l(!c),open:c}),(0,A.jsx)(wr,{open:c,children:(0,A.jsx)(`ul`,{className:`m-0 mb-1 ml-[38px] flex list-none flex-col gap-0.5 p-0`,children:i.files.map(e=>(0,A.jsx)(`li`,{children:(0,A.jsxs)(`a`,{href:T(`settings`,`files`),"data-tip":e.path,className:x(`flex flex-col rounded-md px-2 py-1 no-underline hover:bg-surface-muted`,!e.exists&&`opacity-60`),children:[(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:e.label}),(0,A.jsx)(`span`,{className:`truncate font-mono text-[12px] text-ink`,children:e.path})]})},e.label))})})]})]})}),t?.ready&&(0,A.jsxs)(_a,{id:`usage`,title:`Context and tokens`,children:[e&&(0,A.jsx)(ba,{title:`This chat`,children:e.agents?.length&&e.usage?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{className:`flex min-h-7 items-center gap-2 px-2 py-1`,"data-tip":xa(e.usage),children:[(0,A.jsx)(E,{icon:we,size:14,className:`flex-none`}),(0,A.jsx)(`span`,{className:`flex-1 text-[12px] text-muted`,children:`All agents`}),(0,A.jsxs)(`span`,{className:`text-[12.5px] font-medium text-ink tabular-nums`,children:[R(e.usage.input+e.usage.output),` tokens`]})]}),(0,A.jsxs)(`span`,{className:`px-2 pb-1 pl-8 text-[11.5px] text-muted tabular-nums`,children:[R(e.usage.input),` read · `,R(e.usage.output),` written`,e.usage.cached?` · ${R(e.usage.cached)} cached`:``]}),[...e.agents].sort((e,t)=>t.at-e.at).map((t,n)=>(0,A.jsx)(Sa,{a:t,working:!!e.busy&&n===0},t.agent))]}):(0,A.jsx)(`p`,{className:`m-0 px-2 py-1 text-[12px] text-muted`,children:e.busy?`Counted as soon as the agent's first model call comes back.`:`No model calls in this chat yet.`})}),(0,A.jsxs)(ba,{title:`This project`,children:[b&&(0,A.jsxs)(`a`,{href:T(`settings`,`tokenomics`),"data-tip":b.title,className:`my-1 flex items-center gap-3 rounded-[10px] px-2 py-2 no-underline hover:bg-surface-muted`,children:[(0,A.jsx)(`span`,{className:`flex size-11 flex-none items-center justify-center rounded-full border-[3px] border-accent-line bg-accent-soft text-accent-fg`,children:(0,A.jsx)(ie,{size:20,strokeWidth:1.8,"aria-hidden":`true`})}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[(0,A.jsx)(`span`,{className:`text-[22px] leading-tight font-semibold tracking-[-0.01em] text-ink tabular-nums`,children:R(b.tokens)}),` tokens`]}),(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:`Total (last 30 days)`})]})]}),(0,A.jsx)(va,{icon:bt,label:`Today`,value:(0,A.jsx)(`span`,{className:`tabular-nums`,children:ee??`Nothing yet`}),title:o?.project?`Every model call made for this project today: chats, runs and the agents they started.`:`Test runs of this project today.`,to:T(`settings`,`tokenomics`)}),o?.spent&&o.budget?.month?(0,A.jsxs)(`div`,{className:`px-2 py-1.5`,children:[(0,A.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[12px] text-muted`,children:[(0,A.jsx)(`span`,{className:`flex-1`,children:`This month, this computer`}),(0,A.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[B(o.spent.month,o.spent.currency),` / `,B(o.budget.month,o.budget.currency||o.spent.currency)]})]}),(0,A.jsx)(Ca,{value:o.spent.month,max:o.budget.month})]}):b&&(0,A.jsx)(va,{icon:Ne,label:`Last 30 days`,value:(0,A.jsx)(`span`,{className:`tabular-nums`,children:b.line}),to:T(`settings`,`tokenomics`)})]})]}),m.length>0&&(0,A.jsx)(_a,{id:`background`,title:`Background tasks · ${m.length}`,children:(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:m.map((e,t)=>(0,A.jsx)(`li`,{children:(0,A.jsxs)(`a`,{href:T(...e.to.split(`/`).filter(Boolean)),className:`flex items-start gap-2.5 rounded-[10px] px-3 py-1.5 no-underline hover:bg-surface-muted`,children:[(0,A.jsx)($e,{size:15,"aria-hidden":`true`,className:`mt-0.5 flex-none animate-spin text-accent-fg motion-reduce:animate-none`}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,A.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:e.label}),(0,A.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[e.detail||`Running`,Da(e.startedAt)&&` · ${Da(e.startedAt)}`]})]})]})},`${e.kind}-${t}`))})}),e?.changes&&e.changes.length>0&&(0,A.jsxs)(_a,{id:`changes`,title:`Changes · ${e.changes.length}`,children:[(0,A.jsxs)(`span`,{className:`px-3 pb-1 font-mono text-[12px] tabular-nums`,children:[Vt(e.changes.length,`file`),` · `,(0,A.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,A.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]}),(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.changes.map(e=>(0,A.jsx)(Ea,{path:e.path,icon:He,extra:(0,A.jsxs)(`span`,{className:`flex-none font-mono text-[11.5px] tabular-nums`,children:[(0,A.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,A.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})},e.path))}),e.onCreatePr&&(0,A.jsx)(`div`,{className:`px-2 pt-1.5 pb-1`,children:(0,A.jsxs)(S,{size:`sm`,variant:`primary`,disabled:e.busy,"data-tip":e.busy?`When ForgeQE has finished`:`Ask ForgeQE to open a pull request with these changes`,onClick:e.onCreatePr,className:`w-full justify-center`,children:[(0,A.jsx)(r,{"aria-hidden":`true`}),`Pull request`]})})]}),e?.outputs&&e.outputs.length>0&&(0,A.jsx)(_a,{id:`outputs`,title:`Outputs · ${e.outputs.length}`,children:(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.outputs.map(e=>(0,A.jsx)(Ea,{path:e.path,icon:e.kind===`test`?Re:/\.html?$/i.test(e.path)?nt:e.kind===`report`?_t:Ke,extra:(0,A.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:e.label})},e.path))})})]})}var ka={accessibility:[`#5aa9e6`],"agents-hub":[`#4b5563`],"ai-assurance":[`#4b5563`],api:[`#4f86e0`,`#375e9d`],architecture:[`#a98bf3`],bell:[`#f6c48f`,`#c9742a`],board:[`#c3b5f5`,`#6a3fd6`],branch:[`#a6e39a`,`#749f6c`],"browser-agent":[`#c8dcf5`,`#6fa6e8`],bug:[`#f08a8a`],case:[`#6fd6aa`,`#4e9677`],chat:[`#8fb6f5`,`#3a76d0`],cloud:[`#b9d1f6`],code:[`#f3a6d8`,`#c2398f`],coins:[`#f3cf6e`,`#b8870f`],columns:[`#8fd1d8`,`#1f97a8`],container:[`#8fc9f2`,`#2a7fbf`],"context-engine":[`#d5c8fb`,`#6a3fd6`],database:[`#6fc9be`,`#1f8a7e`],desktop:[`#8fd1d8`,`#1f97a8`],download:[`#4f86e0`,`#2a5bbf`],explorer:[`#c8399a`,`#f6a7d8`],feature:[`#d9776a`],file:[`#b9d1f6`,`#3a76d0`],flask:[`#9ad9c0`,`#2f8a6b`],folder:[`#f2c46b`,`#b8860f`],healer:[`#cde67a`,`#86b02b`],history:[`#b7a4f5`,`#d0c4f8`,`#8073ac`],inbox:[`#8fc9f2`],info:[`#8fc9f2`,`#648da9`],key:[`#f2c46b`],"knowledge-base":[`#84c6d4`,`#1f8fa6`],layers:[`#8fb6f5`,`#b6d0f8`],mail:[`#f3a6a6`,`#f7c5c5`],mobile:[`#cbbdf7`,`#6a3fd6`],model:[`#9db8ff`,`#4a63d6`],network:[`#8fd6e3`,`#64969f`],orchestrator:[`#a98bf3`,`#6a3fd6`],palette:[`#e99ad2`,`#f1bde2`],plug:[`#f6c48f`,`#c9742a`],"pr-reviewer":[`#d77c88`],pulse:[`#f08a8a`],"quality-engineering":[`#4b5563`],replay:[`#3fb985`],report:[`#9ad9ec`,`#1c8fb2`],result:[`#5bb894`,`#94d1b9`],rocket:[`#b9d1f6`],route:[`#9ad9a0`,`#bde6c1`],rule:[`#f4e2b0`,`#c98b2a`],screenshot:[`#9ad9ec`,`#1c8fb2`],scribe:[`#5bb894`,`#2f8a6b`,`#94d1b9`,`#408168`],scroll:[`#e8cf9c`,`#a8701a`],server:[`#9ab3c9`],shield:[`#3a76d0`,`#8fb6f5`],sparkle:[`#c9b6f7`,`#8a5be6`],specs:[`#5bb894`,`#408168`],speed:[`#e0a23a`],stories:[`#b9d1f6`,`#3a76d0`],table:[`#9ad9a0`,`#2f8a3e`],terminal:[`#6f9ff0`],"test-finder":[`#8fdcef`,`#1f9fc0`],theme:[`#5b6bd6`,`#f5b83d`],ticket:[`#f6c48f`,`#c9742a`],trace:[`#6fb4c4`,`#a1ced9`],visual:[`#e99ad2`,`#a8287d`],wand:[`#c9b6f7`,`#dcd0fa`,`#8d7fad`],warning:[`#f6c84f`],web:[`#8edcf2`,`#22a0c4`],wikis:[`#e8cf9c`,`#c48a2a`],wrench:[`#a8b6c4`]},Aa=[`auto`,`plain`,`tiles`,`outline`,`mono`],ja=[`phosphor`,`solar`,`lucide`,`3d`],Ma=`phosphor`,Na=e=>e.iconSet&&ja.includes(e.iconSet)?e.iconSet:Ma,Pa=e=>e.iconColour===`accent`?`accent`:K(e.iconColour)?`custom`:`text`,W=`#111928`,G=`#ffffff`,Fa={"--side-bg":`#f9fafb`,"--side-ink":W,"--side-ink-2":`#374151`,"--side-muted":`#5f6672`,"--side-active":`#f3f4f6`,"--side-line":`#e5e7eb`,"--side-line-soft":`#f0f1f3`},Ia={"--color-accent":`#3758f9`,"--color-accent-hover":`#1b44c8`,"--color-accent-soft":`#ebefff`,"--color-accent-line":`#b8c3fc`,"--color-accent-ink":G,"--color-accent-fg":`#3758f9`,"--color-accent-fg-hover":`#1b44c8`,"--color-accent-grad":`#8a97fb`},La=Fa[`--side-bg`],Ra=`#111318`,za={"--side-bg":`#16181e`,"--side-ink":`#e9ebf0`,"--side-ink-2":`#c3c8d2`,"--side-muted":`#8d95a5`,"--side-active":`#22252e`,"--side-line":`#2b303b`,"--side-line-soft":`#20232b`},Ba={"--color-accent":`#3758f9`,"--color-accent-hover":`#4d6bfa`,"--color-accent-soft":`#1a2142`,"--color-accent-line":`#2f3b78`,"--color-accent-ink":G,"--color-accent-fg":`#8fa3ff`,"--color-accent-fg-hover":`#b3c1ff`,"--color-accent-grad":`#a9b4ff`};function Va(e,t=`light`){if(t===`dark`)return[za[`--side-bg`]];let n=K(e.primary),r=K(e.gradient);return n||r?[n||La,...r?[r]:[]]:[Fa[`--side-bg`]]}var Ha=Ia[`--color-accent`];function K(e){let t=typeof e==`string`?e.trim().toLowerCase():``;if(/^#[0-9a-f]{6}$/.test(t))return t;if(/^#[0-9a-f]{3}$/.test(t))return`#${[...t.slice(1)].map(e=>e+e).join(``)}`}var Ua=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),Wa=e=>`#${e.map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`;function q(e,t,n){let r=Ua(e),i=Ua(t);return Wa(r.map((e,t)=>e+(i[t]-e)*n))}function J(e){let[t,n,r]=Ua(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function Y(e,t){let[n,r]=[J(e),J(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function X(...e){let t=t=>Math.min(...e.map(e=>Y(t,e))),n=t(G)>t(W)?G:W;return t(n)>=4.5||t(n)>=t(`#000000`)?n:`#000000`}function Z(e,t,n){let r=e;for(let i=0;i<=1&&Math.min(...n.map(e=>Y(r,e)))<4.5;i+=.1)r=q(e,t,i);return r}var Ga=.75;function Ka(e,t=`light`){let n=K(e.background);return t===`light`&&n&&J(n)>=.75?n:void 0}var qa=[`--color-bg`,`--color-surface-muted`,`--color-surface-strong`,`--color-field`,`--color-line`,`--color-line-soft`,`--color-line-strong`,`--color-muted`];function Ja(e,t=`light`){let n=Ka(e,t);return n?{"--color-bg":n,"--color-surface-muted":q(n,W,.025),"--color-surface-strong":q(n,W,.05),"--color-field":q(n,W,.04),"--color-line":q(n,W,.1),"--color-line-soft":q(n,W,.065),"--color-line-strong":q(n,W,.18),"--color-muted":Z(`#5f6672`,W,[n])}:{}}var Ya=`#f3f4f6`,Xa=`#1a1d24`;function Za(e,t=`light`){let n=K(e.primary);if(t===`dark`){let e=n?q(n,Ra,.84):Xa,t=X(e);return{"--card-bg":e,"--card-ink":t,"--card-ink-2":Z(`#c3c8d2`,t,[e]),"--card-muted":Z(`#8d95a5`,t,[e]),"--card-line":q(e,G,.14),"--card-line-soft":q(e,G,.09),"--card-hover":q(e,G,.05),"--card-strong":q(e,G,.09)}}let r=Ka(e)||G,i=n?q(n,G,J(n)>=.6?.6:.94):Ya,a=Y(i,r)<1.06?q(n||i,W,.05):i,o=X(a),s=o===G?W:o;return{"--card-bg":a,"--card-ink":o,"--card-ink-2":o===G?Z(q(a,G,.85),G,[a]):Z(`#374151`,s,[a]),"--card-muted":o===G?Z(q(a,G,.68),G,[a]):Z(`#5f6672`,s,[a]),"--card-line":q(a,W,.1),"--card-line-soft":q(a,W,.06),"--card-hover":q(a,W,.04),"--card-strong":q(a,W,.07)}}function Qa(e,t=`light`){let n=K(e.primary),r=K(e.gradient),i=K(e.secondary),a=t===`dark`?za:Fa;if(t!==`dark`&&(n||r)){let e=n||La,t=r?[e,r]:[e],i=X(...t),o=i===G,s=i===G?W:i,c=r?q(e,r,.5):e;a={"--side-bg":r?`linear-gradient(180deg, ${e}, ${r})`:e,"--side-ink":i,"--side-ink-2":o?Z(q(c,G,.85),G,t):Z(`#374151`,s,t),"--side-muted":o?Z(q(c,G,.68),G,t):Z(`#5f6672`,s,t),"--side-active":o?q(c,G,.16):q(c,W,.06),"--side-line":o?q(c,G,.22):q(c,W,.1),"--side-line-soft":o?q(c,G,.12):q(c,W,.06)}}if(t===`dark`){let n=i?Z(i,G,[Ra]):void 0,r=i?{"--color-accent":i,"--color-accent-hover":q(i,G,.12),"--color-accent-soft":q(i,Ra,.8),"--color-accent-line":q(i,Ra,.55),"--color-accent-ink":X(i),"--color-accent-fg":n,"--color-accent-fg-hover":q(n,G,.3),"--color-accent-grad":q(i,G,.45)}:Ba;return{...a,...r,...Za(e,t)}}let o=Ka(e)||G,s=i||o!==G?Z(i||Ia[`--color-accent`],W,[o]):void 0,c=i?{"--color-accent":i,"--color-accent-hover":q(i,W,J(i)>.4?.18:.25),"--color-accent-soft":q(i,G,.9),"--color-accent-line":q(i,G,.62),"--color-accent-ink":X(i),"--color-accent-fg":s,"--color-accent-fg-hover":q(s,W,.25),"--color-accent-grad":q(i,G,.4)}:s?{...Ia,"--color-accent-fg":s,"--color-accent-fg-hover":q(s,W,.25)}:Ia;return{...a,...c,...Za(e,t)}}function $a(e,t,n,r){let i=e;for(let a=.1;a<=1.001&&Math.min(...n.map(e=>Y(i,e)))<r;a+=.1)i=q(e,t,a);return i}function eo(e,t=`light`){let n=Pa(e);if(n===`text`||Na(e)===`3d`)return{vars:{},moved:[]};let r=n===`accent`?K(e.secondary)||Ha:K(e.iconColour),i=t===`dark`?Ra:Ka(e)||G,a=Va(e,t),o=n===`accent`?Qa(e,t)[`--color-accent-fg`]:$a(r,t===`dark`?G:W,[i],3),s=$a(r,X(...a),a,3),c=a.length>1?q(a[0],a[a.length-1],.5):a[0],l=[];return n!==`accent`&&o!==r&&l.push(`page`),s!==r&&l.push(`sidebar`),{vars:{"--icon-colour":o,"--side-icon-colour":s,"--icon-tint":q(o,i,no),"--side-icon-tint":q(s,c,no)},moved:l}}var to=[`--icon-colour`,`--side-icon-colour`,`--icon-tint`,`--side-icon-tint`],no=.8;function ro(e){let t=Qa(e),n=[K(e.primary)||La,...K(e.gradient)?[K(e.gradient)]:[]],r=K(e.secondary)||Ha,i=Math.min(...n.map(e=>Y(t[`--side-ink`],e))),a=Y(t[`--color-accent-ink`],r),o=Y(t[`--color-accent-fg`],Ka(e)||G),s=e=>Math.round(e*10)/10;return[{label:`Sidebar text`,ratio:s(i),ok:i>=4.5},{label:`Button text`,ratio:s(a),ok:a>=4.5},{label:`Links on the page`,ratio:s(o),ok:o>=4.5}]}function io(e){let t={};for(let n of e.split(/\r?\n/)){let e=[...n.matchAll(/#(?:[0-9a-f]{6}|[0-9a-f]{3})\b/gi)].map(e=>K(e[0])).filter(Boolean);if(!e.length)continue;let r=n.toLowerCase();/gradient/.test(r)?(!t.gradient&&e.length>1&&(t.gradient=e.at(-1)),!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])):/\b(page )?background\b|\bbg\b/.test(r)&&!/button|sidebar|accent|primary|secondary/.test(r)?!t.background&&J(e[0])>=.75&&(t.background=e[0]):!t.secondary&&/secondary|accent|button|\bcta\b/.test(r)?t.secondary=e[0]:!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])}return t}function ao(e,t=document.documentElement,n=`light`){t.dataset.mode=n;for(let[r,i]of Object.entries(Qa(e,n)))t.style.setProperty(r,i);let r=Ja(e,n);for(let e of qa)r[e]?t.style.setProperty(e,r[e]):t.style.removeProperty(e);let i=Na(e);t.dataset.iconSet=i;let a=uo(e,co,n);t.dataset.icons=i===`3d`?a.style:`plain`,t.style.setProperty(`--icon-tile`,a.tile),t.style.setProperty(`--icon-outline`,a.outline),t.style.setProperty(`--icon-mono`,a.mono);let o=eo(e,n).vars;t.dataset.iconFill=o[`--icon-colour`]?`colour`:`duotone`;for(let e of to)o[e]?t.style.setProperty(e,o[e]):t.style.removeProperty(e)}function oo(e,t){if(!e)return null;let n=e.kind===`background`?1.6:2;if(!t.some(t=>Y(e.colour,t)<n))return null;let r=t.length>1?q(t[0],t[t.length-1],.5):t[0];return X(...t)===G?q(r,G,.9):q(r,W,.85)}var so=e=>/^(ph|lucide):/.test(e),co=[...new Set([...Object.values(Ir),...Xn.map(e=>Kn(e.agent).icon)])].filter(e=>!so(e)),lo=(e,t)=>Math.max(1,...(ka[e]||[]).map(e=>Y(e,t)));function uo(e,t=co,n=`light`){let r=Va(e,n),i=r.length>1?q(r[0],r[1],.5):r[0],a=X(...r),o=(e,t)=>Math.min(...t.map(t=>lo(e,t))),s=t.map(e=>({icon:e,ratio:Math.round(o(e,r)*100)/100})).filter(e=>e.ratio<2).sort((e,t)=>e.ratio-t.ratio),c=[q(i,G,.9),q(i,W,.82)],l=e=>Math.min(...t.map(t=>lo(t,e))),u=c.find(e=>l(e)>=2)||c.reduce((e,t)=>l(t)>l(e)?t:e),d=(e.iconStyle&&e.iconStyle!==`auto`&&Aa.includes(e.iconStyle)?e.iconStyle:void 0)||(s.length?`tiles`:`plain`),f=d===`tiles`?l(u):Math.min(...d===`plain`?t.map(e=>o(e,r)):r.map(e=>Y(a,e)));return{style:d,tile:u,outline:a,mono:a,faint:s,lowest:Math.round(f*100)/100}}var fo=`forgeqe-mode`,po=()=>{try{let e=localStorage.getItem(fo);return e===`light`||e===`dark`?e:`system`}catch{return`system`}},mo=()=>typeof matchMedia==`function`&&matchMedia(`(prefers-color-scheme: dark)`).matches,ho=(0,D.createContext)({theme:{},saved:{},reload:()=>{},preview:()=>{},mode:`light`,choice:`system`,setChoice:()=>{}});function go({children:e}){let[t,n]=(0,D.useState)({}),[r,i]=(0,D.useState)(null),[a,o]=(0,D.useState)(po),[s,c]=(0,D.useState)(mo),l=(0,D.useCallback)(()=>{Ot.get().then(n,()=>{})},[]);(0,D.useEffect)(l,[l]),(0,D.useEffect)(()=>{if(typeof matchMedia!=`function`)return;let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>c(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let u=(0,D.useCallback)(e=>{o(e);try{e===`system`?localStorage.removeItem(fo):localStorage.setItem(fo,e)}catch{}},[]),d=a===`system`?s?`dark`:`light`:a,f=r??t;kn(f.agentNames),(0,D.useEffect)(()=>ao(f,document.documentElement,d),[f,d]),(0,D.useEffect)(()=>Sn(f.appName),[f.appName]);let p=f.logoMark||f.logo;return(0,D.useEffect)(()=>{let e=document.querySelector(`link[rel="icon"][data-brand]`);if(!p)return void e?.remove();e||(e=document.createElement(`link`),e.rel=`icon`,e.dataset.brand=``,document.head.appendChild(e)),e.href=p},[p]),(0,A.jsx)(ho.Provider,{value:{theme:f,saved:t,reload:l,preview:i,mode:d,choice:a,setChoice:u},children:(0,A.jsx)(se.Provider,{value:Na(f)===`lucide`?`lucide`:`phosphor`,children:e})})}var Q=()=>(0,D.useContext)(ho),_o=24;function vo(e,t,n){if(!t||!n||e.length<t*n*4)return null;let r=(e,n)=>(n*t+e)*4,i=[r(0,0),r(t-1,0),r(0,n-1),r(t-1,n-1)],a=i.every(t=>e[t+3]>=250),o=a&&i.every(t=>[0,1,2].every(n=>Math.abs(e[t+n]-e[i[0]+n])<=_o));if(a&&!o)return null;let s=[0,1,2].map(t=>e[i[0]+t]),c=t=>a?[0,1,2].every(n=>Math.abs(e[t+n]-s[n])<=_o):e[t+3]<16,l=t,u=n,d=-1,f=-1;for(let e=0;e<n;e++)for(let n=0;n<t;n++)c(r(n,e))||(n<l&&(l=n),n>d&&(d=n),e<u&&(u=e),e>f&&(f=e));if(d<0)return null;let p=Math.round(Math.max(d-l+1,f-u+1)*.02),m={x:Math.max(0,l-p),y:Math.max(0,u-p),w:0,h:0};return m.w=Math.min(t,d+1+p)-m.x,m.h=Math.min(n,f+1+p)-m.y,m.w>=t*.96&&m.h>=n*.96?null:m}function yo(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=()=>n(Error(`The logo could not be read.`)),r.src=e})}function bo(e){let t=e.naturalWidth||0,n=e.naturalHeight||0;if(!t||!n)return null;let r=Math.min(1,1024/Math.max(t,n))||1,i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(t*r)),i.height=Math.max(1,Math.round(n*r));let a=i.getContext(`2d`,{willReadFrequently:!0});return a?(a.drawImage(e,0,0,i.width,i.height),{canvas:i,ctx:a}):null}async function xo(e){let t=bo(await yo(e));if(!t)return null;let{canvas:n,ctx:r}=t,i=vo(r.getImageData(0,0,n.width,n.height).data,n.width,n.height);if(!i)return null;let a=document.createElement(`canvas`);return a.width=i.w,a.height=i.h,a.getContext(`2d`)?.drawImage(n,i.x,i.y,i.w,i.h,0,0,i.w,i.h),a}var So=new Map;function Co(e){return So.has(e)||So.set(e,xo(e).then(t=>t?t.toDataURL(`image/png`):e).catch(()=>e)),So.get(e)}var wo=20971520,To=[1,.75,.5,.35],Eo=[[`image/png`,void 0],[`image/webp`,.92],[`image/webp`,.8]];async function Do(e,t){for(let n of To)for(let[r,i]of Eo){let a=await e(n,r,i);if(a&&a.type===r&&a.size<=t)return a}return null}function Oo(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var ko={"image/png":`.png`,"image/webp":`.webp`};async function Ao(e,t){let n=t=>new File([t],e.name.replace(/\.[^.]+$/,``)+ko[t.type],{type:t.type});if(e.size>t){if(e.type===`image/svg+xml`)throw Error(`${e.name} is over ${t/1024} KB.`);if(e.size>20971520)throw Error(`${e.name} is over ${wo/1024/1024} MB: save a smaller copy and upload that.`);let r=await yo(await Oo(e)).catch(()=>null),i=r&&bo(r);if(!i)throw Error(`${e.name} could not be read: save it again as PNG or JPEG and upload that.`);let{canvas:a,ctx:o}=i,s=vo(o.getImageData(0,0,a.width,a.height).data,a.width,a.height)??{x:0,y:0,w:a.width,h:a.height},c=await Do((e,t,n)=>{let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(s.w*e)),r.height=Math.max(1,Math.round(s.h*e));let i=r.getContext(`2d`);return i?(i.imageSmoothingQuality=`high`,i.drawImage(a,s.x,s.y,s.w,s.h,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,t,n))):Promise.resolve(null)},t);if(!c)throw Error(`${e.name} could not be made smaller than ${t/1024} KB: save a smaller copy and upload that.`);return n(c)}try{let r=await xo(await Oo(e));if(!r)return e;let i=await new Promise(e=>r.toBlob(e,`image/png`));return!i||i.size>t?e:n(i)}catch{return e}}var jo=`/assets/forgeqe-logo-D3CwM2Jl.png`,Mo=`/assets/forgeqe-logo-white-CoE-hF2l.png`,No=`/assets/forgeqe-mark-ZLd4S3hw.png`;function Po(e){let[t,n]=(0,D.useState)({});return(0,D.useEffect)(()=>{if(!e)return;let t=!0;return Co(e).then(r=>t&&n({from:e,to:r})),()=>{t=!1}},[e]),e&&t.from===e?t.to:e}var Fo=e=>`#${e.map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`;function Io(e){try{let t=document.createElement(`canvas`);t.width=t.height=32;let n=t.getContext(`2d`,{willReadFrequently:!0});if(!n)return null;n.drawImage(e,0,0,32,32);let r=n.getImageData(0,0,32,32).data,i=(e,t)=>[...r.subarray((t*32+e)*4,(t*32+e)*4+4)],a=[i(1,1),i(30,1),i(1,30),i(30,30)];if(a.every(e=>e[3]>=200))return{kind:`background`,colour:Fo([0,1,2].map(e=>a.reduce((t,n)=>t+n[e],0)/4))};let o=[0,0,0],s=0;for(let e=0;e<r.length;e+=4)if(r[e+3]>=200){for(let t=0;t<3;t++)o[t]+=r[e+t];s++}return s?{kind:`ink`,colour:Fo(o.map(e=>e/s))}:null}catch{return null}}var Lo=`h-auto w-auto min-h-10 max-h-[112px] max-w-full object-contain`,Ro=`h-11 w-auto max-w-[168px] object-contain object-left`;function zo({aspect:e,alone:t,own:n,size:r,circle:i}){let a=e>1.6,o=a||t;if(n&&(!r||r===`auto`))return o?!a&&(e<=1.25||i)?{cls:i?`size-14 rounded-full object-cover`:`size-14 object-contain`,grow:!1,auto:!0}:{cls:Lo,grow:!0,auto:!0}:{cls:i?`size-10 rounded-full object-cover`:`size-10 object-contain`,grow:!1,auto:!0};let s=r===`large`;return i?{cls:`${t?s?`size-16`:`size-11`:s?`size-12`:`size-8`} rounded-full object-cover`,grow:!1,auto:!1}:o?{cls:s?Lo:Ro,grow:s,auto:!1}:{cls:s?`size-12 object-contain`:`size-8 object-contain`,grow:!1,auto:!1}}function Bo({theme:e,compact:t=!1,onPlate:n}){let{mode:r}=Q(),i=r===`dark`?Mo:jo,a=Po(e.logo)||i,[o,s]=(0,D.useState)(e.logo?1:2.1),[c,l]=(0,D.useState)(null),u=o>1.6,d=zo({aspect:o,alone:!!e.logo&&!e.name,own:!!e.logo,size:t?`standard`:e.logoSize,circle:e.logoFrame===`circle`&&!u}),f=d.auto&&!e.logoFrame&&c?.kind===`background`,p=e.logo&&e.logoFrame!==`tile`&&!f?oo(c,Va(e,r)):null,m=f&&!!oo(c,Va(e,r));(0,D.useEffect)(()=>n?.(!!p),[p,n]);let h=e.logo?e.logoFrame===`circle`&&u?`rounded`:e.logoFrame||(d.auto&&c?.kind===`background`?`rounded`:`plain`):`plain`,g=d.cls,_=(0,A.jsx)(`img`,{src:a,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&s(t.naturalWidth/t.naturalHeight),l(Io(t))},className:x(`block min-w-0`,d.grow?`flex-initial`:`flex-none`,g,h===`rounded`&&`overflow-hidden rounded-[8px]`,m&&`shadow-[0_0_0_1px_rgb(0_0_0/0.12)]`)});return(0,A.jsxs)(`span`,{className:x(`flex min-w-0 items-center gap-2.5`,d.grow&&`flex-1`),children:[h===`tile`||p?(0,A.jsx)(`span`,{style:p?{background:p}:void 0,className:x(`flex items-center justify-center rounded-[10px] p-1.5`,!p&&`bg-white shadow-[0_0_0_1px_rgb(0_0_0/0.06)]`,d.grow?`min-w-0 flex-initial`:`flex-none`),children:_}):_,!u&&e.name&&(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name})]})}function Vo({theme:e}){let{mode:t}=Q(),[n,r]=(0,D.useState)(1),[i,a]=(0,D.useState)(null),o=Po(e.logoMark||e.logo),s=!!o&&(!!e.logoMark||n<=1.6),c=s?oo(i,Va(e,t)):null;return s?(0,A.jsx)(`span`,{style:c?{background:c}:void 0,className:x(`flex size-9 items-center justify-center rounded-[10px]`,c&&`p-1`),children:(0,A.jsx)(`img`,{src:o,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&r(t.naturalWidth/t.naturalHeight),a(Io(t))},className:x(`block size-full object-contain`,e.logoFrame===`circle`?`rounded-full`:`rounded-[8px]`)})}):(0,A.jsxs)(`span`,{"aria-hidden":`true`,className:`flex size-9 items-center justify-center`,children:[(0,A.jsx)(`img`,{src:No,alt:``,className:`block size-9 object-contain`}),o&&!e.logoMark&&(0,A.jsx)(`img`,{src:o,alt:``,className:`hidden`,onLoad:e=>e.currentTarget.naturalHeight&&r(e.currentTarget.naturalWidth/e.currentTarget.naturalHeight)})]})}var Ho=`/assets/capgemini-mark-D6aZFnD3.png`,Uo=`m 153.2175,21.2782 c 3.4962,0 6.1962,-2.8462 6.2312,-6.225 -0.245,-1.475 -0.7625,-4.2037 -4.585,-4.2037 -4.19,0 -5.5762,5.8487 -8.985,9.6237 -0.2737,2.1438 -2.305,4.0625 -4.8387,4.385 0.62,0.6488 2.0025,1.0013 3.6525,1.0013 3.0175,0 6.67,-0.9088 8.5837,-2.7988 -2.5537,0.035 -4.1937,-1.6062 -4.355,-3.8762 1.245,1.5087 2.6513,2.0937 4.2963,2.0937`,Wo=`m 126.3725,11.972 c 0,-1.86 -0.1125,-3.1 -1.3288,-3.1 -0.5562,0 -0.825,0.1125 -1.3087,0.2725 0.43,6.28 -0.9913,11.8125 -2.7238,11.8125 -2.2712,0 -1.1387,-13.4625 -5.9475,-13.4625 -4.4387,0 -5.0787,10.7475 -5.5812,10.7475 -0.3425,0 -0.395,-2.8225 -0.3763,-4.9763 0.1863,-1.03 0.2888,-1.9575 0.2888,-2.6612 0,-1 -0.41,-2.7288 -2.6813,-1.865 0.079,7.6862 -1.46,12.3287 -3.1937,12.3287 -2.5388,0 -2.5675,-6.9675 -2.5675,-8.8862 0,-1.875 0.1362,-4.38 -2.6513,-3.4913 -0.415,6.7038 -2.1737,11.7625 -3.2812,11.7625 -1.6513,0 -1.3188,-11.5812 -4.8888,-11.5812 -3.2125,0 -4.2037,10.9712 -4.8725,10.9712 -1.1962,0 0.3763,-12.3487 -4.2625,-12.3487 -2.4312,0 -3.3987,4.1212 -4.3512,8.735 -0.185,0.8937 -0.375,0.9237 -0.41,-0.087 -0.024,-0.8588 -0.029,-1.7238 -0.019,-2.5825 1.1663,-4.6388 -0.2587,-6.3525 -2.4075,-5.1175 0.6938,8.56 -3.2375,12.7437 -6.25,12.7437 -1.0887,0 -1.9487,-0.4637 -2.5875,-1.1962 3.6125,-2.2163 5.2188,-4.76 5.2188,-7.2463 0,-2.69 -1.5475,-4.2425 -4.1163,-4.2425 -3.5837,0 -5.59,3.6913 -5.59,6.8313 0,1.6887 0.3175,3.125 0.835,4.3062 -1.2312,0.5863 -2.3925,1.0938 -3.4725,1.5863 -0.098,-3.2275 -0.4587,-6.615 -0.7362,-9.745 -1.91,-0.5275 -2.4663,0.39 -2.6125,2.0887 -0.3425,3.8775 -1.7775,6.285 -3.0475,6.285 -0.9525,0 -1.5375,-1.1625 -1.6063,-2.3975 -0.3562,-6.2162 4.6875,-7.945 7.3288,-7.0412 0.5475,-1.3725 -0.054,-2.3588 -2.4363,-2.3588 -2.8862,0 -5.0437,1.7538 -6.6262,4.0038 -1.0538,1.5 -2.275,2.5637 -3.8963,3.8487 0.044,-0.3662 0.064,-0.7375 0.064,-1.1037 0,-4.38 -2.3738,-6.3038 -4.6388,-6.3038 -1.875,0 -3.0562,1.1225 -3.74,2.8513 -0.1662,-1.7338 -0.5125,-2.48 -1.5187,-2.48 -0.43,0 -1.03,0.1212 -1.67,0.4337 0.2925,0.9675 0.405,3.1113 0.405,4.5175 0,5.2675 -1.5088,7.6313 -2.9588,7.6313 -1.66,0 -1.9237,-6.25 -2.065,-8.6813 -0.2587,-0.098 -0.5325,-0.1512 -0.8112,-0.1512 -1.5038,0 -1.6988,2.0162 -2.07,3.8712 -0.41,2.0563 -1.5913,4.6388 -3.345,4.6388 -1.0588,0 -1.7238,-1.02 -1.8063,-2.8563 -0.1712,-3.725 2.93,-8.14 7.7788,-6.7675 0.6337,-1.4837 -0.3625,-2.6125 -2.3738,-2.6125 -3.545,0 -6.475,2.6513 -7.7537,5.7913 -1.2988,2.8812 -3.57,7.11 -8.1888,7.11 C 6.26,21.7975 3.76,18.95 3.76,12.9787 c 0,-5.1462 3.2462,-10.035 6.7087,-10.035 2.4213,0 2.9838,2.3838 2.7688,4.62 1.255,1.005 3.31,0.067 3.31,-2.4462 0,-1.7338 -1.4063,-4.6738 -5.9513,-4.6738 C 4.9712,0.4437 0,6.055 0,13.4225 0,20.5612 3.6225,24.78 8.75,24.78 c 3.2375,0 6.2887,-1.845 8.3937,-5.2538 0.5325,2.9838 2.5638,4.2388 4.0863,4.2388 2.4662,0 4.0775,-1.5975 4.9562,-3.755 0.5475,2.1625 1.7038,3.765 3.6288,3.765 1.3525,0 2.4112,-0.6888 3.2075,-1.7875 -0.3175,7.5187 -0.7125,12.3137 3.73,11.3725 -0.6875,-2.1388 -0.9075,-6.0313 -0.9075,-9.5275 0,-9.565 1.5775,-12.7138 3.555,-12.7138 1.435,0 1.8987,1.825 1.8987,3.7738 0,1.045 -0.1025,2.2462 -0.3662,3.325 -2.4313,1.5337 -4.37,2.745 -4.37,4.2825 0,1.2162 0.9037,1.3275 1.685,1.3275 1.865,0 4.1112,-1.83 5.3512,-5.2825 1.0838,-0.6588 2.1725,-1.4113 3.2125,-2.4363 -0.034,0.3513 -0.054,0.7025 -0.054,1.0638 0,3.4275 1.4987,5.5037 3.8962,5.5037 1.88,0 3.2863,-1.3337 4.2825,-3.33 0.064,1.1513 0.1025,2.2113 0.1175,3.1825 -3.8087,1.7638 -8.0225,3.55 -8.0225,8.5213 0,2.5725 1.855,4.5062 4.2725,4.5062 5.3075,0 6.5188,-5.6 6.5675,-12.1087 1.7288,-0.7475 3.0125,-1.3238 4.4975,-2.0613 1.2688,1.5925 2.9975,2.3888 4.58,2.3888 2.9925,0 5.2438,-1.5875 7.05,-4.805 0.3175,2.4462 0.9525,4.805 2.2563,4.805 2.3725,0 2.8562,-12.4125 4.6187,-12.4125 1.3525,0 0.245,13.4275 3.8138,13.4275 3.0562,0 3.6275,-11.8163 5.1175,-11.8163 1.055,0 1.1325,10.8013 4.4625,10.8013 1.6362,0 3.4137,-1.9688 4.3012,-6.09 0.42,2.745 1.8025,6.09 4.5075,6.09 1.5775,0 2.935,-1.5975 3.9838,-3.7163 0.2887,2.1825 0.9037,3.7163 2.1,3.7163 3.11,0 3.0075,-12.3838 5.4687,-12.3838 1.9188,0 1.3288,12.3838 5.8988,12.3838 2.1725,0 3.2025,-1.8513 3.8187,-4.18 0.8388,3.4225 2.2013,4.18 3.315,4.18 0.7075,0 1.245,-0.25 1.9488,-1.085 -3.5363,-1.5325 -3.2375,-7.1138 -3.2375,-10.7175 m -74.8438,21.27 c -1.0987,0 -1.68,-1.045 -1.68,-2.2225 0,-3.1788 2.3338,-4.8625 5.205,-6.3125 -0.1275,6.9425 -1.7437,8.535 -3.525,8.535 m 14.2775,-22.51 c 1.0688,0 1.6788,0.9812 1.5713,2.3925 -0.1213,1.655 -1.3275,3.555 -3.4275,5.0437 -1.0938,-3.115 -0.2775,-7.4362 1.8562,-7.4362 M 99.6722,6.035 c 1.0162,-0.034 1.7287,-0.9075 1.7337,-1.9475 0.01,-1.04 -0.6987,-1.8613 -1.7187,-1.8225 -1.02,0.035 -1.85,0.9087 -1.855,1.9487 -0.01,1.04 0.82,1.855 1.84,1.8213 m 25.3325,0.5275 c 0.9275,-0.034 1.685,-0.8638 1.685,-1.855 0,-0.9913 -0.7425,-1.7675 -1.67,-1.7388 -0.9288,0.034 -1.685,0.8688 -1.69,1.86 -0.01,0.9913 0.7475,1.7675 1.675,1.7338 m 34.4387,8.2425 c -0.079,-3.9263 -1.9437,-7.2363 -4.825,-9.8788 -2.1875,-1.9962 -4.785,-3.515 -7.5087,-4.6575 -0.215,-0.092 -0.44,-0.1812 -0.66,-0.2687 -3.3538,4.0187 -14.965,7.0162 -14.965,15.44 0,3.29 2.08,6.3712 5.1312,7.6075 1.7725,0.6687 3.54,0.7025 5.3125,0.1062 1.5775,-0.5175 2.8713,-1.4937 3.95,-2.68 3.4088,-3.775 4.795,-9.6187 8.98,-9.6187 3.8275,0 4.345,2.7237 4.59,4.1987 0,-0.01 0,-0.1075 -0.01,-0.2487`;function Go({rail:e=!1}){let{mode:t}=Q();return e?(0,A.jsx)(`img`,{src:Ho,alt:`Capgemini`,"data-tip":`Capgemini`,"data-tip-side":`left`,className:`mb-1 size-8 flex-none object-contain`}):(0,A.jsxs)(`svg`,{viewBox:`-1.06668594 -1.06668594 161.58207188 37.68956988`,role:`img`,"aria-label":`Capgemini`,className:`ml-2 h-8 w-auto max-w-[180px] flex-none overflow-visible`,shapeRendering:`geometricPrecision`,children:[(0,A.jsx)(`path`,{fill:t===`dark`?`#fff`:`#12ABDB`,fillRule:`evenodd`,d:Uo}),(0,A.jsx)(`path`,{fill:t===`dark`?`#fff`:`#0070AD`,fillRule:`evenodd`,d:Wo})]})}function Ko({item:e}){return e.agent?(0,A.jsx)(Sr,{agent:e.agent,px:18,decorative:!0}):(0,A.jsx)(w,{name:Ir[e.id]||Lr[e.id]||`feature`,px:18})}var qo={id:`settings`,label:`Settings`};function Jo(){let e=(e,t,n,r,i)=>({id:e,label:t,meta:n,href:r,words:i,kind:`page`});return[...P.filter(e=>e.item.path[0]!==`settings`).map(t=>e(t.item.id,t.item.label,`${t.category.label} · ${t.area.label}`,Rr(t.item),[t.item.words,t.item.about].filter(Boolean).join(` `))),...N.flatMap(t=>[e(`browse-${t.id}`,t.label,`Category`,zr(t),t.about),...t.areas.map(n=>e(`browse-${t.id}-${n.id}`,n.label,t.label,Br(t,n),n.about))]),e(`browse`,`ForgeQE`,`Every category`,T(`browse`),`Everything browse all categories home`),e(qo.id,qo.label,`Every setting`,T(qo.id))]}var Yo=Jo(),Xo=(0,D.lazy)(()=>pr(()=>import(`./CommandPalette-Cdjwbda-.js`),__vite__mapDeps([0,1,2,3,4,5]))),Zo=()=>typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),Qo=()=>Zo()?`⌘K`:`Ctrl K`;function $o({rail:e=!1}){let{find:t}=(0,D.useContext)(ts);return e?(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Search (${Qo()})`,"data-tip":`Search (${Qo()})`,"data-tip-side":`right`,onClick:t,className:`size-9`,children:(0,A.jsx)(Se,{strokeWidth:1.8,"aria-hidden":`true`})}):(0,A.jsxs)(S,{size:`sm`,onClick:t,"aria-keyshortcuts":Zo()?`Meta+K`:`Control+K`,className:`w-full justify-start px-2.5`,children:[(0,A.jsx)(Se,{strokeWidth:1.8,"aria-hidden":`true`}),(0,A.jsx)(`span`,{className:`flex-1 text-left`,children:`Search`}),(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:Qo()})]})}var $=`flex h-8 short:h-7 items-center gap-2.5 rounded-[8px] px-2.5 text-[14px] no-underline`,es=e=>e?`bg-surface-strong font-medium text-ink ring-1 ring-line ring-inset hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`,ts=(0,D.createContext)({hidden:!1,open:()=>{},setChat:()=>{},find:()=>{}});function ns(e){let{setChat:t}=(0,D.useContext)(ts),n=JSON.stringify(e);(0,D.useEffect)(()=>(t(e),()=>t(null)),[n,t])}var rs=`forgeqe-sidebar`,is=()=>{try{return localStorage.getItem(rs)===`closed`}catch{return!1}};function as({className:e}){let{open:t}=(0,D.useContext)(ts);return(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,onClick:t,className:x(`inline-flex md:hidden`,e),children:(0,A.jsx)(vt,{strokeWidth:1.8,"aria-hidden":`true`})})}function os(){return(0,A.jsxs)(`div`,{className:`theme-side sticky top-0 z-20 flex items-center gap-1 border-b border-line-soft px-3 py-2 md:hidden`,children:[(0,A.jsx)(as,{}),(0,A.jsx)(`span`,{className:`ml-1 flex min-w-0 flex-1`,children:(0,A.jsx)(Cs,{compact:!0})})]})}function ss({item:e,current:t}){let n=t===e.id;return(0,A.jsxs)(`a`,{href:T(e.id),"aria-current":n?`page`:void 0,className:x($,es(n)),children:[(0,A.jsx)(Ko,{item:e}),(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})]})}function cs({current:e,rail:t=!1}){let n=!e;return t?(0,A.jsx)(`a`,{href:T(),"aria-label":`New chat`,"data-tip":`New chat`,"data-tip-side":`right`,"aria-current":n?`page`:void 0,className:x(hs,`mt-2`,n?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(Sr,{agent:`forgeqe`,px:18,decorative:!0})}):(0,A.jsxs)(`a`,{href:T(),"aria-current":n?`page`:void 0,className:x($,es(n)),children:[(0,A.jsx)(Sr,{agent:`forgeqe`,px:18,decorative:!0}),`New chat`]})}function ls({to:e,icon:t,label:n,on:r,count:i,more:a}){return(0,A.jsxs)(`a`,{href:e,"aria-current":r?`page`:void 0,className:x($,es(r)),children:[t?(0,A.jsx)(w,{name:t,px:18}):(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`size-[18px] flex-none`}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n}),i!==void 0&&(0,A.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:i}),a&&(0,A.jsx)(l,{size:14,strokeWidth:2,"aria-hidden":`true`,className:`flex-none text-muted`})]})}function us({chats:e,open:t}){return e?.length?(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-chats`,className:`mt-4 flex flex-col gap-px border-t border-line-soft pt-3 short:mt-3 short:pt-2`,children:[(0,A.jsx)(`a`,{id:`nav-chats`,href:T(`chats`),className:`flex h-7 short:h-6 items-center rounded-[6px] px-2.5 text-[12px] font-medium text-muted no-underline hover:text-ink`,children:`Recent chats`}),e.map(e=>{let n=e.id===t,r=oi(e);return(0,A.jsxs)(`a`,{href:T(`chats`,e.id),"aria-current":n?`page`:void 0,"data-tip":e.title,"data-tip-side":`right`,className:x($,es(n)),children:[(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title||`Untitled chat`}),r&&(0,A.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,role:`img`,"aria-label":`Needs you`})]},e.id)}),(0,A.jsx)(`a`,{href:T(`chats`),className:x($,`text-[13px] text-muted no-underline hover:bg-surface-strong hover:text-ink`),children:`All chats`})]}):null}function ds(e){let t=Wr(e);if(t.category)return{category:t.category.id,area:t.area?.id};let n=Ur(e);return n&&n.item.path.length?{category:n.category.id,area:n.area.id}:{}}function fs({current:e,route:t,onClose:n,stats:r}){let i=t.join(`/`),[a,o]=(0,D.useState)(()=>ds(t));(0,D.useEffect)(()=>o(ds(t)),[i]);let{pins:s}=Yr(),c=ni(),l=Ur(t)?.item.id,u=N.find(e=>e.id===a.category),d=u?.areas.find(e=>e.id===a.area),f=Wr(t),m=(e,t)=>(0,A.jsxs)(`a`,{href:t,className:x($,`text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`),children:[(0,A.jsx)(p,{size:16,strokeWidth:2,"aria-hidden":`true`,className:`w-[18px] flex-none`}),(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e})]}),h=(e,t,n)=>(0,A.jsx)(`a`,{href:t,"aria-current":n?`page`:void 0,className:x($,`mt-1 font-semibold text-ink hover:bg-surface-strong hover:text-ink`,n&&`bg-surface-strong ring-1 ring-line ring-inset`),children:(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e})}),g=si(i),_=s.map(e=>P.find(t=>t.item.id===e)).filter(e=>!!e);return(0,A.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-[248px] min-[1440px]:w-[264px] flex-col border-r border-line-soft px-3 py-3 short:py-2`,children:[(0,A.jsxs)(`div`,{className:`flex min-h-10 items-center gap-1 pl-2.5`,children:[(0,A.jsx)(Cs,{}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Close the sidebar`,"data-tip":`Close the sidebar`,onClick:n,className:`size-8 flex-none`,children:(0,A.jsx)(Pe,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,A.jsx)(`div`,{className:`mt-3 short:mt-2`,children:(0,A.jsx)($o,{})}),(0,A.jsx)(`div`,{className:`mt-2 flex flex-col gap-px`,children:(0,A.jsx)(cs,{current:e})}),(0,A.jsxs)(`div`,{className:`side-level -mx-3 mt-2 flex min-h-0 flex-1 flex-col gap-px overflow-y-auto px-3 pb-6 [mask-image:linear-gradient(to_bottom,black_calc(100%-28px),transparent)]`,children:[!u&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-browse`,className:`mt-3 flex flex-col gap-1.5 short:mt-1.5 short:gap-1`,children:[(0,A.jsx)(`a`,{id:`nav-browse`,href:T(`browse`),"aria-current":t[0]===`browse`&&!f.category?`page`:void 0,className:`flex h-7 short:h-6 items-center rounded-[6px] px-2.5 text-[12px] font-medium text-muted no-underline hover:text-ink`,children:`Browse`}),N.map(e=>(0,A.jsx)(ls,{to:zr(e),icon:e.icon,label:e.label,on:!1,more:!0},e.id))]}),_.length>0&&(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-pinned`,className:`mt-3 flex flex-col gap-px short:mt-1.5`,children:[(0,A.jsx)(`span`,{id:`nav-pinned`,className:`flex h-7 short:h-6 items-center px-2.5 text-[12px] font-medium text-muted`,children:`Pinned`}),_.map(e=>(0,A.jsx)(ls,{to:Rr(e.item),icon:e.item.icon,label:e.item.label,on:l===e.item.id},e.item.id))]})]}),u&&!d&&(0,A.jsxs)(A.Fragment,{children:[m(`ForgeQE`,T(`browse`)),h(u.label,zr(u),f.category?.id===u.id&&!f.area),u.areas.map(e=>(0,A.jsx)(ls,{to:Br(u,e),label:e.label,count:e.items.length,on:!1,more:!0},e.id)),(()=>{let e=ri(u,s,c),t=(e,t,n)=>n.length>0&&(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":e,className:`mt-3 flex flex-col gap-px short:mt-1.5`,children:[(0,A.jsx)(`span`,{id:e,className:`flex h-7 short:h-6 items-center px-2.5 text-[12px] font-medium text-muted`,children:t}),n.map(e=>(0,A.jsx)(ls,{to:Rr(e),icon:e.icon,label:e.label,on:l===e.id},e.id))]});return(0,A.jsxs)(A.Fragment,{children:[t(`nav-cat-pinned`,`Pinned`,e.pinned),t(`nav-cat-recent`,`Recently used`,e.recent)]})})()]}),u&&d&&(0,A.jsxs)(A.Fragment,{children:[m(u.label,zr(u)),h(d.label,Br(u,d),f.area?.id===d.id),d.items.map(e=>(0,A.jsx)(ls,{to:Rr(e),icon:e.icon,label:e.label,on:l===e.id&&!(e.id===`chats`&&t[1])},e.id)),u.id===`agents`&&d.id===`chat`&&t[0]===`chats`&&t[1]&&(0,A.jsx)(ms,{uses:r?.uses})]}),(0,A.jsx)(us,{chats:g,open:t[0]===`chats`?t[1]:void 0})]},`${a.category||``}/${a.area||``}`),(0,A.jsxs)(`div`,{className:`flex flex-none items-center gap-1 border-t border-line-soft pt-2 short:pt-1`,children:[(0,A.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,A.jsx)(ss,{item:qo,current:e})}),(0,A.jsx)(vs,{}),(0,A.jsx)(bs,{icon:!0})]})]})}var ps=[{id:`knowledge`,label:`Knowledge`,icon:`knowledge-base`,to:T(`knowledge`)},{id:`sections`,label:`Document sections`,icon:`wikis`,to:T(`knowledge`)},{id:`skills`,label:`Skills`,icon:`feature`,to:T(`skills`)},{id:`systems`,label:`Systems`,icon:`columns`}];function ms({uses:e}){let t=ps.map(t=>({...t,names:e?.[t.id]||[]}));return(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-in-chat`,className:`mt-3 flex flex-col gap-px short:mt-1.5`,children:[(0,A.jsx)(`span`,{id:`nav-in-chat`,className:`flex h-7 short:h-6 items-center px-2.5 text-[12px] font-medium text-muted`,children:`In this chat`}),t.every(e=>!e.names.length)?(0,A.jsx)(`span`,{className:`px-2.5 text-[13px] text-muted`,children:`No knowledge, documents, skills or systems used yet.`}):t.filter(e=>e.names.length).map(t=>{let n=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(w,{name:t.icon,px:18}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t.label}),(0,A.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:t.names.length})]});return(0,A.jsxs)(`div`,{className:`flex flex-col`,children:[t.to?(0,A.jsx)(`a`,{href:t.to,className:x($,es(!1)),children:n}):(0,A.jsx)(`span`,{className:x($,`text-ink-2`),children:n}),(0,A.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0 pl-[30px]`,children:[t.names.map(e=>(0,A.jsx)(`li`,{"data-tip":e,className:`truncate px-2.5 py-0.5 text-[13px] text-muted`,children:e},e)),t.id===`sections`&&e?.text&&e.text.whole>e.text.sent&&(0,A.jsxs)(`li`,{"data-tip":`${e.text.sent.toLocaleString()} of ${e.text.whole.toLocaleString()} characters`,className:`truncate px-2.5 py-0.5 text-[13px] text-muted`,children:[Math.round((1-e.text.sent/e.text.whole)*100),`% less text than the whole documents`]})]})]},t.id)})]})}var hs=`flex size-9 flex-none items-center justify-center rounded-[8px] no-underline`;function gs({item:e,current:t}){let n=t===e.id;return(0,A.jsx)(`a`,{href:T(e.id),"aria-current":n?`page`:void 0,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`right`,className:x(hs,n?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(Ko,{item:e})})}function _s({current:e,route:t,onOpen:n}){let{theme:r}=Q(),{pins:i}=Yr(),a=r.name||`ForgeQE`,o=Ur(t),s=Wr(t).category?.id||(o?.item.path.length?o.category.id:``),c=(e,t,n,r)=>(0,A.jsx)(`a`,{href:e,"aria-current":r?`page`:void 0,"aria-label":t,"data-tip":t,"data-tip-side":`right`,className:x(hs,r?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(w,{name:n,px:18})},e),l=i.map(e=>P.find(t=>t.item.id===e)).filter(e=>!!e);return(0,A.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-16 flex-col items-center gap-px border-r border-line-soft py-3`,children:[(0,A.jsx)(`a`,{href:T(),"aria-label":`${a}, home`,"data-tip":a,"data-tip-side":`right`,className:`mb-1 flex min-h-10 items-center justify-center no-underline`,children:(0,A.jsx)(Vo,{theme:r})}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,"data-tip-side":`right`,onClick:n,className:`size-9`,children:(0,A.jsx)(vt,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,A.jsx)($o,{rail:!0}),(0,A.jsx)(cs,{current:e,rail:!0}),(0,A.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center gap-px overflow-y-auto`,children:[(0,A.jsxs)(`div`,{role:`group`,"aria-label":`Browse`,className:`flex flex-col items-center gap-px`,children:[(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),N.map(e=>c(zr(e),e.label,e.icon,s===e.id))]}),l.length>0&&(0,A.jsxs)(`div`,{role:`group`,"aria-label":`Pinned`,className:`flex flex-col items-center gap-px`,children:[(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),l.map(e=>c(Rr(e.item),e.item.label,e.item.icon,o?.item.id===e.item.id))]})]}),(0,A.jsxs)(`div`,{className:`flex flex-none flex-col items-center gap-px border-t border-line-soft pt-2`,children:[(0,A.jsx)(vs,{rail:!0}),(0,A.jsx)(bs,{icon:!0,rail:!0}),(0,A.jsx)(gs,{item:qo,current:e})]})]})}function vs({rail:e=!1}){return(0,A.jsx)(`a`,{href:`/help/guide`,target:`_blank`,rel:`noreferrer noopener`,"aria-label":`Help`,"data-tip":`Help`,"data-tip-side":e?`right`:void 0,className:x(hs,`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(w,{name:Ir.help,px:18})})}var ys=[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}];function bs({icon:e=!1,rail:t=!1}){let{choice:n,setChoice:r}=Q(),i=ys.findIndex(e=>e.id===n),a=ys[i],o=ys[(i+1)%ys.length],s=`Dark/Light: now ${a.label===`System`?`as the computer is`:a.label.toLowerCase()}. Switch to ${o.label===`System`?`as the computer is`:o.label.toLowerCase()}`;return(0,A.jsxs)(`button`,{type:`button`,"aria-label":s,"data-tip":s,"data-tip-side":t?`right`:void 0,onClick:()=>r(o.id),className:x(e?hs:$,`w-full cursor-pointer border-0 bg-transparent text-left text-ink-2 hover:bg-surface-strong hover:text-ink`,e&&`w-auto`),children:[(0,A.jsx)(w,{name:Ir.theme,px:18}),!e&&(0,A.jsxs)(`span`,{className:`flex flex-1 items-baseline justify-between gap-2`,children:[`Dark/Light`,(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:a.label===`System`?`Auto`:a.label})]})]})}function xs(e){return[{id:`env`,label:`Environment`},{id:`usage`,label:`Context and tokens`},...e?.changes?.length?[{id:`changes`,label:`Changes · ${e.changes.length}`}]:[],...e?.outputs?.length?[{id:`outputs`,label:`Outputs · ${e.outputs.length}`}]:[]]}function Ss({stats:e,onOpen:t}){return(0,A.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-14 flex-col items-center gap-1 border-l border-line-soft bg-surface-muted py-3`,children:[(0,A.jsx)(Go,{rail:!0}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,"data-tip-side":`left`,onClick:()=>t(),children:(0,A.jsx)(o,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`my-1 h-px w-6 bg-line`}),xs(e).map(e=>(0,A.jsx)(`button`,{type:`button`,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`left`,onClick:()=>t(e.id),className:x(hs,`cursor-pointer border-0 bg-transparent text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(Ko,{item:e})},e.id))]})}function Cs({compact:e=!1}){let{theme:t}=Q(),n=t.name||`ForgeQE`;return(0,A.jsx)(`a`,{href:T(),"aria-label":`${n}, home`,className:`-ml-1.5 flex min-h-9 min-w-0 flex-1 items-center gap-2 rounded-[8px] pl-1.5 text-base font-semibold text-ink no-underline hover:bg-surface-strong hover:text-ink`,children:(0,A.jsx)(Bo,{theme:t,compact:e})})}function ws(){let[e,t]=(0,D.useState)(!1);return(0,D.useEffect)(()=>{let e=()=>t(!0);return window.addEventListener(jt,e),()=>window.removeEventListener(jt,e)},[]),e?(0,A.jsx)(`p`,{role:`alert`,className:`mx-4 mt-4 mb-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:Rt()}):null}function Ts({stats:e,onClose:t,focus:n}){let r=(0,D.useRef)(null);return(0,D.useEffect)(()=>{n&&(r.current?.querySelector(`#panel-${n.id}`))?.scrollIntoView({block:`start`,behavior:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`})},[n]),(0,A.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-[264px] flex-col border-l border-line-soft bg-surface-muted`,children:[(0,A.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pt-3`,children:[(0,A.jsx)(Go,{}),(0,A.jsx)(`span`,{className:`flex-1`}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Close the workspace panel`,"data-tip":`Close the workspace panel`,"data-tip-side":`left`,onClick:t,children:(0,A.jsx)(he,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,A.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-y-auto px-3 pt-1 pb-3`,children:(0,A.jsx)(Oa,{chat:e})})]})}var Es=`forgeqe-workspace-panel`,Ds=()=>{try{return localStorage.getItem(Es)!==`closed`}catch{return!0}},Os=220;function ks({open:e,side:t,onClose:n,className:r,children:i}){if(!Dr(e,180))return null;let a=t===`left`?`aside`:`div`;return(0,A.jsxs)(`div`,{inert:!e||void 0,className:x(`drawer fixed inset-0 z-40`,!e&&`is-closing`,r),children:[(0,A.jsx)(`div`,{"aria-hidden":`true`,className:`drawer-dim absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:n}),(0,A.jsx)(a,{className:x(`drawer-box absolute inset-y-0 max-w-[85vw] shadow-menu`,t===`left`?`drawer-left left-0`:`right-0`),children:i})]})}function As({current:e,route:t=e?[e]:[],children:n}){let[r,i]=(0,D.useState)(is),[a,s]=(0,D.useState)(null),[c,l]=(0,D.useState)(!1),[u,d]=(0,D.useState)(Ds),[f,p]=(0,D.useState)(!1),[m,h]=(0,D.useState)(!1),[g,_]=(0,D.useState)(!1),v=t.join(`/`);(0,D.useEffect)(()=>ti(t),[v]);let y=()=>{l(!1),_(!0),h(!0)};(0,D.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`&&(e.preventDefault(),_(!0),h(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let ee=Dr(!r,Os),b=Dr(u,Os),[te,ne]=(0,D.useState)(null),re=()=>window.matchMedia(`(min-width: 1600px)`).matches,ie=e=>{d(e);try{localStorage.setItem(Es,e?`open`:`closed`)}catch{}};(0,D.useEffect)(()=>{if(!f)return;let e=()=>p(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[f]);let ae=e=>{i(e);try{localStorage.setItem(rs,e?`closed`:`open`)}catch{}};(0,D.useEffect)(()=>{if(!c)return;let e=()=>l(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[c]);let oe=()=>window.matchMedia(`(min-width: 768px)`).matches,se=e===`settings`,ce=e=>{re()?ie(!0):p(!0),ne(e?{id:e,at:Date.now()}:null)};return(0,A.jsx)(ts.Provider,{value:{hidden:r,open:()=>oe()?ae(!1):l(!0),setChat:s,find:y},children:(0,A.jsxs)(`div`,{className:`flex min-h-(--screen) bg-bg`,children:[(0,A.jsxs)(`aside`,{style:{viewTransitionName:`app-sidebar`},className:x(`side-box sticky top-0 h-(--screen) flex-none overflow-hidden`,r?`w-16`:`w-[248px] min-[1440px]:w-[264px]`,se?`hidden`:`hidden md:block`),children:[(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 left-0`,r&&`invisible opacity-0`),children:ee&&(0,A.jsx)(fs,{current:e,route:t,stats:a,onClose:()=>ae(!0)})}),(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 left-0`,!r&&`invisible opacity-0`),children:(0,A.jsx)(_s,{current:e,route:t,onOpen:()=>ae(!1)})})]}),(0,A.jsx)(ks,{open:c,side:`left`,onClose:()=>l(!1),className:`md:hidden`,children:(0,A.jsx)(fs,{current:e,route:t,stats:a,onClose:()=>l(!1)})}),(0,A.jsxs)(`div`,{className:`relative flex min-w-0 flex-1 flex-col`,children:[(0,A.jsx)(ws,{}),n,(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,onClick:()=>ce(),className:x(`absolute top-2 right-3 z-30 md:hidden`,se&&`hidden`),children:(0,A.jsx)(o,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,A.jsxs)(`div`,{style:{viewTransitionName:`app-panel`},className:x(`side-box sticky top-0 h-(--screen) w-14 flex-none overflow-hidden`,u&&`min-[1600px]:w-[264px]`,se?`hidden`:`hidden md:block`),children:[(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 right-0 hidden min-[1600px]:block`,!u&&`invisible opacity-0`),children:b&&(0,A.jsx)(Ts,{stats:a,focus:te,onClose:()=>ie(!1)})}),(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 right-0`,u&&`min-[1600px]:invisible min-[1600px]:opacity-0`),children:(0,A.jsx)(Ss,{stats:a,onOpen:ce})})]}),g&&(0,A.jsx)(D.Suspense,{fallback:null,children:(0,A.jsx)(Xo,{open:m,onClose:()=>h(!1),pages:Yo})}),(0,A.jsx)(ks,{open:f,side:`right`,onClose:()=>p(!1),className:`min-[1600px]:hidden`,children:(0,A.jsx)(Ts,{stats:a,focus:te,onClose:()=>p(!1)})})]})})}var js=`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-5 short:pb-6`;export{Si as $,Ln as $t,ea as A,_r as At,Gi as B,er as Bt,Na as C,jr as Ct,U as D,wr as Dt,oa as E,Tr as Et,ma as F,Yn as Ft,I as G,or as Gt,Wi as H,ir as Ht,Ji as I,Xn as It,Ai as J,rr as Jt,Pi as K,Jn as Kt,B as L,Hn as Lt,Xi as M,yr as Mt,aa as N,pr as Nt,L as O,Cr as Ot,H as P,sr as Pt,Ci as Q,Bn as Qt,qi as R,$n as Rt,uo as S,Pr as St,ro as T,Dr as Tt,Vi as U,Kn as Ut,Fi as V,Zn as Vt,Ui as W,Qn as Wt,xi as X,jn as Xt,Oi as Y,qn as Yt,Di as Z,Mn as Zt,Ga as _,Fr as _t,ns as a,bn as an,mi as at,Pa as b,Or as bt,wo as c,di as ct,Q as d,Br as dt,zn as en,bi as et,Ma as f,zr as ft,Aa as g,Ir as gt,ja as h,ni as ht,As as i,On as in,pi as it,$i as j,gr as jt,Ki as k,Sr as kt,Ao as l,P as lt,Ha as m,Yr as mt,as as n,wn as nn,_i as nt,Bo as o,xn as on,hi as ot,La as p,Rr as pt,ji as q,tr as qt,os as r,Tn as rn,fi as rt,Vo as s,F as st,js as t,Rn as tn,gi as tt,go as u,N as ut,io as v,Nr as vt,J as w,Er as wt,eo as x,Mr as xt,K as y,kr as yt,R as z,nr as zt};
|
|
4
|
+
`)){let e=n.indexOf(`=`),r=(e<0?n:n.slice(0,e)).trim();if(!r)continue;let i=e<0?``:n.slice(e+1).trim();t[r]=/^-?\d+(\.\d+)?$/.test(i)?Number(i):i===`true`||i!==`false`&&i}let r=Object.keys(t).length?t:void 0;c(r),n(r)}})}function Ui({defs:e,edit:t,base:n,stacked:r}){let i=kr(t.value,n),a=i&&typeof i==`object`&&!Array.isArray(i)?i:{};return(0,A.jsx)(A.Fragment,{children:e.filter(e=>!e.when||e.when(a)).map(e=>(0,A.jsx)(Vi,{def:e,edit:t,base:n,stacked:r},e.key))})}function Wi({title:e,meta:t,state:n,open:r,onToggle:i,lead:a,actions:o,children:s,expandable:c}){let l=(0,D.useId)();return(0,A.jsxs)(`div`,{className:`border-t border-line-soft`,children:[(0,A.jsxs)(`div`,{className:`flex min-h-[68px] flex-wrap items-center gap-x-4 gap-y-2 py-3`,children:[a,c===!1?(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,A.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}):(0,A.jsxs)(`button`,{type:`button`,"aria-expanded":r,"aria-controls":l,onClick:i,className:`flex min-w-0 flex-[1_1_260px] cursor-pointer items-center gap-3 rounded-[10px] border-0 bg-transparent p-0 text-left text-ink`,children:[(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:e}),t&&(0,A.jsx)(`span`,{className:`text-sm text-muted`,children:t})]}),(0,A.jsx)(_e,{size:18,"aria-hidden":`true`,className:x(`flex-none text-muted transition-transform`,r&&`rotate-180`)})]}),n,o]}),c!==!1&&(0,A.jsx)(wr,{open:r,id:l,children:(0,A.jsx)(`div`,{className:`mb-4 border-l-2 border-line-soft pb-2 pl-4 sm:pl-5 [&>*:first-child]:border-t-0`,children:s})})]})}function Gi(e){let[t,n]=(0,D.useState)(null),[r,i]=(0,D.useState)(``),a=(0,D.useCallback)(()=>{i(``),e().then(n,e=>i(e.message))},[e]);return(0,D.useEffect)(a,[a]),{data:t,error:r,reload:a}}function Ki({error:e,reload:t}){return e?(0,A.jsxs)(`div`,{role:`alert`,className:`flex flex-col items-start gap-3 rounded-[14px] card border p-5`,children:[(0,A.jsx)(`p`,{className:`m-0 text-sm leading-relaxed text-ink-2`,children:e}),(0,A.jsxs)(S,{size:`sm`,onClick:t,children:[(0,A.jsx)(g,{"aria-hidden":`true`}),`Retry`]})]}):(0,A.jsx)(`p`,{role:`status`,className:`m-0 py-3 text-sm text-muted`,children:`Loading…`})}function L({children:e}){return(0,A.jsx)(Yt,{className:`py-4`,children:e})}function R(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e4?`${Math.round(e/1e3)}k`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}var z=null;function qi(e){z=e}function B(e,t){if(!t)return`—`;let n=z?.to,r=z?.perEur?.[t],i=n?z?.perEur?.[n]:void 0,[a,o]=n&&n!==t&&r&&i?[e/r*i,n]:[e,t];try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:o,maximumFractionDigits:a<1?3:2}).format(a)}catch{return`${a.toFixed(2)} ${o}`}}function Ji(e){if(!z?.perEur||!e||z.to===e||!z.perEur[e])return``;let t=B(1,e);return`Shown in ${z.to}, converted from ${e} at the European Central Bank's rate of ${z.date}: ${new Intl.NumberFormat(void 0,{style:`currency`,currency:e}).format(1)} = ${t}.`}var V=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})},Yi=e=>e>=1048576?`${(e/1048576).toFixed(1)} MB`:e>=1024?`${Math.round(e/1024)} KB`:`${e} bytes`;function H({head:e,children:t,label:n}){return(0,A.jsx)(bi,{label:n,head:e.map((e,t)=>(0,A.jsx)(`th`,{scope:`col`,className:t>0?pi:fi,children:e},e||t)),children:t})}function U({cells:e}){return(0,A.jsx)(`tr`,{className:`border-t border-line-soft`,children:e.map((e,t)=>(0,A.jsx)(`td`,{className:x(`px-3 py-2 align-top`,t>0?`text-right whitespace-nowrap tabular-nums`:`min-w-[200px]`),children:e},t))})}var Xi={title:`How skills are used`,base:[`skills`],fields:[{key:`enabled`,label:`Use skills`,type:`switch`,default:!0},{key:`external`,label:`Also read Claude and agent skills`,help:`~/.claude/skills, ~/.agents/skills, and the repository's own.`,type:`switch`,default:!1},{key:`dirs`,label:`More skill folders`,help:`Comma separated. They win over the others.`,type:`list`,placeholder:`../shared-skills`},{key:`browser_max_chars`,label:`Skill text per browser run`,help:`Characters.`,type:`number`,default:6e3}]},Zi={"no match":`not run before`,"not a rerun":`not run before`,"not a recorded goal":`not run before`,"no recorded run matches":`not run before`,"its last run did not pass":`its last run failed`,"marked stale":`its saved steps are out of date`,"more than one recorded start page for this goal":`saved from more than one start page`};function Qi(e,t){return e===`tier0`?t===`shadow`?`Test mode: AI ran it, could have replayed`:`Replayed for free`:`AI: ${Zi[e]||e}`}function $i({edit:e}){let{data:t,error:n,reload:r}=Gi(C.registry),[i,a]=(0,D.useState)(!1),o=String(kr(e.value,[`registry`,`mode`])??`on`);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pi,{label:`Replay passed runs for free`,help:o===`shadow`?`In test mode now: ForgeQE only notes what it would have replayed, and the AI runs everything. Turn it on to use replays.`:`If the page changed, the AI takes over.`,yamlKey:e.file?`registry.mode`:void 0,children:(0,A.jsx)(Fr,{checked:o===`on`,onChange:t=>e.set(jr(e.value,[`registry`,`mode`],t?`on`:`off`)),label:`Replay passed runs for free`})}),t?!t.exists||t.plans.length===0?(0,A.jsx)(L,{children:`Nothing to replay yet. When a run passes, ForgeQE saves its steps, and running it again is free.`}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(di,{label:`Replays`,className:`mt-4`,children:[(0,A.jsx)(F,{icon:le,label:`Free reruns`,value:String(t.replayed),note:`of ${Vt(t.total,`run`)}`}),(0,A.jsx)(F,{icon:m,label:`Tokens saved`,value:R(t.tokensSaved),note:`${Vt(t.plans.length,`passed run`)} ready to replay`})]}),(0,A.jsxs)(`button`,{type:`button`,"aria-expanded":i,"aria-controls":`replay-details`,onClick:()=>a(!i),"data-tip":i?`Hide details`:`Show details`,className:`mt-2 inline-flex min-h-10 cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[i?(0,A.jsx)(de,{"aria-hidden":`true`}):(0,A.jsx)(_e,{"aria-hidden":`true`}),i?`Less`:`Details`]}),(0,A.jsxs)(wr,{open:i,id:`replay-details`,children:[(0,A.jsx)(I,{first:!0,children:`Saved runs`}),(0,A.jsx)(H,{label:`Saved runs`,head:[`Goal`,`Passed`,`Failed`,`Tokens the first time`,`Last used`],children:t.plans.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`line-clamp-2`,children:e.goal}),e.stale&&(0,A.jsx)(`span`,{className:`text-[13px] text-warn`,children:`Out of date: the AI runs it next time`})]}),e.successes,e.failures,e.firstTokens?R(e.firstTokens):`—`,V(e.lastAt)]},e.id))}),(0,A.jsx)(I,{children:`Recent runs`}),t.requests.length===0?(0,A.jsx)(L,{children:`No runs yet.`}):(0,A.jsx)(H,{label:`Recent runs`,head:[`Request`,`How it ran`,`Result`,`Tokens`,`When`],children:t.requests.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsx)(`span`,{className:`line-clamp-2`,children:e.request||e.planGoal||e.id}),Qi(e.decision,e.mode),e.outcome||`—`,R(e.tokens),V(e.startedAt)]},e.id))})]})]}):(0,A.jsx)(Ki,{error:n,reload:r})]})}function ea(){let{data:e,error:t,reload:r}=Gi(C.logs),[a,o]=(0,D.useState)(null),[s,c]=(0,D.useState)(``);return e?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Kept in `,(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.dir}),`. Secrets are replaced with their names before a log is shown.`]}),s&&(0,A.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:s}),e.logs.length===0?(0,A.jsx)(L,{children:`No session logs yet. ForgeQE writes one for each chat, run and suite.`}):e.logs.map(e=>(0,A.jsxs)(`div`,{className:`flex min-h-[60px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-2`,children:[(0,A.jsx)(Tr,{icon:i}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_240px] flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-mono text-[13px] break-all`,children:e.name}),(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.modified),`, `,Yi(e.size)]})]}),(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,"aria-label":`Open ${e.name}`,"data-tip":`Open ${e.name}`,onClick:()=>{c(``),C.log(e.name).then(o,e=>c(e.message))},children:(0,A.jsx)(i,{"aria-hidden":`true`})})]},e.name)),(0,A.jsx)(Cr,{wide:!0,open:!!a,onClose:()=>o(null),title:a?.name||``,description:a?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,A.jsxs)(S,{onClick:()=>o(null),children:[(0,A.jsx)(n,{"aria-hidden":`true`}),`Close`]}),children:a&&(0,A.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed whitespace-pre-wrap break-all`,children:a.text})})]}):(0,A.jsx)(Ki,{error:t,reload:r})}var ta={error:`Error`,tool:`Tool call failed`,run:`Run failed`,engine:`Browser engine stopped`,agent:`Agent error`,model:`Model call failed`},na={chat:`Chat`,start:`Shell`,run:`Run`,suite:`Suite`,code:`Write tests`,heal:`Heal`,monitor:`Monitor`,mcp:`MCP`,explore:`Explore`};function ra(){let[e,t]=(0,D.useState)(null),[r,i]=(0,D.useState)(``);return{show:e=>{i(``),C.log(e).then(t,e=>i(e.message))},error:r,sheet:(0,A.jsx)(Cr,{wide:!0,open:!!e,onClose:()=>t(null),title:e?.name||``,description:e?.truncated?`The end of the log; the start is cut to keep it quick to open.`:void 0,footer:(0,A.jsxs)(S,{onClick:()=>t(null),children:[(0,A.jsx)(n,{"aria-hidden":`true`}),`Close`]}),children:e&&(0,A.jsx)(`pre`,{className:`m-0 mt-4 font-mono text-[12px] leading-relaxed break-all whitespace-pre-wrap`,children:e.text})})}}function ia({entries:e}){let[t,n]=(0,D.useState)(-1);return e.length?(0,A.jsx)(A.Fragment,{children:e.map((e,r)=>(0,A.jsx)(Wi,{lead:(0,A.jsx)(Tr,{icon:_}),title:`${e.action}: ${e.file}`,meta:`${V(e.at)}, ${e.user} on ${e.machine}, ${e.changes.length} change${e.changes.length===1?``:`s`}`,open:t===r,onToggle:()=>n(t===r?-1:r),children:(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col gap-2 p-0 py-3`,children:e.changes.map((e,t)=>(0,A.jsxs)(`li`,{className:`flex flex-wrap items-baseline gap-x-2 gap-y-0.5 text-sm`,children:[(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.key}),(0,A.jsx)(`span`,{className:`text-muted`,children:e.before===void 0?(0,A.jsxs)(A.Fragment,{children:[`added `,(0,A.jsx)(`span`,{className:`text-ink`,children:e.after})]}):e.after===void 0?(0,A.jsxs)(A.Fragment,{children:[`removed `,(0,A.jsx)(`span`,{className:`text-ink line-through`,children:e.before})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`span`,{className:`text-ink line-through`,children:e.before}),` → `,(0,A.jsx)(`span`,{className:`text-ink`,children:e.after})]})})]},t))})},r))}):(0,A.jsx)(L,{children:`No changes made in Settings yet.`})}function aa({tabs:e,current:t,onPick:n,label:r}){return(0,A.jsx)(`div`,{role:`tablist`,"aria-label":r,className:`mb-5 flex flex-wrap gap-x-5 border-b border-line-soft`,children:e.map((r,i)=>(0,A.jsx)(`button`,{id:`tab-${r.id}`,type:`button`,role:`tab`,"aria-selected":t===r.id,"aria-controls":`panel-${r.id}`,tabIndex:t===r.id?0:-1,onClick:()=>n(r.id),onKeyDown:t=>{let r=t.key===`ArrowRight`?e[(i+1)%e.length]:t.key===`ArrowLeft`?e[(i-1+e.length)%e.length]:void 0;r&&(n(r.id),document.getElementById(`tab-${r.id}`)?.focus())},className:x(`-mb-px min-h-11 cursor-pointer border-0 border-b-2 bg-transparent px-0.5 text-sm font-medium`,t===r.id?`border-ink text-ink`:`border-transparent text-muted hover:text-ink`),children:r.label},r.id))})}function oa(){let{data:e,error:t,reload:n}=Gi(C.audit),[r,a]=(0,D.useState)(`summary`),o=ra();if(!e)return(0,A.jsx)(Ki,{error:t,reload:n});let s=e.summary,c=s.totals,l=e=>e?`${e} failed`:`None failed`;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:`The last 30 days, from the session logs on this machine and its usage ledger. Model calls count every project on this machine.`}),(0,A.jsx)(aa,{label:`Audit`,current:r,onPick:a,tabs:[{id:`summary`,label:`Summary`},{id:`problems`,label:`Problems (${s.problems.length})`},{id:`sessions`,label:`Sessions (${s.sessions.length})`},{id:`changes`,label:`Settings changes (${e.entries.length})`}]}),o.error&&(0,A.jsx)(`p`,{role:`alert`,className:`mt-0 mb-3 text-sm text-fail`,children:o.error}),(0,A.jsxs)(`div`,{id:`panel-${r}`,role:`tabpanel`,"aria-labelledby":`tab-${r}`,children:[r===`summary`&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(di,{label:`Activity summary`,children:[(0,A.jsx)(F,{icon:Be,label:`Sessions`,value:String(c.sessions),note:c.replays?`${c.replays} request${c.replays===1?``:`s`} replayed without the agent`:void 0}),(0,A.jsx)(F,{icon:Je,label:`Tool calls`,value:String(c.toolCalls),note:l(c.toolErrors)}),(0,A.jsx)(F,{icon:u,label:`Runs`,value:String(c.runs),note:l(c.runsFailed)}),(0,A.jsx)(F,{icon:ke,label:`Model calls`,value:String(c.modelCalls),note:l(c.modelErrors)}),(0,A.jsx)(F,{icon:Ue,label:`Errors`,value:String(c.errors),note:c.escalations?`${c.escalations} switch${c.escalations===1?``:`es`} to a stronger model`:void 0})]}),s.problems.length>0&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(I,{children:`Latest problems`}),(0,A.jsx)(sa,{problems:s.problems.slice(0,5),onLog:o.show}),s.problems.length>5&&(0,A.jsxs)(`button`,{type:`button`,onClick:()=>a(`problems`),"data-tip":`All ${s.problems.length} problems`,className:`mt-3 inline-flex min-h-10 cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 text-sm font-medium text-accent-fg hover:text-accent-fg-hover [&>svg]:size-4`,children:[(0,A.jsx)(et,{"aria-hidden":`true`}),`All (`,s.problems.length,`)`]})]}),(0,A.jsx)(I,{children:`Tools used`}),s.tools.length===0?(0,A.jsx)(L,{children:`No tool calls logged in the last 30 days.`}):(0,A.jsx)(H,{label:`Tools used`,head:[`Tool`,`Calls`,`Failed`,`Average time`],children:s.tools.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.name}),e.calls,e.errors?(0,A.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,e.calls?`${(e.ms/e.calls/1e3).toFixed(1)} s`:`—`]},e.name))}),(0,A.jsx)(I,{children:`Model calls`}),s.models.length===0?(0,A.jsx)(L,{children:`No model calls in the usage ledger in the last 30 days.`}):(0,A.jsx)(H,{label:`Model calls`,head:[`Model`,`Calls`,`Failed`,`Tokens`],children:s.models.map(e=>(0,A.jsx)(U,{cells:[e.model,e.calls,e.errors?(0,A.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,R(e.tokens)]},e.model))})]}),r===`problems`&&(s.problems.length?(0,A.jsx)(sa,{problems:s.problems,onLog:o.show}):(0,A.jsx)(L,{children:`Nothing failed in the last 30 days.`})),r===`sessions`&&(s.sessions.length?(0,A.jsx)(H,{label:`Sessions`,head:[`Session`,`Tool calls`,`Runs`,`Errors`,`Tokens`,``],children:s.sessions.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:na[e.command]||e.command}),(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.started),e.model?`, ${e.model}`:``]})]}),e.toolErrors?`${e.tools} (${e.toolErrors} failed)`:e.tools,e.runsFailed?`${e.runs} (${e.runsFailed} failed)`:e.runs,e.errors?(0,A.jsx)(`span`,{className:`text-fail`,children:e.errors}):0,R(e.tokens),(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log of the ${na[e.command]||e.command} session at ${V(e.started)}`,"data-tip":`Open the log of the ${na[e.command]||e.command} session at ${V(e.started)}`,onClick:()=>o.show(e.log),children:(0,A.jsx)(i,{"aria-hidden":`true`})})]},e.log))}):(0,A.jsx)(L,{children:`No sessions logged in the last 30 days.`})),r===`changes`&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every change made in Settings, kept in `,(0,A.jsx)(`span`,{className:`font-mono text-[13px]`,children:e.file}),`. Changes made to the files by hand are not here.`]}),(0,A.jsx)(ia,{entries:e.entries})]})]}),o.sheet]})}function sa({problems:e,onLog:t}){return(0,A.jsx)(A.Fragment,{children:e.map((e,n)=>(0,A.jsxs)(`div`,{className:`flex min-h-[64px] flex-wrap items-center gap-x-4 gap-y-2 border-t border-line-soft py-3`,children:[(0,A.jsx)(Tr,{icon:e.kind===`run`||e.kind===`tool`?ae:Ue,className:`bg-fail-soft text-fail`}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:ta[e.kind]}),(0,A.jsx)(`span`,{className:`text-sm break-words text-ink-2`,children:e.text}),(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[V(e.at),`, `,na[e.command]||e.command]})]}),e.log&&(0,A.jsx)(S,{variant:`icon`,size:`icon-sm`,"aria-label":`Open the log for: ${e.text.slice(0,60)}`,"data-tip":`Open the log for: ${e.text.slice(0,60)}`,onClick:()=>t(e.log),children:(0,A.jsx)(i,{"aria-hidden":`true`})})]},n))})}var ca={title:`Budgets`,help:`Money in the model's price currency, or GitHub Copilot premium requests. They only warn, at 80, 90 and 100 percent, and never stop a run. Day and month count every ForgeQE process on this machine.`,base:[`budget`],fields:[{key:`run`,label:`Per browser run`,type:`number`},{key:`day`,label:`Per day`,type:`number`},{key:`month`,label:`Per month`,type:`number`},{key:`currency`,label:`Currency`,type:`text`,placeholder:`USD`},{key:`premium_requests.run`,label:`Premium requests per browser run`,help:`GitHub Copilot: each call uses the model's multiplier, 0 for a model included in your plan.`,type:`number`},{key:`premium_requests.day`,label:`Premium requests per day`,type:`number`},{key:`premium_requests.month`,label:`Premium requests per month`,type:`number`}]},la={suite:`Suites`,monitor:`Monitor rounds`,run:`Browser runs`,explore:`Exploratory`,api:`API tests`,desktop:`Desktop runs`,mobile:`Mobile runs`};function ua({days:e,currency:t}){let[n,r]=(0,D.useState)(-1),i=Math.max(1,...e.map(e=>e.input+e.output)),a=e.reduce((e,t)=>e+t.input+t.output,0),o=e.filter(e=>e.runs>0).length,s=e.reduce((e,t)=>t.input+t.output>e.input+e.output?t:e,e[0]),c=n>=0?e[n]:e[e.length-1],l=e=>new Date(`${e}T12:00:00Z`).toLocaleDateString(void 0,{month:`short`,day:`numeric`});return(0,A.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,A.jsxs)(`p`,{"aria-live":`polite`,className:`m-0 text-sm text-ink-2`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:l(c.day)}),`: `,R(c.input+c.output),` tokens, `,c.runs,` run`,c.runs===1?``:`s`,t?`, ${B(c.amount,t)}`:``]}),(0,A.jsx)(`div`,{role:`img`,"aria-label":`Tokens a day for the last 30 days: ${R(a)} in all, on ${o} days with runs; the busiest was ${l(s.day)} with ${R(s.input+s.output)}.`,className:`flex h-[160px] items-end gap-[2px] border-b border-line`,onMouseLeave:()=>r(-1),children:e.map((t,a)=>{let o=t.input+t.output;return(0,A.jsx)(`div`,{className:`flex h-full flex-1 cursor-default items-end`,onMouseEnter:()=>r(a),children:(0,A.jsx)(`div`,{className:x(`w-full rounded-t-[4px] transition-[height]`,a===e.length-1||a===n?`bg-accent`:`bg-accent-line`),style:{height:o?`${Math.max(2,o/i*100)}%`:`0`}})},t.day)})}),(0,A.jsxs)(`div`,{"aria-hidden":`true`,className:`flex justify-between text-[12px] text-muted`,children:[(0,A.jsx)(`span`,{children:l(e[0].day)}),(0,A.jsx)(`span`,{children:l(e[e.length-1].day)})]})]})}function da({rows:e,currency:t,label:n}){if(!e.length)return(0,A.jsx)(L,{children:`Nothing yet.`});let r=Math.max(1,...e.map(e=>e.sum.input+e.sum.output));return(0,A.jsx)(`ul`,{"aria-label":n,className:`m-0 flex list-none flex-col gap-3 p-0`,children:e.map(e=>{let n=e.sum.input+e.sum.output;return(0,A.jsxs)(`li`,{className:`flex flex-col gap-1`,children:[(0,A.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,A.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:e.name}),(0,A.jsxs)(`span`,{className:`whitespace-nowrap text-ink-2 tabular-nums`,children:[R(n),` tokens`,t&&e.sum.amount?`, ${B(e.sum.amount,t)}`:``]})]}),(0,A.jsx)(`div`,{"aria-hidden":`true`,className:`h-2 rounded-full bg-surface-strong`,children:(0,A.jsx)(`div`,{className:`h-2 rounded-full bg-accent transition-[width] duration-200 ease-out`,style:{width:`${Math.max(1,n/r*100)}%`}})})]},e.name)})})}var fa=e=>{let t=Math.round(e*100)/100;return`${t} premium request${t===1?``:`s`}`};function pa({label:e,spent:t,limit:n,currency:r,premium:i}){let a=e=>i?fa(e):B(e,r),o=t/n*100,s=o>=100?`fail`:o>=80?`warn`:`ok`;return(0,A.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,A.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-sm`,children:[(0,A.jsx)(`span`,{className:`font-medium`,children:e}),(0,A.jsxs)(`span`,{className:x(`tabular-nums`,s===`fail`?`text-fail`:s===`warn`?`text-warn`:`text-ink-2`),children:[a(t),` of `,a(n),s===`fail`?`, over budget`:s===`warn`?`, ${Math.round(o)} percent used`:``]})]}),(0,A.jsx)(`div`,{role:`img`,"aria-label":`${e}: ${a(t)} of ${a(n)}, ${Math.round(o)} percent`,className:`h-2 rounded-full bg-surface-strong`,children:(0,A.jsx)(`div`,{className:x(`h-2 rounded-full transition-[width] duration-200 ease-out`,s===`fail`?`bg-fail`:s===`warn`?`bg-warn`:`bg-accent`),style:{width:`${Math.min(100,Math.max(1,o))}%`}})})]})}function ma({edit:t}){let{data:n,error:r,reload:i}=Gi(C.tokenomics),a=(0,A.jsx)(Ui,{defs:ca.fields,edit:t,base:ca.base});if(!n)return(0,A.jsx)(Ki,{error:r,reload:i});let o=n,c=o.currency,l=o.totals.input+o.totals.output,u=o.budget,d=u?.currency||o.spent?.currency||c,f=o.project?.days30.calls?o.project:void 0,p=f?f.days30.input+f.days30.output:0;return(0,A.jsxs)(A.Fragment,{children:[f&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`Every model call made for this project from `,o.days[0]?.day,` to today: chats, runs and the agents they started, each priced when it was made. These are the figures the workspace panel shows. `,(0,A.jsx)(`a`,{href:T(`cost`),children:`Cost and model usage`}),` breaks them down by agent, job and model, priced at today's prices.`]}),(0,A.jsxs)(di,{label:`All model calls, last 30 days`,children:[(0,A.jsx)(F,{icon:we,label:`Tokens`,value:R(p),note:`${R(f.days30.input)} in, ${R(f.days30.output)} out`}),(0,A.jsx)(F,{icon:s,label:`Cost`,value:f.currency?B(f.days30.amount,f.currency):`—`,note:f.currency?`When each call was made`:`No prices known`}),(0,A.jsx)(F,{icon:h,label:`Calls`,value:f.days30.calls.toLocaleString(),note:`${R(f.today.input+f.today.output)} tokens today`}),(0,A.jsx)(F,{icon:e,label:`Cached input`,value:f.days30.input?`${Math.round(f.days30.cached/f.days30.input*100)}%`:`—`,note:`Of the input tokens`})]}),Ji(f.currency)&&(0,A.jsx)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:Ji(f.currency)}),(0,A.jsx)(I,{children:`Test runs`})]}),o.totals.runs===0?(0,A.jsx)(L,{children:`No test runs with token counts in the last 30 days. Every run and suite ForgeQE reports on is counted here; chats are not.`}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`p`,{className:`mt-0 mb-4 text-sm text-muted`,children:[`From `,o.totals.runs,` run`,o.totals.runs===1?``:`s`,` in this project's reports in the last 30 days`,o.from?`, ${o.from} to ${o.to}`:``,`: test runs only, not chats. Models and agents come from the `,o.totals.withCalls,` run`,o.totals.withCalls===1?``:`s`,` that kept their model calls.`]}),(0,A.jsxs)(di,{label:`Test runs, last 30 days`,children:[(0,A.jsx)(F,{icon:we,label:`Tokens`,value:R(l),note:`${R(o.totals.input)} in, ${R(o.totals.output)} out`}),(0,A.jsx)(F,{icon:s,label:`Cost`,value:B(o.totals.amount,c),note:o.totals.unpriced?`${o.totals.unpriced} run${o.totals.unpriced===1?``:`s`} had no price`:c?`At the models' prices`:`No prices known`}),(0,A.jsx)(F,{icon:h,label:`Per run`,value:R(Math.round(l/o.totals.runs)),note:c?B(o.totals.amount/o.totals.runs,c):void 0}),(0,A.jsx)(F,{icon:e,label:`Cached input`,value:o.totals.input?`${Math.round(o.totals.cached/o.totals.input*100)}%`:`—`,note:`Of the input tokens`})]}),Ji(o.currency)&&f?.currency!==o.currency&&(0,A.jsx)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:Ji(o.currency)}),o.otherCurrency>0&&(0,A.jsxs)(`p`,{className:`mt-3 mb-0 text-[13px] text-muted`,children:[o.otherCurrency,` run`,o.otherCurrency===1?` was`:`s were`,` priced in another currency and left out of the cost.`]}),(0,A.jsx)(I,{children:`Last 30 days`}),(0,A.jsx)(ua,{days:o.days,currency:c}),(0,A.jsxs)(`div`,{className:`mt-8 flex flex-wrap gap-x-10 gap-y-8`,children:[(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,A.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By model`}),(0,A.jsx)(da,{label:`Tokens by model`,rows:o.byModel.map(e=>({name:e.model,sum:e})),currency:c})]}),(0,A.jsxs)(`div`,{className:`flex min-w-0 flex-[1_1_260px] flex-col gap-3`,children:[(0,A.jsx)(`h3`,{className:`m-0 text-base font-semibold`,children:`By agent`}),(0,A.jsx)(da,{label:`Tokens by agent`,rows:o.byAgent.map(e=>({name:e.agent,sum:e})),currency:c})]})]}),(0,A.jsx)(I,{children:`By kind of run`}),(0,A.jsx)(da,{label:`Tokens by kind of run`,rows:o.byKind.map(e=>({name:`${la[e.kind]||e.kind} (${e.runs})`,sum:e})),currency:c}),(0,A.jsx)(I,{children:`Runs that used the most`}),(0,A.jsx)(H,{label:`Runs that used the most tokens`,head:[`Run`,`Kind`,`Tokens`,`Cost`,`When`],children:o.top.map(e=>(0,A.jsx)(U,{cells:[(0,A.jsx)(`span`,{className:`line-clamp-2`,children:e.title}),la[e.kind]||e.kind,R(e.tokens),e.amount===void 0?`—`:B(e.amount,c),e.startedAt?V(e.startedAt):`—`]},`${e.kind}/${e.id}`))})]}),(0,A.jsx)(I,{help:ca.help,children:ca.title}),u&&o.spent&&(u.day||u.month)?(0,A.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[u.day?(0,A.jsx)(pa,{label:`Today`,spent:o.spent.today,limit:u.day,currency:d}):null,u.month?(0,A.jsx)(pa,{label:`This month`,spent:o.spent.month,limit:u.month,currency:d}):null]}):null,u?.premium&&o.spent&&(u.premium.day||u.premium.month)?(0,A.jsxs)(`div`,{className:`mb-4 flex flex-col gap-4 rounded-[14px] card border p-4`,children:[u.premium.day?(0,A.jsx)(pa,{label:`Premium requests today`,spent:o.spent.premiumToday||0,limit:u.premium.day,premium:!0}):null,u.premium.month?(0,A.jsx)(pa,{label:`Premium requests this month`,spent:o.spent.premiumMonth||0,limit:u.premium.month,premium:!0}):null]}):null,a]})}var ha=`forgeqe-sidebar-panels`;function ga(e,t){let[n,r]=(0,D.useState)(()=>{try{return JSON.parse(localStorage.getItem(ha)||`{}`)[e]??t}catch{return t}});return[n,()=>{r(!n);try{let t=JSON.parse(localStorage.getItem(ha)||`{}`);localStorage.setItem(ha,JSON.stringify({...t,[e]:!n}))}catch{}}]}function _a({id:e,title:t,children:n,initial:r=!0}){let[i,a]=ga(e,r);return(0,A.jsxs)(`section`,{"aria-labelledby":`panel-${e}`,className:`flex flex-col border-t border-line pt-1`,children:[(0,A.jsx)(`h3`,{id:`panel-${e}`,className:`m-0`,children:(0,A.jsxs)(`button`,{type:`button`,"aria-expanded":i,onClick:a,className:`flex min-h-8 w-full cursor-pointer items-center gap-1 rounded-[8px] border-0 bg-transparent px-2 text-left text-[13px] font-semibold text-ink hover:bg-surface-muted`,children:[(0,A.jsx)(`span`,{className:`flex-1`,children:t}),(0,A.jsx)(_e,{size:14,"aria-hidden":`true`,className:x(`text-muted transition-transform`,!i&&`-rotate-90`)})]})}),(0,A.jsx)(wr,{open:i,className:`flex flex-col pt-0.5 pb-0.5`,children:n})]})}function va({icon:e,label:t,value:n,to:r,title:i}){let a=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(E,{icon:e,size:14,className:`flex-none`}),(0,A.jsx)(`span`,{className:`max-w-[120px] flex-none truncate text-[12px] text-muted`,children:t}),(0,A.jsx)(`span`,{className:`line-clamp-2 min-w-0 flex-1 text-right text-[12.5px] leading-snug [overflow-wrap:anywhere] text-ink`,children:n})]}),o=`flex min-h-7 items-center gap-2 rounded-[8px] px-2 py-1 no-underline`;return r?(0,A.jsx)(`a`,{href:r,"data-tip":i,className:x(o,`hover:bg-surface-muted`),children:a}):(0,A.jsx)(`div`,{"data-tip":i,className:o,children:a})}function ya({icon:e,label:t,value:n,detail:r,to:i,title:a,onClick:o,open:s,muted:c}){let u=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(E,{icon:e,size:16,className:`mt-0.5 flex-none text-muted`}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,A.jsx)(`span`,{className:`text-[12px] leading-tight text-muted`,children:t}),(0,A.jsx)(`span`,{className:x(`line-clamp-2 text-[13.5px] leading-snug font-medium [overflow-wrap:anywhere]`,c?`text-muted`:`text-ink`),children:n}),r&&(0,A.jsx)(`span`,{className:`truncate text-[12.5px] leading-snug text-muted`,children:r})]}),(i||o)&&(0,A.jsx)(l,{size:14,"aria-hidden":`true`,className:x(`mt-1 flex-none text-muted opacity-0 transition group-hover:opacity-100 group-focus-visible:opacity-100`,s&&`rotate-90 opacity-100`)})]}),d=`group flex w-full items-start gap-3 rounded-[10px] px-2.5 py-2.5 text-left no-underline`;return o?(0,A.jsx)(`button`,{type:`button`,"aria-expanded":s,"data-tip":a,onClick:o,className:x(d,`cursor-pointer border-0 bg-transparent hover:bg-surface-muted`),children:u}):i?(0,A.jsx)(`a`,{href:i,"data-tip":a,className:x(d,`hover:bg-surface-muted`),children:u}):(0,A.jsx)(`div`,{"data-tip":a,className:d,children:u})}function ba({title:e,children:t}){return(0,A.jsxs)(`div`,{className:`flex flex-col`,children:[(0,A.jsx)(`span`,{className:`px-2 pt-1.5 pb-0.5 text-[11.5px] font-medium tracking-wide text-muted uppercase`,children:e}),t]})}var xa=e=>`${R(e.input)} read by the models (each call reads the conversation so far${e.cached?`; ${R(e.cached)} of it from the provider's cache`:``}) and ${R(e.output)} written.`;function Sa({a:e,working:t}){let n=Kn(e.agent);return(0,A.jsxs)(`div`,{className:`flex flex-col gap-0.5 rounded-[8px] px-2 py-1`,"data-tip":xa(e.usage),children:[(0,A.jsxs)(`span`,{className:`flex min-h-6 items-center gap-2`,children:[(0,A.jsx)(Sr,{agent:e.agent,px:16,decorative:!0,working:t}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[12.5px] text-ink`,children:n.name}),(0,A.jsx)(`span`,{className:`flex-none text-[12.5px] text-ink tabular-nums`,children:R(e.usage.input+e.usage.output)})]}),e.context&&e.context.limit>0&&(0,A.jsxs)(`span`,{className:`flex flex-col pl-6`,children:[(0,A.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[11.5px] text-muted`,children:[(0,A.jsx)(`span`,{className:`flex-1`,children:`Context now`}),(0,A.jsxs)(`span`,{className:`tabular-nums`,children:[R(e.context.tokens),` / `,R(e.context.limit)]})]}),(0,A.jsx)(Ca,{value:e.context.tokens,max:e.context.limit,warnAt:e.context.compactsAt})]})]})}function Ca({value:e,max:t,warnAt:n}){let r=t>0?Math.min(1,e/t):0,i=n?e>=n*.9:r>.75;return(0,A.jsx)(`span`,{role:`meter`,"aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,"aria-label":`Context used`,className:`mt-1 block h-1.5 w-full overflow-hidden rounded-full bg-line`,children:(0,A.jsx)(`span`,{className:x(`block h-full rounded-full transition-[width] duration-200 ease-out`,i?`bg-warn`:`bg-accent`),style:{width:`${Math.max(2,r*100)}%`}})})}var wa=e=>{try{return e?new URL(e).host:``}catch{return``}},Ta=e=>e.split(/[\\/]/).filter(Boolean).pop()||e;function Ea({path:e,icon:t,extra:n}){let[r,i]=(0,D.useState)(``);return(0,A.jsxs)(`li`,{className:`flex flex-col`,children:[(0,A.jsxs)(`button`,{type:`button`,"data-tip":`Open ${e}`,onClick:async()=>i(await tn(e)),className:`flex min-h-8 w-full cursor-pointer items-center gap-2 rounded-[10px] border-0 bg-transparent px-3 text-left hover:bg-surface-muted`,children:[(0,A.jsx)(E,{icon:t,size:15,className:`flex-none text-muted`}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-[12px] text-accent-fg`,children:Ta(e)}),n]}),r&&(0,A.jsx)(`span`,{className:`px-3 text-[12px] text-fail`,children:r})]})}function Da(e){let t=e?Date.parse(e):NaN;if(Number.isNaN(t))return``;let n=Math.max(0,Math.round((Date.now()-t)/1e3));return n<60?`${n}s`:`${Math.floor(n/60)} min`}function Oa({chat:e}){let[t,n]=(0,D.useState)(null),[i,a]=(0,D.useState)(null),[o,s]=(0,D.useState)(null),[c,l]=(0,D.useState)(!1),[u,d]=(0,D.useState)([]);(0,D.useEffect)(()=>{let e=!1,t=()=>Gt.list().then(t=>!e&&d(t.tasks),()=>{});t();let n=setInterval(t,4e3);return()=>{e=!0,clearInterval(n)}},[]);let p=location.hash.replace(/^#\/?/,``),m=u.filter(e=>e.to!==p);(0,D.useEffect)(()=>{let e=!1,t=()=>At.state().then(t=>{if(!e){if(n(t),!t.ready)return a(null);Mt.get().then(t=>!e&&a(t),()=>{})}},()=>{});return t(),window.addEventListener(`hashchange`,t),()=>{e=!0,window.removeEventListener(`hashchange`,t)}},[]),(0,D.useEffect)(()=>{if(!t?.ready)return;let n=!1,r=()=>C.tokenomics().then(e=>!n&&s(e),()=>{});r();let i=setInterval(r,e?.busy?3e4:18e4);return()=>{n=!0,clearInterval(i)}},[t?.ready,t?.project,e?.busy]);let h=t?t.project.split(/[\\/]/).filter(Boolean).pop()||t.project:``,g=i?.codeRepo||i?.repo,_=o?.days.find(e=>e.day===new Date().toISOString().slice(0,10)),v=i?.environment,y=(e,t)=>`${R(e.input+e.output)} tokens${t&&e.amount?` · ${B(e.amount,t)}`:``}`,ee=o?.project?y(o.project.today,o.project.currency):_?y(_,o?.currency):void 0,b=o?o.project?{tokens:o.project.days30.input+o.project.days30.output,line:y(o.project.days30,o.project.currency),title:`Every model call made for this project in the last 30 days.`}:{tokens:o.totals.input+o.totals.output,line:y(o.totals,o.currency),title:`Test runs of this project in the last 30 days.`}:void 0;return(0,A.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,A.jsx)(_a,{id:`env`,title:`Environment`,children:(0,A.jsxs)(`div`,{className:`flex flex-col gap-1 py-1`,children:[(0,A.jsx)(ya,{icon:Fe,label:`Project`,value:t?.ready?h:`Not set up`,muted:!t?.ready,to:T(`settings`,`setup`),title:t?.project}),i&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ya,{icon:f,label:i.codeRepo?`Tests go to`:`Repository`,value:g?g.name:`Not a git repository`,muted:!g,detail:g?.branch?`Branch ${g.branch}`:g?.commit?`Commit ${g.commit}`:void 0,title:g?`${g.root}${g.commit?` @ ${g.commit}`:``}`:void 0,to:T(`settings`,`tests`)}),(0,A.jsx)(ya,{icon:Te,label:`Test environment`,value:v?.active?v.active:v?.names.length?`None active`:`None yet`,muted:!v?.active,detail:v?.active&&wa(v.startUrl)||void 0,title:v?.names.length?`${v.names.length} environment${v.names.length===1?``:`s`}: ${v.names.join(`, `)}${v.apps.length?`. Apps: ${v.apps.join(`, `)}`:``}`:void 0,to:T(`settings`,`environments`)}),(0,A.jsx)(ya,{icon:Re,label:`Files`,value:`${i.files.filter(e=>e.exists).length} in this project`,onClick:()=>l(!c),open:c}),(0,A.jsx)(wr,{open:c,children:(0,A.jsx)(`ul`,{className:`m-0 mb-1 ml-[38px] flex list-none flex-col gap-0.5 p-0`,children:i.files.map(e=>(0,A.jsx)(`li`,{children:(0,A.jsxs)(`a`,{href:T(`settings`,`files`),"data-tip":e.path,className:x(`flex flex-col rounded-md px-2 py-1 no-underline hover:bg-surface-muted`,!e.exists&&`opacity-60`),children:[(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:e.label}),(0,A.jsx)(`span`,{className:`truncate font-mono text-[12px] text-ink`,children:e.path})]})},e.label))})})]})]})}),t?.ready&&(0,A.jsxs)(_a,{id:`usage`,title:`Context and tokens`,children:[e&&(0,A.jsx)(ba,{title:`This chat`,children:e.agents?.length&&e.usage?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{className:`flex min-h-7 items-center gap-2 px-2 py-1`,"data-tip":xa(e.usage),children:[(0,A.jsx)(E,{icon:we,size:14,className:`flex-none`}),(0,A.jsx)(`span`,{className:`flex-1 text-[12px] text-muted`,children:`All agents`}),(0,A.jsxs)(`span`,{className:`text-[12.5px] font-medium text-ink tabular-nums`,children:[R(e.usage.input+e.usage.output),` tokens`]})]}),(0,A.jsxs)(`span`,{className:`px-2 pb-1 pl-8 text-[11.5px] text-muted tabular-nums`,children:[R(e.usage.input),` read · `,R(e.usage.output),` written`,e.usage.cached?` · ${R(e.usage.cached)} cached`:``]}),[...e.agents].sort((e,t)=>t.at-e.at).map((t,n)=>(0,A.jsx)(Sa,{a:t,working:!!e.busy&&n===0},t.agent))]}):(0,A.jsx)(`p`,{className:`m-0 px-2 py-1 text-[12px] text-muted`,children:e.busy?`Counted as soon as the agent's first model call comes back.`:`No model calls in this chat yet.`})}),(0,A.jsxs)(ba,{title:`This project`,children:[b&&(0,A.jsxs)(`a`,{href:T(`settings`,`tokenomics`),"data-tip":b.title,className:`my-1 flex items-center gap-3 rounded-[10px] px-2 py-2 no-underline hover:bg-surface-muted`,children:[(0,A.jsx)(`span`,{className:`flex size-11 flex-none items-center justify-center rounded-full border-[3px] border-accent-line bg-accent-soft text-accent-fg`,children:(0,A.jsx)(ie,{size:20,strokeWidth:1.8,"aria-hidden":`true`})}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,A.jsxs)(`span`,{className:`text-[13px] text-muted`,children:[(0,A.jsx)(`span`,{className:`text-[22px] leading-tight font-semibold tracking-[-0.01em] text-ink tabular-nums`,children:R(b.tokens)}),` tokens`]}),(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:`Total (last 30 days)`})]})]}),(0,A.jsx)(va,{icon:bt,label:`Today`,value:(0,A.jsx)(`span`,{className:`tabular-nums`,children:ee??`Nothing yet`}),title:o?.project?`Every model call made for this project today: chats, runs and the agents they started.`:`Test runs of this project today.`,to:T(`settings`,`tokenomics`)}),o?.spent&&o.budget?.month?(0,A.jsxs)(`div`,{className:`px-2 py-1.5`,children:[(0,A.jsxs)(`span`,{className:`flex items-baseline gap-2 text-[12px] text-muted`,children:[(0,A.jsx)(`span`,{className:`flex-1`,children:`This month, this computer`}),(0,A.jsxs)(`span`,{className:`text-ink tabular-nums`,children:[B(o.spent.month,o.spent.currency),` / `,B(o.budget.month,o.budget.currency||o.spent.currency)]})]}),(0,A.jsx)(Ca,{value:o.spent.month,max:o.budget.month})]}):b&&(0,A.jsx)(va,{icon:Ne,label:`Last 30 days`,value:(0,A.jsx)(`span`,{className:`tabular-nums`,children:b.line}),to:T(`settings`,`tokenomics`)})]})]}),m.length>0&&(0,A.jsx)(_a,{id:`background`,title:`Background tasks · ${m.length}`,children:(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:m.map((e,t)=>(0,A.jsx)(`li`,{children:(0,A.jsxs)(`a`,{href:T(...e.to.split(`/`).filter(Boolean)),className:`flex items-start gap-2.5 rounded-[10px] px-3 py-1.5 no-underline hover:bg-surface-muted`,children:[(0,A.jsx)($e,{size:15,"aria-hidden":`true`,className:`mt-0.5 flex-none animate-spin text-accent-fg motion-reduce:animate-none`}),(0,A.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,A.jsx)(`span`,{className:`truncate text-[13px] text-ink`,children:e.label}),(0,A.jsxs)(`span`,{className:`text-[12px] text-muted`,children:[e.detail||`Running`,Da(e.startedAt)&&` · ${Da(e.startedAt)}`]})]})]})},`${e.kind}-${t}`))})}),e?.changes&&e.changes.length>0&&(0,A.jsxs)(_a,{id:`changes`,title:`Changes · ${e.changes.length}`,children:[(0,A.jsxs)(`span`,{className:`px-3 pb-1 font-mono text-[12px] tabular-nums`,children:[Vt(e.changes.length,`file`),` · `,(0,A.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.changes.reduce((e,t)=>e+t.added,0)]}),` `,(0,A.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.changes.reduce((e,t)=>e+t.removed,0)]})]}),(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.changes.map(e=>(0,A.jsx)(Ea,{path:e.path,icon:He,extra:(0,A.jsxs)(`span`,{className:`flex-none font-mono text-[11.5px] tabular-nums`,children:[(0,A.jsxs)(`span`,{className:`text-pass`,children:[`+`,e.added]}),` `,(0,A.jsxs)(`span`,{className:`text-fail`,children:[`−`,e.removed]})]})},e.path))}),e.onCreatePr&&(0,A.jsx)(`div`,{className:`px-2 pt-1.5 pb-1`,children:(0,A.jsxs)(S,{size:`sm`,variant:`primary`,disabled:e.busy,"data-tip":e.busy?`When ForgeQE has finished`:`Ask ForgeQE to open a pull request with these changes`,onClick:e.onCreatePr,className:`w-full justify-center`,children:[(0,A.jsx)(r,{"aria-hidden":`true`}),`Pull request`]})})]}),e?.outputs&&e.outputs.length>0&&(0,A.jsx)(_a,{id:`outputs`,title:`Outputs · ${e.outputs.length}`,children:(0,A.jsx)(`ul`,{className:`m-0 flex list-none flex-col p-0`,children:e.outputs.map(e=>(0,A.jsx)(Ea,{path:e.path,icon:e.kind===`test`?Re:/\.html?$/i.test(e.path)?nt:e.kind===`report`?_t:Ke,extra:(0,A.jsx)(`span`,{className:`flex-none text-[11.5px] text-muted`,children:e.label})},e.path))})})]})}var ka={accessibility:[`#5aa9e6`],"agents-hub":[`#4b5563`],"ai-assurance":[`#4b5563`],api:[`#4f86e0`,`#375e9d`],architecture:[`#a98bf3`],bell:[`#f6c48f`,`#c9742a`],board:[`#c3b5f5`,`#6a3fd6`],branch:[`#a6e39a`,`#749f6c`],"browser-agent":[`#c8dcf5`,`#6fa6e8`],bug:[`#f08a8a`],case:[`#6fd6aa`,`#4e9677`],chat:[`#8fb6f5`,`#3a76d0`],cloud:[`#b9d1f6`],code:[`#f3a6d8`,`#c2398f`],coins:[`#f3cf6e`,`#b8870f`],columns:[`#8fd1d8`,`#1f97a8`],container:[`#8fc9f2`,`#2a7fbf`],"context-engine":[`#d5c8fb`,`#6a3fd6`],database:[`#6fc9be`,`#1f8a7e`],desktop:[`#8fd1d8`,`#1f97a8`],download:[`#4f86e0`,`#2a5bbf`],explorer:[`#c8399a`,`#f6a7d8`],feature:[`#d9776a`],file:[`#b9d1f6`,`#3a76d0`],flask:[`#9ad9c0`,`#2f8a6b`],folder:[`#f2c46b`,`#b8860f`],healer:[`#cde67a`,`#86b02b`],history:[`#b7a4f5`,`#d0c4f8`,`#8073ac`],inbox:[`#8fc9f2`],info:[`#8fc9f2`,`#648da9`],key:[`#f2c46b`],"knowledge-base":[`#84c6d4`,`#1f8fa6`],layers:[`#8fb6f5`,`#b6d0f8`],mail:[`#f3a6a6`,`#f7c5c5`],mobile:[`#cbbdf7`,`#6a3fd6`],model:[`#9db8ff`,`#4a63d6`],network:[`#8fd6e3`,`#64969f`],orchestrator:[`#a98bf3`,`#6a3fd6`],palette:[`#e99ad2`,`#f1bde2`],plug:[`#f6c48f`,`#c9742a`],"pr-reviewer":[`#d77c88`],pulse:[`#f08a8a`],"quality-engineering":[`#4b5563`],replay:[`#3fb985`],report:[`#9ad9ec`,`#1c8fb2`],result:[`#5bb894`,`#94d1b9`],rocket:[`#b9d1f6`],route:[`#9ad9a0`,`#bde6c1`],rule:[`#f4e2b0`,`#c98b2a`],screenshot:[`#9ad9ec`,`#1c8fb2`],scribe:[`#5bb894`,`#2f8a6b`,`#94d1b9`,`#408168`],scroll:[`#e8cf9c`,`#a8701a`],server:[`#9ab3c9`],shield:[`#3a76d0`,`#8fb6f5`],sparkle:[`#c9b6f7`,`#8a5be6`],specs:[`#5bb894`,`#408168`],speed:[`#e0a23a`],stories:[`#b9d1f6`,`#3a76d0`],table:[`#9ad9a0`,`#2f8a3e`],terminal:[`#6f9ff0`],"test-finder":[`#8fdcef`,`#1f9fc0`],theme:[`#5b6bd6`,`#f5b83d`],ticket:[`#f6c48f`,`#c9742a`],trace:[`#6fb4c4`,`#a1ced9`],visual:[`#e99ad2`,`#a8287d`],wand:[`#c9b6f7`,`#dcd0fa`,`#8d7fad`],warning:[`#f6c84f`],web:[`#8edcf2`,`#22a0c4`],wikis:[`#e8cf9c`,`#c48a2a`],wrench:[`#a8b6c4`]},Aa=[`auto`,`plain`,`tiles`,`outline`,`mono`],ja=[`phosphor`,`solar`,`lucide`,`3d`],Ma=`phosphor`,Na=e=>e.iconSet&&ja.includes(e.iconSet)?e.iconSet:Ma,Pa=e=>e.iconColour===`accent`?`accent`:K(e.iconColour)?`custom`:`text`,W=`#111928`,G=`#ffffff`,Fa={"--side-bg":`#f9fafb`,"--side-ink":W,"--side-ink-2":`#374151`,"--side-muted":`#5f6672`,"--side-active":`#f3f4f6`,"--side-line":`#e5e7eb`,"--side-line-soft":`#f0f1f3`},Ia={"--color-accent":`#3758f9`,"--color-accent-hover":`#1b44c8`,"--color-accent-soft":`#ebefff`,"--color-accent-line":`#b8c3fc`,"--color-accent-ink":G,"--color-accent-fg":`#3758f9`,"--color-accent-fg-hover":`#1b44c8`,"--color-accent-grad":`#8a97fb`},La=Fa[`--side-bg`],Ra=`#111318`,za={"--side-bg":`#16181e`,"--side-ink":`#e9ebf0`,"--side-ink-2":`#c3c8d2`,"--side-muted":`#8d95a5`,"--side-active":`#22252e`,"--side-line":`#2b303b`,"--side-line-soft":`#20232b`},Ba={"--color-accent":`#3758f9`,"--color-accent-hover":`#4d6bfa`,"--color-accent-soft":`#1a2142`,"--color-accent-line":`#2f3b78`,"--color-accent-ink":G,"--color-accent-fg":`#8fa3ff`,"--color-accent-fg-hover":`#b3c1ff`,"--color-accent-grad":`#a9b4ff`};function Va(e,t=`light`){if(t===`dark`)return[za[`--side-bg`]];let n=K(e.primary),r=K(e.gradient);return n||r?[n||La,...r?[r]:[]]:[Fa[`--side-bg`]]}var Ha=Ia[`--color-accent`];function K(e){let t=typeof e==`string`?e.trim().toLowerCase():``;if(/^#[0-9a-f]{6}$/.test(t))return t;if(/^#[0-9a-f]{3}$/.test(t))return`#${[...t.slice(1)].map(e=>e+e).join(``)}`}var Ua=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),Wa=e=>`#${e.map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`;function q(e,t,n){let r=Ua(e),i=Ua(t);return Wa(r.map((e,t)=>e+(i[t]-e)*n))}function J(e){let[t,n,r]=Ua(e).map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function Y(e,t){let[n,r]=[J(e),J(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function X(...e){let t=t=>Math.min(...e.map(e=>Y(t,e))),n=t(G)>t(W)?G:W;return t(n)>=4.5||t(n)>=t(`#000000`)?n:`#000000`}function Z(e,t,n){let r=e;for(let i=0;i<=1&&Math.min(...n.map(e=>Y(r,e)))<4.5;i+=.1)r=q(e,t,i);return r}var Ga=.75;function Ka(e,t=`light`){let n=K(e.background);return t===`light`&&n&&J(n)>=.75?n:void 0}var qa=[`--color-bg`,`--color-surface-muted`,`--color-surface-strong`,`--color-field`,`--color-line`,`--color-line-soft`,`--color-line-strong`,`--color-muted`];function Ja(e,t=`light`){let n=Ka(e,t);return n?{"--color-bg":n,"--color-surface-muted":q(n,W,.025),"--color-surface-strong":q(n,W,.05),"--color-field":q(n,W,.04),"--color-line":q(n,W,.1),"--color-line-soft":q(n,W,.065),"--color-line-strong":q(n,W,.18),"--color-muted":Z(`#5f6672`,W,[n])}:{}}var Ya=`#f3f4f6`,Xa=`#1a1d24`;function Za(e,t=`light`){let n=K(e.primary);if(t===`dark`){let e=n?q(n,Ra,.84):Xa,t=X(e);return{"--card-bg":e,"--card-ink":t,"--card-ink-2":Z(`#c3c8d2`,t,[e]),"--card-muted":Z(`#8d95a5`,t,[e]),"--card-line":q(e,G,.14),"--card-line-soft":q(e,G,.09),"--card-hover":q(e,G,.05),"--card-strong":q(e,G,.09)}}let r=Ka(e)||G,i=n?q(n,G,J(n)>=.6?.6:.94):Ya,a=Y(i,r)<1.06?q(n||i,W,.05):i,o=X(a),s=o===G?W:o;return{"--card-bg":a,"--card-ink":o,"--card-ink-2":o===G?Z(q(a,G,.85),G,[a]):Z(`#374151`,s,[a]),"--card-muted":o===G?Z(q(a,G,.68),G,[a]):Z(`#5f6672`,s,[a]),"--card-line":q(a,W,.1),"--card-line-soft":q(a,W,.06),"--card-hover":q(a,W,.04),"--card-strong":q(a,W,.07)}}function Qa(e,t=`light`){let n=K(e.primary),r=K(e.gradient),i=K(e.secondary),a=t===`dark`?za:Fa;if(t!==`dark`&&(n||r)){let e=n||La,t=r?[e,r]:[e],i=X(...t),o=i===G,s=i===G?W:i,c=r?q(e,r,.5):e;a={"--side-bg":r?`linear-gradient(180deg, ${e}, ${r})`:e,"--side-ink":i,"--side-ink-2":o?Z(q(c,G,.85),G,t):Z(`#374151`,s,t),"--side-muted":o?Z(q(c,G,.68),G,t):Z(`#5f6672`,s,t),"--side-active":o?q(c,G,.16):q(c,W,.06),"--side-line":o?q(c,G,.22):q(c,W,.1),"--side-line-soft":o?q(c,G,.12):q(c,W,.06)}}if(t===`dark`){let n=i?Z(i,G,[Ra]):void 0,r=i?{"--color-accent":i,"--color-accent-hover":q(i,G,.12),"--color-accent-soft":q(i,Ra,.8),"--color-accent-line":q(i,Ra,.55),"--color-accent-ink":X(i),"--color-accent-fg":n,"--color-accent-fg-hover":q(n,G,.3),"--color-accent-grad":q(i,G,.45)}:Ba;return{...a,...r,...Za(e,t)}}let o=Ka(e)||G,s=i||o!==G?Z(i||Ia[`--color-accent`],W,[o]):void 0,c=i?{"--color-accent":i,"--color-accent-hover":q(i,W,J(i)>.4?.18:.25),"--color-accent-soft":q(i,G,.9),"--color-accent-line":q(i,G,.62),"--color-accent-ink":X(i),"--color-accent-fg":s,"--color-accent-fg-hover":q(s,W,.25),"--color-accent-grad":q(i,G,.4)}:s?{...Ia,"--color-accent-fg":s,"--color-accent-fg-hover":q(s,W,.25)}:Ia;return{...a,...c,...Za(e,t)}}function $a(e,t,n,r){let i=e;for(let a=.1;a<=1.001&&Math.min(...n.map(e=>Y(i,e)))<r;a+=.1)i=q(e,t,a);return i}function eo(e,t=`light`){let n=Pa(e);if(n===`text`||Na(e)===`3d`)return{vars:{},moved:[]};let r=n===`accent`?K(e.secondary)||Ha:K(e.iconColour),i=t===`dark`?Ra:Ka(e)||G,a=Va(e,t),o=n===`accent`?Qa(e,t)[`--color-accent-fg`]:$a(r,t===`dark`?G:W,[i],3),s=$a(r,X(...a),a,3),c=a.length>1?q(a[0],a[a.length-1],.5):a[0],l=[];return n!==`accent`&&o!==r&&l.push(`page`),s!==r&&l.push(`sidebar`),{vars:{"--icon-colour":o,"--side-icon-colour":s,"--icon-tint":q(o,i,no),"--side-icon-tint":q(s,c,no)},moved:l}}var to=[`--icon-colour`,`--side-icon-colour`,`--icon-tint`,`--side-icon-tint`],no=.8;function ro(e){let t=Qa(e),n=[K(e.primary)||La,...K(e.gradient)?[K(e.gradient)]:[]],r=K(e.secondary)||Ha,i=Math.min(...n.map(e=>Y(t[`--side-ink`],e))),a=Y(t[`--color-accent-ink`],r),o=Y(t[`--color-accent-fg`],Ka(e)||G),s=e=>Math.round(e*10)/10;return[{label:`Sidebar text`,ratio:s(i),ok:i>=4.5},{label:`Button text`,ratio:s(a),ok:a>=4.5},{label:`Links on the page`,ratio:s(o),ok:o>=4.5}]}function io(e){let t={};for(let n of e.split(/\r?\n/)){let e=[...n.matchAll(/#(?:[0-9a-f]{6}|[0-9a-f]{3})\b/gi)].map(e=>K(e[0])).filter(Boolean);if(!e.length)continue;let r=n.toLowerCase();/gradient/.test(r)?(!t.gradient&&e.length>1&&(t.gradient=e.at(-1)),!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])):/\b(page )?background\b|\bbg\b/.test(r)&&!/button|sidebar|accent|primary|secondary/.test(r)?!t.background&&J(e[0])>=.75&&(t.background=e[0]):!t.secondary&&/secondary|accent|button|\bcta\b/.test(r)?t.secondary=e[0]:!t.primary&&/primary|brand|sidebar/.test(r)&&(t.primary=e[0])}return t}function ao(e,t=document.documentElement,n=`light`){t.dataset.mode=n;for(let[r,i]of Object.entries(Qa(e,n)))t.style.setProperty(r,i);let r=Ja(e,n);for(let e of qa)r[e]?t.style.setProperty(e,r[e]):t.style.removeProperty(e);let i=Na(e);t.dataset.iconSet=i;let a=uo(e,co,n);t.dataset.icons=i===`3d`?a.style:`plain`,t.style.setProperty(`--icon-tile`,a.tile),t.style.setProperty(`--icon-outline`,a.outline),t.style.setProperty(`--icon-mono`,a.mono);let o=eo(e,n).vars;t.dataset.iconFill=o[`--icon-colour`]?`colour`:`duotone`;for(let e of to)o[e]?t.style.setProperty(e,o[e]):t.style.removeProperty(e)}function oo(e,t){if(!e)return null;let n=e.kind===`background`?1.6:2;if(!t.some(t=>Y(e.colour,t)<n))return null;let r=t.length>1?q(t[0],t[t.length-1],.5):t[0];return X(...t)===G?q(r,G,.9):q(r,W,.85)}var so=e=>/^(ph|lucide):/.test(e),co=[...new Set([...Object.values(Ir),...Xn.map(e=>Kn(e.agent).icon)])].filter(e=>!so(e)),lo=(e,t)=>Math.max(1,...(ka[e]||[]).map(e=>Y(e,t)));function uo(e,t=co,n=`light`){let r=Va(e,n),i=r.length>1?q(r[0],r[1],.5):r[0],a=X(...r),o=(e,t)=>Math.min(...t.map(t=>lo(e,t))),s=t.map(e=>({icon:e,ratio:Math.round(o(e,r)*100)/100})).filter(e=>e.ratio<2).sort((e,t)=>e.ratio-t.ratio),c=[q(i,G,.9),q(i,W,.82)],l=e=>Math.min(...t.map(t=>lo(t,e))),u=c.find(e=>l(e)>=2)||c.reduce((e,t)=>l(t)>l(e)?t:e),d=(e.iconStyle&&e.iconStyle!==`auto`&&Aa.includes(e.iconStyle)?e.iconStyle:void 0)||(s.length?`tiles`:`plain`),f=d===`tiles`?l(u):Math.min(...d===`plain`?t.map(e=>o(e,r)):r.map(e=>Y(a,e)));return{style:d,tile:u,outline:a,mono:a,faint:s,lowest:Math.round(f*100)/100}}var fo=`forgeqe-mode`,po=()=>{try{let e=localStorage.getItem(fo);return e===`light`||e===`dark`?e:`system`}catch{return`system`}},mo=()=>typeof matchMedia==`function`&&matchMedia(`(prefers-color-scheme: dark)`).matches,ho=(0,D.createContext)({theme:{},saved:{},reload:()=>{},preview:()=>{},mode:`light`,choice:`system`,setChoice:()=>{}});function go({children:e}){let[t,n]=(0,D.useState)({}),[r,i]=(0,D.useState)(null),[a,o]=(0,D.useState)(po),[s,c]=(0,D.useState)(mo),l=(0,D.useCallback)(()=>{Ot.get().then(n,()=>{})},[]);(0,D.useEffect)(l,[l]),(0,D.useEffect)(()=>{if(typeof matchMedia!=`function`)return;let e=matchMedia(`(prefers-color-scheme: dark)`),t=()=>c(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let u=(0,D.useCallback)(e=>{o(e);try{e===`system`?localStorage.removeItem(fo):localStorage.setItem(fo,e)}catch{}},[]),d=a===`system`?s?`dark`:`light`:a,f=r??t;kn(f.agentNames),(0,D.useEffect)(()=>ao(f,document.documentElement,d),[f,d]),(0,D.useEffect)(()=>Sn(f.appName),[f.appName]);let p=f.logoMark||f.logo;return(0,D.useEffect)(()=>{let e=document.querySelector(`link[rel="icon"][data-brand]`);if(!p)return void e?.remove();e||(e=document.createElement(`link`),e.rel=`icon`,e.dataset.brand=``,document.head.appendChild(e)),e.href=p},[p]),(0,A.jsx)(ho.Provider,{value:{theme:f,saved:t,reload:l,preview:i,mode:d,choice:a,setChoice:u},children:(0,A.jsx)(se.Provider,{value:Na(f)===`lucide`?`lucide`:`phosphor`,children:e})})}var Q=()=>(0,D.useContext)(ho),_o=24;function vo(e,t,n){if(!t||!n||e.length<t*n*4)return null;let r=(e,n)=>(n*t+e)*4,i=[r(0,0),r(t-1,0),r(0,n-1),r(t-1,n-1)],a=i.every(t=>e[t+3]>=250),o=a&&i.every(t=>[0,1,2].every(n=>Math.abs(e[t+n]-e[i[0]+n])<=_o));if(a&&!o)return null;let s=[0,1,2].map(t=>e[i[0]+t]),c=t=>a?[0,1,2].every(n=>Math.abs(e[t+n]-s[n])<=_o):e[t+3]<16,l=t,u=n,d=-1,f=-1;for(let e=0;e<n;e++)for(let n=0;n<t;n++)c(r(n,e))||(n<l&&(l=n),n>d&&(d=n),e<u&&(u=e),e>f&&(f=e));if(d<0)return null;let p=Math.round(Math.max(d-l+1,f-u+1)*.02),m={x:Math.max(0,l-p),y:Math.max(0,u-p),w:0,h:0};return m.w=Math.min(t,d+1+p)-m.x,m.h=Math.min(n,f+1+p)-m.y,m.w>=t*.96&&m.h>=n*.96?null:m}function yo(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=()=>n(Error(`The logo could not be read.`)),r.src=e})}function bo(e){let t=e.naturalWidth||0,n=e.naturalHeight||0;if(!t||!n)return null;let r=Math.min(1,1024/Math.max(t,n))||1,i=document.createElement(`canvas`);i.width=Math.max(1,Math.round(t*r)),i.height=Math.max(1,Math.round(n*r));let a=i.getContext(`2d`,{willReadFrequently:!0});return a?(a.drawImage(e,0,0,i.width,i.height),{canvas:i,ctx:a}):null}async function xo(e){let t=bo(await yo(e));if(!t)return null;let{canvas:n,ctx:r}=t,i=vo(r.getImageData(0,0,n.width,n.height).data,n.width,n.height);if(!i)return null;let a=document.createElement(`canvas`);return a.width=i.w,a.height=i.h,a.getContext(`2d`)?.drawImage(n,i.x,i.y,i.w,i.h,0,0,i.w,i.h),a}var So=new Map;function Co(e){return So.has(e)||So.set(e,xo(e).then(t=>t?t.toDataURL(`image/png`):e).catch(()=>e)),So.get(e)}var wo=20971520,To=[1,.75,.5,.35],Eo=[[`image/png`,void 0],[`image/webp`,.92],[`image/webp`,.8]];async function Do(e,t){for(let n of To)for(let[r,i]of Eo){let a=await e(n,r,i);if(a&&a.type===r&&a.size<=t)return a}return null}function Oo(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}var ko={"image/png":`.png`,"image/webp":`.webp`};async function Ao(e,t){let n=t=>new File([t],e.name.replace(/\.[^.]+$/,``)+ko[t.type],{type:t.type});if(e.size>t){if(e.type===`image/svg+xml`)throw Error(`${e.name} is over ${t/1024} KB.`);if(e.size>20971520)throw Error(`${e.name} is over ${wo/1024/1024} MB: save a smaller copy and upload that.`);let r=await yo(await Oo(e)).catch(()=>null),i=r&&bo(r);if(!i)throw Error(`${e.name} could not be read: save it again as PNG or JPEG and upload that.`);let{canvas:a,ctx:o}=i,s=vo(o.getImageData(0,0,a.width,a.height).data,a.width,a.height)??{x:0,y:0,w:a.width,h:a.height},c=await Do((e,t,n)=>{let r=document.createElement(`canvas`);r.width=Math.max(1,Math.round(s.w*e)),r.height=Math.max(1,Math.round(s.h*e));let i=r.getContext(`2d`);return i?(i.imageSmoothingQuality=`high`,i.drawImage(a,s.x,s.y,s.w,s.h,0,0,r.width,r.height),new Promise(e=>r.toBlob(e,t,n))):Promise.resolve(null)},t);if(!c)throw Error(`${e.name} could not be made smaller than ${t/1024} KB: save a smaller copy and upload that.`);return n(c)}try{let r=await xo(await Oo(e));if(!r)return e;let i=await new Promise(e=>r.toBlob(e,`image/png`));return!i||i.size>t?e:n(i)}catch{return e}}var jo=`/assets/forgeqe-logo-D3CwM2Jl.png`,Mo=`/assets/forgeqe-logo-white-CoE-hF2l.png`,No=`/assets/forgeqe-mark-ZLd4S3hw.png`;function Po(e){let[t,n]=(0,D.useState)({});return(0,D.useEffect)(()=>{if(!e)return;let t=!0;return Co(e).then(r=>t&&n({from:e,to:r})),()=>{t=!1}},[e]),e&&t.from===e?t.to:e}var Fo=e=>`#${e.map(e=>Math.round(e).toString(16).padStart(2,`0`)).join(``)}`;function Io(e){try{let t=document.createElement(`canvas`);t.width=t.height=32;let n=t.getContext(`2d`,{willReadFrequently:!0});if(!n)return null;n.drawImage(e,0,0,32,32);let r=n.getImageData(0,0,32,32).data,i=(e,t)=>[...r.subarray((t*32+e)*4,(t*32+e)*4+4)],a=[i(1,1),i(30,1),i(1,30),i(30,30)];if(a.every(e=>e[3]>=200))return{kind:`background`,colour:Fo([0,1,2].map(e=>a.reduce((t,n)=>t+n[e],0)/4))};let o=[0,0,0],s=0;for(let e=0;e<r.length;e+=4)if(r[e+3]>=200){for(let t=0;t<3;t++)o[t]+=r[e+t];s++}return s?{kind:`ink`,colour:Fo(o.map(e=>e/s))}:null}catch{return null}}var Lo=`h-auto w-auto min-h-10 max-h-[112px] max-w-full object-contain`,Ro=`h-11 w-auto max-w-[168px] object-contain object-left`;function zo({aspect:e,alone:t,own:n,size:r,circle:i}){let a=e>1.6,o=a||t;if(n&&(!r||r===`auto`))return o?!a&&(e<=1.25||i)?{cls:i?`size-14 rounded-full object-cover`:`size-14 object-contain`,grow:!1,auto:!0}:{cls:Lo,grow:!0,auto:!0}:{cls:i?`size-10 rounded-full object-cover`:`size-10 object-contain`,grow:!1,auto:!0};let s=r===`large`;return i?{cls:`${t?s?`size-16`:`size-11`:s?`size-12`:`size-8`} rounded-full object-cover`,grow:!1,auto:!1}:o?{cls:s?Lo:Ro,grow:s,auto:!1}:{cls:s?`size-12 object-contain`:`size-8 object-contain`,grow:!1,auto:!1}}function Bo({theme:e,compact:t=!1,onPlate:n}){let{mode:r}=Q(),i=r===`dark`?Mo:jo,a=Po(e.logo)||i,[o,s]=(0,D.useState)(e.logo?1:2.1),[c,l]=(0,D.useState)(null),u=o>1.6,d=zo({aspect:o,alone:!!e.logo&&!e.name,own:!!e.logo,size:t?`standard`:e.logoSize,circle:e.logoFrame===`circle`&&!u}),f=d.auto&&!e.logoFrame&&c?.kind===`background`,p=e.logo&&e.logoFrame!==`tile`&&!f?oo(c,Va(e,r)):null,m=f&&!!oo(c,Va(e,r));(0,D.useEffect)(()=>n?.(!!p),[p,n]);let h=e.logo?e.logoFrame===`circle`&&u?`rounded`:e.logoFrame||(d.auto&&c?.kind===`background`?`rounded`:`plain`):`plain`,g=d.cls,_=(0,A.jsx)(`img`,{src:a,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&s(t.naturalWidth/t.naturalHeight),l(Io(t))},className:x(`block min-w-0`,d.grow?`flex-initial`:`flex-none`,g,h===`rounded`&&`overflow-hidden rounded-[8px]`,m&&`shadow-[0_0_0_1px_rgb(0_0_0/0.12)]`)});return(0,A.jsxs)(`span`,{className:x(`flex min-w-0 items-center gap-2.5`,d.grow&&`flex-1`),children:[h===`tile`||p?(0,A.jsx)(`span`,{style:p?{background:p}:void 0,className:x(`flex items-center justify-center rounded-[10px] p-1.5`,!p&&`bg-white shadow-[0_0_0_1px_rgb(0_0_0/0.06)]`,d.grow?`min-w-0 flex-initial`:`flex-none`),children:_}):_,!u&&e.name&&(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e.name})]})}function Vo({theme:e}){let{mode:t}=Q(),[n,r]=(0,D.useState)(1),[i,a]=(0,D.useState)(null),o=Po(e.logoMark||e.logo),s=!!o&&(!!e.logoMark||n<=1.6),c=s?oo(i,Va(e,t)):null;return s?(0,A.jsx)(`span`,{style:c?{background:c}:void 0,className:x(`flex size-9 items-center justify-center rounded-[10px]`,c&&`p-1`),children:(0,A.jsx)(`img`,{src:o,alt:``,onLoad:e=>{let t=e.currentTarget;t.naturalWidth&&t.naturalHeight&&r(t.naturalWidth/t.naturalHeight),a(Io(t))},className:x(`block size-full object-contain`,e.logoFrame===`circle`?`rounded-full`:`rounded-[8px]`)})}):(0,A.jsxs)(`span`,{"aria-hidden":`true`,className:`flex size-9 items-center justify-center`,children:[(0,A.jsx)(`img`,{src:No,alt:``,className:`block size-9 object-contain`}),o&&!e.logoMark&&(0,A.jsx)(`img`,{src:o,alt:``,className:`hidden`,onLoad:e=>e.currentTarget.naturalHeight&&r(e.currentTarget.naturalWidth/e.currentTarget.naturalHeight)})]})}var Ho=`/assets/capgemini-mark-D6aZFnD3.png`,Uo=`m 153.2175,21.2782 c 3.4962,0 6.1962,-2.8462 6.2312,-6.225 -0.245,-1.475 -0.7625,-4.2037 -4.585,-4.2037 -4.19,0 -5.5762,5.8487 -8.985,9.6237 -0.2737,2.1438 -2.305,4.0625 -4.8387,4.385 0.62,0.6488 2.0025,1.0013 3.6525,1.0013 3.0175,0 6.67,-0.9088 8.5837,-2.7988 -2.5537,0.035 -4.1937,-1.6062 -4.355,-3.8762 1.245,1.5087 2.6513,2.0937 4.2963,2.0937`,Wo=`m 126.3725,11.972 c 0,-1.86 -0.1125,-3.1 -1.3288,-3.1 -0.5562,0 -0.825,0.1125 -1.3087,0.2725 0.43,6.28 -0.9913,11.8125 -2.7238,11.8125 -2.2712,0 -1.1387,-13.4625 -5.9475,-13.4625 -4.4387,0 -5.0787,10.7475 -5.5812,10.7475 -0.3425,0 -0.395,-2.8225 -0.3763,-4.9763 0.1863,-1.03 0.2888,-1.9575 0.2888,-2.6612 0,-1 -0.41,-2.7288 -2.6813,-1.865 0.079,7.6862 -1.46,12.3287 -3.1937,12.3287 -2.5388,0 -2.5675,-6.9675 -2.5675,-8.8862 0,-1.875 0.1362,-4.38 -2.6513,-3.4913 -0.415,6.7038 -2.1737,11.7625 -3.2812,11.7625 -1.6513,0 -1.3188,-11.5812 -4.8888,-11.5812 -3.2125,0 -4.2037,10.9712 -4.8725,10.9712 -1.1962,0 0.3763,-12.3487 -4.2625,-12.3487 -2.4312,0 -3.3987,4.1212 -4.3512,8.735 -0.185,0.8937 -0.375,0.9237 -0.41,-0.087 -0.024,-0.8588 -0.029,-1.7238 -0.019,-2.5825 1.1663,-4.6388 -0.2587,-6.3525 -2.4075,-5.1175 0.6938,8.56 -3.2375,12.7437 -6.25,12.7437 -1.0887,0 -1.9487,-0.4637 -2.5875,-1.1962 3.6125,-2.2163 5.2188,-4.76 5.2188,-7.2463 0,-2.69 -1.5475,-4.2425 -4.1163,-4.2425 -3.5837,0 -5.59,3.6913 -5.59,6.8313 0,1.6887 0.3175,3.125 0.835,4.3062 -1.2312,0.5863 -2.3925,1.0938 -3.4725,1.5863 -0.098,-3.2275 -0.4587,-6.615 -0.7362,-9.745 -1.91,-0.5275 -2.4663,0.39 -2.6125,2.0887 -0.3425,3.8775 -1.7775,6.285 -3.0475,6.285 -0.9525,0 -1.5375,-1.1625 -1.6063,-2.3975 -0.3562,-6.2162 4.6875,-7.945 7.3288,-7.0412 0.5475,-1.3725 -0.054,-2.3588 -2.4363,-2.3588 -2.8862,0 -5.0437,1.7538 -6.6262,4.0038 -1.0538,1.5 -2.275,2.5637 -3.8963,3.8487 0.044,-0.3662 0.064,-0.7375 0.064,-1.1037 0,-4.38 -2.3738,-6.3038 -4.6388,-6.3038 -1.875,0 -3.0562,1.1225 -3.74,2.8513 -0.1662,-1.7338 -0.5125,-2.48 -1.5187,-2.48 -0.43,0 -1.03,0.1212 -1.67,0.4337 0.2925,0.9675 0.405,3.1113 0.405,4.5175 0,5.2675 -1.5088,7.6313 -2.9588,7.6313 -1.66,0 -1.9237,-6.25 -2.065,-8.6813 -0.2587,-0.098 -0.5325,-0.1512 -0.8112,-0.1512 -1.5038,0 -1.6988,2.0162 -2.07,3.8712 -0.41,2.0563 -1.5913,4.6388 -3.345,4.6388 -1.0588,0 -1.7238,-1.02 -1.8063,-2.8563 -0.1712,-3.725 2.93,-8.14 7.7788,-6.7675 0.6337,-1.4837 -0.3625,-2.6125 -2.3738,-2.6125 -3.545,0 -6.475,2.6513 -7.7537,5.7913 -1.2988,2.8812 -3.57,7.11 -8.1888,7.11 C 6.26,21.7975 3.76,18.95 3.76,12.9787 c 0,-5.1462 3.2462,-10.035 6.7087,-10.035 2.4213,0 2.9838,2.3838 2.7688,4.62 1.255,1.005 3.31,0.067 3.31,-2.4462 0,-1.7338 -1.4063,-4.6738 -5.9513,-4.6738 C 4.9712,0.4437 0,6.055 0,13.4225 0,20.5612 3.6225,24.78 8.75,24.78 c 3.2375,0 6.2887,-1.845 8.3937,-5.2538 0.5325,2.9838 2.5638,4.2388 4.0863,4.2388 2.4662,0 4.0775,-1.5975 4.9562,-3.755 0.5475,2.1625 1.7038,3.765 3.6288,3.765 1.3525,0 2.4112,-0.6888 3.2075,-1.7875 -0.3175,7.5187 -0.7125,12.3137 3.73,11.3725 -0.6875,-2.1388 -0.9075,-6.0313 -0.9075,-9.5275 0,-9.565 1.5775,-12.7138 3.555,-12.7138 1.435,0 1.8987,1.825 1.8987,3.7738 0,1.045 -0.1025,2.2462 -0.3662,3.325 -2.4313,1.5337 -4.37,2.745 -4.37,4.2825 0,1.2162 0.9037,1.3275 1.685,1.3275 1.865,0 4.1112,-1.83 5.3512,-5.2825 1.0838,-0.6588 2.1725,-1.4113 3.2125,-2.4363 -0.034,0.3513 -0.054,0.7025 -0.054,1.0638 0,3.4275 1.4987,5.5037 3.8962,5.5037 1.88,0 3.2863,-1.3337 4.2825,-3.33 0.064,1.1513 0.1025,2.2113 0.1175,3.1825 -3.8087,1.7638 -8.0225,3.55 -8.0225,8.5213 0,2.5725 1.855,4.5062 4.2725,4.5062 5.3075,0 6.5188,-5.6 6.5675,-12.1087 1.7288,-0.7475 3.0125,-1.3238 4.4975,-2.0613 1.2688,1.5925 2.9975,2.3888 4.58,2.3888 2.9925,0 5.2438,-1.5875 7.05,-4.805 0.3175,2.4462 0.9525,4.805 2.2563,4.805 2.3725,0 2.8562,-12.4125 4.6187,-12.4125 1.3525,0 0.245,13.4275 3.8138,13.4275 3.0562,0 3.6275,-11.8163 5.1175,-11.8163 1.055,0 1.1325,10.8013 4.4625,10.8013 1.6362,0 3.4137,-1.9688 4.3012,-6.09 0.42,2.745 1.8025,6.09 4.5075,6.09 1.5775,0 2.935,-1.5975 3.9838,-3.7163 0.2887,2.1825 0.9037,3.7163 2.1,3.7163 3.11,0 3.0075,-12.3838 5.4687,-12.3838 1.9188,0 1.3288,12.3838 5.8988,12.3838 2.1725,0 3.2025,-1.8513 3.8187,-4.18 0.8388,3.4225 2.2013,4.18 3.315,4.18 0.7075,0 1.245,-0.25 1.9488,-1.085 -3.5363,-1.5325 -3.2375,-7.1138 -3.2375,-10.7175 m -74.8438,21.27 c -1.0987,0 -1.68,-1.045 -1.68,-2.2225 0,-3.1788 2.3338,-4.8625 5.205,-6.3125 -0.1275,6.9425 -1.7437,8.535 -3.525,8.535 m 14.2775,-22.51 c 1.0688,0 1.6788,0.9812 1.5713,2.3925 -0.1213,1.655 -1.3275,3.555 -3.4275,5.0437 -1.0938,-3.115 -0.2775,-7.4362 1.8562,-7.4362 M 99.6722,6.035 c 1.0162,-0.034 1.7287,-0.9075 1.7337,-1.9475 0.01,-1.04 -0.6987,-1.8613 -1.7187,-1.8225 -1.02,0.035 -1.85,0.9087 -1.855,1.9487 -0.01,1.04 0.82,1.855 1.84,1.8213 m 25.3325,0.5275 c 0.9275,-0.034 1.685,-0.8638 1.685,-1.855 0,-0.9913 -0.7425,-1.7675 -1.67,-1.7388 -0.9288,0.034 -1.685,0.8688 -1.69,1.86 -0.01,0.9913 0.7475,1.7675 1.675,1.7338 m 34.4387,8.2425 c -0.079,-3.9263 -1.9437,-7.2363 -4.825,-9.8788 -2.1875,-1.9962 -4.785,-3.515 -7.5087,-4.6575 -0.215,-0.092 -0.44,-0.1812 -0.66,-0.2687 -3.3538,4.0187 -14.965,7.0162 -14.965,15.44 0,3.29 2.08,6.3712 5.1312,7.6075 1.7725,0.6687 3.54,0.7025 5.3125,0.1062 1.5775,-0.5175 2.8713,-1.4937 3.95,-2.68 3.4088,-3.775 4.795,-9.6187 8.98,-9.6187 3.8275,0 4.345,2.7237 4.59,4.1987 0,-0.01 0,-0.1075 -0.01,-0.2487`;function Go({rail:e=!1}){let{mode:t}=Q();return e?(0,A.jsx)(`img`,{src:Ho,alt:`Capgemini`,"data-tip":`Capgemini`,"data-tip-side":`left`,className:`mb-1 size-8 flex-none object-contain`}):(0,A.jsxs)(`svg`,{viewBox:`-1.06668594 -1.06668594 161.58207188 37.68956988`,role:`img`,"aria-label":`Capgemini`,className:`ml-2 h-8 w-auto max-w-[180px] flex-none overflow-visible`,shapeRendering:`geometricPrecision`,children:[(0,A.jsx)(`path`,{fill:t===`dark`?`#fff`:`#12ABDB`,fillRule:`evenodd`,d:Uo}),(0,A.jsx)(`path`,{fill:t===`dark`?`#fff`:`#0070AD`,fillRule:`evenodd`,d:Wo})]})}function Ko({item:e}){return e.agent?(0,A.jsx)(Sr,{agent:e.agent,px:18,decorative:!0}):(0,A.jsx)(w,{name:Ir[e.id]||Lr[e.id]||`feature`,px:18})}var qo={id:`settings`,label:`Settings`};function Jo(){let e=(e,t,n,r,i)=>({id:e,label:t,meta:n,href:r,words:i,kind:`page`});return[...P.filter(e=>e.item.path[0]!==`settings`).map(t=>e(t.item.id,t.item.label,`${t.category.label} · ${t.area.label}`,Rr(t.item),[t.item.words,t.item.about].filter(Boolean).join(` `))),...N.flatMap(t=>[e(`browse-${t.id}`,t.label,`Category`,zr(t),t.about),...t.areas.map(n=>e(`browse-${t.id}-${n.id}`,n.label,t.label,Br(t,n),n.about))]),e(`browse`,`ForgeQE`,`Every category`,T(`browse`),`Everything browse all categories home`),e(qo.id,qo.label,`Every setting`,T(qo.id))]}var Yo=Jo(),Xo=(0,D.lazy)(()=>pr(()=>import(`./CommandPalette-Dd0seTKQ.js`),__vite__mapDeps([0,1,2,3,4,5]))),Zo=()=>typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),Qo=()=>Zo()?`⌘K`:`Ctrl K`;function $o({rail:e=!1}){let{find:t}=(0,D.useContext)(ts);return e?(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Search (${Qo()})`,"data-tip":`Search (${Qo()})`,"data-tip-side":`right`,onClick:t,className:`size-9`,children:(0,A.jsx)(Se,{strokeWidth:1.8,"aria-hidden":`true`})}):(0,A.jsxs)(S,{size:`sm`,onClick:t,"aria-keyshortcuts":Zo()?`Meta+K`:`Control+K`,className:`w-full justify-start px-2.5`,children:[(0,A.jsx)(Se,{strokeWidth:1.8,"aria-hidden":`true`}),(0,A.jsx)(`span`,{className:`flex-1 text-left`,children:`Search`}),(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:Qo()})]})}var $=`flex h-8 short:h-7 items-center gap-2.5 rounded-[8px] px-2.5 text-[14px] no-underline`,es=e=>e?`bg-surface-strong font-medium text-ink ring-1 ring-line ring-inset hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`,ts=(0,D.createContext)({hidden:!1,open:()=>{},setChat:()=>{},find:()=>{}});function ns(e){let{setChat:t}=(0,D.useContext)(ts),n=JSON.stringify(e);(0,D.useEffect)(()=>(t(e),()=>t(null)),[n,t])}var rs=`forgeqe-sidebar`,is=()=>{try{return localStorage.getItem(rs)===`closed`}catch{return!1}};function as({className:e}){let{open:t}=(0,D.useContext)(ts);return(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,onClick:t,className:x(`inline-flex md:hidden`,e),children:(0,A.jsx)(vt,{strokeWidth:1.8,"aria-hidden":`true`})})}function os(){return(0,A.jsxs)(`div`,{className:`theme-side sticky top-0 z-20 flex items-center gap-1 border-b border-line-soft px-3 py-2 md:hidden`,children:[(0,A.jsx)(as,{}),(0,A.jsx)(`span`,{className:`ml-1 flex min-w-0 flex-1`,children:(0,A.jsx)(Cs,{compact:!0})})]})}function ss({item:e,current:t}){let n=t===e.id;return(0,A.jsxs)(`a`,{href:T(e.id),"aria-current":n?`page`:void 0,className:x($,es(n)),children:[(0,A.jsx)(Ko,{item:e}),(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})]})}function cs({current:e,rail:t=!1}){let n=!e;return t?(0,A.jsx)(`a`,{href:T(),"aria-label":`New chat`,"data-tip":`New chat`,"data-tip-side":`right`,"aria-current":n?`page`:void 0,className:x(hs,`mt-2`,n?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(Sr,{agent:`forgeqe`,px:18,decorative:!0})}):(0,A.jsxs)(`a`,{href:T(),"aria-current":n?`page`:void 0,className:x($,es(n)),children:[(0,A.jsx)(Sr,{agent:`forgeqe`,px:18,decorative:!0}),`New chat`]})}function ls({to:e,icon:t,label:n,on:r,count:i,more:a}){return(0,A.jsxs)(`a`,{href:e,"aria-current":r?`page`:void 0,className:x($,es(r)),children:[t?(0,A.jsx)(w,{name:t,px:18}):(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`size-[18px] flex-none`}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n}),i!==void 0&&(0,A.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:i}),a&&(0,A.jsx)(l,{size:14,strokeWidth:2,"aria-hidden":`true`,className:`flex-none text-muted`})]})}function us({chats:e,open:t}){return e?.length?(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-chats`,className:`mt-4 flex flex-col gap-px border-t border-line-soft pt-3 short:mt-3 short:pt-2`,children:[(0,A.jsx)(`a`,{id:`nav-chats`,href:T(`chats`),className:`flex h-7 short:h-6 items-center rounded-[6px] px-2.5 text-[12px] font-medium text-muted no-underline hover:text-ink`,children:`Recent chats`}),e.map(e=>{let n=e.id===t,r=oi(e);return(0,A.jsxs)(`a`,{href:T(`chats`,e.id),"aria-current":n?`page`:void 0,"data-tip":e.title,"data-tip-side":`right`,className:x($,es(n)),children:[(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.title||`Untitled chat`}),r&&(0,A.jsx)(`span`,{className:`size-2 flex-none rounded-full bg-warn`,role:`img`,"aria-label":`Needs you`})]},e.id)}),(0,A.jsx)(`a`,{href:T(`chats`),className:x($,`text-[13px] text-muted no-underline hover:bg-surface-strong hover:text-ink`),children:`All chats`})]}):null}function ds(e){let t=Wr(e);if(t.category)return{category:t.category.id,area:t.area?.id};let n=Ur(e);return n&&n.item.path.length?{category:n.category.id,area:n.area.id}:{}}function fs({current:e,route:t,onClose:n,stats:r}){let i=t.join(`/`),[a,o]=(0,D.useState)(()=>ds(t));(0,D.useEffect)(()=>o(ds(t)),[i]);let{pins:s}=Yr(),c=ni(),l=Ur(t)?.item.id,u=N.find(e=>e.id===a.category),d=u?.areas.find(e=>e.id===a.area),f=Wr(t),m=(e,t)=>(0,A.jsxs)(`a`,{href:t,className:x($,`text-ink-2 no-underline hover:bg-surface-strong hover:text-ink`),children:[(0,A.jsx)(p,{size:16,strokeWidth:2,"aria-hidden":`true`,className:`w-[18px] flex-none`}),(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e})]}),h=(e,t,n)=>(0,A.jsx)(`a`,{href:t,"aria-current":n?`page`:void 0,className:x($,`mt-1 font-semibold text-ink hover:bg-surface-strong hover:text-ink`,n&&`bg-surface-strong ring-1 ring-line ring-inset`),children:(0,A.jsx)(`span`,{className:`min-w-0 truncate`,children:e})}),g=si(i),_=s.map(e=>P.find(t=>t.item.id===e)).filter(e=>!!e);return(0,A.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-[248px] min-[1440px]:w-[264px] flex-col border-r border-line-soft px-3 py-3 short:py-2`,children:[(0,A.jsxs)(`div`,{className:`flex min-h-10 items-center gap-1 pl-2.5`,children:[(0,A.jsx)(Cs,{}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Close the sidebar`,"data-tip":`Close the sidebar`,onClick:n,className:`size-8 flex-none`,children:(0,A.jsx)(Pe,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,A.jsx)(`div`,{className:`mt-3 short:mt-2`,children:(0,A.jsx)($o,{})}),(0,A.jsx)(`div`,{className:`mt-2 flex flex-col gap-px`,children:(0,A.jsx)(cs,{current:e})}),(0,A.jsxs)(`div`,{className:`side-level -mx-3 mt-2 flex min-h-0 flex-1 flex-col gap-px overflow-y-auto px-3 pb-6 [mask-image:linear-gradient(to_bottom,black_calc(100%-28px),transparent)]`,children:[!u&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-browse`,className:`mt-3 flex flex-col gap-1.5 short:mt-1.5 short:gap-1`,children:[(0,A.jsx)(`a`,{id:`nav-browse`,href:T(`browse`),"aria-current":t[0]===`browse`&&!f.category?`page`:void 0,className:`flex h-7 short:h-6 items-center rounded-[6px] px-2.5 text-[12px] font-medium text-muted no-underline hover:text-ink`,children:`Browse`}),N.map(e=>(0,A.jsx)(ls,{to:zr(e),icon:e.icon,label:e.label,on:!1,more:!0},e.id))]}),_.length>0&&(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-pinned`,className:`mt-3 flex flex-col gap-px short:mt-1.5`,children:[(0,A.jsx)(`span`,{id:`nav-pinned`,className:`flex h-7 short:h-6 items-center px-2.5 text-[12px] font-medium text-muted`,children:`Pinned`}),_.map(e=>(0,A.jsx)(ls,{to:Rr(e.item),icon:e.item.icon,label:e.item.label,on:l===e.item.id},e.item.id))]})]}),u&&!d&&(0,A.jsxs)(A.Fragment,{children:[m(`ForgeQE`,T(`browse`)),h(u.label,zr(u),f.category?.id===u.id&&!f.area),u.areas.map(e=>(0,A.jsx)(ls,{to:Br(u,e),label:e.label,count:e.items.length,on:!1,more:!0},e.id)),(()=>{let e=ri(u,s,c),t=(e,t,n)=>n.length>0&&(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":e,className:`mt-3 flex flex-col gap-px short:mt-1.5`,children:[(0,A.jsx)(`span`,{id:e,className:`flex h-7 short:h-6 items-center px-2.5 text-[12px] font-medium text-muted`,children:t}),n.map(e=>(0,A.jsx)(ls,{to:Rr(e),icon:e.icon,label:e.label,on:l===e.id},e.id))]});return(0,A.jsxs)(A.Fragment,{children:[t(`nav-cat-pinned`,`Pinned`,e.pinned),t(`nav-cat-recent`,`Recently used`,e.recent)]})})()]}),u&&d&&(0,A.jsxs)(A.Fragment,{children:[m(u.label,zr(u)),h(d.label,Br(u,d),f.area?.id===d.id),d.items.map(e=>(0,A.jsx)(ls,{to:Rr(e),icon:e.icon,label:e.label,on:l===e.id&&!(e.id===`chats`&&t[1])},e.id)),u.id===`agents`&&d.id===`chat`&&t[0]===`chats`&&t[1]&&(0,A.jsx)(ms,{uses:r?.uses})]}),(0,A.jsx)(us,{chats:g,open:t[0]===`chats`?t[1]:void 0})]},`${a.category||``}/${a.area||``}`),(0,A.jsxs)(`div`,{className:`flex flex-none items-center gap-1 border-t border-line-soft pt-2 short:pt-1`,children:[(0,A.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,A.jsx)(ss,{item:qo,current:e})}),(0,A.jsx)(vs,{}),(0,A.jsx)(bs,{icon:!0})]})]})}var ps=[{id:`knowledge`,label:`Knowledge`,icon:`knowledge-base`,to:T(`knowledge`)},{id:`sections`,label:`Document sections`,icon:`wikis`,to:T(`knowledge`)},{id:`skills`,label:`Skills`,icon:`feature`,to:T(`skills`)},{id:`systems`,label:`Systems`,icon:`columns`}];function ms({uses:e}){let t=ps.map(t=>({...t,names:e?.[t.id]||[]}));return(0,A.jsxs)(`div`,{role:`group`,"aria-labelledby":`nav-in-chat`,className:`mt-3 flex flex-col gap-px short:mt-1.5`,children:[(0,A.jsx)(`span`,{id:`nav-in-chat`,className:`flex h-7 short:h-6 items-center px-2.5 text-[12px] font-medium text-muted`,children:`In this chat`}),t.every(e=>!e.names.length)?(0,A.jsx)(`span`,{className:`px-2.5 text-[13px] text-muted`,children:`No knowledge, documents, skills or systems used yet.`}):t.filter(e=>e.names.length).map(t=>{let n=(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(w,{name:t.icon,px:18}),(0,A.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:t.label}),(0,A.jsx)(`span`,{className:`text-[12px] text-muted tabular-nums`,children:t.names.length})]});return(0,A.jsxs)(`div`,{className:`flex flex-col`,children:[t.to?(0,A.jsx)(`a`,{href:t.to,className:x($,es(!1)),children:n}):(0,A.jsx)(`span`,{className:x($,`text-ink-2`),children:n}),(0,A.jsxs)(`ul`,{className:`m-0 flex list-none flex-col p-0 pl-[30px]`,children:[t.names.map(e=>(0,A.jsx)(`li`,{"data-tip":e,className:`truncate px-2.5 py-0.5 text-[13px] text-muted`,children:e},e)),t.id===`sections`&&e?.text&&e.text.whole>e.text.sent&&(0,A.jsxs)(`li`,{"data-tip":`${e.text.sent.toLocaleString()} of ${e.text.whole.toLocaleString()} characters`,className:`truncate px-2.5 py-0.5 text-[13px] text-muted`,children:[Math.round((1-e.text.sent/e.text.whole)*100),`% less text than the whole documents`]})]})]},t.id)})]})}var hs=`flex size-9 flex-none items-center justify-center rounded-[8px] no-underline`;function gs({item:e,current:t}){let n=t===e.id;return(0,A.jsx)(`a`,{href:T(e.id),"aria-current":n?`page`:void 0,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`right`,className:x(hs,n?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(Ko,{item:e})})}function _s({current:e,route:t,onOpen:n}){let{theme:r}=Q(),{pins:i}=Yr(),a=r.name||`ForgeQE`,o=Ur(t),s=Wr(t).category?.id||(o?.item.path.length?o.category.id:``),c=(e,t,n,r)=>(0,A.jsx)(`a`,{href:e,"aria-current":r?`page`:void 0,"aria-label":t,"data-tip":t,"data-tip-side":`right`,className:x(hs,r?`bg-surface-strong text-ink hover:text-ink`:`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(w,{name:n,px:18})},e),l=i.map(e=>P.find(t=>t.item.id===e)).filter(e=>!!e);return(0,A.jsxs)(`nav`,{"aria-label":`ForgeQE`,className:`theme-side flex h-full w-16 flex-col items-center gap-px border-r border-line-soft py-3`,children:[(0,A.jsx)(`a`,{href:T(),"aria-label":`${a}, home`,"data-tip":a,"data-tip-side":`right`,className:`mb-1 flex min-h-10 items-center justify-center no-underline`,children:(0,A.jsx)(Vo,{theme:r})}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Open the sidebar`,"data-tip":`Open the sidebar`,"data-tip-side":`right`,onClick:n,className:`size-9`,children:(0,A.jsx)(vt,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,A.jsx)($o,{rail:!0}),(0,A.jsx)(cs,{current:e,rail:!0}),(0,A.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col items-center gap-px overflow-y-auto`,children:[(0,A.jsxs)(`div`,{role:`group`,"aria-label":`Browse`,className:`flex flex-col items-center gap-px`,children:[(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),N.map(e=>c(zr(e),e.label,e.icon,s===e.id))]}),l.length>0&&(0,A.jsxs)(`div`,{role:`group`,"aria-label":`Pinned`,className:`flex flex-col items-center gap-px`,children:[(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`my-2 h-px w-6 bg-line`}),l.map(e=>c(Rr(e.item),e.item.label,e.item.icon,o?.item.id===e.item.id))]})]}),(0,A.jsxs)(`div`,{className:`flex flex-none flex-col items-center gap-px border-t border-line-soft pt-2`,children:[(0,A.jsx)(vs,{rail:!0}),(0,A.jsx)(bs,{icon:!0,rail:!0}),(0,A.jsx)(gs,{item:qo,current:e})]})]})}function vs({rail:e=!1}){return(0,A.jsx)(`a`,{href:`/help/guide`,target:`_blank`,rel:`noreferrer noopener`,"aria-label":`Help`,"data-tip":`Help`,"data-tip-side":e?`right`:void 0,className:x(hs,`text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(w,{name:Ir.help,px:18})})}var ys=[{id:`system`,label:`System`},{id:`light`,label:`Light`},{id:`dark`,label:`Dark`}];function bs({icon:e=!1,rail:t=!1}){let{choice:n,setChoice:r}=Q(),i=ys.findIndex(e=>e.id===n),a=ys[i],o=ys[(i+1)%ys.length],s=`Dark/Light: now ${a.label===`System`?`as the computer is`:a.label.toLowerCase()}. Switch to ${o.label===`System`?`as the computer is`:o.label.toLowerCase()}`;return(0,A.jsxs)(`button`,{type:`button`,"aria-label":s,"data-tip":s,"data-tip-side":t?`right`:void 0,onClick:()=>r(o.id),className:x(e?hs:$,`w-full cursor-pointer border-0 bg-transparent text-left text-ink-2 hover:bg-surface-strong hover:text-ink`,e&&`w-auto`),children:[(0,A.jsx)(w,{name:Ir.theme,px:18}),!e&&(0,A.jsxs)(`span`,{className:`flex flex-1 items-baseline justify-between gap-2`,children:[`Dark/Light`,(0,A.jsx)(`span`,{className:`text-[12px] text-muted`,children:a.label===`System`?`Auto`:a.label})]})]})}function xs(e){return[{id:`env`,label:`Environment`},{id:`usage`,label:`Context and tokens`},...e?.changes?.length?[{id:`changes`,label:`Changes · ${e.changes.length}`}]:[],...e?.outputs?.length?[{id:`outputs`,label:`Outputs · ${e.outputs.length}`}]:[]]}function Ss({stats:e,onOpen:t}){return(0,A.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-14 flex-col items-center gap-1 border-l border-line-soft bg-surface-muted py-3`,children:[(0,A.jsx)(Go,{rail:!0}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,"data-tip-side":`left`,onClick:()=>t(),children:(0,A.jsx)(o,{strokeWidth:1.8,"aria-hidden":`true`})}),(0,A.jsx)(`span`,{"aria-hidden":`true`,className:`my-1 h-px w-6 bg-line`}),xs(e).map(e=>(0,A.jsx)(`button`,{type:`button`,"aria-label":e.label,"data-tip":e.label,"data-tip-side":`left`,onClick:()=>t(e.id),className:x(hs,`cursor-pointer border-0 bg-transparent text-ink-2 hover:bg-surface-strong hover:text-ink`),children:(0,A.jsx)(Ko,{item:e})},e.id))]})}function Cs({compact:e=!1}){let{theme:t}=Q(),n=t.name||`ForgeQE`;return(0,A.jsx)(`a`,{href:T(),"aria-label":`${n}, home`,className:`-ml-1.5 flex min-h-9 min-w-0 flex-1 items-center gap-2 rounded-[8px] pl-1.5 text-base font-semibold text-ink no-underline hover:bg-surface-strong hover:text-ink`,children:(0,A.jsx)(Bo,{theme:t,compact:e})})}function ws(){let[e,t]=(0,D.useState)(!1);return(0,D.useEffect)(()=>{let e=()=>t(!0);return window.addEventListener(jt,e),()=>window.removeEventListener(jt,e)},[]),e?(0,A.jsx)(`p`,{role:`alert`,className:`mx-4 mt-4 mb-0 rounded-[12px] bg-fail-soft px-3 py-2 text-sm text-fail [overflow-wrap:anywhere]`,children:Rt()}):null}function Ts({stats:e,onClose:t,focus:n}){let r=(0,D.useRef)(null);return(0,D.useEffect)(()=>{n&&(r.current?.querySelector(`#panel-${n.id}`))?.scrollIntoView({block:`start`,behavior:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches?`auto`:`smooth`})},[n]),(0,A.jsxs)(`aside`,{"aria-label":`Workspace`,className:`flex h-full w-[264px] flex-col border-l border-line-soft bg-surface-muted`,children:[(0,A.jsxs)(`div`,{className:`flex items-center gap-2 px-3 pt-3`,children:[(0,A.jsx)(Go,{}),(0,A.jsx)(`span`,{className:`flex-1`}),(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Close the workspace panel`,"data-tip":`Close the workspace panel`,"data-tip-side":`left`,onClick:t,children:(0,A.jsx)(he,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,A.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-y-auto px-3 pt-1 pb-3`,children:(0,A.jsx)(Oa,{chat:e})})]})}var Es=`forgeqe-workspace-panel`,Ds=()=>{try{return localStorage.getItem(Es)!==`closed`}catch{return!0}},Os=220;function ks({open:e,side:t,onClose:n,className:r,children:i}){if(!Dr(e,180))return null;let a=t===`left`?`aside`:`div`;return(0,A.jsxs)(`div`,{inert:!e||void 0,className:x(`drawer fixed inset-0 z-40`,!e&&`is-closing`,r),children:[(0,A.jsx)(`div`,{"aria-hidden":`true`,className:`drawer-dim absolute inset-0 bg-[rgba(17,25,40,0.28)]`,onClick:n}),(0,A.jsx)(a,{className:x(`drawer-box absolute inset-y-0 max-w-[85vw] shadow-menu`,t===`left`?`drawer-left left-0`:`right-0`),children:i})]})}function As({current:e,route:t=e?[e]:[],children:n}){let[r,i]=(0,D.useState)(is),[a,s]=(0,D.useState)(null),[c,l]=(0,D.useState)(!1),[u,d]=(0,D.useState)(Ds),[f,p]=(0,D.useState)(!1),[m,h]=(0,D.useState)(!1),[g,_]=(0,D.useState)(!1),v=t.join(`/`);(0,D.useEffect)(()=>ti(t),[v]);let y=()=>{l(!1),_(!0),h(!0)};(0,D.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`&&(e.preventDefault(),_(!0),h(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let ee=Dr(!r,Os),b=Dr(u,Os),[te,ne]=(0,D.useState)(null),re=()=>window.matchMedia(`(min-width: 1600px)`).matches,ie=e=>{d(e);try{localStorage.setItem(Es,e?`open`:`closed`)}catch{}};(0,D.useEffect)(()=>{if(!f)return;let e=()=>p(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[f]);let ae=e=>{i(e);try{localStorage.setItem(rs,e?`closed`:`open`)}catch{}};(0,D.useEffect)(()=>{if(!c)return;let e=()=>l(!1),t=t=>t.key===`Escape`&&e();return window.addEventListener(`hashchange`,e),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`hashchange`,e),window.removeEventListener(`keydown`,t)}},[c]);let oe=()=>window.matchMedia(`(min-width: 768px)`).matches,se=e===`settings`,ce=e=>{re()?ie(!0):p(!0),ne(e?{id:e,at:Date.now()}:null)};return(0,A.jsx)(ts.Provider,{value:{hidden:r,open:()=>oe()?ae(!1):l(!0),setChat:s,find:y},children:(0,A.jsxs)(`div`,{className:`flex min-h-(--screen) bg-bg`,children:[(0,A.jsxs)(`aside`,{style:{viewTransitionName:`app-sidebar`},className:x(`side-box sticky top-0 h-(--screen) flex-none overflow-hidden`,r?`w-16`:`w-[248px] min-[1440px]:w-[264px]`,se?`hidden`:`hidden md:block`),children:[(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 left-0`,r&&`invisible opacity-0`),children:ee&&(0,A.jsx)(fs,{current:e,route:t,stats:a,onClose:()=>ae(!0)})}),(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 left-0`,!r&&`invisible opacity-0`),children:(0,A.jsx)(_s,{current:e,route:t,onOpen:()=>ae(!1)})})]}),(0,A.jsx)(ks,{open:c,side:`left`,onClose:()=>l(!1),className:`md:hidden`,children:(0,A.jsx)(fs,{current:e,route:t,stats:a,onClose:()=>l(!1)})}),(0,A.jsxs)(`div`,{className:`relative flex min-w-0 flex-1 flex-col`,children:[(0,A.jsx)(ws,{}),n,(0,A.jsx)(S,{variant:`icon`,size:`icon`,"aria-label":`Show the workspace panel`,"data-tip":`Show the workspace panel`,onClick:()=>ce(),className:x(`absolute top-2 right-3 z-30 md:hidden`,se&&`hidden`),children:(0,A.jsx)(o,{strokeWidth:1.8,"aria-hidden":`true`})})]}),(0,A.jsxs)(`div`,{style:{viewTransitionName:`app-panel`},className:x(`side-box sticky top-0 h-(--screen) w-14 flex-none overflow-hidden`,u&&`min-[1600px]:w-[264px]`,se?`hidden`:`hidden md:block`),children:[(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 right-0 hidden min-[1600px]:block`,!u&&`invisible opacity-0`),children:b&&(0,A.jsx)(Ts,{stats:a,focus:te,onClose:()=>ie(!1)})}),(0,A.jsx)(`div`,{className:x(`side-layer absolute inset-y-0 right-0`,u&&`min-[1600px]:invisible min-[1600px]:opacity-0`),children:(0,A.jsx)(Ss,{stats:a,onOpen:ce})})]}),g&&(0,A.jsx)(D.Suspense,{fallback:null,children:(0,A.jsx)(Xo,{open:m,onClose:()=>h(!1),pages:Yo})}),(0,A.jsx)(ks,{open:f,side:`right`,onClose:()=>p(!1),className:`min-[1600px]:hidden`,children:(0,A.jsx)(Ts,{stats:a,focus:te,onClose:()=>p(!1)})})]})})}var js=`mx-auto box-border flex w-full max-w-[1180px] flex-col px-6 pt-8 pb-10 md:px-12 short:pt-5 short:pb-6`;export{Si as $,Ln as $t,ea as A,_r as At,Gi as B,er as Bt,Na as C,jr as Ct,U as D,wr as Dt,oa as E,Tr as Et,ma as F,Yn as Ft,I as G,or as Gt,Wi as H,ir as Ht,Ji as I,Xn as It,Ai as J,rr as Jt,Pi as K,Jn as Kt,B as L,Hn as Lt,Xi as M,yr as Mt,aa as N,pr as Nt,L as O,Cr as Ot,H as P,sr as Pt,Ci as Q,Bn as Qt,qi as R,$n as Rt,uo as S,Pr as St,ro as T,Dr as Tt,Vi as U,Kn as Ut,Fi as V,Zn as Vt,Ui as W,Qn as Wt,xi as X,jn as Xt,Oi as Y,qn as Yt,Di as Z,Mn as Zt,Ga as _,Fr as _t,ns as a,bn as an,mi as at,Pa as b,Or as bt,wo as c,di as ct,Q as d,Br as dt,zn as en,bi as et,Ma as f,zr as ft,Aa as g,Ir as gt,ja as h,ni as ht,As as i,On as in,pi as it,$i as j,gr as jt,Ki as k,Sr as kt,Ao as l,P as lt,Ha as m,Yr as mt,as as n,wn as nn,_i as nt,Bo as o,xn as on,hi as ot,La as p,Rr as pt,ji as q,tr as qt,os as r,Tn as rn,fi as rt,Vo as s,F as st,js as t,Rn as tn,gi as tt,go as u,N as ut,io as v,Nr as vt,J as w,Er as wt,eo as x,Mr as xt,K as y,kr as yt,R as z,nr as zt};
|