@intent-hq/web 2.310.2 → 2.310.4
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/package.json +1 -1
- package/web/app/immutable/chunks/{B3u9yhMd.js → 1JT3Hvwn.js} +1 -1
- package/web/app/immutable/chunks/{B_u6ph9g.js → 3XXjzHG3.js} +1 -1
- package/web/app/immutable/chunks/{WKN7DEK1.js → 5lKAUCkv.js} +1 -1
- package/web/app/immutable/chunks/{7LPFBi2V.js → 5mT5QCH0.js} +2 -2
- package/web/app/immutable/chunks/{C64YVcCh.js → 9Pt4_UCK.js} +1 -1
- package/web/app/immutable/chunks/{_Q4NEhG2.js → AdEBgfMz.js} +1 -1
- package/web/app/immutable/chunks/{_sFm91KN.js → B-BihkPv.js} +4 -4
- package/web/app/immutable/chunks/{BUvLOETw.js → B31DSOXx.js} +1 -1
- package/web/app/immutable/chunks/{Dmv_LV6R.js → B6i2HXcd.js} +1 -1
- package/web/app/immutable/chunks/{CtDXgUYh.js → B72MiU4f.js} +2 -2
- package/web/app/immutable/chunks/{BwThkZnv.js → B7hiL__h.js} +1 -1
- package/web/app/immutable/chunks/{D3ma4MWK.js → B939T8ee.js} +1 -1
- package/web/app/immutable/chunks/{CYTBw0CY.js → BAFIBxJn.js} +1 -1
- package/web/app/immutable/chunks/{B6ACa1PM.js → BHfh0Z1C.js} +1 -1
- package/web/app/immutable/chunks/{Dr_BXnmT.js → BI8wduE-.js} +1 -1
- package/web/app/immutable/chunks/{JvGvDA7z.js → BIU8-rPj.js} +1 -1
- package/web/app/immutable/chunks/{CkactGV1.js → BIiORJal.js} +4 -4
- package/web/app/immutable/chunks/{BRp0P9cF.js → BJKiZYvw.js} +1 -1
- package/web/app/immutable/chunks/{le8iLKoG.js → BNFZ_TXS.js} +1 -1
- package/web/app/immutable/chunks/{189zCzpy.js → BNXdIr_O.js} +1 -1
- package/web/app/immutable/chunks/{C7ldC6zu.js → BNsTgNha.js} +1 -1
- package/web/app/immutable/chunks/{BgjzIHmr.js → BPO8n77e.js} +2 -2
- package/web/app/immutable/chunks/{BS3KKa6i.js → BR2WgFAY.js} +1 -1
- package/web/app/immutable/chunks/{CQK97B3l.js → BRD3o4b9.js} +1 -1
- package/web/app/immutable/chunks/{D5mZ2XGM.js → BTjbZv4v.js} +1 -1
- package/web/app/immutable/chunks/{Dyv7eW7r.js → BVaDxTbw.js} +1 -1
- package/web/app/immutable/chunks/{hJG5qV93.js → BXYHRMR5.js} +1 -1
- package/web/app/immutable/chunks/{O86272iX.js → BZC0V7Vm.js} +2 -2
- package/web/app/immutable/chunks/{DR3ukAe9.js → BZCsjPbo.js} +2 -2
- package/web/app/immutable/chunks/{Dvt2xumc.js → BdmhOhOr.js} +1 -1
- package/web/app/immutable/chunks/{CDmxeAFz.js → BhEmEnro.js} +1 -1
- package/web/app/immutable/chunks/{Bz2AaX7v.js → BlOiaItm.js} +1 -1
- package/web/app/immutable/chunks/{B_CxKeY9.js → BoADm99c.js} +1 -1
- package/web/app/immutable/chunks/{CpQksukT.js → BqgH4F9Q.js} +1 -1
- package/web/app/immutable/chunks/{C2FKcF8a.js → BrrIbgjH.js} +1 -1
- package/web/app/immutable/chunks/{YuniekLU.js → BttTHeg3.js} +2 -2
- package/web/app/immutable/chunks/{Bdj20t_M.js → BwF5HhIs.js} +1 -1
- package/web/app/immutable/chunks/{DPADHNob.js → Bx1ulVFG.js} +1 -1
- package/web/app/immutable/chunks/{9Ax53qRD.js → BxV9jjnn.js} +1 -1
- package/web/app/immutable/chunks/{C5bjHjx4.js → C1CC06Ey.js} +1 -1
- package/web/app/immutable/chunks/{D3p4HGPq.js → C501DddF.js} +1 -1
- package/web/app/immutable/chunks/{ey5Fwige.js → C5AqVWW_.js} +1 -1
- package/web/app/immutable/chunks/{yGxUPrAb.js → C5G0q6V9.js} +3 -3
- package/web/app/immutable/chunks/{yEkT96At.js → C5egmBj1.js} +1 -1
- package/web/app/immutable/chunks/{6XLvYn_R.js → C6Gqnk62.js} +1 -1
- package/web/app/immutable/chunks/{9U2m-KE4.js → C8qwdo8h.js} +1 -1
- package/web/app/immutable/chunks/{mCGfnSaU.js → CAiJGbLo.js} +1 -1
- package/web/app/immutable/chunks/{mNrkfPcL.js → CF7FcFf9.js} +1 -1
- package/web/app/immutable/chunks/{O55LMojB.js → CGnNcckt.js} +1 -1
- package/web/app/immutable/chunks/{CAt8c0ls.js → CHJhHJ8c.js} +1 -1
- package/web/app/immutable/chunks/{JFNcUgqI.js → CK49eRBK.js} +1 -1
- package/web/app/immutable/chunks/{D3in5AGo.js → CMbRA5qt.js} +1 -1
- package/web/app/immutable/chunks/{d9OF_ecy.js → CNC6BMwU.js} +1 -1
- package/web/app/immutable/chunks/{PW60rHG1.js → CPIehcPz.js} +1 -1
- package/web/app/immutable/chunks/{CnfDI0G9.js → CR2tijk0.js} +1 -1
- package/web/app/immutable/chunks/{IIWxUL8F.js → CR_mHSu4.js} +1 -1
- package/web/app/immutable/chunks/{DE1vhlzN.js → CSxLglEe.js} +1 -1
- package/web/app/immutable/chunks/{CLyqqizl.js → CUzjOAua.js} +1 -1
- package/web/app/immutable/chunks/{M5rEGvXZ.js → CVH8gLyV.js} +1 -1
- package/web/app/immutable/chunks/{CC-vc0Sh.js → CVmHwhPc.js} +2 -2
- package/web/app/immutable/chunks/{B1wLVJWc.js → CYjqtZFX.js} +1 -1
- package/web/app/immutable/chunks/{jfltPaLX.js → CYpaiDaV.js} +1 -1
- package/web/app/immutable/chunks/{tzNFwvLY.js → CaBSUvc-.js} +1 -1
- package/web/app/immutable/chunks/{VmPClZ6P.js → CkwlIwj7.js} +1 -1
- package/web/app/immutable/chunks/{DMfS3QUv.js → CmaYPN9s.js} +1 -1
- package/web/app/immutable/chunks/{DzDnAGVP.js → CmqlgQan.js} +1 -1
- package/web/app/immutable/chunks/{CrX2GQl1.js → CoW30tTg.js} +1 -1
- package/web/app/immutable/chunks/{l0v05b1J.js → CqR3T6Kd.js} +3 -3
- package/web/app/immutable/chunks/{C2ypXh8V.js → CrR4jweF.js} +1 -1
- package/web/app/immutable/chunks/{DQNwUygY.js → CrWQjKj_.js} +3 -3
- package/web/app/immutable/chunks/{B1zCpBoo.js → CroKe-wc.js} +1 -1
- package/web/app/immutable/chunks/{Dhhgf7-r.js → CsQkh7b3.js} +1 -1
- package/web/app/immutable/chunks/{Dk4znOdW.js → CvCSRZBy.js} +1 -1
- package/web/app/immutable/chunks/{B3NZDdp-.js → CvOoeN0T.js} +1 -1
- package/web/app/immutable/chunks/{DPcySxOl.js → CxJcdmSd.js} +1 -1
- package/web/app/immutable/chunks/{DjaKy3j_.js → D-0ZUYIk.js} +1 -1
- package/web/app/immutable/chunks/{Dr28se2A.js → D-4XO7pN.js} +2 -2
- package/web/app/immutable/chunks/{CvEzUeZj.js → D4qyaNt3.js} +1 -1
- package/web/app/immutable/chunks/{BzqKIdEP.js → D4z4ooVN.js} +1 -1
- package/web/app/immutable/chunks/{UzQ5fjmd.js → DAg5pMRd.js} +1 -1
- package/web/app/immutable/chunks/{CZLMJ41d.js → DCuJDyNf.js} +1 -1
- package/web/app/immutable/chunks/{CoiqgZqV.js → DI608D-i.js} +1 -1
- package/web/app/immutable/chunks/{BGOzArFr.js → DIiJKmmV.js} +1 -1
- package/web/app/immutable/chunks/{BhFdeIZl.js → DJ1cdtAZ.js} +1 -1
- package/web/app/immutable/chunks/{D2XAsGw-.js → DKr5x03c.js} +1 -1
- package/web/app/immutable/chunks/{IjQ_akx8.js → DL-yibpy.js} +1 -1
- package/web/app/immutable/chunks/{DI-WSiIl.js → DNlvdlMF.js} +1 -1
- package/web/app/immutable/chunks/{COBtdbv4.js → DPXd3fU6.js} +1 -1
- package/web/app/immutable/chunks/{BcGA_XKM.js → DR0NE2_C.js} +1 -1
- package/web/app/immutable/chunks/{CiBABzvX.js → DTCRTrPV.js} +1 -1
- package/web/app/immutable/chunks/{CeVWos-t.js → DTj6_2dz.js} +1 -1
- package/web/app/immutable/chunks/{COZ8XMYr.js → DXMKw2so.js} +1 -1
- package/web/app/immutable/chunks/{DxHqMweQ.js → DYZ36vW7.js} +1 -1
- package/web/app/immutable/chunks/{BHMk19Fd.js → DeYZGX2s.js} +1 -1
- package/web/app/immutable/chunks/{C7xfOFNZ.js → Df6f-k6w.js} +1 -1
- package/web/app/immutable/chunks/{DW02E8JU.js → Dgaq6o9Y.js} +1 -1
- package/web/app/immutable/chunks/{BjS3bCVA.js → Dkq5Coq_.js} +1 -1
- package/web/app/immutable/chunks/{CO5Qz17e.js → DmX5G2mi.js} +1 -1
- package/web/app/immutable/chunks/Dmhbab3K.js +12 -0
- package/web/app/immutable/chunks/{gq2RHuUM.js → Dp1Yxyun.js} +1 -1
- package/web/app/immutable/chunks/{Bl1SUWQK.js → DrZyb3e_.js} +1 -1
- package/web/app/immutable/chunks/{CLUug_7o.js → DsgnOGWk.js} +1 -1
- package/web/app/immutable/chunks/{LXPDKlyI.js → DxdqGRL1.js} +1 -1
- package/web/app/immutable/chunks/{DTpCNXVX.js → DzUxh_ps.js} +1 -1
- package/web/app/immutable/chunks/{D57k4GEE.js → ENpFvA2b.js} +5 -5
- package/web/app/immutable/chunks/{BGSgFd0R.js → F27tZ3Lo.js} +1 -1
- package/web/app/immutable/chunks/{B2-LFLJm.js → IeOyBdV1.js} +1 -1
- package/web/app/immutable/chunks/{DMmGJ3th.js → NtwUb2T_.js} +1 -1
- package/web/app/immutable/chunks/{C7-VQsLR.js → PtwmLAp4.js} +1 -1
- package/web/app/immutable/chunks/{Dl1xcl6N.js → WU_Tlex0.js} +1 -1
- package/web/app/immutable/chunks/{cF0DaKkd.js → _e7d73p6.js} +1 -1
- package/web/app/immutable/chunks/{C-27EQSK.js → ckbdI_sO.js} +6 -6
- package/web/app/immutable/chunks/{BfVF2I5Q.js → eVx-WSd7.js} +1 -1
- package/web/app/immutable/chunks/{CxP8jrn2.js → flwRPGfq.js} +1 -1
- package/web/app/immutable/chunks/{B7VxeONz.js → iCXhZwLL.js} +1 -1
- package/web/app/immutable/chunks/{BU1SD4F5.js → iU779rtf.js} +1 -1
- package/web/app/immutable/chunks/{CepoDpYW.js → lH4z0y-c.js} +1 -1
- package/web/app/immutable/chunks/{B_F8B07u.js → nRjRQ-e8.js} +1 -1
- package/web/app/immutable/chunks/{BbajLcMi.js → p-l1WyaF.js} +1 -1
- package/web/app/immutable/chunks/{B08PB3d6.js → r8JiSeiY.js} +1 -1
- package/web/app/immutable/chunks/{DRKyy5zo.js → uI2-sxxt.js} +1 -1
- package/web/app/immutable/chunks/{9Al7uANH.js → uK-hZG4d.js} +1 -1
- package/web/app/immutable/chunks/{BSN7-Qxa.js → v3BNQvm3.js} +4 -4
- package/web/app/immutable/chunks/{CZqaUHhn.js → v5CNLLlH.js} +1 -1
- package/web/app/immutable/chunks/{BtFywNMt.js → wUteoXUE.js} +1 -1
- package/web/app/immutable/chunks/{xL2Hl8pt.js → x5DAOZ-l.js} +1 -1
- package/web/app/immutable/entry/{app.CWgSMPHo.js → app.9TYubmA2.js} +2 -2
- package/web/app/immutable/entry/start.DzrqTCos.js +1 -0
- package/web/app/immutable/nodes/{0.DsHcmAxw.js → 0.CwEPgBsQ.js} +1 -1
- package/web/app/immutable/nodes/{1.CkY-7ake.js → 1.DWK38N4h.js} +1 -1
- package/web/app/immutable/nodes/{10.CdTsXOpX.js → 10.DaUeIEdW.js} +1 -1
- package/web/app/immutable/nodes/{14.juvATfIp.js → 14.2lmprMDP.js} +1 -1
- package/web/app/immutable/nodes/{16.DuXLhJX1.js → 16.COW42S3C.js} +2 -2
- package/web/app/immutable/nodes/{2.DL0H4Ehj.js → 2.SI3oSw-U.js} +3 -3
- package/web/app/immutable/nodes/{3.CsarMzm8.js → 3.BdAb9qv8.js} +1 -1
- package/web/app/immutable/nodes/{4.DOKXGcKD.js → 4.BPPplmHC.js} +1 -1
- package/web/app/immutable/nodes/{5.5nmYhZgy.js → 5.mnYZAvZj.js} +1 -1
- package/web/app/immutable/nodes/{6.BMO8vjvw.js → 6.DokpGs5-.js} +1 -1
- package/web/app/immutable/nodes/{7.Rmoc-ypk.js → 7.7huKB9rr.js} +1 -1
- package/web/app/immutable/nodes/{8.Dy5AT1iw.js → 8.Oo8AlOBc.js} +2 -2
- package/web/app/immutable/nodes/{9.Dtv2dSUT.js → 9.DkJDLBQi.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/DbnaPZDp.js +0 -12
- package/web/app/immutable/entry/start.DRM4Ek1S.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bo as C,t as wt,bq as q,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./7rNOGHzs.js";import{bs as It,ca as J,aD as t,a7 as At,ay as K,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{E as St}from"./DCaHy20k.js";import{c as Wt}from"./CiENRH6A.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./
|
|
1
|
+
import{bo as C,t as wt,bq as q,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./7rNOGHzs.js";import{bs as It,ca as J,aD as t,a7 as At,ay as K,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{E as St}from"./DCaHy20k.js";import{c as Wt}from"./CiENRH6A.js";import{C as R}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./C8qwdo8h.js";import"./DmsDslNo.js";import"./CQ4a5a4v.js";import{be as Dt}from"./CFejQM6t.js";import"./Bgegixo2.js";import"./BZC0V7Vm.js";import{Hq as L,HX as Nt,Ib as Ft,I0 as Et,tZ as Lt}from"./CRwmdgt6.js";import{T as Bt}from"./BNFZ_TXS.js";import{g as Ot}from"./CoSk1zgY.js";import{dl as Ut}from"./KQTrHxko.js";import{bO as Ht,bL as jt,b6 as qt}from"./DR0NE2_C.js";import"./Ck-Ax5yG.js";import{M as Mt}from"./yI5lBaQ8.js";import{V as Vt}from"./CZERqHN7.js";import{O as Rt}from"./F27tZ3Lo.js";import{c as Gt}from"./ChTqQfQN.js";import{i as Xt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Q(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Zt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||C.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||C.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Y(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Zt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function zt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Q(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:R.Unstaged,stats:d,attribution:Y(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:R.Unstaged,stats:Q(d),attribution:Y(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Jt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Kt=x("<!> <!>",1),Qt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Yt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>L.dispatch(Et()),get wrapEnabled(){return d()},onToggleWrap:()=>L.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>L.dispatch(Nt())})},it=a=>{var i=Kt(),g=K(i);{let m=f(()=>C.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var b=F(g,2);{var y=m=>{Rt(m,{get filePath(){return t(X)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(U)}})};D(b,m=>{t(X)&&m(y)})}w(a,i)},rt=Ht(),st=jt(),ot=qt(),dt=Gt("ActivityChangesTabType");let B=q(n,"tab",7),_=q(n,"workspaceId",7),O=q(n,"isActive",7);const G=Ot(),lt=Ut(_()),U=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>B().data?.event),ct=f(()=>t(o)?zt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),X=f(()=>t(p)&&t(U)?Xt(t(p))?t(p):`${t(U)}/${t(p)}`:null),H=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),Z=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(Z)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(H)();return a?Jt(a):null}),W=f(()=>ft(t(H)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:R.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};L.dispatch(Lt(_(),g))}J(()=>{!G||!O()||G.registerActions({display:at,actions:it})}),J(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(H)(),hasOldNewContent:t(Z)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return B()},set tab(a){B(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return O()},set isActive(a){O(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},z=At(),mt=K(z);{var vt=a=>{var i=Yt(),g=I(i);{var b=l=>{var h=Qt(),$=I(h),j=P($,!0);A(h),E(_t=>S(j,_t),[()=>C.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(b)})}var y=F(g,2),m=I(y);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Bt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(y),A(i),w(a,i)},bt=a=>{var i=te(),g=I(i),b=P(g,!0),y=F(g,2),m=P(y,!0);A(i),E((l,h)=>{S(b,l),S(m,h)},[()=>C.layout_activityChanges_noDiffStored_label(),()=>C.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},yt=a=>{var i=ne(),g=I(i),b=P(g,!0),y=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);E(j=>S($,j),[()=>C.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(y,l=>{t(o)&&l(m)})}A(i),E(l=>S(b,l),[()=>C.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(bt,1):a(yt,-1)})}w(e,z);var Ct=Pt(ht);return nt(),Ct}export{ae as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aQ as Ft,at as Et,$ as Qe}from"./CkactGV1.js";import{bI as Rt,aD as _,aG as At,bH as We,bV as it,bs as Bt,ca as Lt,a5 as L,bA as W,W as o,bS as c,b_ as u,bn as Wt,c9 as S,aA as O,bl as A,bO as l,b$ as R,aB as N,bf as G,a7 as q,ay as x,be as Pe,am as Ee,ax as Re}from"./B8o4lNgr.js";import{t as Ut,bq as F,a_ as D,by as jt,bu as Ve,bs as Mt,b as $t,bo as d}from"./7rNOGHzs.js";import{E as Xe}from"./DCaHy20k.js";import{s as Je}from"./CQ4a5a4v.js";import{H as V,b as Ze,C as le}from"./DzMmhJrp.js";import{l as Ae,k as et,s as tt}from"./DmsDslNo.js";import{F as zt,bm as qt,aL as Ht,cF as Kt,ci as Yt}from"./CFejQM6t.js";import{n as Gt}from"./lfJ8pseq.js";import{f as Be}from"./Bgegixo2.js";import"./ChTqQfQN.js";import"./D-cnPaTJ.js";import"./CRwmdgt6.js";import{q as Qt,h as Vt,S as Xt}from"./JFNcUgqI.js";import{O as Le}from"./BGSgFd0R.js";import{bE as Jt,D as Zt,w as ea}from"./BRp0P9cF.js";import{d as ta}from"./IIWxUL8F.js";import{s as aa,f as ra,c as at}from"./BLiTWssf.js";function ja($){let C=0,z=!1;function _e(I){z!==I&&(z=I,$.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return $.isEnabled&&!$.isEnabled()?!1:Et(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const K=Ft(I.dataTransfer);(K.files.length>0||K.folderFiles.length>0)&&$.onDrop(K)},reset:pe}}const lt=Symbol("panel-file-drop-context");function Ma(){let $=it(null);const C={register(z){We($,z)},unregister(z){_($)===z&&We($,null)}};return Rt(lt,C),{context:C,handler:{get current(){return _($)}}}}function $a(){return At(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca($,C){if(new.target)return Ut({component:Ca,...$});Bt(C,!0);const z=()=>Ve(dt,"$progressEntry$",pe),_e=()=>Ve(_t,"$specialists$",pe),[pe,ae]=Mt();let I=F(C,"repoName",7),K=F(C,"repoPath",7),Y=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),H=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),X=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),J=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Jt();let fe=it(0);Lt(()=>{const i=Math.min(z()?.percent??0,100);i>_(fe)&&We(fe,i,!0)});const pt=S(()=>z()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return X()&&i.push(X()),i.push(ge()),i}),Te=S(()=>_(je).length),Me=S(()=>_(je).filter(i=>i==="done").length),$e=S(()=>Math.min(_(Me)+1,_(Te))),Se=S(()=>_(Me)===_(Te)),ze=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,E){navigator.clipboard.writeText(i),Gt.success(d.onboarding_setupCard_copied_label({label:E}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return K()},set repoPath(i){K(i),O()},get worktreePath(){return Y()},set worktreePath(i){Y(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return H()},set branch(i){H(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return X()},set setupScriptStatus(i){X(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return J()},set skipIsolation(i=!1){J(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,E)=>$t(C,i,E)},ye=ha(),ke=L(ye);Ae(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=L(ke),bt=L(Fe);Xe(bt,()=>_(Se),i=>{var E=sa(),Z=L(E);{var me=M=>{var B=na(),xe=A(B,!0);u(()=>l(xe,_(ze))),o(M,B)},be=M=>{var B=R();u(()=>l(B,_(ze))),o(M,B)};D(Z,M=>{_(Se)?M(me):M(be,-1)})}W(E),V(1,E,()=>Ze,()=>({tier:"slow",distance:3})),V(2,E,()=>Ze,()=>({tier:"slow",distance:3})),o(i,E)}),W(Fe);var xt=c(Fe,2);{var ht=i=>{var E=ia(),Z=L(E),me=L(Z);Xe(me,()=>_($e),M=>{var B=oa(),xe=A(B,!0);u(()=>l(xe,_($e))),V(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(M,B)}),W(Z);var be=c(Z);W(E),u(()=>l(be,`/${_(Te)??""}`)),o(i,E)};D(xt,i=>{_(Se)||i(ht)})}W(ke);var qe=c(ke,2);{const i=(f,m=G,y=G,k=G,w=G,b=G)=>{var n=da();Ae(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=L(n);{var e=h=>{var P=la(),T=L(P);Xt(T,{}),W(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=L(a);zt(r,{get icon(){return y()},size:14,get class(){return k()}}),W(a);var s=c(a,2),p=L(s);{var g=h=>{var P=rt(),T=L(P);Je(T,w),W(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=L(P);Je(T,b),W(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}W(s),W(n),u(()=>et(a,1,`${Vt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),V(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},E=(f,m)=>{let y=Ee(()=>Re(m?.(),""));var k=q(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),K,()=>_(y))}},n=t=>{var e=R();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{K()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=q(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=A(e,!0),r=c(e,2),s=A(r);u((p,g)=>{l(a,p),Ae(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at(z()),percent:ra(_(fe))}),()=>at(z())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());E(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);E(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&z()?n(k):J()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=q(),y=x(m);{var k=n=>{const t=S(()=>Y()||K());var e=pa(),a=L(e),r=c(a);{var s=v=>{Le(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));M(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=R();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);W(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=A(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);Le(T,{get filePath(){return Y()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let Q=S(()=>Oe(Y()));M(j,()=>_(Q),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=R(".");o(v,h)};D(s,v=>{Y()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);E(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);Le(P,{get filePath(){return Y()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(Y()));M(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=R(".");o(g,v)};D(r,g=>{Y()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):J()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=A(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,H()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=R();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=A(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,H()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=R();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{J()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},M=(f,m=G,y)=>{let k=Ee(()=>Re(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=A(n,!0),e=c(n),a=L(e),r=A(a,!0),s=c(a),p=A(s,!0);W(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=G,y=G,k=G,w)=>{let b=Ee(()=>Re(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{M(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,H,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=R();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,H,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=R();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{J()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=A(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=R();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=A(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=R();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Qe(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var Q=R();u(he=>l(Q,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,Q)},$$slots:{default:!0}})},content:T=>{var j=q(),ee=x(j);{var Q=he=>{var Ge=ma(),Ot=A(Ge,!0);u(()=>l(Ot,Ce())),o(he,Ge)};D(ee,he=>{Ce()&&he(Q)})}o(T,j)},footer:T=>{var j=ot(),ee=A(j,!0);u(Q=>l(ee,Q),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Qe(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=R();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=q(),n=x(b);{var t=e=>{var a=xa(),r=A(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=A(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var He=L(qe);{var Ct=f=>{i(f,se,()=>qt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(He,f=>{se()!=="pending"&&f(Ct)})}var Ke=c(He,2);{var wt=f=>{i(f,ue,()=>Ht,()=>"",()=>be,()=>xe)};D(Ke,f=>{ue()!=="pending"&&!J()&&!oe()&&f(wt)})}var Ye=c(Ke,2);{var St=f=>{i(f,X,()=>Kt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(Ye,f=>{X()&&X()!=="pending"&&f(St)})}var yt=c(Ye,2);{var kt=f=>{i(f,ge,()=>Yt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}W(qe)}W(ye),u(()=>et(ye,1,`${Qt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o($,ye);var Pt=Wt(mt);return ae(),Pt}export{Ca as W,Ma as a,ja as c,$a as g};
|
|
1
|
+
import{aQ as Ft,at as Et,$ as Qe}from"./BIiORJal.js";import{bI as Rt,aD as _,aG as At,bH as We,bV as it,bs as Bt,ca as Lt,a5 as L,bA as W,W as o,bS as c,b_ as u,bn as Wt,c9 as S,aA as O,bl as A,bO as l,b$ as R,aB as N,bf as G,a7 as q,ay as x,be as Pe,am as Ee,ax as Re}from"./B8o4lNgr.js";import{t as Ut,bq as F,a_ as D,by as jt,bu as Ve,bs as Mt,b as $t,bo as d}from"./7rNOGHzs.js";import{E as Xe}from"./DCaHy20k.js";import{s as Je}from"./CQ4a5a4v.js";import{H as V,b as Ze,C as le}from"./DzMmhJrp.js";import{l as Ae,k as et,s as tt}from"./DmsDslNo.js";import{F as zt,bm as qt,aL as Ht,cF as Kt,ci as Yt}from"./CFejQM6t.js";import{n as Gt}from"./lfJ8pseq.js";import{f as Be}from"./Bgegixo2.js";import"./ChTqQfQN.js";import"./D-cnPaTJ.js";import"./CRwmdgt6.js";import{q as Qt,h as Vt,S as Xt}from"./CK49eRBK.js";import{O as Le}from"./F27tZ3Lo.js";import{bE as Jt,D as Zt,w as ea}from"./BJKiZYvw.js";import{d as ta}from"./CR_mHSu4.js";import{s as aa,f as ra,c as at}from"./BLiTWssf.js";function ja($){let C=0,z=!1;function _e(I){z!==I&&(z=I,$.onDragChange(I))}function pe(){C=0,_e(!1)}function ae(I){return $.isEnabled&&!$.isEnabled()?!1:Et(I)}return{handleDragEnter(I){ae(I)&&(I.preventDefault(),C++,_e(!0))},handleDragLeave(I){ae(I)&&(I.preventDefault(),C=Math.max(0,C-1),C===0&&_e(!1))},handleDragOver(I){ae(I)&&I.preventDefault()},handleDrop(I){if(!ae(I))return;I.preventDefault(),pe();const K=Ft(I.dataTransfer);(K.files.length>0||K.folderFiles.length>0)&&$.onDrop(K)},reset:pe}}const lt=Symbol("panel-file-drop-context");function Ma(){let $=it(null);const C={register(z){We($,z)},unregister(z){_($)===z&&We($,null)}};return Rt(lt,C),{context:C,handler:{get current(){return _($)}}}}function $a(){return At(lt)??null}var na=N('<span class="inline-flex items-center gap-1.5 svelte-enden2"> </span>'),sa=N('<h3 class="text-lg font-semibold tracking-[-0.016em] transition-colors duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2"><!></h3>'),oa=N('<span class="inline-block col-span-1 row-span-1 svelte-enden2"> </span>'),ia=N('<span class="text-sm font-mono text-muted-foreground tabular-nums svelte-enden2"><span class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></span> </span>'),la=N('<div class="absolute inset-0 left-5 svelte-enden2"><!></div>'),rt=N('<div class="svelte-enden2"><!></div>'),da=N('<div class="relative flex items-start overflow-hidden rounded-md py-0.75 text-base leading-relaxed svelte-enden2"><!> <span data-testid="workspace-setup-step-icon"><!></span> <div class="setup-step-content min-w-0 text-muted-foreground font-normal leading-snug relative z-10 svelte-enden2" data-testid="workspace-setup-step-content"><!></div></div>'),_a=N('<span data-testid="setup-card-progress-label" class="svelte-enden2"> </span> <div class="mt-1 h-[2px] w-full max-w-64 rounded-full bg-secondary overflow-hidden svelte-enden2"><div class="h-full bg-foreground/60 transition-[width] duration-spring-slow ease-spring-slow motion-reduce:transition-none svelte-enden2" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-testid="setup-card-progress-bar"></div></div>',1),de=N(" <!>",1),pa=N('<span data-testid="setup-card-plain-folder" class="svelte-enden2"> <!> </span>'),va=N(' <code class="text-sm bg-secondary py-1 px-1.5 svelte-enden2"> </code> <!>',1),nt=N(" <!> <!>",1),ca=N(' <span class="svelte-enden2"> </span> ',1),ua=N(' <span class="svelte-enden2"> </span> <!>',1),ga=N('<span class="underline underline-offset-2 svelte-enden2"> </span><span class="whitespace-nowrap svelte-enden2"><span class="underline underline-offset-2 svelte-enden2"> </span><span class="setup-reference-punctuation svelte-enden2" aria-hidden="true"> </span></span>',1),fa=N("<!> ",1),st=N('<span class="svelte-enden2"> </span>'),te=N(" <!> ",1),ma=N('<pre class="text-xs text-muted-foreground font-mono leading-snug line-clamp-2 whitespace-pre-wrap svelte-enden2"> </pre>'),ot=N('<span class="text-xs text-muted-foreground opacity-50 svelte-enden2"> </span>'),ba=N(" <!> <!> ",1),xa=N('<p class="text-xs text-muted-foreground leading-snug svelte-enden2"> </p>'),ha=N('<div><div class="flex items-baseline gap-2.5 pt-3 pb-2 svelte-enden2"><div class="inline-grid *:[grid-area:1/1] svelte-enden2"><!></div> <!></div> <div class="space-y-0.5 pb-4 svelte-enden2"><!> <!> <!> <!></div></div>');function Ca($,C){if(new.target)return Ut({component:Ca,...$});Bt(C,!0);const z=()=>Ve(dt,"$progressEntry$",pe),_e=()=>Ve(_t,"$specialists$",pe),[pe,ae]=Mt();let I=F(C,"repoName",7),K=F(C,"repoPath",7),Y=F(C,"worktreePath",7),ve=F(C,"workspaceId",7),H=F(C,"branch",7),ce=F(C,"baseRef",7,"origin/main"),re=F(C,"projectType",7),X=F(C,"setupScriptStatus",7),Ce=F(C,"setupScriptContent",7),we=F(C,"onFocusSetupTerminal",7),De=F(C,"specialistName",7),U=F(C,"specialistId",7),ne=F(C,"hasPrompt",7,!0),se=F(C,"repoStatus",7,"pending"),ue=F(C,"branchStatus",7,"pending"),ge=F(C,"agentStatus",7,"pending"),J=F(C,"skipIsolation",7,!1),oe=F(C,"plainFolder",7,!1),Ie=F(C,"progressId",7);const dt=aa(Ie()??""),_t=Jt();let fe=it(0);Lt(()=>{const i=Math.min(z()?.percent??0,100);i>_(fe)&&We(fe,i,!0)});const pt=S(()=>z()?.sawFrame===!0),vt=S(()=>ce().replace(/^[^/]+\//,"")),Ne=S(()=>U()?ea(U()):void 0),ct=S(()=>U()?_e().find(i=>i.id===U()):void 0),ut=S(()=>_(ct)?.name||_(Ne)?.name||De()),Ue=S(()=>U()==="spec-writer"||U()===Zt),je=S(()=>{const i=oe()?[se()]:[se(),ue()];return X()&&i.push(X()),i.push(ge()),i}),Te=S(()=>_(je).length),Me=S(()=>_(je).filter(i=>i==="done").length),$e=S(()=>Math.min(_(Me)+1,_(Te))),Se=S(()=>_(Me)===_(Te)),ze=S(()=>_(Se)?d.onboarding_setupCard_ready_title():d.onboarding_setupCard_settingUp_title());function gt(i,E){navigator.clipboard.writeText(i),Gt.success(d.onboarding_setupCard_copied_label({label:E}))}function Oe(i){return i.replace(/^\/Users\/[^/]+/,"~")}function ft(){U()&&ta({specialist:U(),hash:"specialists"})}var mt={get repoName(){return I()},set repoName(i){I(i),O()},get repoPath(){return K()},set repoPath(i){K(i),O()},get worktreePath(){return Y()},set worktreePath(i){Y(i),O()},get workspaceId(){return ve()},set workspaceId(i){ve(i),O()},get branch(){return H()},set branch(i){H(i),O()},get baseRef(){return ce()},set baseRef(i="origin/main"){ce(i),O()},get projectType(){return re()},set projectType(i){re(i),O()},get setupScriptStatus(){return X()},set setupScriptStatus(i){X(i),O()},get setupScriptContent(){return Ce()},set setupScriptContent(i){Ce(i),O()},get onFocusSetupTerminal(){return we()},set onFocusSetupTerminal(i){we(i),O()},get specialistName(){return De()},set specialistName(i){De(i),O()},get specialistId(){return U()},set specialistId(i){U(i),O()},get hasPrompt(){return ne()},set hasPrompt(i=!0){ne(i),O()},get repoStatus(){return se()},set repoStatus(i="pending"){se(i),O()},get branchStatus(){return ue()},set branchStatus(i="pending"){ue(i),O()},get agentStatus(){return ge()},set agentStatus(i="pending"){ge(i),O()},get skipIsolation(){return J()},set skipIsolation(i=!1){J(i),O()},get plainFolder(){return oe()},set plainFolder(i=!1){oe(i),O()},get progressId(){return Ie()},set progressId(i){Ie(i),O()},$set:jt,$on:(i,E)=>$t(C,i,E)},ye=ha(),ke=L(ye);Ae(ke,"",{},{"padding-inline":"var(--operational-row-inline-padding)"});var Fe=L(ke),bt=L(Fe);Xe(bt,()=>_(Se),i=>{var E=sa(),Z=L(E);{var me=M=>{var B=na(),xe=A(B,!0);u(()=>l(xe,_(ze))),o(M,B)},be=M=>{var B=R();u(()=>l(B,_(ze))),o(M,B)};D(Z,M=>{_(Se)?M(me):M(be,-1)})}W(E),V(1,E,()=>Ze,()=>({tier:"slow",distance:3})),V(2,E,()=>Ze,()=>({tier:"slow",distance:3})),o(i,E)}),W(Fe);var xt=c(Fe,2);{var ht=i=>{var E=ia(),Z=L(E),me=L(Z);Xe(me,()=>_($e),M=>{var B=oa(),xe=A(B,!0);u(()=>l(xe,_($e))),V(1,B,()=>le,()=>({axis:"y",tier:"slow"})),o(M,B)}),W(Z);var be=c(Z);W(E),u(()=>l(be,`/${_(Te)??""}`)),o(i,E)};D(xt,i=>{_(Se)||i(ht)})}W(ke);var qe=c(ke,2);{const i=(f,m=G,y=G,k=G,w=G,b=G)=>{var n=da();Ae(n,"",{},{gap:"0.25rem","padding-inline":"var(--operational-row-inline-padding)"});var t=L(n);{var e=h=>{var P=la(),T=L(P);Xt(T,{}),W(P),o(h,P)};D(t,h=>{m()==="active"&&h(e)})}var a=c(t,2),r=L(a);zt(r,{get icon(){return y()},size:14,get class(){return k()}}),W(a);var s=c(a,2),p=L(s);{var g=h=>{var P=rt(),T=L(P);Je(T,w),W(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)},v=h=>{var P=rt(),T=L(P);Je(T,b),W(P),V(1,P,()=>le,()=>({axis:"y",tier:"moderate"})),V(2,P,()=>le,()=>({axis:"y",tier:"moderate"})),o(h,P)};D(p,h=>{m()==="active"?h(g):h(v,-1)})}W(s),W(n),u(()=>et(a,1,`${Vt} relative z-10 mt-1 flex size-4 shrink-0 items-center justify-start`,"svelte-enden2")),V(3,n,()=>le,()=>({tier:"slow"})),o(f,n)},E=(f,m)=>{let y=Ee(()=>Re(m?.(),""));var k=q(),w=x(k);{var b=t=>{{let e=S(()=>d.onboarding_setupCard_originalFolder_label());B(t,I,()=>_(e),K,()=>_(y))}},n=t=>{var e=R();u(()=>l(e,`${I()??""}${_(y)??""}`)),o(t,e)};D(w,t=>{K()?t(b):t(n,-1)})}o(f,k)},Z=f=>{var m=q(),y=x(m);{var k=n=>{var t=_a(),e=x(t),a=A(e,!0),r=c(e,2),s=A(r);u((p,g)=>{l(a,p),Ae(s,`width: ${_(fe)??""}%`),tt(s,"aria-label",g),tt(s,"aria-valuenow",_(fe))},[()=>d.workspace_compactInitializer_progressWithPercent_label({label:at(z()),percent:ra(_(fe))}),()=>at(z())]),o(n,t)},w=n=>{var t=de(),e=x(t),a=c(e);{let r=S(()=>d.onboarding_setupCard_opening_after());E(a,()=>_(r))}u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_opening_before()]),o(n,t)},b=n=>{var t=de(),e=x(t),a=c(e);E(a),u(r=>l(e,`${r??""} `),[()=>d.onboarding_setupCard_creatingIsolatedCopy_before()]),o(n,t)};D(y,n=>{_(pt)&&z()?n(k):J()||oe()?n(w,1):n(b,-1)})}o(f,m)},me=f=>{var m=q(),y=x(m);{var k=n=>{const t=S(()=>Y()||K());var e=pa(),a=L(e),r=c(a);{var s=v=>{Le(v,{get filePath(){return _(t)},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(h,P)=>{{let T=S(()=>Oe(_(t)));M(h,()=>_(T),()=>".")}},$$slots:{default:!0}})},p=v=>{var h=R();u(()=>l(h,`${I()??""}.`)),o(v,h)};D(r,v=>{_(t)?v(s):v(p,-1)})}var g=c(r);W(e),u((v,h)=>{l(a,`${v??""} `),l(g,` ${h??""}`)},[()=>d.onboarding_setupCard_workingInFolder_before(),()=>d.onboarding_setupCard_plainFolderInPlace_label()]),o(n,e)},w=n=>{var t=va(),e=x(t),a=c(e),r=A(a,!0),s=c(a,2);{var p=v=>{var h=de(),P=x(h),T=c(P);Le(T,{get filePath(){return Y()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(j,ee)=>{{let Q=S(()=>Oe(Y()));M(j,()=>_(Q),()=>".")}},$$slots:{default:!0}}),u(j=>l(P,` ${j??""} `),[()=>d.onboarding_setupCard_at_label()]),o(v,h)},g=v=>{var h=R(".");o(v,h)};D(s,v=>{Y()?v(p):v(g,-1)})}u(v=>{l(e,`${v??""} `),l(r,_(vt))},[()=>d.onboarding_setupCard_workingDirectlyOn_before()]),o(n,t)},b=n=>{var t=nt(),e=x(t),a=c(e);E(a);var r=c(a,2);{var s=g=>{var v=de(),h=x(v),P=c(h);Le(P,{get filePath(){return Y()},get workspaceId(){return ve()},isDirectory:!0,variant:"sidebar",compact:!0,inline:!0,class:"setup-path",children:(T,j)=>{{let ee=S(()=>Oe(Y()));M(T,()=>_(ee),()=>".")}},$$slots:{default:!0}}),u(T=>l(h,` ${T??""} `),[()=>d.onboarding_setupCard_at_label()]),o(g,v)},p=g=>{var v=R(".");o(g,v)};D(r,g=>{Y()?g(s):g(p,-1)})}u(g=>l(e,`${g??""} `),[()=>d.onboarding_setupCard_createdIsolatedCopy_before()]),o(n,t)};D(y,n=>{oe()?n(k):J()?n(w,1):n(b,-1)})}o(f,m)},be=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=ca(),g=x(p),v=c(g),h=A(v,!0),P=c(v,1,!0);u((T,j)=>{l(g,`${T??""} `),l(h,H()),l(P,j)},[()=>d.onboarding_setupCard_workingOnBranchNamed_before(),()=>d.onboarding_setupCard_workingOnBranchActive_after()]),o(s,p)},r=s=>{var p=R();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingOnBranch_label()]),o(s,p)};D(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=ua(),e=x(t),a=c(e),r=A(a,!0),s=c(a),p=c(s);{let g=S(()=>d.onboarding_setupCard_baseRef_label()),v=S(()=>d.onboarding_setupCard_creatingBranch_after());B(p,ce,()=>_(g),()=>{},()=>_(v))}u((g,v)=>{l(e,`${g??""} `),l(r,H()),l(s,` ${v??""} `)},[()=>d.onboarding_setupCard_creatingBranch_before(),()=>d.onboarding_setupCard_creatingBranch_middle()]),o(n,t)},b=n=>{var t=R();u(e=>l(t,e),[()=>d.onboarding_setupCard_creatingBranchNoName_label()]),o(n,t)};D(y,n=>{J()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},M=(f,m=G,y)=>{let k=Ee(()=>Re(y?.(),""));const w=S(()=>Array.from(m()));var b=ga(),n=x(b),t=A(n,!0),e=c(n),a=L(e),r=A(a,!0),s=c(a),p=A(s,!0);W(e),u((g,v)=>{l(t,g),l(r,v),l(p,_(k))},[()=>_(w).slice(0,-1).join(""),()=>_(w).at(-1)??""]),o(f,b)},B=(f,m=G,y=G,k=G,w)=>{let b=Ee(()=>Re(w?.(),""));const n=S(()=>_(b).match(/^\p{P}+/u)?.[0]??"");var t=fa(),e=x(t);Be(e,{variant:"plain",wrapContent:!1,class:"setup-inline-link cursor-pointer hover:text-foreground transition-colors",onclick:()=>gt(k()??m(),y()),children:(r,s)=>{M(r,m,()=>_(n))},$$slots:{default:!0}});var a=c(e,1,!0);u(r=>l(a,r),[()=>_(b).slice(_(n).length)]),o(f,t)},xe=f=>{var m=q(),y=x(m);{var k=n=>{var t=q(),e=x(t);{var a=s=>{var p=de(),g=x(p),v=c(g);{let h=S(()=>d.onboarding_setupCard_branchName_label()),P=S(()=>d.onboarding_setupCard_workingOnBranchDone_after());B(v,H,()=>_(h),()=>{},()=>_(P))}u(h=>l(g,`${h??""} `),[()=>d.onboarding_setupCard_workingOnBranchNamed_before()]),o(s,p)},r=s=>{var p=R();u(g=>l(p,g),[()=>d.onboarding_setupCard_workingDirectlyOnBranch_label()]),o(s,p)};D(e,s=>{H()?s(a):s(r,-1)})}o(n,t)},w=n=>{var t=nt(),e=x(t),a=c(e);{let s=S(()=>d.onboarding_setupCard_branchName_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_middle());B(a,H,()=>_(s),()=>{},()=>_(p))}var r=c(a,2);{let s=S(()=>d.onboarding_setupCard_baseRef_label()),p=S(()=>d.onboarding_setupCard_workingInNewBranch_after());B(r,ce,()=>_(s),()=>{},()=>_(p))}u(s=>l(e,`${s??""} `),[()=>d.onboarding_setupCard_workingInNewBranch_before()]),o(n,t)},b=n=>{var t=R();u(e=>l(t,e),[()=>d.onboarding_setupCard_branchCreated_label()]),o(n,t)};D(y,n=>{J()?n(k):H()?n(w,1):n(b,-1)})}o(f,m)},Dt=f=>{Pe();var m=te(),y=x(m),k=c(y);{var w=t=>{var e=st(),a=A(e,!0);u(()=>l(a,re())),o(t,e)},b=t=>{var e=R();u(a=>l(e,a),[()=>d.onboarding_setupCard_project_label()]),o(t,e)};D(k,t=>{re()?t(w):t(b,-1)})}var n=c(k);u((t,e)=>{l(y,`${t??""} `),l(n,` ${e??""}`)},[()=>d.onboarding_setupCard_runningSetup_before(),()=>d.onboarding_setupCard_runningSetup_after()]),o(f,m)},It=f=>{Pe();var m=ba(),y=x(m),k=c(y);{var w=r=>{var s=st(),p=A(s,!0);u(()=>l(p,re())),o(r,s)},b=r=>{var s=R();u(p=>l(s,p),[()=>d.onboarding_setupCard_project_label()]),o(r,s)};D(k,r=>{re()?r(w):r(b,-1)})}var n=c(k),t=c(n);{var e=r=>{var s=de(),p=x(s),g=c(p);Qe(g,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:T=>{Be(T,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",get onclick(){return we()},children:(j,ee)=>{Pe();var Q=R();u(he=>l(Q,he),[()=>d.onboarding_setupCard_terminalTab_label()]),o(j,Q)},$$slots:{default:!0}})},content:T=>{var j=q(),ee=x(j);{var Q=he=>{var Ge=ma(),Ot=A(Ge,!0);u(()=>l(Ot,Ce())),o(he,Ge)};D(ee,he=>{Ce()&&he(Q)})}o(T,j)},footer:T=>{var j=ot(),ee=A(j,!0);u(Q=>l(ee,Q),[()=>d.onboarding_setupCard_openTerminal_footer()]),o(T,j)},$$slots:{trigger:!0,content:!0,footer:!0}}),u(v=>l(p,` ${v??""} `),[()=>d.onboarding_setupCard_ranSetupIn_middle()]),o(r,s)};D(t,r=>{we()&&r(e)})}var a=c(t,1,!0);u((r,s,p)=>{l(y,`${r??""} `),l(n,` ${s??""}`),l(a,p)},[()=>d.onboarding_setupCard_ranSetup_before(),()=>d.onboarding_setupCard_ranSetup_middle(),()=>d.onboarding_setupCard_ranSetup_after()]),o(f,m)},ie=f=>{Qe(f,{class:"inline",side:"bottom",align:"start",interactive:!0,maxWidth:"22rem",delayDuration:300,trigger:w=>{Be(w,{variant:"plain",wrapContent:!1,class:"setup-inline-link underline underline-offset-2 cursor-pointer hover:text-foreground transition-colors",onclick:ft,children:(b,n)=>{Pe();var t=R();u(()=>l(t,_(ut))),o(b,t)},$$slots:{default:!0}})},content:w=>{var b=q(),n=x(b);{var t=e=>{var a=xa(),r=A(a,!0);u(()=>l(r,_(Ne).description)),o(e,a)};D(n,e=>{_(Ne)&&e(t)})}o(w,b)},footer:w=>{var b=ot(),n=A(b,!0);u(t=>l(n,t),[()=>d.onboarding_setupCard_editInSettings_footer()]),o(w,b)},$$slots:{trigger:!0,content:!0,footer:!0}})},Nt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specStartingUp_before(),()=>d.onboarding_setupCard_specStartingUp_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_startingUpNamed_before(),()=>d.onboarding_setupCard_startingUpNamed_after()]),o(e,a)},t=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_startingUp_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)},Tt=f=>{var m=q(),y=x(m);{var k=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentReadyNamed_before(),()=>d.onboarding_setupCard_agentReadyNamed_after()]),o(e,a)},w=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentReady_label()]),o(e,a)},b=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_specDone_before(),()=>d.onboarding_setupCard_specDone_after()]),o(e,a)},n=e=>{var a=te(),r=x(a),s=c(r);ie(s);var p=c(s);u((g,v)=>{l(r,`${g??""} `),l(p,` ${v??""}`)},[()=>d.onboarding_setupCard_agentDoneNamed_before(),()=>d.onboarding_setupCard_agentDoneNamed_after()]),o(e,a)},t=e=>{var a=R();u(r=>l(a,r),[()=>d.onboarding_setupCard_agentOrienting_label()]),o(e,a)};D(y,e=>{!ne()&&U()?e(k):ne()?_(Ue)?e(b,2):U()?e(n,3):e(t,-1):e(w,1)})}o(f,m)};var He=L(qe);{var Ct=f=>{i(f,se,()=>qt,()=>"-ml-px transform scale-[0.98]",()=>Z,()=>me)};D(He,f=>{se()!=="pending"&&f(Ct)})}var Ke=c(He,2);{var wt=f=>{i(f,ue,()=>Ht,()=>"",()=>be,()=>xe)};D(Ke,f=>{ue()!=="pending"&&!J()&&!oe()&&f(wt)})}var Ye=c(Ke,2);{var St=f=>{i(f,X,()=>Kt,()=>"ml-[0.5px]",()=>Dt,()=>It)};D(Ye,f=>{X()&&X()!=="pending"&&f(St)})}var yt=c(Ye,2);{var kt=f=>{i(f,ge,()=>Yt,()=>"ml-[-0.5px]",()=>Nt,()=>Tt)};D(yt,f=>{ge()!=="pending"&&f(kt)})}W(qe)}W(ye),u(()=>et(ye,1,`${Qt} w-full overflow-hidden transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none`,"svelte-enden2")),o($,ye);var Pt=Wt(mt);return ae(),Pt}export{Ca as W,Ma as a,ja as c,$a as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BJzHxIyr.js";import{aE as g}from"./B8o4lNgr.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BJzHxIyr.js";import{aE as g}from"./B8o4lNgr.js";import{g as c}from"./Dmhbab3K.js";import{p as l}from"./PtwmLAp4.js";import{d as I}from"./B0Z-1lwJ.js";import{dx as w}from"./KQTrHxko.js";import{AE as f,g as y,Hq as o,gQ as A,u8 as m,u9 as N,ub as b}from"./CRwmdgt6.js";import{g as W,n as h}from"./DNen9YXB.js";import{S as D,a as R,n as E}from"./B72MiU4f.js";import{n as O,o as v}from"./CF7FcFf9.js";const k="intent:onboarding-skip:v1";function P(e){return f.getItem(h(k,e))==="1"}function re(e){P(e)||f.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(W(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(w.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function $(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function C(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=g(l),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=g(l).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function M(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function B(){r.info("[closeDrawer] Closing drawer");const a=g(l).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function H(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function G(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await E(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(D);if(e&&e!=="/"&&!R(e))return e;const a=u();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await O(e)}function u(e){return w.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=u();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function q(e){const a=u(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:B,findSourcePanelId:C,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:q,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:G,navigateToSpec:M,navigateToTask:H,navigateToTerminal:$},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,G as d,H as e,C as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as o,r as l,d as t}from"./
|
|
1
|
+
import{g as o,r as l,d as t}from"./eVx-WSd7.js";import{p as m}from"./DI608D-i.js";import{c as n,aN as s}from"./ENpFvA2b.js";import{M as p,d as u}from"./ClebXGIM.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),g(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:y,db:t,renderer:l,styles:o};export{h as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as bt,bq as m,bo as g,a_ as z,by as wt,b as xt,bs as Dn,bu as lr,bt as dl,br as aa}from"./7rNOGHzs.js";import{bs as kt,a5 as D,bA as E,bS as P,bl as oe,ay as we,aD as e,b_ as F,bO as X,W as f,c9 as a,bn as It,bV as fe,bH as H,aA as p,be as xr,b$ as Vr,aB as A,bj as On,c0 as In,c6 as cl,bo as xa,br as Yr,ca as tr,bf as ir,a7 as Et,am as Pn,ax as Rn,bk as Wa,ai as sa,aj as jr,aw as za,bz as Vo,cb as Ya,c5 as Sa,aC as _r,cd as Js,bv as ul}from"./B8o4lNgr.js";import{k as Ne,s as re,a as un,j as Xa,l as oa,h as Br,d as gt,f as Zt,i as Wn,I as fl,c as ia,p as gl,o as ml,S as pl,C as vl}from"./DmsDslNo.js";import{H as Yt,j as hl,s as Ko,p as qs,y as _l,u as yl,t as Pr,g as Kn,c as ra,E as Is,A as ss,D as Ha,S as bl}from"./DzMmhJrp.js";import{b as fn}from"./D2g8BuR1.js";import{bU as Go,j as Ra,a5 as Ss,ak as Ua,F as wl,au as Na,aN as xl,aQ as eo}from"./
|
|
1
|
+
var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as bt,bq as m,bo as g,a_ as z,by as wt,b as xt,bs as Dn,bu as lr,bt as dl,br as aa}from"./7rNOGHzs.js";import{bs as kt,a5 as D,bA as E,bS as P,bl as oe,ay as we,aD as e,b_ as F,bO as X,W as f,c9 as a,bn as It,bV as fe,bH as H,aA as p,be as xr,b$ as Vr,aB as A,bj as On,c0 as In,c6 as cl,bo as xa,br as Yr,ca as tr,bf as ir,a7 as Et,am as Pn,ax as Rn,bk as Wa,ai as sa,aj as jr,aw as za,bz as Vo,cb as Ya,c5 as Sa,aC as _r,cd as Js,bv as ul}from"./B8o4lNgr.js";import{k as Ne,s as re,a as un,j as Xa,l as oa,h as Br,d as gt,f as Zt,i as Wn,I as fl,c as ia,p as gl,o as ml,S as pl,C as vl}from"./DmsDslNo.js";import{H as Yt,j as hl,s as Ko,p as qs,y as _l,u as yl,t as Pr,g as Kn,c as ra,E as Is,A as ss,D as Ha,S as bl}from"./DzMmhJrp.js";import{b as fn}from"./D2g8BuR1.js";import{bU as Go,j as Ra,a5 as Ss,ak as Ua,F as wl,au as Na,aN as xl,aQ as eo}from"./DR0NE2_C.js";import{t as Gn,r as kl,P as Il}from"./Ck-Ax5yG.js";import{F as Vt,cF as Ds,at as Qo,aX as Zo,aI as Sl,c5 as Al,a3 as Tl,a5 as ja,aL as Cl,cI as Ml,cH as Pl,a2 as Ja,av as Bs,ai as Rl,br as Nl,aQ as El,aV as Ll,bG as $l,an as Ol,cx as ql,aB as to,be as kn,aN as ro,bY as os,aG as Aa,cR as Dl,c7 as Bl,bl as Fl,b as Wl,ck as zl,af as Hl,b8 as is,cm as la,cA as Ul,c$ as Fs,X as Yo,a as jl}from"./CFejQM6t.js";import{c1 as Ea,aB as ba,cM as Xo,cO as qn,bS as es,i as Vl,cG as Jo,cL as ts,cK as ei,cI as ti,f as Tn,a9 as Kl,aa as Gl,aw as Ql,r as Zl,J as Yl,V as no,u as ri,dJ as Xl,as as Jl,j as ed,t as ls,m as td,N as rd,n as nd,p as ni,q as ai,a5 as ad,R as sd,Q as od,$ as id,k as ld,cP as dd,a3 as cd,C as ud,w as fd,U as ao}from"./KQTrHxko.js";import{Hq as lt,o8 as gd,so as La,mZ as so,u9 as si,ub as oi,qO as md,x5 as Va,R as pd,tu as ii,mU as li,bi as $a,x6 as vd,pA as hd,s2 as _d,u2 as di,mS as yd,lZ as bd,g as wd,xy as xd,xv as kd,xx as Id}from"./CRwmdgt6.js";import{f as pt,am as Ws,bt as Sd,bx as ds,bL as Ad}from"./Bgegixo2.js";import{a1 as Td,x as cs,$ as Cd,O as us,V as Md,Z as Pd,j as Rd,o as da,M as ea,p as Nd,F as Ed,u as Ld,s as $d,L as fs,J as Od,y as qd,K as Dd,Y as ma,Q as Ta,N as oo,m as io,E as Bd,c as gs,B as lo,z as Fd,v as co,H as pa,P as Wd,G as zd,i as Hd,R as Ud,T as jd,A as Vd,g as Kd,b as Gd,D as Qd,f as Zd,e as Yd,a as Xd,C as Jd,h as ec,U as ci,a2 as tc,t as rc,k as nc,d as uo}from"./CrWQjKj_.js";import{i as ac,e as sc}from"./C_n9DeKj.js";import{g as ms}from"./BvFAWM27.js";import{M as ca,C as Ca}from"./v3BNQvm3.js";import{C as fo}from"./Dkq5Coq_.js";import"./C8qwdo8h.js";import{P as oc}from"./DsgnOGWk.js";import"./BAEcHnha.js";import{c as ui}from"./ChTqQfQN.js";import{s as Cn}from"./CQ4a5a4v.js";import{S as ic}from"./CAiJGbLo.js";import{D as go,M as lc}from"./ENpFvA2b.js";import{b as dc,s as Un,c as Ka}from"./C501DddF.js";import{O as Oa,y as ps,E as vs,B as hs,N as cc,m as uc,l as fc,d as Ga,C as mo,f as gc,e as mc,g as pc}from"./CK49eRBK.js";import{j as fi,g as vc,s as po}from"./DZX-XWnb.js";import{f as hc}from"./BJzHxIyr.js";import{c as an}from"./BEJX9KVN.js";import{A as _c,B as yc,c as bc}from"./DSjRkndX.js";import{o as _s,n as ys,v as vo,h as wc}from"./CvOoeN0T.js";import"./DbAK3Zju.js";import{aL as $n,w as xc}from"./CB-g50lR.js";import"./CKEqC8_B.js";import{R as As,C as rs,n as kc,e as Ic,d as Sc,f as ho,P as Ac}from"./lfJ8pseq.js";import"./D-cnPaTJ.js";import{aY as Sr,A as qa,aj as gi,o as mi,e as Tc,I as Cc,R as Mc,ar as Pc,b as Rc,_ as Nc}from"./BIiORJal.js";import{Z as _o,J as ha,s as pi,k as Ec}from"./BZC0V7Vm.js";import{B as Lc}from"./CaBSUvc-.js";import{r as $c,e as Oc,o as qc}from"./BRD3o4b9.js";import{o as vi}from"./BZCsjPbo.js";import{g as zs}from"./DsNWmyox.js";import{a as Dc,M as Bc}from"./CzrrO9Ap.js";import{c as ua}from"./CiENRH6A.js";import{A as Fc}from"./DmX5G2mi.js";import{f as Wc,d as zc}from"./CR_mHSu4.js";import{I as Hc,t as Uc,B as jc,r as yo,A as Vc,n as Kc}from"./BhEmEnro.js";import{b as Gc}from"./BaQ9zUUl.js";import{E as Qc}from"./DCaHy20k.js";import{S as Zc}from"./jTWJRtu0.js";import{u as Yc,a as Xc,c as bo,S as Jc}from"./D2AmAQEr.js";import{T as Ts}from"./Bvonx6Ga.js";import{a as eu}from"./eHLf0w_s.js";import{b as wo}from"./C3hWtekV.js";import{a6 as tu}from"./yAjP_kdp.js";import{c as ru}from"./Dmhbab3K.js";function nu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:s,runId:i,monitorId:o,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof s!="string"||!s||typeof i!="string"||!i||typeof o!="string"||!o||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const y=t.trigger;return{scriptName:n,scriptId:s,runId:i,monitorId:o,workspaceId:d,reason:c,...c==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function au(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function su(r,t,n,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const i=r.messageMetadata?.fromPrincipalId??r.author?.principalId,o=Hc(r)&&r.author?.principalId!==null&&i===t;return{edit:o,remove:o||t===n||s,sendNow:(o||s)&&!hi(r)}}function fa(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function hi(r){return au(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function xo(r,t=Date.now()){const n=r.messageMetadata,s=n?.fromPrincipalId,i=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof s=="string"&&s.length>0),o=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!o&&!i&&!hi(r)}const Th="pl-3.5! pr-2!";var ou=A("<!> ",1),iu=A('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function _i(r,t){if(new.target)return bt({component:_i,...r});kt(t,!0);let n=m(t,"name",7),s=m(t,"description",7),i=m(t,"content",7),o=m(t,"onUseScript",7),d=fe(!1);function c(){navigator.clipboard.writeText(i()),H(d,!0),setTimeout(()=>{H(d,!1)},2e3)}function y(){o()?.({name:n(),description:s(),content:i()})}var _={get name(){return n()},set name(V){n(V),p()},get description(){return s()},set description(V){s(V),p()},get content(){return i()},set content(V){i(V),p()},get onUseScript(){return o()},set onUseScript(V){o(V),p()},$set:wt,$on:(V,ne)=>xt(t,V,ne)},b=iu(),I=D(b),M=D(I),Z=D(M),w=D(Z);Vt(w,{get icon(){return Ds},size:"sm"}),E(Z);var L=P(Z,2),Q=oe(L,!0);E(M);var j=P(M,2),R=D(j);pt(R,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(V,ne)=>{var pe=ou(),be=we(pe);{let qe=a(()=>e(d)?Qo:Zo);Vt(be,{get icon(){return e(qe)},class:"mr-1"})}var ge=P(be);F(qe=>X(ge,` ${qe??""}`),[()=>e(d)?g.chat_shared_copied_label():g.chat_shared_copy_label()]),f(V,pe)},$$slots:{default:!0}});var N=P(R,2);{var x=V=>{pt(V,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(ne,pe)=>{xr();var be=Vr();F(ge=>X(be,ge),[()=>g.chat_setupScriptCard_useScript_label()]),f(ne,be)},$$slots:{default:!0}})};z(N,V=>{o()&&V(x)})}E(j),E(I);var ee=P(I,2),S=oe(ee,!0),T=P(ee,2),Me=oe(T,!0);return E(b),F(()=>{X(Q,n()),X(S,s()),X(Me,i())}),f(r,b),It(_)}const hr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class lu{constructor(){_n(this,"buffer","");_n(this,"currentToolName",null);_n(this,"currentToolId",null);_n(this,"lastToolId",null);_n(this,"currentToolParams",[]);_n(this,"currentToolResultContent",[]);_n(this,"inToolResult",!1);_n(this,"inCodeBlock",!1);_n(this,"codeBlockLanguage","");_n(this,"codeBlockContent","");_n(this,"characterBuffer","");_n(this,"inCharacterMode",!1);_n(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const i=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(_=>_.startsWith("❌")||_.startsWith("Error:")),y=this.currentToolResultContent.map(_=>_.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
|
|
2
2
|
`);i.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const o=t.indexOf("🤖"),d=t.substring(o+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
|
|
3
3
|
`){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return i}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
|
|
4
4
|
`)&&this.characterBuffer.length>0){const i=t.substring(0,t.indexOf(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hq as s,hY as a,lw as S,n5 as f,lJ as m}from"./CRwmdgt6.js";import{B as O}from"./
|
|
1
|
+
import{Hq as s,hY as a,lw as S,n5 as f,lJ as m}from"./CRwmdgt6.js";import{B as O}from"./BJKiZYvw.js";import{dt as d,aT as k,dB as b}from"./KQTrHxko.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),B=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),z=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),A=s.createSelector((t,e)=>i(t,e).initialized),D=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),J=s.createSelector((t,e)=>i(t,e).detectionOperation),L=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),P=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),q=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),H=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),T=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),U=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{q as selectAllWorkspaceScriptEntries,T as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,J as selectScriptDetectionOperation,W as selectScriptEntries,U as selectScriptListPageState,B as selectScriptOutput,z as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,H as selectScriptReadJournal,E as selectScriptRetainedOutput,x as selectScriptRuntime,L as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,D as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,P as selectWorkspaceScriptRuntime,A as selectWorkspaceScriptsInitialized};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{_ as Z}from"./7rNOGHzs.js";import{c as u,aN as o,aS as I,at as ee,x as te,y as ne,z as se,b1 as x,ap as re,aq as ie,al as D,$ as S,ar as R,a8 as ae,a7 as oe,af as ce,b7 as le,bv as ue,aI as de,bC as fe}from"./D57k4GEE.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,h=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,h,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./B_u6ph9g.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,m=new Map,A=new Map,ge=u(()=>{m.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=m.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=m.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(h){o.error(h)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),me=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=me(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),L=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),m.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,m),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",m.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,m)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&F(e,r,t)){const c=he(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=L(t.v),i=L(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),$=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=$(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>$(e,e.children()),"sortNodesByHierarchy"),F=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),he=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!F(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??j;return u(async function(a,g,h,C){const w=g.select("g");(h?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),z();const d={element:w,helpers:h,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function z(){te(),ne(),se(),ge()}u(z,"clearLayoutRenderState");async function j(e,{element:n},t){return await M(n,e,t)}u(j,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await J(s,c,n,t);const i=W(e.nodes);for(const c of e.edges)q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function J(e,n,t,r){n.clusterNode?x(n):V(n,t,r)?await re(e.clusters,n):x(n)}u(J,"paintLayoutNode");function V(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(V,"shouldPaintAsCluster");function W(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(W,"buildNodeLookup");function q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,K(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),Q(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function K(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(K,"shouldSkipIntersect");function Q(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(Q,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,j as e,p as f,_ as i,ye as s};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/3XXjzHG3.js","/app/immutable/chunks/ENpFvA2b.js","/app/immutable/chunks/7rNOGHzs.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DR0NE2_C.js","/app/immutable/chunks/KQTrHxko.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/CRwmdgt6.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/CQ4a5a4v.js","/app/immutable/chunks/DCaHy20k.js","/app/immutable/chunks/CFejQM6t.js","/app/immutable/chunks/CiENRH6A.js","/app/immutable/chunks/DmsDslNo.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Bgegixo2.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CzrrO9Ap.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C_n9DeKj.js","/app/immutable/chunks/DzMmhJrp.js","/app/immutable/chunks/BJKiZYvw.js","/app/immutable/chunks/BkBdyRjM.js","/app/immutable/chunks/D4jXWSLn.js","/app/immutable/chunks/B72MiU4f.js","/app/immutable/chunks/CB-g50lR.js","/app/immutable/chunks/CPQdU3ZA.js","/app/immutable/chunks/DNen9YXB.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D-cnPaTJ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/yAjP_kdp.js","/app/immutable/chunks/BZC0V7Vm.js","/app/immutable/chunks/DsNWmyox.js","/app/immutable/chunks/DZX-XWnb.js","/app/immutable/chunks/DbAK3Zju.js","/app/immutable/chunks/DSjRkndX.js","/app/immutable/chunks/Ck-Ax5yG.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CKEqC8_B.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DFHyIdsA.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BaQ9zUUl.js","/app/immutable/chunks/lfJ8pseq.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/eHLf0w_s.js","/app/immutable/chunks/CR_mHSu4.js","/app/immutable/chunks/Dmhbab3K.js","/app/immutable/chunks/PtwmLAp4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CF7FcFf9.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/BIiORJal.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BGspgxWf.js","/app/immutable/chunks/DlodKoXT.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/v3BNQvm3.js","/app/immutable/chunks/C5G0q6V9.js","/app/immutable/chunks/9Pt4_UCK.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Z}from"./7rNOGHzs.js";import{c as u,aN as o,aS as I,at as ee,x as te,y as ne,z as se,b1 as x,ap as re,aq as ie,al as D,$ as S,ar as R,a8 as ae,a7 as oe,af as ce,b7 as le,bv as ue,aI as de,bC as fe}from"./ENpFvA2b.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,h=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,h,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./3XXjzHG3.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,m=new Map,A=new Map,ge=u(()=>{m.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=m.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=m.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(h){o.error(h)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),me=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=me(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),L=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),m.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,m),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",m.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,m)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&F(e,r,t)){const c=he(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=L(t.v),i=L(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),$=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=$(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>$(e,e.children()),"sortNodesByHierarchy"),F=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),he=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!F(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??j;return u(async function(a,g,h,C){const w=g.select("g");(h?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),z();const d={element:w,helpers:h,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function z(){te(),ne(),se(),ge()}u(z,"clearLayoutRenderState");async function j(e,{element:n},t){return await M(n,e,t)}u(j,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await J(s,c,n,t);const i=W(e.nodes);for(const c of e.edges)q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function J(e,n,t,r){n.clusterNode?x(n):V(n,t,r)?await re(e.clusters,n):x(n)}u(J,"paintLayoutNode");function V(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(V,"shouldPaintAsCluster");function W(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(W,"buildNodeLookup");function q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,K(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),Q(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function K(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(K,"shouldSkipIntersect");function Q(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(Q,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,j as e,p as f,_ as i,ye as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bf as pi,a5 as mi,a9 as $t,bi as yi,a6 as bi,bg as wi,c as a,aN as Ut,bd as Ai,I as Ci,w as Si,a7 as Dt,bb as Ri,v as Gt,W as _i,ah as ki,H as Ti,aK as Xt}from"./
|
|
1
|
+
import{bf as pi,a5 as mi,a9 as $t,bi as yi,a6 as bi,bg as wi,c as a,aN as Ut,bd as Ai,I as Ci,w as Si,a7 as Dt,bb as Ri,v as Gt,W as _i,ah as ki,H as Ti,aK as Xt}from"./ENpFvA2b.js";import{i as Di}from"./Gi6I4Gst.js";import{o as Pi}from"./CmKTTxBW.js";import{l as Nt}from"./C5AqVWW_.js";function vi(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function St(){var e=Pi().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,l,p=!1,d=0,u=0,b=.5;delete e.unknown;function A(){var m=t().length,E=n<s,v=E?n:s,L=E?s:n;o=(L-v)/Math.max(1,m-d+u*2),p&&(o=Math.floor(o)),v+=(L-v-o*(m-d))*b,l=o*(1-d),p&&(v=Math.round(v),l=Math.round(l));var M=vi(m).map(function(w){return v+o*w});return i(E?M.reverse():M)}return e.domain=function(m){return arguments.length?(t(m),A()):t()},e.range=function(m){return arguments.length?([s,n]=m,s=+s,n=+n,A()):[s,n]},e.rangeRound=function(m){return[s,n]=m,s=+s,n=+n,p=!0,A()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(m){return arguments.length?(p=!!m,A()):p},e.padding=function(m){return arguments.length?(d=Math.min(1,u=+m),A()):d},e.paddingInner=function(m){return arguments.length?(d=Math.min(1,m),A()):d},e.paddingOuter=function(m){return arguments.length?(u=+m,A()):u},e.align=function(m){return arguments.length?(b=Math.max(0,Math.min(1,m)),A()):b},e.copy=function(){return St(t(),[s,n]).round(p).paddingInner(d).paddingOuter(u).align(b)},Di.apply(A(),arguments)}var Rt=(function(){var e=a(function(F,r,g,x){for(g=g||{},x=F.length;x--;g[F[x]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],l=[1,7],p=[1,5,10,12,14,16,18,19,21,23,36,37,38],d=[1,25],u=[1,26],b=[1,28],A=[1,29],m=[1,30],E=[1,31],v=[1,32],L=[1,33],M=[1,34],w=[1,35],D=[1,36],c=[1,37],B=[1,43],W=[1,42],X=[1,47],N=[1,50],k=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],S=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],R=[1,65],O=[26,28],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:a(function(r,g,x,f,_,h,lt){var y=h.length-1;switch(_){case 5:f.setOrientation(h[y]);break;case 9:f.setDiagramTitle(h[y].text.trim());break;case 12:f.setLineData({text:"",type:"text"},h[y]);break;case 13:f.setLineData(h[y-1],h[y]);break;case 14:f.setBarData({text:"",type:"text"},h[y]);break;case 15:f.setBarData(h[y-1],h[y]);break;case 16:this.$=h[y].trim(),f.setAccTitle(this.$);break;case 17:case 18:this.$=h[y].trim(),f.setAccDescription(this.$);break;case 19:this.$=h[y-1];break;case 20:case 30:this.$=[h[y-2],...h[y]];break;case 21:case 31:this.$=[h[y]];break;case 22:this.$={value:Number(h[y-1]),label:h[y]};break;case 23:this.$={value:Number(h[y]),label:""};break;case 24:f.setXAxisTitle(h[y]);break;case 25:f.setXAxisTitle(h[y-1]);break;case 26:f.setXAxisTitle({type:"text",text:""});break;case 27:f.setXAxisBand(h[y]);break;case 28:f.setXAxisRangeData(Number(h[y-2]),Number(h[y]));break;case 29:this.$=h[y-1];break;case 32:f.setYAxisTitle(h[y]);break;case 33:f.setYAxisTitle(h[y-1]);break;case 34:f.setYAxisTitle({type:"text",text:""});break;case 35:f.setYAxisRangeData(Number(h[y-2]),Number(h[y]));break;case 39:this.$={text:h[y],type:"text"};break;case 40:this.$={text:h[y],type:"text"};break;case 41:this.$={text:h[y],type:"markdown"};break;case 42:this.$=h[y];break;case 43:this.$=h[y-1]+""+h[y];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:n,37:o,38:l}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:n,37:o,38:l}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:n,37:o,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,36]),e(p,[2,37]),e(p,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:n,37:o,38:l}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,36:n,37:o,38:l}),{11:23,30:d,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},{11:39,13:38,24:B,29:W,30:d,31:40,32:41,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},{11:45,15:44,29:X,30:d,35:46,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},{11:49,17:48,24:N,30:d,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},{11:52,17:51,24:N,30:d,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},{20:[1,53]},{22:[1,54]},e(k,[2,18]),{1:[2,2]},e(k,[2,8]),e(k,[2,9]),e(H,[2,39],{41:55,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c}),e(H,[2,40]),e(H,[2,41]),e(S,[2,42]),e(S,[2,44]),e(S,[2,45]),e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(S,[2,52]),e(S,[2,53]),e(k,[2,10]),e(k,[2,24],{32:41,31:56,24:B,29:W}),e(k,[2,26]),e(k,[2,27]),{33:[1,57]},{11:59,30:d,34:58,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},e(k,[2,11]),e(k,[2,32],{35:60,29:X}),e(k,[2,34]),{33:[1,61]},e(k,[2,12]),{17:62,24:N},{25:63,27:64,29:R},e(k,[2,14]),{17:66,24:N},e(k,[2,16]),e(k,[2,17]),e(S,[2,43]),e(k,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(k,[2,33]),{29:[1,70]},e(k,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(O,[2,23],{30:[1,73]}),e(k,[2,15]),e(k,[2,28]),e(k,[2,29]),{11:59,30:d,34:74,39:24,40:u,41:27,42:b,43:A,44:m,45:E,46:v,47:L,48:M,49:w,50:D,51:c},e(k,[2,35]),e(k,[2,19]),{25:75,27:64,29:R},e(O,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:a(function(r,g){if(g.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=g,x}},"parseError"),parse:a(function(r){var g=this,x=[0],f=[],_=[null],h=[],lt=this.table,y="",dt=0,Ot=0,ui=2,Vt=1,di=h.slice.call(arguments,1),P=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);P.setInput(r,$.yy),$.yy.lexer=P,$.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var wt=P.yylloc;h.push(wt);var xi=P.options&&P.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(z){x.length=x.length-2*z,_.length=_.length-z,h.length=h.length-z}a(fi,"popStack");function Wt(){var z;return z=f.pop()||P.lex()||Vt,typeof z!="number"&&(z instanceof Array&&(f=z,z=f.pop()),z=g.symbols_[z]||z),z}a(Wt,"lex");for(var I,U,V,At,j={},xt,Y,Ft,ft;;){if(U=x[x.length-1],this.defaultActions[U]?V=this.defaultActions[U]:((I===null||typeof I>"u")&&(I=Wt()),V=lt[U]&<[U][I]),typeof V>"u"||!V.length||!V[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");P.showPosition?Ct="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+P.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(I==Vt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ct,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:wt,expected:ft})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+I);switch(V[0]){case 1:x.push(I),_.push(P.yytext),h.push(P.yylloc),x.push(V[1]),I=null,Ot=P.yyleng,y=P.yytext,dt=P.yylineno,wt=P.yylloc;break;case 2:if(Y=this.productions_[V[1]][1],j.$=_[_.length-Y],j._$={first_line:h[h.length-(Y||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(Y||1)].first_column,last_column:h[h.length-1].last_column},xi&&(j._$.range=[h[h.length-(Y||1)].range[0],h[h.length-1].range[1]]),At=this.performAction.apply(j,[y,Ot,dt,$.yy,V[1],_,h].concat(di)),typeof At<"u")return At;Y&&(x=x.slice(0,-1*Y*2),_=_.slice(0,-1*Y),h=h.slice(0,-1*Y)),x.push(this.productions_[V[1]][0]),_.push(j.$),h.push(j._$),Ft=lt[x[x.length-2]][x[x.length-1]],x.push(Ft);break;case 3:return!0}}return!0},"parse")},rt=(function(){var F={EOF:1,parseError:a(function(g,x){if(this.yy.parser)this.yy.parser.parseError(g,x);else throw new Error(g)},"parseError"),setInput:a(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:a(function(r){var g=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===f.length?this.yylloc.first_column:0)+f[f.length-x.length].length-x[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(r){this.unput(this.match.slice(r))},"less"),pastInput:a(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./D4z4ooVN.js";import{s as Ci}from"./BVaDxTbw.js";import{a5 as Zs,bf as jt,a6 as Qs,bg as Gt,a9 as bi,bi as vi,c as h,ba as je,aN as _i,a8 as en,ac as xi,b5 as Mi,bC as wi,bb as Ui,w as Pi,W as Di,aB as Fi,a7 as Bi,an as $i,aY as ji,aP as Gi,bc as Wi}from"./ENpFvA2b.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./7rNOGHzs.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./B8o4lNgr.js";import{s as At}from"./CQ4a5a4v.js";import"./DmsDslNo.js";import"./DbAK3Zju.js";import"./CB-g50lR.js";import{D as ht}from"./
|
|
1
|
+
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./7rNOGHzs.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./B8o4lNgr.js";import{s as At}from"./CQ4a5a4v.js";import"./DmsDslNo.js";import"./DbAK3Zju.js";import"./CB-g50lR.js";import{D as ht}from"./BZC0V7Vm.js";import{t as l}from"./DzMmhJrp.js";import"./Bgegixo2.js";import"./CKEqC8_B.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});pt(e,!0);let p=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),q=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),E=n(e,"mode",7,"delete"),d=n(e,"activeAgentCount",7,0),m=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),I=n(e,"onConfirm",7),K=n(e,"onCancel",7);const Y=b(()=>d()>0||m()>0||c()>0||_()>0);function Z(){p(!1),K()?.()}async function $(){await I()?.(),p(!1)}var tt={get open(){return p()},set open(t=!1){p(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return q()},set body(t){q(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return E()},set mode(t="delete"){E(t),o()},get activeAgentCount(){return d()},set activeAgentCount(t=0){d(t),o()},get activeHookCount(){return m()},set activeHookCount(t=0){m(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return I()},set onConfirm(t){I(t),o()},get onCancel(){return K()},set onCancel(t){K(t),o()},$set:Ct,$on:(t,L)=>bt(e,t,L)};{const t=O=>{var j=Bt(),M=z(j);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};g(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_agentsStopped_one({count:l(d())}):a.modals_deleteWarning_agentsStopped_many({count:l(d())})]),u(r,i)};g(B,r=>{d()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(m())}):a.modals_deleteWarning_hooksCancelled_many({count:l(m())})]),u(r,i)};g(Q,r=>{m()>0&&r(ct)})}var U=A(Q,2);{var dt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};g(U,r=>{c()>0&&r(dt)})}var mt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};g(v,R=>{E()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};g(mt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};g(N,f=>{C(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>q()??xt),G(j),u(O,j)};let L=b(()=>!x()),et=b(()=>x()&&y()==="confirm"),nt=b(()=>!x()||y()==="cancel"),ot=b(()=>y()==="cancel"?"ignore":"submit"),rt=b(()=>y()==="cancel"?"ignore":"submit"),at=b(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return C(L)},get canSubmit(){return x()},get focusSubmit(){return C(et)},get focusCancel(){return C(nt)},get enterKey(){return C(ot)},get modEnter(){return C(rt)},get destructive(){return C(at)},onConfirm:$,onCancel:Z,get open(){return p()},set open(O){p(O)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./
|
|
1
|
+
import{g as ae}from"./D4z4ooVN.js";import{s as ce}from"./BVaDxTbw.js";import{c as l,aN as C,ac as le,b5 as he,a7 as de,W as G,a8 as B,bb as F,aj as ge,aC as ue,aJ as pe,Q as fe}from"./ENpFvA2b.js";var Y=(function(){var n=l(function(x,s,i,o){for(i=i||{},o=x.length;o--;i[x[o]]=s);return i},"o"),e=[1,4],a=[1,13],d=[1,12],t=[1,15],h=[1,16],u=[1,20],m=[1,19],E=[6,7,8],_=[1,26],D=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],J=[1,33],Q=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,o,c,f,r,$){var p=r.length-1;switch(f){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[p].id),c.addNode(r[p-1].length,r[p].id,r[p].descr,r[p].type);break;case 16:c.getLogger().trace("Icon: ",r[p]),c.decorateNode({icon:r[p]});break;case 17:case 21:c.decorateNode({class:r[p]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[p].id),c.addNode(0,r[p].id,r[p].descr,r[p].type);break;case 20:c.decorateNode({icon:r[p]});break;case 25:c.getLogger().trace("node found ..",r[p-2]),this.$={id:r[p-1],descr:r[p-1],type:c.getType(r[p-2],r[p])};break;case 26:this.$={id:r[p],descr:r[p],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[p-3]),this.$={id:r[p-3],descr:r[p-1],type:c.getType(r[p-2],r[p])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(E,[2,3]),{1:[2,2]},n(E,[2,4]),n(E,[2,5]),{1:[2,6],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:a,9:22,12:11,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},{6:_,7:D,10:23,11:w},n(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:m}),n(g,[2,18]),n(g,[2,19]),n(g,[2,20]),n(g,[2,21]),n(g,[2,23]),n(g,[2,24]),n(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:D,10:32,11:w},{1:[2,7],6:a,12:21,13:d,14:14,15:t,16:h,17:17,18:18,19:u,22:m},n(R,[2,14],{7:J,11:Q}),n(A,[2,8]),n(A,[2,9]),n(A,[2,10]),n(g,[2,15]),n(g,[2,16]),n(g,[2,17]),{20:[1,35]},{21:[1,36]},n(R,[2,13],{7:J,11:Q}),n(A,[2,11]),n(A,[2,12]),{21:[1,37]},n(g,[2,25]),n(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:l(function(s){var i=this,o=[0],c=[],f=[null],r=[],$=this.table,p="",M=0,q=0,ie=2,K=1,se=r.slice.call(arguments,1),y=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);y.setInput(s,v.yy),v.yy.lexer=y,v.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var W=y.yylloc;r.push(W);var re=y.options&&y.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(b){o.length=o.length-2*b,f.length=f.length-b,r.length=r.length-b}l(oe,"popStack");function Z(){var b;return b=c.pop()||y.lex()||K,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=i.symbols_[b]||b),b}l(Z,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Z()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");y.showPosition?X="Parse error on line "+(M+1)+`:
|
|
2
2
|
`+y.showPosition()+`
|
|
3
3
|
Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==K?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:o.push(k),f.push(y.yytext),r.push(y.yylloc),o.push(S[1]),k=null,q=y.yyleng,p=y.yytext,M=y.yylineno,W=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=f[f.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[p,q,M,v.yy,S[1],f,r].concat(se)),typeof z<"u")return z;N&&(o=o.slice(0,-1*N*2),f=f.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),f.push(O.$),r.push(O._$),ee=$[o[o.length-2]][o[o.length-1]],o.push(ee);break;case 3:return!0}}return!0},"parse")},ne=(function(){var x={EOF:1,parseError:l(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Jt}from"./
|
|
1
|
+
import{g as Jt}from"./CGnNcckt.js";import{g as Zt}from"./D4z4ooVN.js";import{s as $t}from"./BVaDxTbw.js";import{c as C,bh as e1,aN as Z,a8 as Ae,ac as t1,b5 as s1,bC as at,bg as i1,bf as r1,bi as a1,a6 as n1,a5 as u1,a9 as o1,G as l1,aM as c1,J as h1,aF as st,aH as d1,aa as it,bc as rt,w as p1,ad as f1,V as g1,aB as b1,ba as k1,an as A1,E as m1,b9 as C1,u as S1}from"./ENpFvA2b.js";import{c as D1}from"./lH4z0y-c.js";import{aP as T1}from"./DR0NE2_C.js";var E1="flowchart-",y1=["laneRole","laneIndex","drawnExtent"];function Wt(s){if(!s||typeof s!="object")return s;const i={...s};for(const a of y1)Reflect.deleteProperty(i,a);return i}C(Wt,"withoutInternalKeys");var Pe,x1=(Pe=class{constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.droppedSubGraphMembers=[],this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=i1,this.setAccDescription=r1,this.setDiagramTitle=a1,this.getAccTitle=n1,this.getAccDescription=u1,this.getDiagramTitle=o1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return l1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,r,l,g,o={},m){if(!i||i.trim().length===0)return;let d;if(m!==void 0){let f;m.includes(`
|
|
2
2
|
`)?f=m+`
|
|
3
3
|
`:f=`{
|
|
4
4
|
`+m+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./
|
|
1
|
+
import{g as l,r as m,d as a}from"./eVx-WSd7.js";import{p}from"./DI608D-i.js";import{c as t,aN as o}from"./ENpFvA2b.js";import{M as u,b as c}from"./ClebXGIM.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as n}from"./
|
|
1
|
+
import{g as p,r as u,d as n}from"./eVx-WSd7.js";import{p as f}from"./DI608D-i.js";import{c as a,aN as o}from"./ENpFvA2b.js";import{M as c,c as d}from"./ClebXGIM.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},w={parser:R,db:n,renderer:u,styles:p};export{w as diagram};
|