@intent-hq/web 2.385.0 → 2.385.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{ByZMA8RF.js → -9EwpXCb.js} +1 -1
  3. package/web/app/immutable/chunks/{D8XzixBC.js → 0Ipp5cFr.js} +1 -1
  4. package/web/app/immutable/chunks/{OrN9D77d.js → 3xVgojWv.js} +3 -3
  5. package/web/app/immutable/chunks/{BBYtaKSX.js → 44rP4fzJ.js} +1 -1
  6. package/web/app/immutable/chunks/{hNQ1u1TD.js → B3SHGkI_.js} +1 -1
  7. package/web/app/immutable/chunks/{v3_7O0A0.js → B72XM8Fm.js} +1 -1
  8. package/web/app/immutable/chunks/{CDBHtmaA.js → BGReMCaT.js} +1 -1
  9. package/web/app/immutable/chunks/{CWTUGfLW.js → BNV0s95-.js} +1 -1
  10. package/web/app/immutable/chunks/{BxU4EAMe.js → BQ53265L.js} +1 -1
  11. package/web/app/immutable/chunks/{BV47Ledo.js → BQvwLP7I.js} +1 -1
  12. package/web/app/immutable/chunks/{CLlFdy2p.js → BTEoQf52.js} +1 -1
  13. package/web/app/immutable/chunks/{i0UHQwRY.js → BTLG1BY-.js} +1 -1
  14. package/web/app/immutable/chunks/{CJNNcGWg.js → BV4VuEnO.js} +1 -1
  15. package/web/app/immutable/chunks/{ClNMpui4.js → BVqF0sgN.js} +1 -1
  16. package/web/app/immutable/chunks/{vdylZNCS.js → BWzMAxc1.js} +1 -1
  17. package/web/app/immutable/chunks/{Cnl_O3ZO.js → BYl8t9od.js} +1 -1
  18. package/web/app/immutable/chunks/{CIWky03S.js → BZVhwNIm.js} +3 -3
  19. package/web/app/immutable/chunks/{COflq_3N.js → Bs7M8kXA.js} +3 -3
  20. package/web/app/immutable/chunks/{C2Hs8n0u.js → BvgjsneA.js} +1 -1
  21. package/web/app/immutable/chunks/{BpYEdDT4.js → By4iSN8L.js} +1 -1
  22. package/web/app/immutable/chunks/{DR6M_MBd.js → BzSCTZkL.js} +1 -1
  23. package/web/app/immutable/chunks/{BHEogMS0.js → C-L0-C2F.js} +1 -1
  24. package/web/app/immutable/chunks/{BSWVBeG0.js → C2WwQCOk.js} +1 -1
  25. package/web/app/immutable/chunks/{BT8hDSo1.js → C37ZqG4e.js} +1 -1
  26. package/web/app/immutable/chunks/{BuPmvT2w.js → C429ZMSU.js} +1 -1
  27. package/web/app/immutable/chunks/{Bt_vaAcw.js → C5b7nimj.js} +1 -1
  28. package/web/app/immutable/chunks/{Bhb3isek.js → C6TTEdST.js} +4 -4
  29. package/web/app/immutable/chunks/{BvbZcfOT.js → C78AfvXn.js} +1 -1
  30. package/web/app/immutable/chunks/{BsdyWfPQ.js → C8qAflad.js} +2 -2
  31. package/web/app/immutable/chunks/{B22zVGFP.js → C8zl7aIj.js} +1 -1
  32. package/web/app/immutable/chunks/{DxPvfI2H.js → CC-IHSah.js} +4 -4
  33. package/web/app/immutable/chunks/{Clez3uTU.js → CE70-gZI.js} +3 -3
  34. package/web/app/immutable/chunks/{B9ka1bX8.js → CGPajdHq.js} +2 -2
  35. package/web/app/immutable/chunks/{BCLFORRd.js → CN-EAu8o.js} +1 -1
  36. package/web/app/immutable/chunks/{40W1U6K5.js → CNE5cVvC.js} +1 -1
  37. package/web/app/immutable/chunks/{CT9qg5pc.js → CNWb-jYE.js} +1 -1
  38. package/web/app/immutable/chunks/{tuKjkgzS.js → CNnF3Cms.js} +1 -1
  39. package/web/app/immutable/chunks/{sOF-qTei.js → CPO5_F83.js} +1 -1
  40. package/web/app/immutable/chunks/{Gt7Fxn5w.js → CRSY1kuo.js} +1 -1
  41. package/web/app/immutable/chunks/{DErxk4N4.js → CUsqN2sK.js} +1 -1
  42. package/web/app/immutable/chunks/{CrEMns9K.js → CX4-Z2NI.js} +1 -1
  43. package/web/app/immutable/chunks/{BvzO6hxM.js → CXpEvkVR.js} +1 -1
  44. package/web/app/immutable/chunks/{DgJnzjEh.js → CdSTecgc.js} +1 -1
  45. package/web/app/immutable/chunks/{BhD_8q1J.js → CfYZevDu.js} +1 -1
  46. package/web/app/immutable/chunks/{2zSj5_GV.js → Che-KvdU.js} +1 -1
  47. package/web/app/immutable/chunks/{_2VCBG9z.js → Cj1KG0_l.js} +1 -1
  48. package/web/app/immutable/chunks/{Dx3P5K2z.js → Cl_O0hHI.js} +1 -1
  49. package/web/app/immutable/chunks/{DGVdJiQ7.js → CmyBYYR3.js} +1 -1
  50. package/web/app/immutable/chunks/{BYLCAn5f.js → CpFDUMBH.js} +1 -1
  51. package/web/app/immutable/chunks/{BwC--T1G.js → CqUPwDgo.js} +1 -1
  52. package/web/app/immutable/chunks/{Bwx5QwNp.js → CqVGtsXz.js} +1 -1
  53. package/web/app/immutable/chunks/{B5pL-E-o.js → Cq_jjcoF.js} +1 -1
  54. package/web/app/immutable/chunks/{BGspyNwk.js → CrbAS4DB.js} +1 -1
  55. package/web/app/immutable/chunks/{CVs9CHtI.js → CrvVM5aL.js} +1 -1
  56. package/web/app/immutable/chunks/{3VhO4Wn2.js → CuWLpCl5.js} +1 -1
  57. package/web/app/immutable/chunks/{CqrCSb8W.js → CuljOS_X.js} +1 -1
  58. package/web/app/immutable/chunks/{DyZa5hX5.js → Cv0wEzuo.js} +1 -1
  59. package/web/app/immutable/chunks/{DoOue2dc.js → Cw-qJqDx.js} +2 -2
  60. package/web/app/immutable/chunks/{CPaH4fRt.js → Cx0QXTIW.js} +1 -1
  61. package/web/app/immutable/chunks/{rEslErv9.js → CxndkliV.js} +1 -1
  62. package/web/app/immutable/chunks/{Bd1Doib5.js → Cy3lhXYa.js} +6 -6
  63. package/web/app/immutable/chunks/{Cr5QjekU.js → CzDPvHAo.js} +1 -1
  64. package/web/app/immutable/chunks/{hYcAQyax.js → D-KE4WZ3.js} +1 -1
  65. package/web/app/immutable/chunks/{CbxBZqC_.js → D1zX4MuR.js} +1 -1
  66. package/web/app/immutable/chunks/{DEDo4DeD.js → D2hNxvgD.js} +1 -1
  67. package/web/app/immutable/chunks/{C4Py2-C-.js → D2kwjrZB.js} +1 -1
  68. package/web/app/immutable/chunks/{L7Esr5Id.js → D5Pfy-wQ.js} +1 -1
  69. package/web/app/immutable/chunks/{C412Y6ti.js → D7xjMCds.js} +2 -2
  70. package/web/app/immutable/chunks/{B6QnBRPC.js → DBH_GMOZ.js} +1 -1
  71. package/web/app/immutable/chunks/{D20kqX2U.js → DFGMgfIk.js} +2 -2
  72. package/web/app/immutable/chunks/{K8u-JjT9.js → DG0pBglL.js} +1 -1
  73. package/web/app/immutable/chunks/{CLo9TzNK.js → DMe_MB5T.js} +1 -1
  74. package/web/app/immutable/chunks/{BupDQr_B.js → DN-DN78v.js} +1 -1
  75. package/web/app/immutable/chunks/{BVctKbNy.js → DNDlsdj4.js} +1 -1
  76. package/web/app/immutable/chunks/{IIW6JGdD.js → DOkArUrJ.js} +1 -1
  77. package/web/app/immutable/chunks/{Csh6XB2J.js → DRqy_Wmb.js} +1 -1
  78. package/web/app/immutable/chunks/{BoIbJp9v.js → DRsDUO-4.js} +1 -1
  79. package/web/app/immutable/chunks/{d8NijX_Z.js → DT5eV1e8.js} +2 -2
  80. package/web/app/immutable/chunks/{DPY-p9P3.js → DTMxJ5IC.js} +1 -1
  81. package/web/app/immutable/chunks/{CdbRvoG6.js → DTwG0V2f.js} +1 -1
  82. package/web/app/immutable/chunks/{DqAYkzSz.js → DVUFgbJK.js} +1 -1
  83. package/web/app/immutable/chunks/{DlWS0XX3.js → DVwMeV9X.js} +1 -1
  84. package/web/app/immutable/chunks/{DUAtqTLU.js → DW25Ls6A.js} +1 -1
  85. package/web/app/immutable/chunks/{ZRNKCUqe.js → DXRkYB1Y.js} +7 -7
  86. package/web/app/immutable/chunks/{Dmn1abz2.js → DYEwyuIx.js} +1 -1
  87. package/web/app/immutable/chunks/{CsyhqW-P.js → DZmGZ5am.js} +1 -1
  88. package/web/app/immutable/chunks/{B-E_4dSm.js → De0kCZ4v.js} +2 -2
  89. package/web/app/immutable/chunks/{0RCk28l5.js → Dg0Tdf_A.js} +1 -1
  90. package/web/app/immutable/chunks/{Cbb4o3qj.js → DgKpR9KC.js} +1 -1
  91. package/web/app/immutable/chunks/{e9nNeD_8.js → DhXcDqZX.js} +1 -1
  92. package/web/app/immutable/chunks/{BeU-lAdJ.js → DiMo2JnB.js} +1 -1
  93. package/web/app/immutable/chunks/{BlDwsvYd.js → DjIQY_o5.js} +1 -1
  94. package/web/app/immutable/chunks/{4poQ2xKW.js → Dm-WfTCg.js} +1 -1
  95. package/web/app/immutable/chunks/{DnLmeVJZ.js → DmCKwthV.js} +1 -1
  96. package/web/app/immutable/chunks/{DtyEiVnc.js → Dqd75Edx.js} +1 -1
  97. package/web/app/immutable/chunks/{CA8JHp72.js → DtFzaymP.js} +1 -1
  98. package/web/app/immutable/chunks/{Z9NyJp9w.js → DxAjMnFs.js} +3 -3
  99. package/web/app/immutable/chunks/{GIVowYni.js → DxRojUvw.js} +1 -1
  100. package/web/app/immutable/chunks/{BU1Gcrkq.js → DyXAZ9tr.js} +1 -1
  101. package/web/app/immutable/chunks/{CVU_1O7c.js → DzG7lmwB.js} +1 -1
  102. package/web/app/immutable/chunks/{BmF8Qq3w.js → GP4LXuR4.js} +1 -1
  103. package/web/app/immutable/chunks/{BNX4ri6c.js → KzySRhDw.js} +1 -1
  104. package/web/app/immutable/chunks/{BeJRU38G.js → L-Sh3Ble.js} +3 -3
  105. package/web/app/immutable/chunks/{D2mnZ9kC.js → LI9J8Eor.js} +2 -2
  106. package/web/app/immutable/chunks/{B2XeuV1l.js → L_sfch_N.js} +1 -1
  107. package/web/app/immutable/chunks/{C3gIkQxX.js → LgyvMkc8.js} +1 -1
  108. package/web/app/immutable/chunks/{Bi-y50ry.js → M1XBe23f.js} +1 -1
  109. package/web/app/immutable/chunks/{vyUklWDK.js → Q2C1NT93.js} +1 -1
  110. package/web/app/immutable/chunks/{DDrpCbke.js → THqyVjkf.js} +1 -1
  111. package/web/app/immutable/chunks/{CE9_m5Rd.js → V6efYFFY.js} +1 -1
  112. package/web/app/immutable/chunks/{C4UnZ5aI.js → VvLcPf2a.js} +1 -1
  113. package/web/app/immutable/chunks/{DrTTxENT.js → XEsFBJqZ.js} +1 -1
  114. package/web/app/immutable/chunks/{Cr2Op5yp.js → ZR3wQ419.js} +2 -2
  115. package/web/app/immutable/chunks/{BO4b6Ny-.js → _i0M7_-r.js} +2 -2
  116. package/web/app/immutable/chunks/{D5Tu5Sg8.js → e2ymG0j7.js} +1 -1
  117. package/web/app/immutable/chunks/{BORk03Sd.js → e3_wv2e_.js} +1 -1
  118. package/web/app/immutable/chunks/{C3-81PRC.js → fVXs4sxg.js} +4 -4
  119. package/web/app/immutable/chunks/{DMeCi1eF.js → gZJn6Sk0.js} +1 -1
  120. package/web/app/immutable/chunks/{DmhHa5tp.js → iPHmrqbo.js} +1 -1
  121. package/web/app/immutable/chunks/{0oyPeRI9.js → jH2J-9un.js} +1 -1
  122. package/web/app/immutable/chunks/{BP1fPIN6.js → l1lBFBJz.js} +1 -1
  123. package/web/app/immutable/chunks/{DHf7N1bI.js → n5-dpvss.js} +1 -1
  124. package/web/app/immutable/chunks/{CEfkJpk7.js → pHBnQb5R.js} +1 -1
  125. package/web/app/immutable/chunks/{DTDtxEAk.js → qO0mYaJv.js} +1 -1
  126. package/web/app/immutable/chunks/{CAtVH-rJ.js → rcXEnwTB.js} +1 -1
  127. package/web/app/immutable/chunks/{D0R3sca1.js → waHi6l7h.js} +1 -1
  128. package/web/app/immutable/chunks/{BcEkxi5l.js → xGzY0FqC.js} +1 -1
  129. package/web/app/immutable/entry/{app.DEnhhDc1.js → app.BXfGjD4L.js} +2 -2
  130. package/web/app/immutable/entry/start.DRVSg-kr.js +1 -0
  131. package/web/app/immutable/nodes/{0.DLkagS9u.js → 0.CoxSTVXk.js} +1 -1
  132. package/web/app/immutable/nodes/{1.ChB9puqR.js → 1.BbjU9IH_.js} +1 -1
  133. package/web/app/immutable/nodes/{10.B3YEuSxS.js → 10.D6wyP02T.js} +1 -1
  134. package/web/app/immutable/nodes/{11.rgOqEz2U.js → 11.ukc3KQLY.js} +1 -1
  135. package/web/app/immutable/nodes/{15.CgSxPoXZ.js → 15.CUWA_Nvq.js} +1 -1
  136. package/web/app/immutable/nodes/{19.DS0Anfm0.js → 19.D9cBSCEY.js} +2 -2
  137. package/web/app/immutable/nodes/{2.BB55cMHs.js → 2.pGtn3nxM.js} +1 -1
  138. package/web/app/immutable/nodes/{3.B1suR6zI.js → 3.Bm-Ewkeu.js} +1 -1
  139. package/web/app/immutable/nodes/{4.BdkLcCps.js → 4.bypHtb3m.js} +1 -1
  140. package/web/app/immutable/nodes/{5.DlFTrLdG.js → 5.YWphdJEW.js} +1 -1
  141. package/web/app/immutable/nodes/{6.EdJoOCRv.js → 6.DQRfO1Qb.js} +1 -1
  142. package/web/app/immutable/nodes/{7.iPBOmxFo.js → 7.b1goQuXf.js} +1 -1
  143. package/web/app/immutable/nodes/{8.BRpg5Nn-.js → 8.BBgV9gU6.js} +1 -1
  144. package/web/app/immutable/nodes/{9.CeyWcdBf.js → 9.BJdtENce.js} +2 -2
  145. package/web/app/version.json +1 -1
  146. package/web/index.html +9 -9
  147. package/web/app/immutable/entry/start.Cmawmwgw.js +0 -1
@@ -1 +1 @@
1
- import{t as bt,bo as B,bw as wt,bq as Rt,b as It,bs as g}from"./Dws-34a7.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{Jx as l,eK as Ut,eL as At,t5 as xt,oo as Bt,op as Ft,K5 as Tt,Kk as Lt,Ka as _t,ot as T}from"./4g_iHoQm.js";import{t as Dt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dH as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,dd as Ht,m as Kt}from"./SbTG0nwQ.js";import{C as zt}from"./3VhO4Wn2.js";import{V as qt}from"./BSgFpkqa.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./CA8JHp72.js";import{i as L,n as V}from"./H2jLkRRS.js";import{af as jt}from"./OrN9D77d.js";function Xt(_,$){if(new.target)return bt({component:Xt,..._});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),z=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Wt(),u=Dt(()=>m()),ot=Gt(u);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(u),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(u),nt=Et(u),it=Mt(u),rt=Vt(u),dt=s(()=>K()||[]),lt=Ht(u),f=s(()=>z()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),pt=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const ut=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(pt).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="unstaged");W(d.map(p=>p.relativePath||p.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="staged");G(d.map(p=>p.relativePath||p.file))});vt(zt(_,{get isLoading(){return t(o)},get changes(){return t(ut)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
1
+ import{t as bt,bo as B,bw as wt,bq as Rt,b as It,bs as g}from"./Dws-34a7.js";import{bs as Pt,ca as I,aD as t,c9 as s,bn as kt,bH as E,bV as M,aA as F}from"./3SdAC2_C.js";import{b as vt}from"./Dn334wJv.js";import{Jx as l,eK as Ut,eL as At,t5 as xt,oo as Bt,op as Ft,K5 as Tt,Kk as Lt,Ka as _t,ot as T}from"./4g_iHoQm.js";import{t as Dt}from"./C-BsEdGZ.js";import{g as Wt}from"./DWGXN6Nr.js";import{dH as Gt,bO as Nt,bQ as Et,bN as Mt,bS as Vt,dd as Ht,m as Kt}from"./SbTG0nwQ.js";import{C as zt}from"./CuWLpCl5.js";import{V as qt}from"./BSgFpkqa.js";import{bT as Jt,bN as Ot,b8 as Qt}from"./DtFzaymP.js";import{i as L,n as V}from"./H2jLkRRS.js";import{af as jt}from"./3xVgojWv.js";function Xt(_,$){if(new.target)return bt({component:Xt,..._});Pt($,!0);const H=()=>g(at,"$gitRoots$",c),y=()=>g(ot,"$workspace",c),K=()=>g(nt,"$ftCommits$",c),z=()=>g(lt,"$rootGitRoots$",c),S=()=>g(st,"$ftChanges$",c),q=()=>g(tt,"$foldUnchanged",c),J=()=>g(Z,"$lineWrapping",c),O=()=>g(et,"$diffSideBySide",c),Q=()=>g(rt,"$ftLoading$",c),j=()=>g(it,"$ftBoundarySha$",c),[c,X]=Rt(),Y=o=>{qt(o,{embedded:!0,showExpand:!0,get expanded(){return t(w)},onToggleExpand:()=>{E(w,!t(w)),t(w)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return q()},onToggleFold:()=>l.dispatch(_t()),get wrapEnabled(){return J()},onToggleWrap:()=>l.dispatch(Lt()),get splitEnabled(){return O()},onToggleSplit:()=>l.dispatch(Tt())})},Z=Jt(),tt=Ot(),et=Qt();let P=B($,"tab",7),m=B($,"workspaceId",7),C=B($,"isActive",7);const D=Wt(),u=Dt(()=>m()),ot=Gt(u);I(()=>{const o=m();if(!(!C()||!o||t(n)))return l.dispatch(Ut(o,"all")),()=>l.dispatch(At(o,"all"))});const n=s(()=>P().data?.gitRootId||""),at=jt(u),b=s(()=>H().find(o=>o.id===t(n))),h=s(()=>y()?.worktreePath||y()?.repositoryPath||""),k=s(()=>t(b)?.path||t(h)),st=Nt(u),nt=Et(u),it=Mt(u),rt=Vt(u),dt=s(()=>K()||[]),lt=Ht(u),f=s(()=>z()[t(n)]??Kt),ct=s(()=>t(f).status),gt=s(()=>t(f).loading),mt=s(()=>t(f).commitFiles),pt=s(()=>{const o=t(b)?.registeredCommitSha,i=o?t(f).commits.findIndex(e=>e.hash===o):-1;return i>=0?t(f).commits.slice(0,i):t(f).commits});I(()=>{const o=m(),i=t(n);o&&i&&l.dispatch(xt(o,i,t(b)?.registeredCommitSha,100))});let w=M(!0),R=M(null);const ut=s(()=>{if(t(n))return[...(t(ct)?.files??[]).map(e=>({filePath:`${t(k)}/${e.path}`,action:"modify",additions:e.additions??0,deletions:e.deletions??0,toolName:"local",toolCallId:`root-${t(n)}-${e.staged}-${e.path}`,staged:e.staged,category:e.staged?"staged":"unstaged"})),...t(pt).flatMap(e=>(t(mt)[e.hash]??[]).map(a=>({filePath:`${t(k)}/${a.path}`,action:"modify",additions:a.additions??0,deletions:a.deletions??0,toolName:"local",toolCallId:`root-commit-${e.hash}-${a.path}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message})))];const o=S().filter(e=>e.stage==="unstaged"),i=S().filter(e=>e.stage==="staged");return[...o.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-unstaged-${r}`,staged:!1,category:"unstaged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...i.map(e=>{const a=e.file||e.relativePath,r=a&&L(a)?a:`${t(h)}/${a}`;return{filePath:r,action:"modify",additions:e.stats?.additions||0,deletions:e.stats?.deletions||0,toolName:"local",toolCallId:`local-staged-${r}`,staged:!0,category:"staged",oldContent:e.content?.oldContent,newContent:e.content?.newContent,gitlink:e.gitlink}}),...t(dt).flatMap(e=>(e.files||[]).map(a=>{const r=typeof a=="string"?a:a.path||"",U=r&&L(r)?r:`${t(h)}/${r}`,A=typeof a=="string"?0:a.additions||0,x=typeof a=="string"?0:a.deletions||0;return{filePath:U,action:"modify",additions:A,deletions:x,toolName:"local",toolCallId:`commit-${e.hash}-${r}`,staged:!1,category:"committed",commitHash:e.hash,commitMessage:e.message}}))]});function v(o){if(!t(h))return o;const i=V(o),e=V(t(h));return i.startsWith(`${e}/`)?i.slice(e.length+1):o}function W(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"stage",paths:o.map(v),source:"localChanges"}))}function G(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"unstage",paths:o.map(v),source:"localChanges"}))}function ht(o){l.dispatch(T(m(),crypto.randomUUID(),{kind:"discard",paths:o.map(v),source:"localChanges"}))}I(()=>{!D||!C()||D.registerActions({display:Y})});const N=crypto.randomUUID();I(()=>{const o=m();if(!(!(C()&&t(n))||!o))return l.dispatch(Bt(o,N)),()=>l.dispatch(Ft(o,N))});var ft={get tab(){return P()},set tab(o){P(o),F()},get workspaceId(){return m()},set workspaceId(o){m(o),F()},get isActive(){return C()},set isActive(o){C(o),F()},$set:wt,$on:(o,i)=>It($,o,i)};{let o=s(()=>t(n)?t(gt):Q()),i=s(()=>t(n)||void 0),e=s(()=>t(n)?t(k):void 0),a=s(()=>y()?.baseRef??null),r=s(()=>t(n)?t(b)?.registeredCommitSha||null:j()||y()?.baseCommitSha||null),U=s(()=>!t(n)),A=s(()=>t(n)?void 0:d=>void W([d])),x=s(()=>t(n)?void 0:d=>void G([d])),Ct=s(()=>t(n)?void 0:d=>void ht([d])),yt=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="unstaged");W(d.map(p=>p.relativePath||p.file))}),St=s(()=>t(n)?void 0:()=>{const d=S().filter(p=>p.stage==="staged");G(d.map(p=>p.relativePath||p.file))});vt(zt(_,{get isLoading(){return t(o)},get changes(){return t(ut)},get gitRootId(){return t(i)},get gitRootPath(){return t(e)},get branchBaseRef(){return t(a)},get branchBaseCommitSha(){return t(r)},get showStagingControls(){return t(U)},showCategoryFilter:!0,get onStage(){return t(A)},get onUnstage(){return t(x)},get onRevert(){return t(Ct)},get onStageAll(){return t(yt)},get onUnstageAll(){return t(St)}}),d=>E(R,d,!0),()=>t(R))}var $t=kt(ft);return X(),$t}export{Xt as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CVs9CHtI.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/5-0LQoqd.js","/app/immutable/chunks/_2VCBG9z.js","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/rXKOJqUt.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/BIGqOuh0.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/DcOkWaeN.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/Bc1vJq_Z.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/jBG7W4tL.js","/app/immutable/chunks/D_VvdZe2.js","/app/immutable/chunks/C63WwVct.js","/app/immutable/chunks/C2F2Vd1P.js","/app/immutable/chunks/CrsbEWnE.js","/app/immutable/chunks/DWa-2rkZ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/gU2qspu9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BW1iql_y.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/DSiGyv9Y.js","/app/immutable/chunks/C_SKcJv7.js","/app/immutable/chunks/BNa9zzEx.js","/app/immutable/chunks/COgn_CzG.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/zB9UbdEg.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/h8JtxU_T.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/0oyPeRI9.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/BeJRU38G.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BV1ayWTC.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/B5pL-E-o.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BupDQr_B.js","/app/immutable/chunks/B-E_4dSm.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B_4WsP9b.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/PhAbES0t.js","/app/immutable/chunks/Do2KlQU0.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BLKFshyr.js","/app/immutable/chunks/D2mnZ9kC.js","/app/immutable/chunks/yDmmPu6L.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/A0KsbysW.js","/app/immutable/chunks/B6d1Nolc.js","/app/immutable/chunks/sSXTMg2P.js","/app/immutable/chunks/Bi_Yd73A.js","/app/immutable/chunks/C50zlWbZ.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/CA8JHp72.js","/app/immutable/chunks/CIWky03S.js","/app/immutable/chunks/BECK4OaG.js","/app/immutable/chunks/B433f4mk.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CWOQ_pUA.js","/app/immutable/chunks/CTW83wJs.js","/app/immutable/chunks/wiGlLVr-.js","/app/immutable/chunks/BByf3ILj.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/9GO97JAL.js","/app/immutable/chunks/BU1Gcrkq.js","/app/immutable/chunks/DGMrUmNq.js","/app/immutable/chunks/C9ew0Hx2.js","/app/immutable/chunks/BJgwBOBz.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/pomj9evG.js","/app/immutable/chunks/BGspyNwk.js","/app/immutable/chunks/Bd1Doib5.js","/app/immutable/chunks/K8u-JjT9.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/0RCk28l5.js","/app/immutable/chunks/CoJyxFcH.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/COflq_3N.js","/app/immutable/chunks/Da-Blgd9.js","/app/immutable/chunks/BO4b6Ny-.js","/app/immutable/chunks/VeUh5OMZ.js","/app/immutable/chunks/BvbeTrka.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/B2CniqS1.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/U7dpdlAf.js","/app/immutable/chunks/CR-JVxLD.js","/app/immutable/chunks/fHygQTSC.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/DUAtqTLU.js","/app/immutable/chunks/LQRHF1eM.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/C3-81PRC.js","/app/immutable/chunks/C2Hs8n0u.js","/app/immutable/chunks/BSWVBeG0.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/Bv_xG3nA.js","/app/immutable/chunks/ClNMpui4.js","/app/immutable/chunks/d8NijX_Z.js","/app/immutable/chunks/DiURwJNX.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/CNSshwg_.js","/app/immutable/chunks/Clo7aK1n.js","/app/immutable/chunks/BO8Bp7Ht.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/sOF-qTei.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/CV2tdNDf.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/BlIRL_82.js","/app/immutable/chunks/B0qb2Ymj.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/DxPvfI2H.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/B_75gRww.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Whej1Dge.js","/app/immutable/chunks/Cr2Op5yp.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/Z9NyJp9w.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/D20kqX2U.js","/app/immutable/chunks/CI0C7_h-.js","/app/immutable/chunks/DDrpCbke.js","/app/immutable/chunks/Clez3uTU.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/B6FGs8l2.js","/app/immutable/chunks/Dvi4g0xk.js","/app/immutable/chunks/GIVowYni.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/DEDo4DeD.js","/app/immutable/chunks/BwPwF85e.js","/app/immutable/chunks/CletI6Pa.js","/app/immutable/chunks/BHEogMS0.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/v3_7O0A0.js","/app/immutable/chunks/B22zVGFP.js","/app/immutable/chunks/DM1_VFfD.js","/app/immutable/chunks/BpYEdDT4.js","/app/immutable/chunks/BXJzIaQM.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/Bu-RLSv9.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/pMP23LzB.js","/app/immutable/chunks/4PAYwk2I.js","/app/immutable/chunks/BdEtT3Ti.js","/app/immutable/chunks/deEweluJ.js","/app/immutable/chunks/JM7CQkWC.js","/app/immutable/chunks/DqAYkzSz.js","/app/immutable/chunks/BmF8Qq3w.js","/app/immutable/chunks/94vL4WlW.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DuAAGnM9.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/D7Dfbf5g.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/C9p4fddz.js","/app/immutable/chunks/C-G2u0Oe.js","/app/immutable/chunks/CEfkJpk7.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/CAtVH-rJ.js","/app/immutable/chunks/Cp02CBjf.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/nwO3KCpP.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/OrN9D77d.js","/app/immutable/chunks/C8LrJXqa.js","/app/immutable/chunks/DxC0zTSc.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/ByZMA8RF.js","/app/immutable/chunks/DPY-p9P3.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/DDb9H7X6.js","/app/immutable/chunks/BSUnflvl.js","/app/immutable/chunks/BjlMkd10.js","/app/immutable/chunks/CEEUgGO1.js","/app/immutable/chunks/7y3Z0Q49.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/hNQ1u1TD.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/DI71nFp4.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/Cp7Byf5d.js","/app/immutable/chunks/CDBHtmaA.js","/app/immutable/chunks/ZRNKCUqe.js","/app/immutable/chunks/HU1Ksz8U.js","/app/immutable/chunks/C412Y6ti.js","/app/immutable/chunks/DX9N1RQz.js","/app/immutable/chunks/DrTTxENT.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/CD-M_2xD.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/B8QvP_8b.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/CLlFdy2p.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/BlDwsvYd.js","/app/immutable/chunks/D0R3sca1.js","/app/immutable/chunks/Ex_x2wO5.js","/app/immutable/chunks/4poQ2xKW.js","/app/immutable/chunks/BSntxgH1.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/BNX4ri6c.js","/app/immutable/chunks/CDAnHxmJ.js","/app/immutable/chunks/BHqp2vwo.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/CIaruUrd.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/BVl79jmM.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/C4UnZ5aI.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/BSgFpkqa.js","/app/immutable/chunks/DlU1rxYV.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/D8XzixBC.js","/app/immutable/chunks/IIW6JGdD.js","/app/immutable/chunks/rEslErv9.js","/app/immutable/chunks/3VhO4Wn2.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/BvbZcfOT.js","/app/immutable/chunks/CrEMns9K.js","/app/immutable/chunks/Bwx5QwNp.js","/app/immutable/chunks/C0Zo7HuP.js","/app/immutable/chunks/CYSndAne.js","/app/immutable/chunks/CPI5xBWX.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
2
- import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./Dws-34a7.js";import{t as u}from"./CHto7_WH.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./CGYPBD6G.js";import{R as H}from"./CJB-ebPL.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./DLCFUd4s.js";import{s as fe}from"./BD9db4FR.js";import{L as me}from"./fHygQTSC.js";import{C as Xe,L as be}from"./jBG7W4tL.js";import{I as Ze}from"./C63WwVct.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import{f as le}from"./BIGqOuh0.js";import{v as Ie}from"./BPuz5cN_.js";import"./gU2qspu9.js";import"./D-rRuAXZ.js";import{I as ve}from"./C-zB-6G6.js";import{I as et}from"./Bqd7fdCF.js";import"./7KxcPj98.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./CVs9CHtI.js"),__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,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./CAtVH-rJ.js"),__vite__mapDeps([210,1,2,3,11,6,7,8,9,10,15,211,22,23,24,25,26,18,13,4,71,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,72,64,62,65,68,60,59,73,74,75,76,63,77,78,181,92,57,61,182,212,123,213,125,52,136,86,214,99,100,215,109,110,111,112,113,216,217,102,218,219]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./ByZMA8RF.js"),__vite__mapDeps([220,1,2,3,4,11,28,7,8,9,10,6,64,18,22,23,24,25,26,13,62,16,17,19,65,20,221,15,222,223,59,60,57,58,61,63,224,225,226,227,228,112,212,191,229,14,12,21,27,29,30,31,32,213,230,72,68,73,74,75,76,77,78,36,42,43,40,41,217,231,38,35,39,136,33,34,37,44,45,46,215,232,149,233,234,102,218]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./CDBHtmaA.js"),__vite__mapDeps([235,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,64,28,11,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,15,4,21,27,30,31,32,182,102,236,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,36,42,43,40,41,113,112,172,206,191,213,143,135,71,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,140,153,154,35,164,82,69,70,33,34,37,38,39,44,45,46,79,80,81,50,51,117,165,125,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./CLlFdy2p.js"),__vite__mapDeps([247,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,119,120,121,75,22,23,24,25,26,76,63,77,64,28,62,65,20,78,58,122,12,21,27,29,30,31,32,158,81,51,178,84,87,68,60,59,179,180,130,92,72,73,74,57,61,132,133,142,109,110,111,112,113,248]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./BlDwsvYd.js"),__vite__mapDeps([249,1,2,3,4,6,7,8,9,10,11,15,72,22,23,24,25,26,18,13,64,28,62,16,17,19,65,20,68,60,59,73,74,75,76,63,77,78,58,250,14,251,238,12,21,27,29,30,31,32,237,102,57,61,133,205,44,45,215,240,132,92,241,103,35,36,47,48,49,42,43,50,51,52,53,104,38,39,105,86,34,37,40,41,71,82,33,46,106,107,81,108,95,96,109,110,111,112,113,114,115,194,54,55,56,66,67,69,70,79,80,83,84,85,87,88,89,90,91,93,94,97,98,99,100,101,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,206,207,208,217,216]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./4poQ2xKW.js"),__vite__mapDeps([252,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,217,12,20,30,32,64,62,65,72,68,60,59,73,74,75,76,63,77,78,58,92,57,61,194,88,89,66,114,120,121,125,52,161,82,164,140,69,70,71,79,80,81,50,51,117,165,99,100,48,236,216,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,129,131,253,98,94,95,49,96,97,118,215,254]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./BNX4ri6c.js"),__vite__mapDeps([255,1,2,3,11,64,18,9,22,23,24,25,7,26,13,28,8,10,6,62,16,17,19,65,20,215,181,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,12,14,15,4,21,27,29,30,31,32,182,35,36,81,88,89,50,51,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,138,139,140,141,116,71,52,69,70,79,80,82,67,118,114,119,122,123,100,124,236,216,217,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,146,55,147,148,149,150,256,257,258,108,95,49,96,163,195,259,260,153,154,106,48,107,261,156,157,158,159,152,155,162,184,192,136,197,198,174,164,165,262]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./C4UnZ5aI.js"),__vite__mapDeps([263,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,215,151,64,28,62,16,17,19,65,20,264,68,60,59,199,77,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,236,61,57,58,63,92,72,73,74,75,76,78,216,217,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,71,240,241,242,243,244,109,110,111,245,246,224,225,226,227,228,256,257,117,258,164,140,82,69,70,79,80,81,50,51,165,136,265,123,266,234,267]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./D8XzixBC.js"),__vite__mapDeps([268,1,2,3,4,11,163,22,23,24,25,9,7,26,18,13,215,64,28,8,10,6,62,16,17,19,65,20,146,55,15,132,59,92,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./rEslErv9.js"),__vite__mapDeps([270,1,2,4,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,21,27,29,30,31,32,182,102,271,160,259,260,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./BvbZcfOT.js"),__vite__mapDeps([273,1,2,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,271,29,160,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./CrEMns9K.js"),__vite__mapDeps([274,1,2,3,271,6,7,8,9,10,29,15,22,23,24,25,26,18,13,160,64,28,11,62,16,17,19,65,20,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./Bwx5QwNp.js"),__vite__mapDeps([275,1,2,3,4,11,62,241,24,59,146,8,9,7,10,55,15,132,16,13,17,18,19,22,23,25,26,92,64,28,6,65,20,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,215,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./C0Zo7HuP.js"),__vite__mapDeps([276,1,2,3,152,6,7,8,9,10,140,153,59,154,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,155,167,64,62,65,76,63,77]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./CYSndAne.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./CPI5xBWX.js"),__vite__mapDeps([278,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([279,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CrvVM5aL.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/5-0LQoqd.js","/app/immutable/chunks/Cj1KG0_l.js","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/rXKOJqUt.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/BIGqOuh0.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/DcOkWaeN.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/Bc1vJq_Z.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/jBG7W4tL.js","/app/immutable/chunks/D_VvdZe2.js","/app/immutable/chunks/C63WwVct.js","/app/immutable/chunks/C2F2Vd1P.js","/app/immutable/chunks/CrsbEWnE.js","/app/immutable/chunks/DWa-2rkZ.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/gU2qspu9.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BW1iql_y.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/DSiGyv9Y.js","/app/immutable/chunks/C_SKcJv7.js","/app/immutable/chunks/BNa9zzEx.js","/app/immutable/chunks/COgn_CzG.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/zB9UbdEg.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/h8JtxU_T.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/jH2J-9un.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/L-Sh3Ble.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BV1ayWTC.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/Cq_jjcoF.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/DN-DN78v.js","/app/immutable/chunks/De0kCZ4v.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B_4WsP9b.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/PhAbES0t.js","/app/immutable/chunks/Do2KlQU0.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/BLKFshyr.js","/app/immutable/chunks/LI9J8Eor.js","/app/immutable/chunks/yDmmPu6L.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/A0KsbysW.js","/app/immutable/chunks/B6d1Nolc.js","/app/immutable/chunks/sSXTMg2P.js","/app/immutable/chunks/Bi_Yd73A.js","/app/immutable/chunks/C50zlWbZ.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/DtFzaymP.js","/app/immutable/chunks/BZVhwNIm.js","/app/immutable/chunks/BECK4OaG.js","/app/immutable/chunks/B433f4mk.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CWOQ_pUA.js","/app/immutable/chunks/CTW83wJs.js","/app/immutable/chunks/wiGlLVr-.js","/app/immutable/chunks/BByf3ILj.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/9GO97JAL.js","/app/immutable/chunks/DyXAZ9tr.js","/app/immutable/chunks/DGMrUmNq.js","/app/immutable/chunks/C9ew0Hx2.js","/app/immutable/chunks/BJgwBOBz.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/pomj9evG.js","/app/immutable/chunks/CrbAS4DB.js","/app/immutable/chunks/Cy3lhXYa.js","/app/immutable/chunks/DG0pBglL.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Dg0Tdf_A.js","/app/immutable/chunks/CoJyxFcH.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/Bs7M8kXA.js","/app/immutable/chunks/Da-Blgd9.js","/app/immutable/chunks/_i0M7_-r.js","/app/immutable/chunks/VeUh5OMZ.js","/app/immutable/chunks/BvbeTrka.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/B2CniqS1.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/U7dpdlAf.js","/app/immutable/chunks/CR-JVxLD.js","/app/immutable/chunks/fHygQTSC.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/DW25Ls6A.js","/app/immutable/chunks/LQRHF1eM.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/fVXs4sxg.js","/app/immutable/chunks/BvgjsneA.js","/app/immutable/chunks/C2WwQCOk.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/Bv_xG3nA.js","/app/immutable/chunks/BVqF0sgN.js","/app/immutable/chunks/DT5eV1e8.js","/app/immutable/chunks/DiURwJNX.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/CNSshwg_.js","/app/immutable/chunks/Clo7aK1n.js","/app/immutable/chunks/BO8Bp7Ht.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/CPO5_F83.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/CV2tdNDf.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/BlIRL_82.js","/app/immutable/chunks/B0qb2Ymj.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/CC-IHSah.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/B_75gRww.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/Whej1Dge.js","/app/immutable/chunks/ZR3wQ419.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/DxAjMnFs.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/DFGMgfIk.js","/app/immutable/chunks/CI0C7_h-.js","/app/immutable/chunks/THqyVjkf.js","/app/immutable/chunks/CE70-gZI.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/B6FGs8l2.js","/app/immutable/chunks/Dvi4g0xk.js","/app/immutable/chunks/DxRojUvw.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/D2hNxvgD.js","/app/immutable/chunks/BwPwF85e.js","/app/immutable/chunks/CletI6Pa.js","/app/immutable/chunks/C-L0-C2F.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/B72XM8Fm.js","/app/immutable/chunks/C8zl7aIj.js","/app/immutable/chunks/DM1_VFfD.js","/app/immutable/chunks/By4iSN8L.js","/app/immutable/chunks/BXJzIaQM.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/Bu-RLSv9.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/pMP23LzB.js","/app/immutable/chunks/4PAYwk2I.js","/app/immutable/chunks/BdEtT3Ti.js","/app/immutable/chunks/deEweluJ.js","/app/immutable/chunks/JM7CQkWC.js","/app/immutable/chunks/DVUFgbJK.js","/app/immutable/chunks/GP4LXuR4.js","/app/immutable/chunks/94vL4WlW.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DuAAGnM9.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/D7Dfbf5g.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/C9p4fddz.js","/app/immutable/chunks/C-G2u0Oe.js","/app/immutable/chunks/pHBnQb5R.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/rcXEnwTB.js","/app/immutable/chunks/Cp02CBjf.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/nwO3KCpP.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/3xVgojWv.js","/app/immutable/chunks/C8LrJXqa.js","/app/immutable/chunks/DxC0zTSc.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/-9EwpXCb.js","/app/immutable/chunks/DTMxJ5IC.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/DDb9H7X6.js","/app/immutable/chunks/BSUnflvl.js","/app/immutable/chunks/BjlMkd10.js","/app/immutable/chunks/CEEUgGO1.js","/app/immutable/chunks/7y3Z0Q49.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/B3SHGkI_.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/DI71nFp4.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/Cp7Byf5d.js","/app/immutable/chunks/BGReMCaT.js","/app/immutable/chunks/DXRkYB1Y.js","/app/immutable/chunks/HU1Ksz8U.js","/app/immutable/chunks/D7xjMCds.js","/app/immutable/chunks/DX9N1RQz.js","/app/immutable/chunks/XEsFBJqZ.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/CD-M_2xD.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/B8QvP_8b.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/BTEoQf52.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/DjIQY_o5.js","/app/immutable/chunks/waHi6l7h.js","/app/immutable/chunks/Ex_x2wO5.js","/app/immutable/chunks/Dm-WfTCg.js","/app/immutable/chunks/BSntxgH1.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/KzySRhDw.js","/app/immutable/chunks/CDAnHxmJ.js","/app/immutable/chunks/BHqp2vwo.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/CIaruUrd.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/BVl79jmM.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/VvLcPf2a.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/BSgFpkqa.js","/app/immutable/chunks/DlU1rxYV.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/0Ipp5cFr.js","/app/immutable/chunks/DOkArUrJ.js","/app/immutable/chunks/CxndkliV.js","/app/immutable/chunks/CuWLpCl5.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/C78AfvXn.js","/app/immutable/chunks/CX4-Z2NI.js","/app/immutable/chunks/CqVGtsXz.js","/app/immutable/chunks/C0Zo7HuP.js","/app/immutable/chunks/CYSndAne.js","/app/immutable/chunks/CPI5xBWX.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
2
+ import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./Dws-34a7.js";import{t as u}from"./CHto7_WH.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./CGYPBD6G.js";import{R as H}from"./CJB-ebPL.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./DLCFUd4s.js";import{s as fe}from"./BD9db4FR.js";import{L as me}from"./fHygQTSC.js";import{C as Xe,L as be}from"./jBG7W4tL.js";import{I as Ze}from"./C63WwVct.js";import"./C2F2Vd1P.js";import"./BW1iql_y.js";import{f as le}from"./BIGqOuh0.js";import{v as Ie}from"./BPuz5cN_.js";import"./gU2qspu9.js";import"./D-rRuAXZ.js";import{I as ve}from"./C-zB-6G6.js";import{I as et}from"./Bqd7fdCF.js";import"./7KxcPj98.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./CrvVM5aL.js"),__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,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./rcXEnwTB.js"),__vite__mapDeps([210,1,2,3,11,6,7,8,9,10,15,211,22,23,24,25,26,18,13,4,71,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,72,64,62,65,68,60,59,73,74,75,76,63,77,78,181,92,57,61,182,212,123,213,125,52,136,86,214,99,100,215,109,110,111,112,113,216,217,102,218,219]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./-9EwpXCb.js"),__vite__mapDeps([220,1,2,3,4,11,28,7,8,9,10,6,64,18,22,23,24,25,26,13,62,16,17,19,65,20,221,15,222,223,59,60,57,58,61,63,224,225,226,227,228,112,212,191,229,14,12,21,27,29,30,31,32,213,230,72,68,73,74,75,76,77,78,36,42,43,40,41,217,231,38,35,39,136,33,34,37,44,45,46,215,232,149,233,234,102,218]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./BGReMCaT.js"),__vite__mapDeps([235,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,64,28,11,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,15,4,21,27,30,31,32,182,102,236,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,36,42,43,40,41,113,112,172,206,191,213,143,135,71,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,140,153,154,35,164,82,69,70,33,34,37,38,39,44,45,46,79,80,81,50,51,117,165,125,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./BTEoQf52.js"),__vite__mapDeps([247,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,119,120,121,75,22,23,24,25,26,76,63,77,64,28,62,65,20,78,58,122,12,21,27,29,30,31,32,158,81,51,178,84,87,68,60,59,179,180,130,92,72,73,74,57,61,132,133,142,109,110,111,112,113,248]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./DjIQY_o5.js"),__vite__mapDeps([249,1,2,3,4,6,7,8,9,10,11,15,72,22,23,24,25,26,18,13,64,28,62,16,17,19,65,20,68,60,59,73,74,75,76,63,77,78,58,250,14,251,238,12,21,27,29,30,31,32,237,102,57,61,133,205,44,45,215,240,132,92,241,103,35,36,47,48,49,42,43,50,51,52,53,104,38,39,105,86,34,37,40,41,71,82,33,46,106,107,81,108,95,96,109,110,111,112,113,114,115,194,54,55,56,66,67,69,70,79,80,83,84,85,87,88,89,90,91,93,94,97,98,99,100,101,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,206,207,208,217,216]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./Dm-WfTCg.js"),__vite__mapDeps([252,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,217,12,20,30,32,64,62,65,72,68,60,59,73,74,75,76,63,77,78,58,92,57,61,194,88,89,66,114,120,121,125,52,161,82,164,140,69,70,71,79,80,81,50,51,117,165,99,100,48,236,216,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,129,131,253,98,94,95,49,96,97,118,215,254]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./KzySRhDw.js"),__vite__mapDeps([255,1,2,3,11,64,18,9,22,23,24,25,7,26,13,28,8,10,6,62,16,17,19,65,20,215,181,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,12,14,15,4,21,27,29,30,31,32,182,35,36,81,88,89,50,51,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,138,139,140,141,116,71,52,69,70,79,80,82,67,118,114,119,122,123,100,124,236,216,217,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,224,225,226,227,228,146,55,147,148,149,150,256,257,258,108,95,49,96,163,195,259,260,153,154,106,48,107,261,156,157,158,159,152,155,162,184,192,136,197,198,174,164,165,262]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./VvLcPf2a.js"),__vite__mapDeps([263,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,215,151,64,28,62,16,17,19,65,20,264,68,60,59,199,77,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,236,61,57,58,63,92,72,73,74,75,76,78,216,217,181,182,102,237,178,84,87,179,180,130,132,133,142,230,167,238,218,239,113,112,172,206,191,213,143,135,71,240,241,242,243,244,109,110,111,245,246,224,225,226,227,228,256,257,117,258,164,140,82,69,70,79,80,81,50,51,165,136,265,123,266,234,267]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./0Ipp5cFr.js"),__vite__mapDeps([268,1,2,3,4,11,163,22,23,24,25,9,7,26,18,13,215,64,28,8,10,6,62,16,17,19,65,20,146,55,15,132,59,92,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./CxndkliV.js"),__vite__mapDeps([270,1,2,4,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,216,76,63,78,92,72,68,60,59,73,74,75,77,58,57,61,217,181,12,14,21,27,29,30,31,32,182,102,271,160,259,260,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./C78AfvXn.js"),__vite__mapDeps([273,1,2,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,271,29,160,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./CX4-Z2NI.js"),__vite__mapDeps([274,1,2,3,271,6,7,8,9,10,29,15,22,23,24,25,26,18,13,160,64,28,11,62,16,17,19,65,20,259,260,92,72,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,21,133,147,148,14,4,149,35,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,120,121,106,30,48,49,107,12,32,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,230,167,238,218,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,224,225,226,227,228,272]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./CqVGtsXz.js"),__vite__mapDeps([275,1,2,3,4,11,62,241,24,59,146,8,9,7,10,55,15,132,16,13,17,18,19,22,23,25,26,92,64,28,6,65,20,72,68,60,73,74,75,76,63,77,78,58,57,61,21,133,147,148,14,149,35,29,36,150,269,151,33,34,37,27,38,39,40,41,42,31,43,44,45,46,117,215,136,265,197,198,174,12,30,32,199,121]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./C0Zo7HuP.js"),__vite__mapDeps([276,1,2,3,152,6,7,8,9,10,140,153,59,154,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,155,167,64,62,65,76,63,77]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./CYSndAne.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./CPI5xBWX.js"),__vite__mapDeps([278,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([279,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
@@ -1,2 +1,2 @@
1
- import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./Dws-34a7.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./3SdAC2_C.js";import{i as f}from"./DLCFUd4s.js";import{I as Bt,g as Ct}from"./C-zB-6G6.js";import{n as Pt,j as zt}from"./Bc1vJq_Z.js";import{f as F}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import"./BD9db4FR.js";import"./D-rRuAXZ.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./CGYPBD6G.js";import{A as Dt}from"./BvbeTrka.js";import{D as Lt}from"./sOF-qTei.js";import{Jx as $t,v0 as Ht}from"./4g_iHoQm.js";import{g as Nt}from"./DgAgTFcK.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./Dws-34a7.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./3SdAC2_C.js";import{i as f}from"./DLCFUd4s.js";import{I as Bt,g as Ct}from"./C-zB-6G6.js";import{n as Pt,j as zt}from"./Bc1vJq_Z.js";import{f as F}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import"./BD9db4FR.js";import"./D-rRuAXZ.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./CGYPBD6G.js";import{A as Dt}from"./BvbeTrka.js";import{D as Lt}from"./CPO5_F83.js";import{Jx as $t,v0 as Ht}from"./4g_iHoQm.js";import{g as Nt}from"./DgAgTFcK.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(J)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||H()));function ot(){et(V,!e(V))}function it(){e(J)?H()?.():$()?.()}var lt={get patches(){return A()},set patches(t){A(t),h()},get label(){return M()},set label(t=g.ui_patchBlock_label()){M(t),h()},get lastApply(){return O()},set lastApply(t){O(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return H()},set onRevert(t){H(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=Vt(),v=q(o),b=q(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());F(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:i=>{L()&&$t.dispatch(Ht(L(),{agentId:w(),...Nt(i)}))},get title(){return e(c)},children:(i,m)=>{Dt(i,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);F(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var i=qt(),m=Q(i);{var B=l=>{rt(l,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,l=>{w()||l(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=q(d),R=S(r),N=u(r,2),G=S(N);W(d);var K=u(d,2);{var tt=l=>{var j=jt(),_t=S(j,!0);D(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(l,j)};f(K,l=>{e(J)&&l(tt)})}D(()=>{x(s,M()),x(R,`+${e(X).addCount??""}`),x(G,`-${e(X).removeCount??""}`)}),p(a,i)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{F(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:it,get disabled(){return P()},children:(c,i)=>{var m=Ft(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};f(B,r=>{P()?r(C):e(T).icon&&r(s,1)})}var d=u(B);D(()=>x(d,` ${e(T).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Ot(),i=q(c);{var m=s=>{var d=Mt();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let G=y(()=>e(N)===e(E)?"default":"ghost-light");F(r,{get variant(){return e(G)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var l=It();D(j=>x(l,j),[()=>e(R).filePath.split("/").pop()]),p(K,l)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(i,s=>{A().length>1&&s(m)})}var B=u(i,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(V)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(lt)}export{Jt as P};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BcEkxi5l.js","/app/immutable/chunks/B2XeuV1l.js","/app/immutable/chunks/B9ka1bX8.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/vdylZNCS.js","/app/immutable/chunks/DGVdJiQ7.js","/app/immutable/chunks/CWTUGfLW.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/DlWS0XX3.js","/app/immutable/chunks/C4Py2-C-.js","/app/immutable/chunks/BoIbJp9v.js","/app/immutable/chunks/BV47Ledo.js","/app/immutable/chunks/i0UHQwRY.js","/app/immutable/chunks/CqrCSb8W.js","/app/immutable/chunks/CA8JHp72.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/BupDQr_B.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/B-E_4dSm.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B_4WsP9b.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/PhAbES0t.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/Dx3P5K2z.js","/app/immutable/chunks/BT8hDSo1.js","/app/immutable/chunks/CVU_1O7c.js","/app/immutable/chunks/C3gIkQxX.js","/app/immutable/chunks/Gt7Fxn5w.js","/app/immutable/chunks/CPaH4fRt.js","/app/immutable/chunks/BgDnzAo4.js","/app/immutable/chunks/DnLmeVJZ.js","/app/immutable/chunks/BuPmvT2w.js","/app/immutable/chunks/CE9_m5Rd.js","/app/immutable/chunks/BvzO6hxM.js","/app/immutable/chunks/40W1U6K5.js","/app/immutable/chunks/DtyEiVnc.js","/app/immutable/chunks/DyZa5hX5.js","/app/immutable/chunks/DErxk4N4.js","/app/immutable/chunks/BYLCAn5f.js","/app/immutable/chunks/hYcAQyax.js","/app/immutable/chunks/Cnl_O3ZO.js","/app/immutable/chunks/B6QnBRPC.js","/app/immutable/chunks/BORk03Sd.js","/app/immutable/chunks/DmhHa5tp.js","/app/immutable/chunks/vyUklWDK.js","/app/immutable/chunks/DR6M_MBd.js","/app/immutable/chunks/CsyhqW-P.js","/app/immutable/chunks/Bi-y50ry.js","/app/immutable/chunks/e9nNeD_8.js","/app/immutable/chunks/BxU4EAMe.js","/app/immutable/chunks/BP1fPIN6.js","/app/immutable/chunks/2zSj5_GV.js","/app/immutable/chunks/Cr5QjekU.js","/app/immutable/chunks/Bt_vaAcw.js","/app/immutable/chunks/L7Esr5Id.js","/app/immutable/chunks/BeU-lAdJ.js","/app/immutable/chunks/Cbb4o3qj.js","/app/immutable/chunks/BBYtaKSX.js","/app/immutable/chunks/tuKjkgzS.js"])))=>i.map(i=>d[i]);
2
- var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./Dws-34a7.js";import{g as dC}from"./BdWqymET.js";import{aR as bs}from"./CA8JHp72.js";import{b7 as uC,cc as fC,bs as No,a7 as Ko,ay as ui,aD as L,bS as We,be as en,b$ as rl,b_ as cr,bO as br,W as ge,c9 as Dt,bn as qo,aA as Be,aB as ar,bk as hd,bH as gt,ca as Bo,c5 as pl,a5 as qe,bA as $e,bV as ce,bl as Tr,c0 as Th,aC as pi,aw as ml,a as Wu,bj as Np,br as wi,cb as gC,bf as pC}from"./3SdAC2_C.js";import{i as yr}from"./DLCFUd4s.js";import{h as zu}from"./BKD7o1lQ.js";import{f as co,s as fe,b as qp,c as Wp,g as Xa}from"./BD9db4FR.js";import{b as no}from"./Dn334wJv.js";import{c as mC}from"./ChTqQfQN.js";import{d4 as yC,cW as xC,F as dn,aM as bC,bb as zp,m as CC,n as wC,f as kC,j as SC,y as Hu,v as Yu,h as vC,u as MC,P as TC,s as BC,O as _C,r as LC,k as AC,D as Xu,H as FC,U as $C,ax as EC,ay as PC,aY as IC}from"./CGYPBD6G.js";import{f as Ja,ae as OC}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{M as DC,Z as RC}from"./B5pL-E-o.js";import{p as rn,h as NC,d as qC,S as WC,e as zC,g as ya,i as ju}from"./C-zB-6G6.js";import{c as HC}from"./BbIcudMY.js";import{k as Hp}from"./5-0LQoqd.js";import{n as To,h as Gu,t as Is,d as Uu}from"./Bc1vJq_Z.js";import{c as fa}from"./B5tvpTFB.js";import{e as YC}from"./h8JtxU_T.js";import{t as XC}from"./DAsc1V4f.js";import{t as il}from"./D-rRuAXZ.js";import{H as jC}from"./B_75gRww.js";import{s as Vu,a as GC}from"./BsieX9dN.js";import{l as UC,K as VC,d as ZC,e as Cc,M as KC}from"./jBG7W4tL.js";import"./DWa-2rkZ.js";import{u as wo}from"./rXKOJqUt.js";import"./DcOkWaeN.js";import"./4g_iHoQm.js";import{bK as QC}from"./BupDQr_B.js";function JC(e,t){uC(window,["resize"],()=>fC(()=>t(window[e])))}var Yp=Object.defineProperty,C=(e,t)=>Yp(e,"name",{value:t,configurable:!0}),t2=(e,t)=>{for(var r in t)Yp(e,r,{get:t[r],enumerable:!0})};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Xp,"getDefaultExportFromCjs");var ei={},Pn={},Xo={},Zu;function Ts(){if(Zu)return Xo;Zu=1;function e(s){return typeof s>"u"||s===null}C(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}C(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}C(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}C(i,"extend");function o(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}C(o,"repeat");function a(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return C(a,"isNegativeZero"),Xo.isNothing=e,Xo.isObject=t,Xo.toArray=r,Xo.repeat=o,Xo.isNegativeZero=a,Xo.extend=i,Xo}C(Ts,"requireCommon");var wc,Ku;function Bs(){if(Ku)return wc;Ku=1;function e(r,i){let o="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/xGzY0FqC.js","/app/immutable/chunks/L_sfch_N.js","/app/immutable/chunks/CGPajdHq.js","/app/immutable/chunks/Dws-34a7.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/-xK_vQQs.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BWzMAxc1.js","/app/immutable/chunks/CmyBYYR3.js","/app/immutable/chunks/BNV0s95-.js","/app/immutable/chunks/lAmQKSWr.js","/app/immutable/chunks/DVwMeV9X.js","/app/immutable/chunks/D2kwjrZB.js","/app/immutable/chunks/DRsDUO-4.js","/app/immutable/chunks/BQvwLP7I.js","/app/immutable/chunks/BTLG1BY-.js","/app/immutable/chunks/CuljOS_X.js","/app/immutable/chunks/DtFzaymP.js","/app/immutable/chunks/SbTG0nwQ.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/4g_iHoQm.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8jMQM9h0.js","/app/immutable/chunks/D-rRuAXZ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CGYPBD6G.js","/app/immutable/chunks/B5tvpTFB.js","/app/immutable/chunks/DLCFUd4s.js","/app/immutable/chunks/BD9db4FR.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-zB-6G6.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BPuz5cN_.js","/app/immutable/chunks/7KxcPj98.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dval4sTX.js","/app/immutable/chunks/B8HnjSSF.js","/app/immutable/chunks/DN-DN78v.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/De0kCZ4v.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/B_4WsP9b.js","/app/immutable/chunks/DtqPBHQj.js","/app/immutable/chunks/tLFaYuVN.js","/app/immutable/chunks/B6eTPmJH.js","/app/immutable/chunks/PhAbES0t.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/DJPIUVkw.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/Cl_O0hHI.js","/app/immutable/chunks/C37ZqG4e.js","/app/immutable/chunks/DzG7lmwB.js","/app/immutable/chunks/LgyvMkc8.js","/app/immutable/chunks/CRSY1kuo.js","/app/immutable/chunks/Cx0QXTIW.js","/app/immutable/chunks/BgDnzAo4.js","/app/immutable/chunks/DmCKwthV.js","/app/immutable/chunks/C429ZMSU.js","/app/immutable/chunks/V6efYFFY.js","/app/immutable/chunks/CXpEvkVR.js","/app/immutable/chunks/CNE5cVvC.js","/app/immutable/chunks/Dqd75Edx.js","/app/immutable/chunks/Cv0wEzuo.js","/app/immutable/chunks/CUsqN2sK.js","/app/immutable/chunks/CpFDUMBH.js","/app/immutable/chunks/D-KE4WZ3.js","/app/immutable/chunks/BYl8t9od.js","/app/immutable/chunks/DBH_GMOZ.js","/app/immutable/chunks/e3_wv2e_.js","/app/immutable/chunks/iPHmrqbo.js","/app/immutable/chunks/Q2C1NT93.js","/app/immutable/chunks/BzSCTZkL.js","/app/immutable/chunks/DZmGZ5am.js","/app/immutable/chunks/M1XBe23f.js","/app/immutable/chunks/DhXcDqZX.js","/app/immutable/chunks/BQ53265L.js","/app/immutable/chunks/l1lBFBJz.js","/app/immutable/chunks/Che-KvdU.js","/app/immutable/chunks/CzDPvHAo.js","/app/immutable/chunks/C5b7nimj.js","/app/immutable/chunks/D5Pfy-wQ.js","/app/immutable/chunks/DiMo2JnB.js","/app/immutable/chunks/DgKpR9KC.js","/app/immutable/chunks/44rP4fzJ.js","/app/immutable/chunks/CNnF3Cms.js"])))=>i.map(i=>d[i]);
2
+ var lC=Object.defineProperty;var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xr=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r);import{_ as Ve,t as Oo,bo as He,bm as je,bw as Do,b as Ro,bp as hC}from"./Dws-34a7.js";import{g as dC}from"./BdWqymET.js";import{aR as bs}from"./DtFzaymP.js";import{b7 as uC,cc as fC,bs as No,a7 as Ko,ay as ui,aD as L,bS as We,be as en,b$ as rl,b_ as cr,bO as br,W as ge,c9 as Dt,bn as qo,aA as Be,aB as ar,bk as hd,bH as gt,ca as Bo,c5 as pl,a5 as qe,bA as $e,bV as ce,bl as Tr,c0 as Th,aC as pi,aw as ml,a as Wu,bj as Np,br as wi,cb as gC,bf as pC}from"./3SdAC2_C.js";import{i as yr}from"./DLCFUd4s.js";import{h as zu}from"./BKD7o1lQ.js";import{f as co,s as fe,b as qp,c as Wp,g as Xa}from"./BD9db4FR.js";import{b as no}from"./Dn334wJv.js";import{c as mC}from"./ChTqQfQN.js";import{d4 as yC,cW as xC,F as dn,aM as bC,bb as zp,m as CC,n as wC,f as kC,j as SC,y as Hu,v as Yu,h as vC,u as MC,P as TC,s as BC,O as _C,r as LC,k as AC,D as Xu,H as FC,U as $C,ax as EC,ay as PC,aY as IC}from"./CGYPBD6G.js";import{f as Ja,ae as OC}from"./BIGqOuh0.js";import"./BPuz5cN_.js";import{M as DC,Z as RC}from"./Cq_jjcoF.js";import{p as rn,h as NC,d as qC,S as WC,e as zC,g as ya,i as ju}from"./C-zB-6G6.js";import{c as HC}from"./BbIcudMY.js";import{k as Hp}from"./5-0LQoqd.js";import{n as To,h as Gu,t as Is,d as Uu}from"./Bc1vJq_Z.js";import{c as fa}from"./B5tvpTFB.js";import{e as YC}from"./h8JtxU_T.js";import{t as XC}from"./DAsc1V4f.js";import{t as il}from"./D-rRuAXZ.js";import{H as jC}from"./B_75gRww.js";import{s as Vu,a as GC}from"./BsieX9dN.js";import{l as UC,K as VC,d as ZC,e as Cc,M as KC}from"./jBG7W4tL.js";import"./DWa-2rkZ.js";import{u as wo}from"./rXKOJqUt.js";import"./DcOkWaeN.js";import"./4g_iHoQm.js";import{bK as QC}from"./DN-DN78v.js";function JC(e,t){uC(window,["resize"],()=>fC(()=>t(window[e])))}var Yp=Object.defineProperty,C=(e,t)=>Yp(e,"name",{value:t,configurable:!0}),t2=(e,t)=>{for(var r in t)Yp(e,r,{get:t[r],enumerable:!0})};function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Xp,"getDefaultExportFromCjs");var ei={},Pn={},Xo={},Zu;function Ts(){if(Zu)return Xo;Zu=1;function e(s){return typeof s>"u"||s===null}C(e,"isNothing");function t(s){return typeof s=="object"&&s!==null}C(t,"isObject");function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}C(r,"toArray");function i(s,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const d=l[c];s[d]=n[d]}}return s}C(i,"extend");function o(s,n){let l="";for(let c=0;c<n;c+=1)l+=s;return l}C(o,"repeat");function a(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return C(a,"isNegativeZero"),Xo.isNothing=e,Xo.isObject=t,Xo.toArray=r,Xo.repeat=o,Xo.isNegativeZero=a,Xo.extend=i,Xo}C(Ts,"requireCommon");var wc,Ku;function Bs(){if(Ku)return wc;Ku=1;function e(r,i){let o="";const a=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(o+='in "'+r.mark.name+'" '),o+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(o+=`
3
3
 
4
4
  `+r.mark.snippet),a+" "+o):a}C(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return C(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=C(function(i){return this.name+": "+e(this,i)},"toString"),wc=t,wc}C(Bs,"requireException");var kc,Qu;function jp(){if(Qu)return kc;Qu=1;const e=Ts();function t(o,a,s,n,l){let c="",h="";const d=Math.floor(l/2)-1;return n-a>d&&(c=" ... ",a=n-d+c.length),s-n>d&&(h=" ...",s=n+d-h.length),{str:c+o.slice(a,s).replace(/\t/g,"→")+h,pos:n-a+c.length}}C(t,"getLine");function r(o,a){return e.repeat(" ",a-o.length)+o}C(r,"padStart");function i(o,a){if(a=Object.create(a||null),!o.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);const s=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=s.exec(o.buffer);)l.push(c.index),n.push(c.index+c[0].length),o.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let d="";const u=Math.min(o.line+a.linesAfter,l.length).toString().length,f=a.maxLength-(a.indent+u+3);for(let p=1;p<=a.linesBefore&&!(h-p<0);p++){const m=t(o.buffer,n[h-p],l[h-p],o.position-(n[h]-n[h-p]),f);d=e.repeat(" ",a.indent)+r((o.line-p+1).toString(),u)+" | "+m.str+`
5
5
  `+d}const g=t(o.buffer,n[h],l[h],o.position,f);d+=e.repeat(" ",a.indent)+r((o.line+1).toString(),u)+" | "+g.str+`
@@ -298,8 +298,8 @@ ${a.join(`
298
298
  L0,20`)},"requirement_arrow"),lL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
299
299
  L20,10
300
300
  M20,10
301
- L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./BcEkxi5l.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./vdylZNCS.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./DGVdJiQ7.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./CWTUGfLW.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var AP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",FP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,A=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(A,d-1)==58?(x++,A+="("):A+=hh(b);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){A+=hn(b);break}A+=FL(g);break;case 92:A+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(A)&&ks(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*p:n[c++]=oo(A)*y;case 125*p:case 59:case 0:if(x>0&&b){A+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(A=ed(A,/\f/g,"")),f>0&&(oo(A)-d||p===0)&&jn(f>32?sp(A+";",i,r,d-1,l):sp(ed(A," ","")+";",i,r,d-2,l),l);break;case 59:A+=";";default:if(jn(_=ap(A,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(A,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(A,3)===110)break;case 108:if(is(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(A,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=A="",d=s;break;case 58:d=1+oo(A),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(A+=hn(b),b*p){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(A)-1)*y,y=1;break;case 64:Vo()===45&&(A+=hh(ji())),u=Vo(),h=d=oo(S=A+=PL(fl())),b++;break;case 45:g===45&&oo(A)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DlWS0XX3.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BoIbJp9v.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dx3P5K2z.js");return{diagram:t}},__vite__mapDeps([53,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BT8hDSo1.js");return{diagram:t}},__vite__mapDeps([54,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CVU_1O7c.js");return{diagram:t}},__vite__mapDeps([55,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C3gIkQxX.js");return{diagram:t}},__vite__mapDeps([56,57,58,59,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DnLmeVJZ.js");return{diagram:t}},__vite__mapDeps([60,6,61]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CE9_m5Rd.js");return{diagram:t}},__vite__mapDeps([62,59,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BvzO6hxM.js");return{diagram:t}},__vite__mapDeps([63,58,59,3,4,61]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./40W1U6K5.js");return{diagram:t}},__vite__mapDeps([64,61]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DtyEiVnc.js");return{diagram:t}},__vite__mapDeps([65,61]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DyZa5hX5.js");return{diagram:t}},__vite__mapDeps([66,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DErxk4N4.js");return{diagram:t}},__vite__mapDeps([67,57,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BYLCAn5f.js");return{diagram:t}},__vite__mapDeps([68,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./hYcAQyax.js");return{diagram:t}},__vite__mapDeps([69,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cnl_O3ZO.js");return{diagram:t}},__vite__mapDeps([70,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
302
- `);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BoIbJp9v.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D5Tu5Sg8.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./B6QnBRPC.js");return{diagram:t}},__vite__mapDeps([71,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BORk03Sd.js");return{diagram:t}},__vite__mapDeps([72,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DmhHa5tp.js");return{diagram:t}},__vite__mapDeps([73,61]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./vyUklWDK.js");return{diagram:t}},__vite__mapDeps([74,58,59,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DR6M_MBd.js");return{diagram:t}},__vite__mapDeps([75,58,59,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CsyhqW-P.js");return{diagram:t}},__vite__mapDeps([76,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bi-y50ry.js");return{diagram:t}},__vite__mapDeps([77,57,58,59,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./e9nNeD_8.js");return{diagram:t}},__vite__mapDeps([78,58,59,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BxU4EAMe.js");return{diagram:t}},__vite__mapDeps([79,58,59,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BCLFORRd.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DHf7N1bI.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BP1fPIN6.js");return{diagram:t}},__vite__mapDeps([80,16,58,59,3,4,61]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./2zSj5_GV.js");return{diagram:t}},__vite__mapDeps([81,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cr5QjekU.js");return{diagram:t}},__vite__mapDeps([82,58,59,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Bt_vaAcw.js");return{diagram:t}},__vite__mapDeps([83,58,59,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./L7Esr5Id.js");return{diagram:t}},__vite__mapDeps([84,85,58,59,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cbb4o3qj.js");return{diagram:t}},__vite__mapDeps([86,85,58,59,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BBYtaKSX.js");return{diagram:t}},__vite__mapDeps([87,85,58,59,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./tuKjkgzS.js");return{diagram:t}},__vite__mapDeps([88,85,58,59,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
301
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),cL=C((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hL=C((e,t,r)=>{const i=Ar(),{themeVariables:o}=i,{strokeWidth:a}=o,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${a}`)},"requirement_contains_neo"),dL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),uL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),fL=C((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",r+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),gL={extension:H_,composition:Y_,aggregation:X_,dependency:j_,lollipop:G_,point:U_,circle:V_,cross:Z_,barb:K_,barbNeo:Q_,hierarchy:dL,only_one:J_,zero_or_one:tL,one_or_more:eL,zero_or_more:rL,only_one_neo:iL,zero_or_one_neo:oL,one_or_more_neo:aL,zero_or_more_neo:sL,requirement_arrow:nL,requirement_contains:cL,requirement_arrow_neo:lL,requirement_contains_neo:hL,openArrow:uL,hollowCircle:fL},pL=z_,mL={common:kn,getConfig:Ar,insertCluster:UB,insertEdge:W_,insertEdgeLabel:E_,insertMarkers:pL,insertNode:eb,interpolateToCurve:Vd,labelHelper:he,log:Lt,positionEdgeLabel:I_},yL=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],mn=Object.create(null),Cb=C(e=>{for(const t of e)mn[t.name]=t},"registerLayoutLoaders"),xL=C(()=>{const e=C(async()=>await Ve(()=>import("./xGzY0FqC.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...yL.map(t=>({name:t,loader:e,algorithm:t}))]},"elkLayoutLoaders"),bL=C(()=>{Cb([{name:"dagre",loader:C(async()=>await Ve(()=>import("./BWzMAxc1.js"),__vite__mapDeps([7,2,3,4,5]),import.meta.url),"loader")},{name:"swimlane",loader:C(async()=>await Ve(()=>import("./CmyBYYR3.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url),"loader")},{name:"cose-bilkent",loader:C(async()=>await Ve(()=>import("./BNV0s95-.js"),__vite__mapDeps([9,10,6]),import.meta.url),"loader")},...xL()])},"registerDefaultLayoutLoaders");bL();var AP=C(async(e,t)=>{if(!Object.hasOwn(mn,e.layoutAlgorithm))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const a of e.nodes){const s=a.domId||a.id;a.domId=`${e.diagramId}-${s}`}const r=mn[e.layoutAlgorithm],i=await r.loader();a2(t,e.config);const o=await i.render(e,t,mL,{algorithm:r.algorithm});return B_(t.node()),o},"render"),ch="dagre",FP=C((e="",{fallback:t=ch}={})=>{if(Object.hasOwn(mn,e))return e;for(const r of[t,ch])if(Object.hasOwn(mn,r))return Lt.warn(`Layout algorithm ${e} is not registered. Using ${r} as fallback.`),r;throw new Error(`Neither layout algorithm ${e}, ${t}, nor ${ch} is registered.`)},"getRegisteredLayoutAlgorithm"),CL=C(e=>{const{securityLevel:t}=Ge();let r=Ye("body");if(t==="sandbox"){const a=Ye(`#i${e}`).node()?.contentDocument??document;r=Ye(a.body)}return r.select(`#${e}`)},"selectSvgElement"),ku="comm",wb="rule",kb="decl",wL="@media",kL="@import",SL="@supports",vL="@namespace",td="@keyframes",Sb="@layer",ML="@scope",TL=Math.abs,hn=String.fromCharCode;function vb(e){return e.trim()}function ed(e,t,r){return e.replace(t,r)}function is(e,t){return e.charCodeAt(t)|0}function ks(e,t,r){return e.slice(t,r)}function oo(e){return e.length}function Mb(e){return e.length}function jn(e,t){return t.push(e),e}var cc=1,Ss=1,Tb=0,Ii=0,qr=0,Fs="";function Su(e,t,r,i,o,a,s,n){return{value:e,root:t,parent:r,type:i,props:o,children:a,line:cc,column:Ss,length:s,return:"",siblings:n}}function BL(){return qr}function _L(){return qr=Ii>0?is(Fs,--Ii):0,Ss--,qr===10&&(Ss=1,cc--),qr}function ji(){return qr=Ii<Tb?is(Fs,Ii++):0,Ss++,qr===10&&(Ss=1,cc++),qr}function Vo(){return is(Fs,Ii)}function fl(){return Ii}function hc(e,t){return ks(Fs,e,t)}function yn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LL(e){return cc=Ss=1,Tb=oo(Fs=e),Ii=0,[]}function AL(e){return Fs="",e}function hh(e){return vb(hc(Ii-1,rd(e===91?e+2:e===40?e+1:e)))}function FL(e){for(;(qr=Vo())&&qr<33;)ji();return yn(e)>2||yn(qr)>3?"":" "}function $L(e,t){for(;--t&&ji()&&!(qr<48||qr>102||qr>57&&qr<65||qr>70&&qr<97););return hc(e,fl()+(t<6&&Vo()==32&&ji()==32))}function rd(e){for(;ji();)switch(qr){case e:return Ii;case 34:case 39:e!==34&&e!==39&&rd(qr);break;case 40:e===41&&rd(e);break;case 92:ji();break}return Ii}function EL(e,t){for(;ji()&&e+qr!==57;)if(e+qr===84&&Vo()===47)break;return"/*"+hc(t,Ii-1)+"*"+hn(e===47?e:ji())}function PL(e){for(;!yn(Vo());)ji();return hc(e,Ii)}function IL(e){return AL(gl("",null,null,null,[""],e=LL(e),0,[0],e))}function gl(e,t,r,i,o,a,s,n,l){for(var c=0,h=0,d=s,u=0,f=0,g=0,p=1,m=1,y=1,x=0,b=0,S="",T=o,k=a,_=i,A=S;m;)switch(g=b,b=ji()){case 40:g!=108&&is(A,d-1)==58?(x++,A+="("):A+=hh(b);break;case 41:x--,A+=")";break;case 34:case 39:case 91:A+=hh(b);break;case 9:case 10:case 13:case 32:if(x>0){A+=hn(b);break}A+=FL(g);break;case 92:A+=$L(fl()-1,7);continue;case 47:switch(Vo()){case 42:case 47:jn(OL(EL(ji(),fl()),t,r,l),l),(yn(g||1)==5||yn(Vo()||1)==5)&&oo(A)&&ks(A,-1,void 0)!==" "&&(A+=" ");break;default:A+="/"}break;case 123*p:n[c++]=oo(A)*y;case 125*p:case 59:case 0:if(x>0&&b){A+=hn(b);break}switch(b){case 0:case 125:m=0;case 59+h:y==-1&&(A=ed(A,/\f/g,"")),f>0&&(oo(A)-d||p===0)&&jn(f>32?sp(A+";",i,r,d-1,l):sp(ed(A," ","")+";",i,r,d-2,l),l);break;case 59:A+=";";default:if(jn(_=ap(A,t,r,c,h,o,n,S,T=[],k=[],d,a),a),b===123)if(h===0)gl(A,t,_,_,T,a,d,n,k);else{switch(u){case 99:if(is(A,3)===110)break;case 108:if(is(A,2)===97)break;default:h=0;case 100:case 109:case 115:}h?gl(e,_,_,i&&jn(ap(e,_,_,0,0,o,n,S,o,T=[],d,k),k),o,k,d,n,i?T:k):gl(A,_,_,_,[""],k,0,n,k)}}c=h=f=0,p=y=1,S=A="",d=s;break;case 58:d=1+oo(A),f=g;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&_L()==125)continue}switch(A+=hn(b),b*p){case 38:y=h>0?1:(A+="\f",-1);break;case 44:if(x>0)break;n[c++]=(oo(A)-1)*y,y=1;break;case 64:Vo()===45&&(A+=hh(ji())),u=Vo(),h=d=oo(S=A+=PL(fl())),b++;break;case 45:g===45&&oo(A)==2&&(p=0)}}return a}function ap(e,t,r,i,o,a,s,n,l,c,h,d){for(var u=o-1,f=o===0?a:[""],g=Mb(f),p=0,m=0,y=0;p<i;++p)for(var x=0,b=ks(e,u+1,u=TL(m=s[p])),S=e;x<g;++x)(S=vb(m>0?f[x]+" "+b:ed(b,/&\f/g,f[x])))&&(l[y++]=S);return Su(e,t,r,o===0?wb:n,l,c,h,d)}function OL(e,t,r,i){return Su(e,t,r,ku,hn(BL()),ks(e,2,-2),0,i)}function sp(e,t,r,i,o){return Su(e,t,r,kb,ks(e,0,i),ks(e,i+1,-1),i,o)}function id(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function DL(e,t,r,i){switch(e.type){case Sb:if(e.children.length)break;case kL:case vL:case kb:return e.return=e.return||e.value;case ku:return"";case td:return e.return=e.value+"{"+id(e.children,i)+"}";case wb:if(!oo(e.value=e.props.join(",")))return""}return oo(r=id(e.children,i))?e.return=e.value+"{"+r+"}":""}function RL(e){var t=Mb(e);return function(r,i,o,a){for(var s="",n=0;n<t;n++)s+=e[n](r,i,o,a)||"";return s}}var Bb="c4",NL=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),qL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DVwMeV9X.js");return{diagram:t}},__vite__mapDeps([11,12]),import.meta.url);return{id:Bb,diagram:e}},"loader"),WL={id:Bb,detector:NL,loader:qL},zL=WL,_b="flowchart-v2",HL=C(e=>/^\s*(graph|flowchart)/.test(e),"detector"),YL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DRsDUO-4.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:_b,diagram:e}},"loader"),XL={id:_b,detector:HL,loader:YL},jL=XL,Lb="agentflow",GL=C(e=>/^\s*agentflow-beta\b/.test(e),"detector"),UL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cl_O0hHI.js");return{diagram:t}},__vite__mapDeps([53,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Lb,diagram:e}},"loader"),VL={id:Lb,detector:GL,loader:UL},ZL=VL,Ab="swimlane",KL=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),QL=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C37ZqG4e.js");return{diagram:t}},__vite__mapDeps([54,13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Ab,diagram:e}},"loader"),JL={id:Ab,detector:KL,loader:QL},tA=JL,Fb="er",eA=C(e=>/^\s*erDiagram/.test(e),"detector"),rA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DzG7lmwB.js");return{diagram:t}},__vite__mapDeps([55,15,16]),import.meta.url);return{id:Fb,diagram:e}},"loader"),iA={id:Fb,detector:eA,loader:rA},oA=iA,$b="gitGraph",aA=C(e=>/^\s*gitGraph/.test(e),"detector"),sA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./LgyvMkc8.js");return{diagram:t}},__vite__mapDeps([56,57,58,59,3,4]),import.meta.url);return{id:$b,diagram:e}},"loader"),nA={id:$b,detector:aA,loader:sA},lA=nA,Eb="gantt",cA=C(e=>/^\s*gantt/.test(e),"detector"),hA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DmCKwthV.js");return{diagram:t}},__vite__mapDeps([60,6,61]),import.meta.url);return{id:Eb,diagram:e}},"loader"),dA={id:Eb,detector:cA,loader:hA},uA=dA,Pb="info",fA=C(e=>/^\s*info/.test(e),"detector"),gA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./V6efYFFY.js");return{diagram:t}},__vite__mapDeps([62,59,3,4]),import.meta.url);return{id:Pb,diagram:e}},"loader"),pA={id:Pb,detector:fA,loader:gA},Ib="pie",mA=C(e=>/^\s*pie/.test(e),"detector"),yA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CXpEvkVR.js");return{diagram:t}},__vite__mapDeps([63,58,59,3,4,61]),import.meta.url);return{id:Ib,diagram:e}},"loader"),xA={id:Ib,detector:mA,loader:yA},Ob="quadrantChart",bA=C(e=>/^\s*quadrantChart/.test(e),"detector"),CA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CNE5cVvC.js");return{diagram:t}},__vite__mapDeps([64,61]),import.meta.url);return{id:Ob,diagram:e}},"loader"),wA={id:Ob,detector:bA,loader:CA},kA=wA,Db="xychart",SA=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),vA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Dqd75Edx.js");return{diagram:t}},__vite__mapDeps([65,61]),import.meta.url);return{id:Db,diagram:e}},"loader"),MA={id:Db,detector:SA,loader:vA},TA=MA,Rb="requirement",BA=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),_A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Cv0wEzuo.js");return{diagram:t}},__vite__mapDeps([66,15,16]),import.meta.url);return{id:Rb,diagram:e}},"loader"),LA={id:Rb,detector:BA,loader:_A},AA=LA,Nb="sequence",FA=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),$A=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CUsqN2sK.js");return{diagram:t}},__vite__mapDeps([67,57,12]),import.meta.url);return{id:Nb,diagram:e}},"loader"),EA={id:Nb,detector:FA,loader:$A},PA=EA,qb="classDiagram",IA=C(e=>/^\s*classDiagram/.test(e),"detector"),OA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CpFDUMBH.js");return{diagram:t}},__vite__mapDeps([68,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:qb,diagram:e}},"loader"),DA={id:qb,detector:IA,loader:OA},RA=DA,Wb="stateDiagram",NA=C(e=>/^\s*stateDiagram/.test(e),"detector"),qA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D-KE4WZ3.js");return{diagram:t}},__vite__mapDeps([69,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Wb,diagram:e}},"loader"),WA={id:Wb,detector:NA,loader:qA},zA=WA,zb="journey",HA=C(e=>/^\s*journey/.test(e),"detector"),YA=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BYl8t9od.js");return{diagram:t}},__vite__mapDeps([70,14,12]),import.meta.url);return{id:zb,diagram:e}},"loader"),XA={id:zb,detector:HA,loader:YA},jA=XA,Gn=4,Hs=75,GA=C(e=>{const t=[];for(const o of e.split(/\s+/)){let a=[...o];for(;a.length>Hs;)t.push(a.slice(0,Hs).join("")),a=a.slice(Hs);a.length>0&&t.push(a.join(""))}const r=[];let i="";for(const o of t){const a=i?`${i} ${o}`:o;[...a].length>Hs?(r.push(i),i=o):i=a}if(i&&r.push(i),r.length>Gn){r.length=Gn;const o=r[Gn-1]??"";r[Gn-1]=`${[...o].slice(0,Hs-3).join("")}...`}return r},"wrapErrorMessage"),UA=C((e,t,r,i)=>{Lt.debug(`rendering svg for syntax error
302
+ `);const o=CL(t),a=o.append("g"),s=GA(i?.db.getErrorMessage?.()??""),n=s.length>0?500+s.length*56:512;o.attr("viewBox",`0 0 2412 ${n}`),um(o,100,n,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`),s.forEach((l,c)=>{a.append("text").attr("class","error-text").attr("x",1440).attr("y",510+c*56).attr("font-size","42px").style("text-anchor","middle").text(l)})},"draw"),Hb={draw:UA},VA=Hb,dh,ZA={clear(){dh=void 0},setErrorMessage(e){dh=e},getErrorMessage(){return dh}},KA={db:ZA,renderer:Hb,parser:{parse:C(()=>{},"parse")}},QA=KA,Yb="flowchart-elk",JA=C((e,t={})=>/^\s*flowchart-elk/.test(e)?(t.layout="elk",!0):!1,"detector"),t5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DRsDUO-4.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([13,14,15,16,12,17,18,19,20,3,4,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,43,44,45,46,47,48,49,50,51,52]),import.meta.url);return{id:Yb,diagram:e}},"loader"),e5={id:Yb,detector:JA,loader:t5},r5=e5,Xb="timeline",i5=C(e=>/^\s*timeline/.test(e),"detector"),o5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./e2ymG0j7.js");return{diagram:t}},[],import.meta.url);return{id:Xb,diagram:e}},"loader"),a5={id:Xb,detector:i5,loader:o5},s5=a5,jb="mindmap",n5=C(e=>/^\s*mindmap/.test(e),"detector"),l5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DBH_GMOZ.js");return{diagram:t}},__vite__mapDeps([71,15,16]),import.meta.url);return{id:jb,diagram:e}},"loader"),c5={id:jb,detector:n5,loader:l5},h5=c5,Gb="kanban",d5=C(e=>/^\s*kanban/.test(e),"detector"),u5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./e3_wv2e_.js");return{diagram:t}},__vite__mapDeps([72,14]),import.meta.url);return{id:Gb,diagram:e}},"loader"),f5={id:Gb,detector:d5,loader:u5},g5=f5,Ub="sankey",p5=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),m5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./iPHmrqbo.js");return{diagram:t}},__vite__mapDeps([73,61]),import.meta.url);return{id:Ub,diagram:e}},"loader"),y5={id:Ub,detector:p5,loader:m5},x5=y5,Vb="packet",b5=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),C5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Q2C1NT93.js");return{diagram:t}},__vite__mapDeps([74,58,59,3,4]),import.meta.url);return{id:Vb,diagram:e}},"loader"),w5={id:Vb,detector:b5,loader:C5},Zb="radar",k5=C(e=>/^\s*radar-beta/.test(e),"detector"),S5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BzSCTZkL.js");return{diagram:t}},__vite__mapDeps([75,58,59,3,4]),import.meta.url);return{id:Zb,diagram:e}},"loader"),v5={id:Zb,detector:k5,loader:S5},Kb="block",M5=C(e=>/^\s*block(-beta)?/.test(e),"detector"),T5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DZmGZ5am.js");return{diagram:t}},__vite__mapDeps([76,14,5]),import.meta.url);return{id:Kb,diagram:e}},"loader"),B5={id:Kb,detector:M5,loader:T5},_5=B5,Qb="treeView",L5=C(e=>/^\s*treeView-beta/.test(e),"detector"),A5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./M1XBe23f.js");return{diagram:t}},__vite__mapDeps([77,57,58,59,3,4]),import.meta.url);return{id:Qb,diagram:e}},"loader"),F5={id:Qb,detector:L5,loader:A5},$5=F5,Jb="architecture",E5=C(e=>/^\s*architecture/.test(e),"detector"),P5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DhXcDqZX.js");return{diagram:t}},__vite__mapDeps([78,58,59,3,4,10,6]),import.meta.url);return{id:Jb,diagram:e}},"loader"),I5={id:Jb,detector:E5,loader:P5},O5=I5,t1="eventmodeling",D5=C(e=>/^\s*eventmodeling/.test(e),"detector"),R5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./BQ53265L.js");return{diagram:t}},__vite__mapDeps([79,58,59,3,4]),import.meta.url);return{id:t1,diagram:e}},"loader"),N5={id:t1,detector:D5,loader:R5},q5=N5,e1="ishikawa",W5=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),z5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CN-EAu8o.js");return{diagram:t}},[],import.meta.url);return{id:e1,diagram:e}},"loader"),H5={id:e1,detector:W5,loader:z5},r1="venn",Y5=C(e=>/^\s*venn-beta/.test(e),"detector"),X5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./n5-dpvss.js");return{diagram:t}},[],import.meta.url);return{id:r1,diagram:e}},"loader"),j5={id:r1,detector:Y5,loader:X5},G5=j5,i1="treemap",U5=C(e=>/^\s*treemap/.test(e),"detector"),V5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./l1lBFBJz.js");return{diagram:t}},__vite__mapDeps([80,16,58,59,3,4,61]),import.meta.url);return{id:i1,diagram:e}},"loader"),Z5={id:i1,detector:U5,loader:V5},o1="usecase",K5=C(e=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),Q5=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./Che-KvdU.js");return{diagram:t}},__vite__mapDeps([81,15,16]),import.meta.url);return{id:o1,diagram:e}},"loader"),J5={id:o1,detector:K5,loader:Q5},a1="wardley",tF=C(e=>/^\s*wardley-beta/i.test(e),"detector"),eF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CzDPvHAo.js");return{diagram:t}},__vite__mapDeps([82,58,59,3,4]),import.meta.url);return{id:a1,diagram:e}},"loader"),rF={id:a1,detector:tF,loader:eF},iF=rF,s1="cynefin",oF=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),aF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./C5b7nimj.js");return{diagram:t}},__vite__mapDeps([83,58,59,3,4]),import.meta.url);return{id:s1,diagram:e}},"loader"),sF={id:s1,detector:oF,loader:aF},n1="railroad",nF=C(e=>/^\s*railroad-beta/i.test(e),"detector"),lF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./D5Pfy-wQ.js");return{diagram:t}},__vite__mapDeps([84,85,58,59,3,4]),import.meta.url);return{id:n1,diagram:e}},"loader"),cF={id:n1,detector:nF,loader:lF},l1="railroadEbnf",hF=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),dF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./DgKpR9KC.js");return{diagram:t}},__vite__mapDeps([86,85,58,59,3,4]),import.meta.url);return{id:l1,diagram:e}},"loader"),uF={id:l1,detector:hF,loader:dF},c1="railroadAbnf",fF=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),gF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./44rP4fzJ.js");return{diagram:t}},__vite__mapDeps([87,85,58,59,3,4]),import.meta.url);return{id:c1,diagram:e}},"loader"),pF={id:c1,detector:fF,loader:gF},h1="railroadPeg",mF=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),yF=C(async()=>{const{diagram:e}=await Ve(async()=>{const{diagram:t}=await import("./CNnF3Cms.js");return{diagram:t}},__vite__mapDeps([88,85,58,59,3,4]),import.meta.url);return{id:h1,diagram:e}},"loader"),xF={id:h1,detector:mF,loader:yF},np=!1,dc=C(()=>{np||(np=!0,Sl("error",QA,e=>e.toLowerCase().trim()==="error"),Sl("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bh(r5,h5,O5),Bh(ZL,zL,g5,RA,oA,uA,pA,xA,AA,PA,tA,jL,s5,lA,zA,jA,kA,x5,w5,TA,_5,q5,$5,v5,H5,Z5,cF,uF,pF,xF,G5,iF,sF,J5))},"addDiagrams"),bF=C(async()=>{Lt.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Ta).map(async([r,{detector:i,loader:o}])=>{if(o)try{$h(r)}catch{try{const{diagram:a,id:s}=await o();Sl(s,a,i)}catch(a){throw Lt.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ta[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){Lt.error(`Failed to load ${t.length} external diagrams`);for(const r of t)Lt.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),CF="graphics-document document";function d1(e,t){e.attr("role",CF),t!==""&&e.attr("aria-roledescription",t)}C(d1,"setA11yDiagramInfo");function u1(e,t,r,i){if(e.insert!==void 0){if(r){const o=`chart-desc-${i}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${i}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}C(u1,"addSVGa11yTitleDescription");var Ma,Xl=(Ma=class{constructor(t,r,i,o,a){this.type=t,this.text=r,this.db=i,this.parser=o,this.renderer=a}static async fromText(t,r={}){const i=typeof t=="string"?{cleaned:t}:t,o=Ar(),a=Zl(i.cleaned,o);try{$h(a)}catch{const u=C2(a);if(!u)throw new Jp(`Diagram ${a} not found.`);const{id:f,diagram:g}=await u();Sl(f,g)}const{db:s,parser:n,renderer:l,init:c}=$h(a);n.parser&&(n.parser.yy=s),s.clear?.(),c?.(o),r.title&&s.setDiagramTitle?.(r.title);let h=i.cleaned;if(s.preserveCommentsWhenParsing&&i.withComments){const u=o.maxTextSize??Ld.maxTextSize;i.withComments.length>u?Lt.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${u}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`):h=i.withComments}const d=TM(h)+`
303
303
  `;return i.frontmatterLineOffset&&s.setFrontmatterLineOffset?.(i.frontmatterLineOffset),await n.parse(d),new Ma(a,d,s,n,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Ma,"Diagram"),Ma),lp=[],wF=C(()=>{lp.forEach(e=>{e()}),lp=[]},"attachFunctions"),kF=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f1(e){const t=Qp(e);if(!t)return{text:e,metadata:{}};const r=t.indent,i=r?t.body.split(`
304
304
  `).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
305
305
  `):t.body;let o=o2(i,{schema:i2})??{};o=typeof o=="object"&&!Array.isArray(o)?o:{};const a={};return o.displayMode&&(a.displayMode=o.displayMode.toString()),o.title&&(a.title=o.title.toString()),o.config&&(a.config=o.config),{text:e.slice(t.length),metadata:a}}C(f1,"extractFrontMatter");var SF=C(e=>e.replace(/\r\n?/g,`