@intent-hq/web 2.361.2 → 2.361.3

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 (175) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/-5BGDZDk.js +32 -0
  3. package/web/app/immutable/chunks/{CGINFMqT.js → -HqAs4SX.js} +1 -1
  4. package/web/app/immutable/chunks/{D5kZvSPC.js → -kGF-zOh.js} +1 -1
  5. package/web/app/immutable/chunks/{6d4Jv8Hz.js → 0PJnSjrq.js} +2 -2
  6. package/web/app/immutable/chunks/{DC3pczce.js → 6XxQdgFC.js} +1 -1
  7. package/web/app/immutable/chunks/{D1FSU9Gk.js → 9b_Os5fY.js} +1 -1
  8. package/web/app/immutable/chunks/{As8lK70V.js → 9n20zLe0.js} +1 -1
  9. package/web/app/immutable/chunks/{CpY-WDD9.js → B0Zr6q55.js} +1 -1
  10. package/web/app/immutable/chunks/{7tcI69cn.js → B2IYt4Eb.js} +1 -1
  11. package/web/app/immutable/chunks/{dGnsWF4N.js → B4M3z6rE.js} +1 -1
  12. package/web/app/immutable/chunks/{BGOuxFsr.js → B5oNMyyY.js} +1 -1
  13. package/web/app/immutable/chunks/{DOjUJ8i8.js → B61qyrBq.js} +1 -1
  14. package/web/app/immutable/chunks/{AxCVH26S.js → B8p2cYc_.js} +1 -1
  15. package/web/app/immutable/chunks/{B2ns9OTA.js → B9WaAaiK.js} +1 -1
  16. package/web/app/immutable/chunks/{8HLudOb-.js → BA6gfA7a.js} +1 -1
  17. package/web/app/immutable/chunks/{Cq8fk3CH.js → BA8yVm-p.js} +1 -1
  18. package/web/app/immutable/chunks/{Bx_nP_MK.js → BC8in_Uv.js} +1 -1
  19. package/web/app/immutable/chunks/{C_z20mJT.js → BCfq8Fz_.js} +1 -1
  20. package/web/app/immutable/chunks/{DsCJG1hb.js → BD7zp6rB.js} +1 -1
  21. package/web/app/immutable/chunks/{B4kCZd9W.js → BDJ7r_mr.js} +1 -1
  22. package/web/app/immutable/chunks/{CjorBqRt.js → BDk-prCr.js} +1 -1
  23. package/web/app/immutable/chunks/{BeLtysng.js → BFfD2hCV.js} +1 -1
  24. package/web/app/immutable/chunks/{buVzC4lf.js → BN7DTISb.js} +1 -1
  25. package/web/app/immutable/chunks/{QWfAA7k-.js → BPsUIxHc.js} +1 -1
  26. package/web/app/immutable/chunks/{DAwOD17b.js → BQQo4uEb.js} +1 -1
  27. package/web/app/immutable/chunks/{CpHAR9_T.js → BRMpz8OI.js} +1 -1
  28. package/web/app/immutable/chunks/{DHbwKi-E.js → BX7U0hos.js} +2 -2
  29. package/web/app/immutable/chunks/{BOSMtVmb.js → BXV9Yk-8.js} +1 -1
  30. package/web/app/immutable/chunks/{1EW4b83o.js → BZgSCYyO.js} +1 -1
  31. package/web/app/immutable/chunks/{DlBKZ9jQ.js → B_VZNBPj.js} +2 -2
  32. package/web/app/immutable/chunks/BaGrEyO7.js +1 -0
  33. package/web/app/immutable/chunks/{BTR14c-t.js → BbUJvzh9.js} +3 -3
  34. package/web/app/immutable/chunks/{CsqD9xz6.js → BcLoDKLg.js} +2 -2
  35. package/web/app/immutable/chunks/{CkVsI2Jc.js → BdJDtk-i.js} +1 -1
  36. package/web/app/immutable/chunks/BeF36lmB.js +3 -0
  37. package/web/app/immutable/chunks/{Bhx5E4sN.js → BjEuTkmJ.js} +1 -1
  38. package/web/app/immutable/chunks/{B5Pg9_MZ.js → BlL4snZb.js} +1 -1
  39. package/web/app/immutable/chunks/{CuGN_Lgy.js → Bm01ytIS.js} +1 -1
  40. package/web/app/immutable/chunks/{Byj6QL5F.js → BmYxgQYl.js} +1 -1
  41. package/web/app/immutable/chunks/{cU6Fqv3g.js → Br2374tC.js} +1 -1
  42. package/web/app/immutable/chunks/{C9otdzZM.js → BrNYPcY3.js} +4 -4
  43. package/web/app/immutable/chunks/{P-joxIX5.js → BuqbrxB1.js} +1 -1
  44. package/web/app/immutable/chunks/{52-_4pXR.js → BwKqt4sw.js} +1 -1
  45. package/web/app/immutable/chunks/{BKw6wLyE.js → Byrb39B5.js} +1 -1
  46. package/web/app/immutable/chunks/{Cb4s3Dt_.js → C-pqKaCQ.js} +4 -4
  47. package/web/app/immutable/chunks/{c1DCm8IK.js → C0Be7Tc_.js} +1 -1
  48. package/web/app/immutable/chunks/{t94_2IkW.js → C4WAGAfI.js} +1 -1
  49. package/web/app/immutable/chunks/{DVlYg0SZ.js → C6jHCE8G.js} +4 -4
  50. package/web/app/immutable/chunks/{OiHDtgNp.js → CAi2riH4.js} +1 -1
  51. package/web/app/immutable/chunks/{DHBQy6St.js → CHFWhULQ.js} +1 -1
  52. package/web/app/immutable/chunks/{D00mCTUs.js → CI9dMB_b.js} +2 -2
  53. package/web/app/immutable/chunks/{B9tRD7MQ.js → CIrv4K8l.js} +1 -1
  54. package/web/app/immutable/chunks/{DaHbZjgp.js → CK3bnTgZ.js} +1 -1
  55. package/web/app/immutable/chunks/{C4qqiNcA.js → CNDY58le.js} +6 -6
  56. package/web/app/immutable/chunks/{Bt_RDNlI.js → CNIxi0ch.js} +1 -1
  57. package/web/app/immutable/chunks/{R1d5Y9eD.js → CP5zM-2z.js} +1 -1
  58. package/web/app/immutable/chunks/CPk-Lh5Y.js +1 -0
  59. package/web/app/immutable/chunks/{BAgFsuQz.js → CPzeiVDF.js} +1 -1
  60. package/web/app/immutable/chunks/{aCDFJfWo.js → CRxUemhR.js} +1 -1
  61. package/web/app/immutable/chunks/{BbIMIfqX.js → CRynRlXQ.js} +1 -1
  62. package/web/app/immutable/chunks/{CuoerPJp.js → CSWdbNcY.js} +3 -3
  63. package/web/app/immutable/chunks/{BG8JSmc7.js → CTU9yjO5.js} +1 -1
  64. package/web/app/immutable/chunks/{dxPehZVa.js → CWVUBnHm.js} +2 -2
  65. package/web/app/immutable/chunks/CX5tClKW.js +4 -0
  66. package/web/app/immutable/chunks/{aokikQw5.js → CY8ea6Mz.js} +13 -13
  67. package/web/app/immutable/chunks/{B07OdpUU.js → C_5bSDGn.js} +3 -3
  68. package/web/app/immutable/chunks/{DkgfeEA0.js → C_gwhAv1.js} +1 -1
  69. package/web/app/immutable/chunks/{CvPVdUUZ.js → CaOJIXi2.js} +1 -1
  70. package/web/app/immutable/chunks/{BPRz9VyT.js → CaculjlW.js} +1 -1
  71. package/web/app/immutable/chunks/{CJHViisg.js → CbLPH1Om.js} +5 -5
  72. package/web/app/immutable/chunks/{Bl2aLOn5.js → CcTYYBo3.js} +1 -1
  73. package/web/app/immutable/chunks/{CgS1Dv_8.js → CiTbcBZ_.js} +1 -1
  74. package/web/app/immutable/chunks/{CmVyGqNV.js → Ck96vbIn.js} +2 -2
  75. package/web/app/immutable/chunks/{C3L3GwMq.js → CkoKtsiL.js} +1 -1
  76. package/web/app/immutable/chunks/{Wz08guGa.js → Cl9ySU-o.js} +1 -1
  77. package/web/app/immutable/chunks/{DPfWnZYT.js → ClV-2Tgv.js} +1 -1
  78. package/web/app/immutable/chunks/{BXId-8a9.js → Clj6cYni.js} +1 -1
  79. package/web/app/immutable/chunks/{DuTju9rc.js → CniyFe5S.js} +1 -1
  80. package/web/app/immutable/chunks/{tSlfPnTD.js → CplYX6wM.js} +1 -1
  81. package/web/app/immutable/chunks/{Ds8ezw9K.js → CrU71cWX.js} +1 -1
  82. package/web/app/immutable/chunks/CtJsKX7p.js +3 -0
  83. package/web/app/immutable/chunks/{DwHEsGP4.js → CvCk2zex.js} +1 -1
  84. package/web/app/immutable/chunks/{5NiJCy7J.js → Cy8IOKwI.js} +1 -1
  85. package/web/app/immutable/chunks/{CcZqxMtd.js → Cyj5BnLo.js} +1 -1
  86. package/web/app/immutable/chunks/{CssvkQD7.js → D-xbpOd2.js} +1 -1
  87. package/web/app/immutable/chunks/{Dtqu7Pxg.js → D1Wd78Sv.js} +1 -1
  88. package/web/app/immutable/chunks/{BD9wTbmm.js → D3w04cnk.js} +1 -1
  89. package/web/app/immutable/chunks/{BLFlTVjy.js → D4aqkbtK.js} +4 -4
  90. package/web/app/immutable/chunks/{DzmdzUVi.js → D6DFaBwR.js} +1 -1
  91. package/web/app/immutable/chunks/{BpL3mTkL.js → D6YJZGmY.js} +1 -1
  92. package/web/app/immutable/chunks/{yTlZ1Sih.js → D8uhGa69.js} +1 -1
  93. package/web/app/immutable/chunks/{DXcrfgZH.js → D9NfptXn.js} +2 -2
  94. package/web/app/immutable/chunks/{BMYcVUUM.js → DDJAluQE.js} +8 -8
  95. package/web/app/immutable/chunks/{DjKDfA1m.js → DEfsd-IM.js} +2 -2
  96. package/web/app/immutable/chunks/{BskEvHZa.js → DEiYC7jA.js} +1 -1
  97. package/web/app/immutable/chunks/{B9pYL5w0.js → DFF9Hi9i.js} +3 -3
  98. package/web/app/immutable/chunks/{Db7PzaF_.js → DFNcX1C0.js} +1 -1
  99. package/web/app/immutable/chunks/{DyIRpoZq.js → DFYGtkP8.js} +1 -1
  100. package/web/app/immutable/chunks/{BG4tBRsm.js → DLtObTR3.js} +1 -1
  101. package/web/app/immutable/chunks/{D9H2UCuG.js → DN_KP1eV.js} +1 -1
  102. package/web/app/immutable/chunks/{kbpbXlKS.js → DOT4zZfJ.js} +1 -1
  103. package/web/app/immutable/chunks/{B1Tr5BPZ.js → DPb0TtQV.js} +1 -1
  104. package/web/app/immutable/chunks/{CytLF-ur.js → DPn3lPe4.js} +6 -6
  105. package/web/app/immutable/chunks/{YhYmjxML.js → DVuhBCLV.js} +1 -1
  106. package/web/app/immutable/chunks/{D0VMf2Fp.js → DW97_Hl4.js} +3 -3
  107. package/web/app/immutable/chunks/{-7du9lfn.js → DWAdterl.js} +1 -1
  108. package/web/app/immutable/chunks/{TaZ6zGN1.js → DXQV6z-q.js} +1 -1
  109. package/web/app/immutable/chunks/{Vfi0Dmt8.js → DXZSO_Pq.js} +1 -1
  110. package/web/app/immutable/chunks/{Big1YQpq.js → DYQPit--.js} +1 -1
  111. package/web/app/immutable/chunks/{DXXjnBc_.js → DbaAc_-Q.js} +1 -1
  112. package/web/app/immutable/chunks/{CvH6beJr.js → DjOZegwv.js} +2 -2
  113. package/web/app/immutable/chunks/{CVOsommd.js → DjVOU0sF.js} +2 -2
  114. package/web/app/immutable/chunks/{MzfVdJbX.js → DjXnrfed.js} +1 -1
  115. package/web/app/immutable/chunks/{Tqm9-f9l.js → DjYh06U7.js} +1 -1
  116. package/web/app/immutable/chunks/{rUCEwUE_.js → DlrcSqxf.js} +1 -1
  117. package/web/app/immutable/chunks/{D3rVaYU0.js → Dm-oOl0S.js} +2 -2
  118. package/web/app/immutable/chunks/{BKHUH54N.js → DmVQU-Au.js} +1 -1
  119. package/web/app/immutable/chunks/{sLpI8Vr2.js → DuAq2d-z.js} +1 -1
  120. package/web/app/immutable/chunks/{W67SWYQh.js → DvFk8gJm.js} +1 -1
  121. package/web/app/immutable/chunks/{96DwTK9j.js → F-reQTNB.js} +2 -2
  122. package/web/app/immutable/chunks/{BQKRBk9B.js → KEUh5hD5.js} +1 -1
  123. package/web/app/immutable/chunks/{D0g6v2_u.js → KGxZpRD9.js} +1 -1
  124. package/web/app/immutable/chunks/R437Q8zA.js +1 -0
  125. package/web/app/immutable/chunks/{5u3dQlae.js → RgHRltXX.js} +1 -1
  126. package/web/app/immutable/chunks/{DkNdI_Wp.js → SLOyQ3jf.js} +1 -1
  127. package/web/app/immutable/chunks/{CNUg0Cs8.js → U3T1b0A0.js} +6 -6
  128. package/web/app/immutable/chunks/{CO15VKbw.js → U_l2ralE.js} +6 -6
  129. package/web/app/immutable/chunks/{C1wjuTFV.js → XQIQgSrx.js} +1 -1
  130. package/web/app/immutable/chunks/{DQTzZEWU.js → ZRRp1hhY.js} +2 -2
  131. package/web/app/immutable/chunks/{Ch9oF0ek.js → a3nqHBzJ.js} +1 -1
  132. package/web/app/immutable/chunks/{Bl0Adq86.js → bPNHL4zz.js} +1 -1
  133. package/web/app/immutable/chunks/{B0JbhmMb.js → bXhYFuj1.js} +1 -1
  134. package/web/app/immutable/chunks/{ivBdCvd6.js → bbt-Xoef.js} +7 -7
  135. package/web/app/immutable/chunks/{Bgk8kfr8.js → bwHjDwdJ.js} +1 -1
  136. package/web/app/immutable/chunks/{CpBPE3-0.js → cGac-dAI.js} +1 -1
  137. package/web/app/immutable/chunks/{Bya2sQrR.js → eq9tvf9b.js} +1 -1
  138. package/web/app/immutable/chunks/{DD4-FHBp.js → gddqvxSN.js} +1 -1
  139. package/web/app/immutable/chunks/{D4LnecGU.js → iJ9AQT8V.js} +2 -2
  140. package/web/app/immutable/chunks/{CyQJi5fM.js → oaLXPqeM.js} +1 -1
  141. package/web/app/immutable/chunks/{CrLichOk.js → rTvMsiiT.js} +1 -1
  142. package/web/app/immutable/chunks/{CkuFMgpI.js → sr1p2voA.js} +1 -1
  143. package/web/app/immutable/chunks/{C5cRG0yV.js → t63qkPWO.js} +3 -3
  144. package/web/app/immutable/chunks/{C-Qm3bfA.js → tQrId4UU.js} +1 -1
  145. package/web/app/immutable/chunks/xCRj0TCH.js +176 -0
  146. package/web/app/immutable/chunks/{T_1hfFnC.js → xUNvQVfC.js} +2 -2
  147. package/web/app/immutable/chunks/{BSM5O6JV.js → yetPhaeQ.js} +1 -1
  148. package/web/app/immutable/entry/{app.CYYj7JvH.js → app.DAdpRY1S.js} +2 -2
  149. package/web/app/immutable/entry/start.C3GynpgH.js +1 -0
  150. package/web/app/immutable/nodes/{0.vJoG8nTo.js → 0.DQlRpqsp.js} +1 -1
  151. package/web/app/immutable/nodes/{1.Di6AbyQm.js → 1.C5UPpIV8.js} +1 -1
  152. package/web/app/immutable/nodes/{10.BkazfxT8.js → 10.q4ZZkPo0.js} +4 -4
  153. package/web/app/immutable/nodes/{11.Ck_7PTgk.js → 11.Bzf2tPWN.js} +1 -1
  154. package/web/app/immutable/nodes/{15.DWwqZzAg.js → 15.DLDKAp8B.js} +1 -1
  155. package/web/app/immutable/nodes/{19.CjDPuA-n.js → 19.BYPJywV2.js} +2 -2
  156. package/web/app/immutable/nodes/{2.B7bl9OWL.js → 2.ByiO--8z.js} +12 -12
  157. package/web/app/immutable/nodes/{20.tmuZaULh.js → 20.BztXJVwA.js} +1 -1
  158. package/web/app/immutable/nodes/{3.CY1Mye6q.js → 3.lFs0YjGZ.js} +1 -1
  159. package/web/app/immutable/nodes/{4.sNrk6dxf.js → 4.e6azWsLT.js} +1 -1
  160. package/web/app/immutable/nodes/{5.BrOibHKo.js → 5.Bq1EvpM9.js} +1 -1
  161. package/web/app/immutable/nodes/{6.BVYLHxv3.js → 6.Bs908U_Q.js} +1 -1
  162. package/web/app/immutable/nodes/{7.BZ0ZLzU_.js → 7.kb8QHtK2.js} +1 -1
  163. package/web/app/immutable/nodes/{8.BNlg4qDc.js → 8.CQyVjnar.js} +1 -1
  164. package/web/app/immutable/nodes/{9.C8X38wWW.js → 9.CfGq7FRR.js} +4 -4
  165. package/web/app/version.json +1 -1
  166. package/web/index.html +9 -9
  167. package/web/app/immutable/chunks/0_7FQkiC.js +0 -1
  168. package/web/app/immutable/chunks/BEyxbMng.js +0 -18
  169. package/web/app/immutable/chunks/CeFme0q3.js +0 -1
  170. package/web/app/immutable/chunks/Cq0xvhw9.js +0 -3
  171. package/web/app/immutable/chunks/DWWTsFh-.js +0 -190
  172. package/web/app/immutable/chunks/DvCS4TTw.js +0 -1
  173. package/web/app/immutable/chunks/lZNvj_WH.js +0 -4
  174. package/web/app/immutable/chunks/yAiwGS7g.js +0 -3
  175. package/web/app/immutable/entry/start.BH_-Ros5.js +0 -1
@@ -1,4 +1,4 @@
1
- var i1=Object.defineProperty;var s1=(t,e,r)=>e in t?i1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>s1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as o1,dt as _l,_ as R0,Y as ya,Z as l1,X as c1,a1 as u1,ab as d1,U as h1,dU as p1,M as m1,ba as Ll,cG as _r,ds as Ol,aT as f1,aX as g1,co as v1,cE as b1,c9 as y1,dm as Xa,dO as w1,dH as k1,ay as Fn,al as x1,at as Ti,dr as $l,dE as S1,dY as Bl,dX as A1}from"./BEyxbMng.js";import{D as Ls,b3 as T1,bd as E1,aB as M1}from"./DkNdI_Wp.js";import{L as C1,F as i0,I as I1}from"./DWPd-rzt.js";import{z4 as gn,IX as E,nL as ge,nK as Se,aP as z1,i as ql,E as Re,bl as c0,k4 as Ei,m3 as vn,am as jt,m2 as Os,mc as $s,m9 as Bs,jD as Fl,gq as Ya,Hj as R1,tq as D1,Ar as N1,oO as P1,mR as bn,B$ as _1,iD as L1,mm as O1,lZ as $1}from"./BkzMrEqG.js";import{bm as ne}from"./AeC4KVgG.js";import{l as rt}from"./DWUO9rBe.js";import{k as B1,d as xr}from"./CD7PpB6R.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Xe,l as h0,g as q1,n as _e,c as or,b as Ue,u as F1,d as H1}from"./CIyUrgF0.js";import{j as Hl}from"./uXuxG9cN.js";import{u as U1}from"./Dz2z231n.js";import{selectActiveWorkspaceIds as W1}from"./DwQfkcIA.js";import{i as He}from"./CbSeeP7P.js";import{l as wa,c as Mi}from"./ChTqQfQN.js";import"./R1d5Y9eD.js";import{e as G1,h as Sr}from"./BV4GrhSx.js";import{h as p0}from"./jhNNYE0v.js";import{i as qs}from"./DTWXK3Yd.js";import{f as Ci,o as Ul,p as Wl,h as j1,m as Gl,i as V1,k as K1}from"./dxPehZVa.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function X1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const Y1=new Uint8Array(16);function Z1(){return crypto.getRandomValues(Y1)}function Ii(t,e,r){return crypto.randomUUID?crypto.randomUUID():Q1(t)}function Q1(t,e,r){t=t||{};const n=t.random??t.rng?.()??Z1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,X1(n)}function zi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=zi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?C1(r.replace(/\.git\/?$/,""),e):null}function C5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":zi(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function I5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function z5(t){return t.type==="local"&&t.path?t.path:void 0}const J1=["/.clones/","/.repo-cache/"];function R5(t){const e=t.replaceAll("\\","/");return J1.some(r=>e.includes(r))}function D5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ed(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function N5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ed(r)}}function P5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const td="known-repos",rd=6e4;function nd({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function _5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function L5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<rd?"skip":"load"}function O5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=zi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function ad({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const $5=E.createSelector(t=>t.workspaceInitializer.hydrated),B5=E.createSelector(t=>t.workspaceInitializer.compactFormState),q5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),F5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),H5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),U5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),W5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),G5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),j5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),V5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),K5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),X5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),Y5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),Z5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),Q5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),J5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),e3=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),t3=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),r3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),n3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),a3=E.createSelector(t=>ad({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:E1.select(t),orchestratorId:T1.select(t)?.id??null})),id=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&o1.select(t)?JSON.stringify([r,e]):null}),i3=E.createSelector(t=>{const e=id.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),sd=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,td),r=ur.select(t);return nd({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),s3=E.createSelector(t=>_l.select(t)?sd.select(t):[]),o3=E.createSelector(t=>M1.select(t)||void 0),Fs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class od{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(Fs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Fs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new od;function l3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function ld(t){return t.charAt(0).toUpperCase()+t.slice(1)}function c3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function u3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function d3(t,e){return`${e}:${t.agentId??"manual"}`}function cd(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ud(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function dd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function h3(t,e,r,n){const a=cd(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function p3(t,e,r){const n=ud(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function m3(t,e){const r=dd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function f3(t,e){return e===0&&t.length>0}function g3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function v3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function b3(t,e,r){return r?.path===t&&r?.staged===e}function y3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function w3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function hd(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function k3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=hd(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?Ri(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function x3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??z1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function pd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${l1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:pd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ri(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ri(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function S3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const Y=`${C.toLowerCase()}#${W.number}`;if(M.has(Y))continue;M.add(Y);const X=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:X,htmlUrl:X,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ri(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Hs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function A3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Hs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[c1(t)??e],n=Hs(t)?B1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(ld(a.mergeBlockedReason))),r.join(`
1
+ var i1=Object.defineProperty;var s1=(t,e,r)=>e in t?i1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>s1(t,typeof e!="symbol"?e+"":e,r);import{cO as ur,b3 as o1,dE as _l,a7 as R0,a5 as ya,a6 as l1,a4 as c1,aa as u1,am as d1,a1 as h1,e4 as p1,X as m1,bl as Ll,cR as _r,dD as Ol,b2 as f1,b6 as g1,cz as v1,cP as b1,ck as y1,dy as Xa,dZ as w1,dS as k1,aJ as Fn,aw as x1,aE as Ti,dC as $l,dP as S1,e8 as Bl,e7 as A1}from"./-5BGDZDk.js";import{D as Ls,b3 as T1,bd as E1,aB as M1}from"./SLOyQ3jf.js";import{L as C1,F as i0,I as I1}from"./DWPd-rzt.js";import{z4 as gn,IX as E,nL as ge,nK as Se,aP as z1,i as ql,E as Re,bl as c0,k4 as Ei,m3 as vn,am as jt,m2 as Os,mc as $s,m9 as Bs,jD as Fl,gq as Ya,Hj as R1,tq as D1,Ar as N1,oO as P1,mR as bn,B$ as _1,iD as L1,mm as O1,lZ as $1}from"./BkzMrEqG.js";import{bm as ne}from"./AeC4KVgG.js";import{l as rt}from"./DWUO9rBe.js";import{k as B1,d as xr}from"./CD7PpB6R.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Xe,l as h0,g as q1,n as _e,c as or,b as Ue,u as F1,d as H1}from"./CIyUrgF0.js";import{j as Hl}from"./uXuxG9cN.js";import{u as U1}from"./Dz2z231n.js";import{selectActiveWorkspaceIds as W1}from"./DwQfkcIA.js";import{i as He}from"./CbSeeP7P.js";import{l as wa,c as Mi}from"./ChTqQfQN.js";import"./CP5zM-2z.js";import{e as G1,h as Sr}from"./BV4GrhSx.js";import{h as p0}from"./jhNNYE0v.js";import{i as qs}from"./DTWXK3Yd.js";import{f as Ci,o as Ul,p as Wl,h as j1,m as Gl,i as V1,k as K1}from"./CWVUBnHm.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function X1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const Y1=new Uint8Array(16);function Z1(){return crypto.getRandomValues(Y1)}function Ii(t,e,r){return crypto.randomUUID?crypto.randomUUID():Q1(t)}function Q1(t,e,r){t=t||{};const n=t.random??t.rng?.()??Z1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,X1(n)}function zi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=zi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?C1(r.replace(/\.git\/?$/,""),e):null}function C5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":zi(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function I5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function z5(t){return t.type==="local"&&t.path?t.path:void 0}const J1=["/.clones/","/.repo-cache/"];function R5(t){const e=t.replaceAll("\\","/");return J1.some(r=>e.includes(r))}function D5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ed(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function N5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ed(r)}}function P5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const td="known-repos",rd=6e4;function nd({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function _5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function L5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<rd?"skip":"load"}function O5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=zi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function ad({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const $5=E.createSelector(t=>t.workspaceInitializer.hydrated),B5=E.createSelector(t=>t.workspaceInitializer.compactFormState),q5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),F5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),H5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),U5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),W5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),G5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),j5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),V5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),K5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),X5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),Y5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),Z5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),Q5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),J5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),e3=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),t3=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),r3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),n3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),a3=E.createSelector(t=>ad({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:E1.select(t),orchestratorId:T1.select(t)?.id??null})),id=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&o1.select(t)?JSON.stringify([r,e]):null}),i3=E.createSelector(t=>{const e=id.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),sd=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,td),r=ur.select(t);return nd({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),s3=E.createSelector(t=>_l.select(t)?sd.select(t):[]),o3=E.createSelector(t=>M1.select(t)||void 0),Fs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class od{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(Fs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Fs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new od;function l3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function ld(t){return t.charAt(0).toUpperCase()+t.slice(1)}function c3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function u3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function d3(t,e){return`${e}:${t.agentId??"manual"}`}function cd(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ud(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function dd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function h3(t,e,r,n){const a=cd(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function p3(t,e,r){const n=ud(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function m3(t,e){const r=dd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function f3(t,e){return e===0&&t.length>0}function g3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function v3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function b3(t,e,r){return r?.path===t&&r?.staged===e}function y3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function w3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function hd(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function k3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=hd(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?Ri(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function x3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??z1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function pd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${l1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:pd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ri(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ri(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function S3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const Y=`${C.toLowerCase()}#${W.number}`;if(M.has(Y))continue;M.add(Y);const X=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:X,htmlUrl:X,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ri(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Hs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function A3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Hs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[c1(t)??e],n=Hs(t)?B1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(ld(a.mergeBlockedReason))),r.join(`
2
2
  `)}function T3(t,e){return e.has(t??"manual")}function E3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Vl=500;function M3(t,e=Vl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function C3(t,e,r=Vl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function I3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function md(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Qa(t){return t.startsWith("@")?t.slice(1):t}function fd(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Qa(String(a));const i=[r,e,n.trim()].map(Qa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?u1(s).path:void 0}function gd(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function vd(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=md(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=fd(i,n,r,t.textContent||"");c&&(s.filePath=c);const d=gd(i);d!==void 0&&(s.line=d)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,d=c?Qa(String(c)).replace(/\/+$/,""):"";d&&(s.folderPath=d)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function z3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Di(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lr=Di();function Kl(t){Lr=t}var Ir={exec:()=>null};function Xr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ke.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var bd=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ke={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Xr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Xr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}>`))},yd=/^(?:[ \t]*(?:\n|$))+/,wd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,kd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ni=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Xl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Yl=ce(Xl).replace(/bull/g,Ni).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Sd=ce(Xl).replace(/bull/g,Ni).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ad=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Td=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ed=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ni).getRegex(),Hn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Li=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Md=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Li).replace("tag",Hn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zl=t=>ce(Pi).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Cd=Zl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Id=Zl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),zd=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Id).getRegex(),Oi={blockquote:zd,code:wd,def:Td,fences:kd,heading:xd,hr:W0,html:Md,lheading:Yl,list:Ed,newline:yd,paragraph:Cd,table:Ir,text:Ad},Us=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Rd={...Oi,lheading:Sd,table:Us,paragraph:ce(Pi).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Us).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex()},Dd={...Oi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Li).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(Pi).replace("hr",W0).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",Yl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Nd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Pd=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ql=/^( {2,}|\\)\n(?!\s*$)/,_d=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,G0=/[^\s\p{P}\p{S}]/u,Ld=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Od=/[\p{Pi}\p{Ps}"']/u,Jl=/(?!~)[\p{P}\p{S}]/u,$d=/(?!~)[\s\p{P}\p{S}]/u,Bd=/(?:[^\s\p{P}\p{S}]|~)/u,qd=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",bd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ec=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Fd=ce(ec,"u").replace(/punct/g,Vt).getRegex(),Hd=ce(ec,"u").replace(/punct/g,Jl).getRegex(),Ud=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Wd=ce(Ud,"u").replace(/openQuote/g,Od).replace(/punct/g,Vt).getRegex(),tc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gd=ce(tc,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),jd=ce(tc,"gu").replace(/notPunctSpace/g,Bd).replace(/punctSpace/g,$d).replace(/punct/g,Jl).getRegex(),Vd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Kd=ce(Vd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Xd=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Yd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Zd=ce(Yd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Qd=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Vt).getRegex(),Jd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",eh=ce(Jd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),th=ce(/\\(punct)/,"gu").replace(/punct/g,Vt).getRegex(),rh=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nh=ce(Li).replace("(?:-->|$)","-->").getRegex(),ah=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_n=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ih=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",_n).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",_n).replace("ref",_i).getRegex(),nc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),sh=ce("reflink|nolink(?!\\()","g").replace("reflink",rc).replace("nolink",nc).getRegex(),Ws=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$i={_backpedal:Ir,anyPunctuation:th,autolink:rh,blockSkip:qd,br:Ql,code:Pd,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Fd,emStrongRDelimAst:Gd,emStrongRDelimUnd:Xd,escape:Nd,link:ih,nolink:nc,punctuation:Ld,reflink:rc,reflinkSearch:sh,tag:ah,text:_d,url:Ir},oh={...$i,emStrongLDelim:Wd,emStrongRDelimAst:Kd,emStrongRDelimUnd:Zd,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",_n).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_n).getRegex()},Ja={...$i,emStrongRDelimAst:jd,emStrongLDelim:Hd,delLDelim:Qd,delRDelim:eh,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ws).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ws).getRegex()},lh={...Ja,br:ce(Ql).replace("{2,}","*").getRegex(),text:ce(Ja.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wn={normal:Oi,gfm:Rd,pedantic:Dd},S0={normal:$i,gfm:Ja,breaks:lh,pedantic:oh},ch={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gs=t=>ch[t];function Dt(t,e){if(e){if(Ke.escapeTest.test(t))return t.replace(Ke.escapeReplace,Gs)}else if(Ke.escapeTestNoEncode.test(t))return t.replace(Ke.escapeReplaceNoEncode,Gs);return t}function js(t){try{t=encodeURI(t).replace(Ke.percentDecode,"%")}catch{return null}return t}function Vs(t,e){let r=t.replace(Ke.findPipe,(i,s,o)=>{let c=!1,d=s;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ke.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ke.slashPipe,"|");return n}function tr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Ks(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ke.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
@@ -1,15 +1,15 @@
1
- import{t as Yt,bo as v,bm as F,bw as Jt,bs as Xe,bq as Zt,b as Qt}from"./AeC4KVgG.js";import{bs as en,c5 as Ye,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Je,bO as Y,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./CJxGDkBm.js";import{i as me}from"./k2awEenT.js";import{g as on,i as rn}from"./CswzK9Go.js";import{f as ln}from"./DrHJ7oPv.js";import{f as cn}from"./CZ-8NDq0.js";import{k as dn}from"./Hy_004pB.js";import{IX as Se,o6 as fn,zJ as un,so as bt,o8 as hn,a8 as kt}from"./BkzMrEqG.js";import{bN as gn,ds as vn}from"./BEyxbMng.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./B1Tr5BPZ.js";import{F as wt,b9 as _t}from"./Ci7mS1ie.js";import{f as Qe}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{S as Re}from"./F1SvNoTt.js";import{l as bn}from"./DWUO9rBe.js";import{g as kn}from"./Cn0ug0UZ.js";function wn(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,J=_n(Ie)-1,De=We.split(`
2
- `);let s=0,I=0,le=!1;for(const B of De)if(B.startsWith("@@")){le=!0;const Z=B.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);Z&&(I=parseInt(Z[1],10),s=parseInt(Z[2],10))}else le&&(B.startsWith("+")?(re.add(s+J),s++):B.startsWith("-")?(pe.add(I+J),I++):B.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Yt({component:Dn,...q});en(c,!0);const oe=()=>Xe(yt,"$read$",re),Ie=()=>Xe(Rt,"$workspace$",re),We=()=>Xe(It,"$workingTreeFileContentStore",re),[re,pe]=Zt(),J=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),B=v(c,"viewMode",7,"unified"),Z=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),Be=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Ye(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),$e=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,$e),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),$=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t($)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
1
+ import{t as Xt,bo as v,bm as F,bw as Jt,bs as Ye,bq as Zt,b as Qt}from"./AeC4KVgG.js";import{bs as en,c5 as Xe,ca as xe,aD as t,bH as H,a5 as M,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Je,bO as X,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./CJxGDkBm.js";import{i as me}from"./k2awEenT.js";import{g as on,i as rn}from"./CswzK9Go.js";import{f as ln}from"./DrHJ7oPv.js";import{f as cn}from"./CZ-8NDq0.js";import{k as dn}from"./Hy_004pB.js";import{IX as Se,o6 as fn,zJ as un,so as bt,o8 as hn,a8 as kt}from"./BkzMrEqG.js";import{bY as gn,dD as vn}from"./-5BGDZDk.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./DPb0TtQV.js";import{F as wt,b9 as _t}from"./Ci7mS1ie.js";import{f as Qe}from"./DJM6amHV.js";import"./jhNNYE0v.js";import{S as Re}from"./F1SvNoTt.js";import{l as bn}from"./DWUO9rBe.js";import{g as kn}from"./Cn0ug0UZ.js";function wn(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,J=_n(Ie)-1,De=We.split(`
2
+ `);let s=0,I=0,le=!1;for(const B of De)if(B.startsWith("@@")){le=!0;const Z=B.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);Z&&(I=parseInt(Z[1],10),s=parseInt(Z[2],10))}else le&&(B.startsWith("+")?(re.add(s+J),s++):B.startsWith("-")?(pe.add(I+J),I++):B.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Xt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Zt(),J=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),I=v(c,"active",7,!0),le=v(c,"workspaceId",7),B=v(c,"viewMode",7,"unified"),Z=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Me=v(c,"lineWrapping",7,!1),U=v(c,"onStageHunk",7),A=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Ue=v(c,"refreshKey",7),Ae=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),Be=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Xe(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),$e=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,$e),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),$=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?At(t(Q).chunk,t(ee)):""),xt=d(()=>!t($)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t($)),Ht=d(()=>t(st)+t(V));let w=ae(null),Ke=ae(null),we=null,_e=ae(!1);const Rt=vn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Ut(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t($))}:off${W()}`:void 0),Mt=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Ut(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function At(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
5
5
  `)+`
6
6
  `}let ft=ae(!1),ut=ae(0);function Et(e=!1){H(ft,e,!0),nn(ut)}function je(e,i,a){const o=t(ee)||s().relativePath||s().file,u=3,r=W()>1?Math.floor(W())-1:0,h=Math.max(1,e-r),l=Math.max(h,i-r),b=Lt(o,t($),t(V),"","",{context:u}).split(`
7
- `),fe=t($)===""&&r===0?[`diff --git a/${o} b/${o}`,"new file mode 100644","--- /dev/null",`+++ b/${o}`]:[`diff --git a/${o} b/${o}`,`--- a/${o}`,`+++ b/${o}`],_=[];let ve=!1,ne=0,ie=0;for(const n of b)if(!(n.startsWith("Index:")||n.startsWith("===")||n.startsWith("---")||n.startsWith("+++")))if(n.startsWith("@@")){const f=n.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);f&&(ie=parseInt(f[1],10),ne=parseInt(f[2],10),ve=!0)}else ve&&n!==""&&(n.startsWith("+")?(_.push({content:n,oldLine:null,newLine:ne,type:"addition"}),ne++):n.startsWith("-")?(_.push({content:n,oldLine:ie,newLine:null,type:"deletion"}),ie++):n.startsWith(" ")&&(_.push({content:n,oldLine:ie,newLine:ne,type:"context"}),ne++,ie++));let k=-1,y=-1;J.info("[generateLinePatch] Searching for target lines",{startLine:e,endLine:i,localStartLine:h,localEndLine:l,side:a,allHunkLinesCount:_.length,allHunkLinesSample:_.slice(0,10).map(n=>({content:n.content.substring(0,40),oldLine:n.oldLine,newLine:n.newLine,type:n.type,effectiveLineNum:n.newLine??n.oldLine}))});for(let n=0;n<_.length;n++){const f=_[n],K=f.newLine??f.oldLine;if(K!==null&&K>=h&&K<=l){const X=f.type==="addition",he=f.type==="deletion";if(a==="additions"&&!X||a==="deletions"&&!he)continue;(X||he)&&(k===-1&&(k=n),y=n)}}if(J.info("[generateLinePatch] Target found",{targetStartIdx:k,targetEndIdx:y,targetLines:k>=0?_.slice(k,y+1).map(n=>({content:n.content,oldLine:n.oldLine,newLine:n.newLine,type:n.type})):null}),k===-1)return null;const D=[];for(let n=k-1;n>=0&&D.length<u;n--){const f=_[n];if(f.type==="context")D.unshift(f);else break}const ye=[];for(let n=k;n<=y;n++)ye.push(_[n]);const C=[];for(let n=y+1;n<_.length&&C.length<u;n++){const f=_[n];if(f.type==="context")C.push(f);else break}if(C.length<u)if(s().stage==="staged"){let f=0;const K=C[C.length-1];if(K?.newLine)f=K.newLine;else for(let p=y;p>=0;p--){const P=_[p];if(P.newLine!==null){f=P.newLine;break}}if(f===0){const p=D[D.length-1];p?.newLine&&(f=p.newLine)}const X=t(V).split(`
8
- `),he=u-C.length;for(let p=0;p<he;p++){const P=f+p;if(P<X.length){const Ve=X[P];C.push({content:" "+Ve,oldLine:null,newLine:P+1,type:"context"})}}}else{let f=0;const K=C[C.length-1];if(K?.oldLine)f=K.oldLine;else for(let p=y;p>=0;p--){const P=_[p];if(P.oldLine!==null){f=P.oldLine;break}}if(f===0){const p=D[D.length-1];p?.oldLine&&(f=p.oldLine)}const X=t($).split(`
9
- `),he=u-C.length;for(let p=0;p<he;p++){const P=f+p;if(P<X.length){const Ve=X[P];C.push({content:" "+Ve,oldLine:P+1,newLine:null,type:"context"})}}}const x=[...D,...ye,...C];if(x.length===0)return null;let N=0,E=0;for(const n of x)if(n.oldLine!==null&&N===0&&(N=n.oldLine),n.newLine!==null&&E===0&&(E=n.newLine),N!==0&&E!==0)break;N===0&&(N=E>0?E-1:1),E===0&&(E=N);let z=0,se=0;for(const n of x)n.type==="deletion"?z++:(n.type==="addition"||z++,se++);const ue=`@@ -${N+r},${z} +${E+r},${se} @@`,Xt=x.map(n=>n.content).join(`
10
- `),mt=[...fe,ue,Xt].join(`
7
+ `),fe=t($)===""&&r===0?[`diff --git a/${o} b/${o}`,"new file mode 100644","--- /dev/null",`+++ b/${o}`]:[`diff --git a/${o} b/${o}`,`--- a/${o}`,`+++ b/${o}`],_=[];let ve=!1,ne=0,ie=0;for(const n of b)if(!(n.startsWith("Index:")||n.startsWith("===")||n.startsWith("---")||n.startsWith("+++")))if(n.startsWith("@@")){const f=n.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);f&&(ie=parseInt(f[1],10),ne=parseInt(f[2],10),ve=!0)}else ve&&n!==""&&(n.startsWith("+")?(_.push({content:n,oldLine:null,newLine:ne,type:"addition"}),ne++):n.startsWith("-")?(_.push({content:n,oldLine:ie,newLine:null,type:"deletion"}),ie++):n.startsWith(" ")&&(_.push({content:n,oldLine:ie,newLine:ne,type:"context"}),ne++,ie++));let k=-1,y=-1;J.info("[generateLinePatch] Searching for target lines",{startLine:e,endLine:i,localStartLine:h,localEndLine:l,side:a,allHunkLinesCount:_.length,allHunkLinesSample:_.slice(0,10).map(n=>({content:n.content.substring(0,40),oldLine:n.oldLine,newLine:n.newLine,type:n.type,effectiveLineNum:n.newLine??n.oldLine}))});for(let n=0;n<_.length;n++){const f=_[n],K=f.newLine??f.oldLine;if(K!==null&&K>=h&&K<=l){const Y=f.type==="addition",he=f.type==="deletion";if(a==="additions"&&!Y||a==="deletions"&&!he)continue;(Y||he)&&(k===-1&&(k=n),y=n)}}if(J.info("[generateLinePatch] Target found",{targetStartIdx:k,targetEndIdx:y,targetLines:k>=0?_.slice(k,y+1).map(n=>({content:n.content,oldLine:n.oldLine,newLine:n.newLine,type:n.type})):null}),k===-1)return null;const D=[];for(let n=k-1;n>=0&&D.length<u;n--){const f=_[n];if(f.type==="context")D.unshift(f);else break}const ye=[];for(let n=k;n<=y;n++)ye.push(_[n]);const C=[];for(let n=y+1;n<_.length&&C.length<u;n++){const f=_[n];if(f.type==="context")C.push(f);else break}if(C.length<u)if(s().stage==="staged"){let f=0;const K=C[C.length-1];if(K?.newLine)f=K.newLine;else for(let p=y;p>=0;p--){const P=_[p];if(P.newLine!==null){f=P.newLine;break}}if(f===0){const p=D[D.length-1];p?.newLine&&(f=p.newLine)}const Y=t(V).split(`
8
+ `),he=u-C.length;for(let p=0;p<he;p++){const P=f+p;if(P<Y.length){const Ve=Y[P];C.push({content:" "+Ve,oldLine:null,newLine:P+1,type:"context"})}}}else{let f=0;const K=C[C.length-1];if(K?.oldLine)f=K.oldLine;else for(let p=y;p>=0;p--){const P=_[p];if(P.oldLine!==null){f=P.oldLine;break}}if(f===0){const p=D[D.length-1];p?.oldLine&&(f=p.oldLine)}const Y=t($).split(`
9
+ `),he=u-C.length;for(let p=0;p<he;p++){const P=f+p;if(P<Y.length){const Ve=Y[P];C.push({content:" "+Ve,oldLine:P+1,newLine:null,type:"context"})}}}const x=[...D,...ye,...C];if(x.length===0)return null;let N=0,E=0;for(const n of x)if(n.oldLine!==null&&N===0&&(N=n.oldLine),n.newLine!==null&&E===0&&(E=n.newLine),N!==0&&E!==0)break;N===0&&(N=E>0?E-1:1),E===0&&(E=N);let z=0,se=0;for(const n of x)n.type==="deletion"?z++:(n.type==="addition"||z++,se++);const ue=`@@ -${N+r},${z} +${E+r},${se} @@`,Yt=x.map(n=>n.content).join(`
10
+ `),mt=[...fe,ue,Yt].join(`
11
11
  `)+`
12
- `;return J.info("[generateLinePatch] Generated patch",{hunkHeader:ue,selectedLinesCount:x.length,selectedLinesContent:x.map(n=>({content:n.content,type:n.type})),fullPatch:mt}),mt}function Ft(e){H(w,e,!0)}function Ot(){if(!t(w))return;const e=t(ee)||s().relativePath||s().file,i=je(t(w).start,t(w).end,t(w).side);i&&U()&&(U()(e,i),H(w,null))}function Tt(){if(!t(w))return;const e=t(ee)||s().relativePath||s().file,i=je(t(w).start,t(w).end,t(w).side);i&&A()&&(A()(e,i),H(w,null))}const ht={additions:new Set,deletions:new Set};let gt="",qe=ht;function vt(){if(!t($)&&!t(V))return ht;const e=t(ee)||s().relativePath||s().file,i=`${e}|${He(t($))}|${He(t(V))}|${W()}`;if(i===gt)return qe;const{additions:a,deletions:o}=wn(e,t($),t(V),W());return gt=i,qe={additions:a,deletions:o},qe}xe(()=>{if(!I())return;Ue(),t(ut),s().id;const e=crypto.randomUUID();return Se.dispatch(fn(de,$e,e,{kind:"trackedDiff",filePath:t(ee),workspacePath:t(te),stage:s().stage,commitHash:s().commitHash,gitRootId:G(),gitRootPath:be(),gitlink:s().gitlink,baseRef:Ae(),baseCommitSha:Ee(),providedOld:s().content?.oldContent,providedNew:s().content?.newContent,useProvidedContent:ge(),forceRefresh:t(ft),allowHeadReads:ce()},Fe())),()=>{Se.dispatch(un(de,$e,e))}}),xe(()=>{if(!I())return;const e=de,i=ct(s()?.relativePath||s()?.file||""),a=Dt(i),o=G()?cn(a??i,G()):i,u=`${e}:${o}`;ot.set(e),at.set(o),u!==t(lt)&&(H(lt,u),H(Ce,null)),e&&i&&a&&s()?.stage!=="committed"&&!ge()&&ce()&&!t(ke)&&!t(Pt)&&Se.dispatch(G()?bt(e,o,a,{gitRoot:{id:G(),relativePath:i}}):bt(e,i,a))}),xe(()=>{if(!I()||ge()||!ce())return;const e=We();if(e===null||e===t(Ce))return;const i=Ye(()=>t(Ce));H(Ce,e,!0),i!==null&&(J.debug("[files slice] File content changed, reloading diff",{instanceId:Ct,filePath:s()?.relativePath||s()?.file}),Se.dispatch(hn(de,G())))}),xe(()=>{if(!I())return;const e=t(Ke);we&&(we.remove(),we=null),e?.numberElement&&Ye(()=>{const i=vt();if(!(e.side==="additions"?i.additions:i.deletions).has(e.lineNumber)||t(_e)||t(ke))return;const o=s().stage==="unstaged";if(!(o?U():A()))return;const r=document.createElement("button");r.className=o?"hunk-action-btn hunk-stage-btn line-hover-btn":"hunk-action-btn hunk-unstage-btn line-hover-btn",r.innerHTML=o?"+":"−",r.title=o?F.ui_trackedDiff_stageLine_tooltip():F.ui_trackedDiff_unstageLine_tooltip();const h=l=>{l.stopPropagation(),l.preventDefault()};r.onpointerdown=h,r.onpointerup=h,r.onmousedown=h,r.onmouseup=h,r.onclick=async l=>{if(l.stopPropagation(),l.preventDefault(),!(!ce()||t(_e)||t(ke))){H(_e,!0),r.disabled=!0,r.style.opacity="0.5";try{const g=t(ee)||s().relativePath||s().file,b=je(e.lineNumber,e.lineNumber,e.side);b&&(o&&U()?U()(g,b):!o&&A()&&A()(g,b)),Et(!0)}finally{H(_e,!1)}}},e.numberElement.appendChild(r),we=r})});var Bt={get change(){return s()},set change(e){s(e),m()},get active(){return I()},set active(e=!0){I(e),m()},get workspaceId(){return le()},set workspaceId(e){le(e),m()},get viewMode(){return B()},set viewMode(e="unified"){B(e),m()},get showHeader(){return Z()},set showHeader(e=!1){Z(e),m()},get foldUnchanged(){return Ne()},set foldUnchanged(e=!0){Ne(e),m()},get lineWrapping(){return Me()},set lineWrapping(e=!1){Me(e),m()},get onStageHunk(){return U()},set onStageHunk(e){U(e),m()},get onUnstageHunk(){return A()},set onUnstageHunk(e){A(e),m()},get onOpenCommit(){return et()},set onOpenCommit(e){et(e),m()},get refreshKey(){return Ue()},set refreshKey(e){Ue(e),m()},get branchBaseRef(){return Ae()},set branchBaseRef(e){Ae(e),m()},get branchBaseCommitSha(){return Ee()},set branchBaseCommitSha(e){Ee(e),m()},get useProvidedContent(){return ge()},set useProvidedContent(e=!1){ge(e),m()},get allowHeadReads(){return ce()},set allowHeadReads(e=!0){ce(e),m()},get canReadHeadFiles(){return Fe()},set canReadHeadFiles(e){Fe(e),m()},get lineOffset(){return W()},set lineOffset(e=1){W(e),m()},get lineStageIndicators(){return tt()},set lineStageIndicators(e){tt(e),m()},get annotations(){return Oe()},set annotations(e=[]){Oe(e),m()},get renderAnnotation(){return Te()},set renderAnnotation(e){Te(e),m()},get virtualizer(){return Be()},set virtualizer(e){Be(e),m()},get gitRootId(){return G()},set gitRootId(e=void 0){G(e),m()},get gitRootPath(){return be()},set gitRootPath(e=void 0){be(e),m()},$set:Jt,$on:(e,i)=>Qt(c,e,i)},Ge=Wn(),$t=M(Ge);{var zt=e=>{var i=Cn(),a=M(i),o=M(a);Re(o,{class:"h-4 w-48"});var u=O(o,2);Re(u,{class:"h-4 w-24"}),R(a);var r=O(a,2);on(r,20,()=>[0,1,2,3,4,5,6,7,8,9,10,11],rn,(h,l)=>{var g=Ln();let b;var S=M(g);Re(S,{class:"h-3 w-6 shrink-0"});var fe=O(S,2);Re(fe,{class:"h-3",style:`width: ${40+Math.random()*50}%`}),R(g),j(()=>b=ln(g,1,"diff-skeleton-line svelte-1f4chm",null,b,{"diff-skeleton-line--added":l%5===2,"diff-skeleton-line--removed":l%7===3})),L(h,g)}),R(r),R(i),L(e,i)},Kt=e=>{var i=yn(),a=M(i);wt(a,{get icon(){return _t},class:"text-danger"});var o=O(a,2),u=Je(o,!0);R(i),j(()=>Y(u,t(nt))),L(e,i)},jt=e=>{var i=xn(),a=M(i);wt(a,{get icon(){return _t},class:"text-warning"});var o=O(a,2),u=Je(o,!0);R(i),j(r=>Y(u,r),[()=>F.ui_trackedDiff_tooLarge_error()]),L(e,i)},qt=e=>{var i=Pn(),a=M(i),o=M(a);{var u=l=>{var g=Pe();j(b=>Y(g,b),[()=>F.ui_trackedDiff_commitUnavailable_error()]),L(l,g)},r=l=>{var g=Pe();j(b=>Y(g,b),[()=>F.ui_trackedDiff_noStagedChanges_label()]),L(l,g)},h=l=>{var g=Pe();j(b=>Y(g,b),[()=>F.ui_trackedDiff_noUnstagedChanges_label()]),L(l,g)};me(o,l=>{s().stage==="committed"?l(u):s().stage==="staged"?l(r,1):l(h,-1)})}R(a),R(i),L(e,i)},Gt=e=>{var i=In(),a=M(i);{var o=h=>{const l=d(vt),g=d(()=>t(w).side==="additions"?t(l).additions:t(l).deletions),b=d(()=>Array.from({length:t(w).end-t(w).start+1},(k,y)=>t(w).start+y).filter(k=>t(g).has(k)).length);var S=Rn(),fe=M(S),_=Je(fe,!0),ve=O(fe,2);{var ne=k=>{var y=an(),D=Ze(y);{var ye=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-stage-btn h-auto! gap-1 rounded-sm! bg-success/15 px-2! py-[0.2rem]! text-success hover:bg-success/25",onclick:Ot,children:(N,E)=>{var z=Sn(),se=O(Ze(z));j(ue=>Y(se,` ${ue??""}`),[()=>F.ui_trackedDiff_stage_label()]),L(N,z)},$$slots:{default:!0}})},C=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-unstage-btn h-auto! gap-1 rounded-sm! bg-danger/15 px-2! py-[0.2rem]! text-danger hover:bg-danger/25",onclick:Tt,children:(N,E)=>{var z=Hn(),se=O(Ze(z));j(ue=>Y(se,` ${ue??""}`),[()=>F.ui_trackedDiff_unstage_label()]),L(N,z)},$$slots:{default:!0}})};me(D,x=>{s().stage==="unstaged"&&U()?x(ye):s().stage==="staged"&&A()&&x(C,1)})}L(k,y)};me(ve,k=>{t(b)>0&&k(ne)})}var ie=O(ve,2);Qe(ie,{variant:"plain",size:"compact",class:"hunk-action-btn h-auto! rounded-sm! px-2! py-[0.2rem]! text-muted-foreground",onclick:()=>H(w,null),children:(k,y)=>{sn();var D=Pe("✕");L(k,D)},$$slots:{default:!0}}),R(S),j(k=>Y(_,k),[()=>t(b)===1?F.ui_trackedDiff_linesSelected_one():F.ui_trackedDiff_linesSelected_many({count:bn(t(b))})]),L(h,S)};me(a,h=>{t(w)&&h(o)})}var u=O(a,2),r=M(u);{let h=d(()=>t(it)||void 0),l=d(()=>!Ne()),g=d(()=>Me()?"wrap":"scroll"),b=d(()=>!!(U()||A()));pn(r,{get patch(){return t(h)},get oldContent(){return t(St)},get newContent(){return t(Ht)},get oldCacheKey(){return t(Nt)},get newCacheKey(){return t(Mt)},get fileName(){return t(Le)},get language(){return t(Wt)},get viewMode(){return B()},get showHeader(){return Z()},showStats:!1,get expandUnchanged(){return t(l)},get overflow(){return t(g)},get enableLineSelection(){return t(b)},get selectedLines(){return t(w)},onLineSelected:Ft,onLineEnter:S=>{(U()||A())&&H(Ke,{lineNumber:S.lineNumber,side:S.annotationSide,lineElement:S.lineElement,numberElement:S.numberElement})},onLineLeave:()=>{H(Ke,null)},get annotations(){return Oe()},get renderAnnotation(){return Te()},get virtualizer(){return Be()},unsafeCSS:`
12
+ `;return J.info("[generateLinePatch] Generated patch",{hunkHeader:ue,selectedLinesCount:x.length,selectedLinesContent:x.map(n=>({content:n.content,type:n.type})),fullPatch:mt}),mt}function Ft(e){H(w,e,!0)}function Ot(){if(!t(w))return;const e=t(ee)||s().relativePath||s().file,i=je(t(w).start,t(w).end,t(w).side);i&&U()&&(U()(e,i),H(w,null))}function Tt(){if(!t(w))return;const e=t(ee)||s().relativePath||s().file,i=je(t(w).start,t(w).end,t(w).side);i&&A()&&(A()(e,i),H(w,null))}const ht={additions:new Set,deletions:new Set};let gt="",qe=ht;function vt(){if(!t($)&&!t(V))return ht;const e=t(ee)||s().relativePath||s().file,i=`${e}|${He(t($))}|${He(t(V))}|${W()}`;if(i===gt)return qe;const{additions:a,deletions:o}=wn(e,t($),t(V),W());return gt=i,qe={additions:a,deletions:o},qe}xe(()=>{if(!I())return;Ue(),t(ut),s().id;const e=crypto.randomUUID();return Se.dispatch(fn(de,$e,e,{kind:"trackedDiff",filePath:t(ee),workspacePath:t(te),stage:s().stage,commitHash:s().commitHash,gitRootId:G(),gitRootPath:be(),gitlink:s().gitlink,baseRef:Ae(),baseCommitSha:Ee(),providedOld:s().content?.oldContent,providedNew:s().content?.newContent,useProvidedContent:ge(),forceRefresh:t(ft),allowHeadReads:ce()},Fe())),()=>{Se.dispatch(un(de,$e,e))}}),xe(()=>{if(!I())return;const e=de,i=ct(s()?.relativePath||s()?.file||""),a=Dt(i),o=G()?cn(a??i,G()):i,u=`${e}:${o}`;ot.set(e),at.set(o),u!==t(lt)&&(H(lt,u),H(Ce,null)),e&&i&&a&&s()?.stage!=="committed"&&!ge()&&ce()&&!t(ke)&&!t(Pt)&&Se.dispatch(G()?bt(e,o,a,{gitRoot:{id:G(),relativePath:i}}):bt(e,i,a))}),xe(()=>{if(!I()||ge()||!ce())return;const e=We();if(e===null||e===t(Ce))return;const i=Xe(()=>t(Ce));H(Ce,e,!0),i!==null&&(J.debug("[files slice] File content changed, reloading diff",{instanceId:Ct,filePath:s()?.relativePath||s()?.file}),Se.dispatch(hn(de,G())))}),xe(()=>{if(!I())return;const e=t(Ke);we&&(we.remove(),we=null),e?.numberElement&&Xe(()=>{const i=vt();if(!(e.side==="additions"?i.additions:i.deletions).has(e.lineNumber)||t(_e)||t(ke))return;const o=s().stage==="unstaged";if(!(o?U():A()))return;const r=document.createElement("button");r.className=o?"hunk-action-btn hunk-stage-btn line-hover-btn":"hunk-action-btn hunk-unstage-btn line-hover-btn",r.innerHTML=o?"+":"−",r.title=o?F.ui_trackedDiff_stageLine_tooltip():F.ui_trackedDiff_unstageLine_tooltip();const h=l=>{l.stopPropagation(),l.preventDefault()};r.onpointerdown=h,r.onpointerup=h,r.onmousedown=h,r.onmouseup=h,r.onclick=async l=>{if(l.stopPropagation(),l.preventDefault(),!(!ce()||t(_e)||t(ke))){H(_e,!0),r.disabled=!0,r.style.opacity="0.5";try{const g=t(ee)||s().relativePath||s().file,b=je(e.lineNumber,e.lineNumber,e.side);b&&(o&&U()?U()(g,b):!o&&A()&&A()(g,b)),Et(!0)}finally{H(_e,!1)}}},e.numberElement.appendChild(r),we=r})});var Bt={get change(){return s()},set change(e){s(e),m()},get active(){return I()},set active(e=!0){I(e),m()},get workspaceId(){return le()},set workspaceId(e){le(e),m()},get viewMode(){return B()},set viewMode(e="unified"){B(e),m()},get showHeader(){return Z()},set showHeader(e=!1){Z(e),m()},get foldUnchanged(){return Ne()},set foldUnchanged(e=!0){Ne(e),m()},get lineWrapping(){return Me()},set lineWrapping(e=!1){Me(e),m()},get onStageHunk(){return U()},set onStageHunk(e){U(e),m()},get onUnstageHunk(){return A()},set onUnstageHunk(e){A(e),m()},get onOpenCommit(){return et()},set onOpenCommit(e){et(e),m()},get refreshKey(){return Ue()},set refreshKey(e){Ue(e),m()},get branchBaseRef(){return Ae()},set branchBaseRef(e){Ae(e),m()},get branchBaseCommitSha(){return Ee()},set branchBaseCommitSha(e){Ee(e),m()},get useProvidedContent(){return ge()},set useProvidedContent(e=!1){ge(e),m()},get allowHeadReads(){return ce()},set allowHeadReads(e=!0){ce(e),m()},get canReadHeadFiles(){return Fe()},set canReadHeadFiles(e){Fe(e),m()},get lineOffset(){return W()},set lineOffset(e=1){W(e),m()},get lineStageIndicators(){return tt()},set lineStageIndicators(e){tt(e),m()},get annotations(){return Oe()},set annotations(e=[]){Oe(e),m()},get renderAnnotation(){return Te()},set renderAnnotation(e){Te(e),m()},get virtualizer(){return Be()},set virtualizer(e){Be(e),m()},get gitRootId(){return G()},set gitRootId(e=void 0){G(e),m()},get gitRootPath(){return be()},set gitRootPath(e=void 0){be(e),m()},$set:Jt,$on:(e,i)=>Qt(c,e,i)},Ge=Wn(),$t=M(Ge);{var zt=e=>{var i=Cn(),a=M(i),o=M(a);Re(o,{class:"h-4 w-48"});var u=O(o,2);Re(u,{class:"h-4 w-24"}),R(a);var r=O(a,2);on(r,20,()=>[0,1,2,3,4,5,6,7,8,9,10,11],rn,(h,l)=>{var g=Ln();let b;var S=M(g);Re(S,{class:"h-3 w-6 shrink-0"});var fe=O(S,2);Re(fe,{class:"h-3",style:`width: ${40+Math.random()*50}%`}),R(g),j(()=>b=ln(g,1,"diff-skeleton-line svelte-1f4chm",null,b,{"diff-skeleton-line--added":l%5===2,"diff-skeleton-line--removed":l%7===3})),L(h,g)}),R(r),R(i),L(e,i)},Kt=e=>{var i=yn(),a=M(i);wt(a,{get icon(){return _t},class:"text-danger"});var o=O(a,2),u=Je(o,!0);R(i),j(()=>X(u,t(nt))),L(e,i)},jt=e=>{var i=xn(),a=M(i);wt(a,{get icon(){return _t},class:"text-warning"});var o=O(a,2),u=Je(o,!0);R(i),j(r=>X(u,r),[()=>F.ui_trackedDiff_tooLarge_error()]),L(e,i)},qt=e=>{var i=Pn(),a=M(i),o=M(a);{var u=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_commitUnavailable_error()]),L(l,g)},r=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_noStagedChanges_label()]),L(l,g)},h=l=>{var g=Pe();j(b=>X(g,b),[()=>F.ui_trackedDiff_noUnstagedChanges_label()]),L(l,g)};me(o,l=>{s().stage==="committed"?l(u):s().stage==="staged"?l(r,1):l(h,-1)})}R(a),R(i),L(e,i)},Gt=e=>{var i=In(),a=M(i);{var o=h=>{const l=d(vt),g=d(()=>t(w).side==="additions"?t(l).additions:t(l).deletions),b=d(()=>Array.from({length:t(w).end-t(w).start+1},(k,y)=>t(w).start+y).filter(k=>t(g).has(k)).length);var S=Rn(),fe=M(S),_=Je(fe,!0),ve=O(fe,2);{var ne=k=>{var y=an(),D=Ze(y);{var ye=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-stage-btn h-auto! gap-1 rounded-sm! bg-success/15 px-2! py-[0.2rem]! text-success hover:bg-success/25",onclick:Ot,children:(N,E)=>{var z=Sn(),se=O(Ze(z));j(ue=>X(se,` ${ue??""}`),[()=>F.ui_trackedDiff_stage_label()]),L(N,z)},$$slots:{default:!0}})},C=x=>{Qe(x,{variant:"plain",size:"compact",class:"hunk-action-btn hunk-unstage-btn h-auto! gap-1 rounded-sm! bg-danger/15 px-2! py-[0.2rem]! text-danger hover:bg-danger/25",onclick:Tt,children:(N,E)=>{var z=Hn(),se=O(Ze(z));j(ue=>X(se,` ${ue??""}`),[()=>F.ui_trackedDiff_unstage_label()]),L(N,z)},$$slots:{default:!0}})};me(D,x=>{s().stage==="unstaged"&&U()?x(ye):s().stage==="staged"&&A()&&x(C,1)})}L(k,y)};me(ve,k=>{t(b)>0&&k(ne)})}var ie=O(ve,2);Qe(ie,{variant:"plain",size:"compact",class:"hunk-action-btn h-auto! rounded-sm! px-2! py-[0.2rem]! text-muted-foreground",onclick:()=>H(w,null),children:(k,y)=>{sn();var D=Pe("✕");L(k,D)},$$slots:{default:!0}}),R(S),j(k=>X(_,k),[()=>t(b)===1?F.ui_trackedDiff_linesSelected_one():F.ui_trackedDiff_linesSelected_many({count:bn(t(b))})]),L(h,S)};me(a,h=>{t(w)&&h(o)})}var u=O(a,2),r=M(u);{let h=d(()=>t(it)||void 0),l=d(()=>!Ne()),g=d(()=>Me()?"wrap":"scroll"),b=d(()=>!!(U()||A()));pn(r,{get patch(){return t(h)},get oldContent(){return t(St)},get newContent(){return t(Ht)},get oldCacheKey(){return t(Nt)},get newCacheKey(){return t(Mt)},get fileName(){return t(Le)},get language(){return t(Wt)},get viewMode(){return B()},get showHeader(){return Z()},showStats:!1,get expandUnchanged(){return t(l)},get overflow(){return t(g)},get enableLineSelection(){return t(b)},get selectedLines(){return t(w)},onLineSelected:Ft,onLineEnter:S=>{(U()||A())&&H(Ke,{lineNumber:S.lineNumber,side:S.annotationSide,lineElement:S.lineElement,numberElement:S.numberElement})},onLineLeave:()=>{H(Ke,null)},get annotations(){return Oe()},get renderAnnotation(){return Te()},get virtualizer(){return Be()},unsafeCSS:`
13
13
  /* Make line number column relative for hover button positioning */
14
14
  [data-column-number] {
15
15
  position: sticky;
@@ -1 +1 @@
1
- import{IX as s,i7 as a,ma as S,nK as f,mn as m}from"./BkzMrEqG.js";import{u as O}from"./DkNdI_Wp.js";import{dz as d,aV as k,dH as b}from"./BEyxbMng.js";const v=s.createSelector((t,e)=>{if(k.select(t,e)&&b.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),z=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),E=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),M=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),B=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),V=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),H=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),J=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),K=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),U=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{H as selectAllWorkspaceScriptEntries,K as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,U as selectScriptListPageState,z as selectScriptOutput,A as selectScriptOutputStreamReady,M as selectScriptOutputViewerWorkspaceIds,J as selectScriptReadJournal,E as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,B as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,V as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
1
+ import{IX as s,i7 as a,ma as S,nK as f,mn as m}from"./BkzMrEqG.js";import{u as O}from"./SLOyQ3jf.js";import{dK as d,b4 as b,dS as k}from"./-5BGDZDk.js";const v=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),B=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),K=s.createSelector((t,e)=>i(t,e).detectionOperation),L=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),P=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),J=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),X=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{J as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,K as selectScriptDetectionOperation,W as selectScriptEntries,X as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,L as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,B as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,P as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
@@ -1,4 +1,4 @@
1
- import{g as st}from"./kbpbXlKS.js";import{g as it}from"./CgS1Dv_8.js";import{s as at}from"./DHBQy6St.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./C9otdzZM.js";import{c as kt}from"./dGnsWF4N.js";import{aR as Et}from"./B0JbhmMb.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
1
+ import{g as st}from"./DOT4zZfJ.js";import{g as it}from"./CiTbcBZ_.js";import{s as at}from"./CHFWhULQ.js";import{b as f,ay as we,X as F,a1 as rt,aP as nt,bh as Ve,aW as fe,a_ as lt,V as ut,aZ as ot,U as ct,b0 as ht,Y as dt,z as I,r as pt,$ as At,am as ft,aU as gt,ab as mt,x as Ct,aV as bt,aI as U}from"./BrNYPcY3.js";import{c as kt}from"./B4M3z6rE.js";import{aR as Et}from"./bXhYFuj1.js";var Me=(function(){var t=f(function(O,c,d,p){for(d=d||{},p=O.length;p--;d[O[p]]=c);return d},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],u=[1,26],h=[1,42],o=[1,24],g=[1,25],m=[1,32],_=[1,33],Y=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],re=[1,62],_e=[1,63],Se=[1,64],S=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],le=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],W=[1,121],Q=[1,117],X=[1,113],j=[1,119],H=[1,114],q=[1,115],J=[1,116],Z=[1,118],$=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],oe=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(c,d,p,l,C,e,ee){var s=e.length-1;switch(C){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:l.addRelation(e[s]);break;case 20:e[s-1].title=l.cleanupLabel(e[s]),l.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[s]);break;case 37:this.$=l.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:l.setCssClass(e[s-2],e[s]);break;case 49:l.addMembers(e[s-3],e[s-1]);break;case 51:l.setCssClass(e[s-5],e[s-3]),l.addMembers(e[s-5],e[s-1]);break;case 52:l.addAnnotation(e[s-3],e[s-1]);break;case 53:l.addAnnotation(e[s-6],e[s-4]),l.addMembers(e[s-6],e[s-1]);break;case 54:l.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],l.addClass(e[s]);break;case 56:this.$=e[s-1],l.addClass(e[s-1]),l.setClassLabel(e[s-1],e[s]);break;case 60:l.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:l.addMember(e[s-1],l.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=l.addNote(e[s],e[s-1]);break;case 72:this.$=l.addNote(e[s]);break;case 73:this.$=e[s-2],l.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],l.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],l.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],l.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],l.setLink(e[s-2],e[s-1]),l.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],l.setLink(e[s-3],e[s-2],e[s]),l.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],l.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],l.setClickEvent(e[s-3],e[s-2],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],l.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],l.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],l.setLink(e[s-3],e[s-1]),l.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],l.setLink(e[s-4],e[s-2],e[s]),l.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],l.setCssStyle(e[s-1],e[s]);break;case 106:l.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Be,[2,5],{8:[1,48]}),{8:[1,49]},t(A,[2,19],{22:[1,50]}),t(A,[2,21]),t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),t(A,[2,26]),t(A,[2,27]),t(A,[2,28]),t(A,[2,29]),t(A,[2,30]),{34:[1,51]},{36:[1,52]},t(A,[2,33]),t(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se}),{39:[1,65]},t(S,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(A,[2,65]),t(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Pe,55:76},{58:78,60:[1,79]},t(A,[2,76]),t(A,[2,77]),t(A,[2,78]),t(A,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},t(ne,[2,133]),t(ne,[2,134]),t(ne,[2,135]),t(ne,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:u,48:h,51:o,52:g,54:m,56:_,57:Y,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},t(A,[2,20]),t(A,[2,31]),t(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:te,69:se,70:ie,71:ae,72:re,73:_e,74:Se},t(A,[2,64]),{67:93,73:_e,74:Se},t(le,[2,83],{66:94,68:te,69:se,70:ie,71:ae,72:re}),t(K,[2,84]),t(K,[2,85]),t(K,[2,86]),t(K,[2,87]),t(K,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:h,54:m,56:_},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:W,50:Q,59:110,60:X,82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},{60:[1,122]},{13:Pe,55:123},t(S,[2,72]),t(S,[2,138]),{22:W,50:Q,59:124,60:X,61:[1,125],82:j,84:111,85:112,86:H,87:q,88:J,89:Z,90:$},t(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(oe,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),t(oe,[2,10]),t(Ne,[2,55],{11:131,12:Ue}),t(Be,[2,7]),{9:[1,132]},t(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},t(le,[2,82],{66:136,68:te,69:se,70:ie,71:ae,72:re}),t(le,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:h,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(S,[2,48],{39:[1,142]}),{41:[1,143]},t(S,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},t(A,[2,91],{13:[1,147]}),t(A,[2,93],{13:[1,149],77:[1,148]}),t(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(A,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(x,[2,109]),t(x,[2,111]),t(x,[2,112]),t(x,[2,113]),t(x,[2,114]),t(x,[2,115]),t(x,[2,116]),t(x,[2,117]),t(x,[2,118]),t(x,[2,119]),t(A,[2,106]),t(S,[2,71]),t(A,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},t(oe,[2,12]),t(Ne,[2,56]),{1:[2,4]},t(ce,[2,69]),t(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},t(le,[2,80]),t(S,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:h,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:h,54:m,56:_},{45:163,51:ue},t(S,[2,49]),{41:[2,62]},t(S,[2,52],{39:[1,164]}),t(A,[2,60]),t(A,[2,92]),t(A,[2,94]),t(A,[2,95],{77:[1,165]}),t(A,[2,98]),t(A,[2,99],{13:[1,166]}),t(A,[2,101],{13:[1,168],77:[1,167]}),{22:W,50:Q,60:X,82:j,84:169,85:112,86:H,87:q,88:J,89:Z,90:$},t(x,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(oe,[2,11]),t(ce,[2,70]),t(S,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},t(A,[2,96]),t(A,[2,100]),t(A,[2,102]),t(A,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:W,50:Q,60:X,82:j,86:H,87:q,88:J,89:Z,90:$}),t(Ne,[2,8]),t(S,[2,51]),{41:[1,175]},t(S,[2,54]),t(A,[2,104]),t(S,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(c,d){if(d.recoverable)this.trace(c);else{var p=new Error(c);throw p.hash=d,p}},"parseError"),parse:f(function(c){var d=this,p=[0],l=[],C=[null],e=[],ee=this.table,s="",de=0,Ke=0,Ze=2,We=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(c,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(N){p.length=p.length-2*N,C.length=C.length-N,e.length=e.length-N}f(tt,"popStack");function Qe(){var N;return N=l.pop()||D.lex()||We,typeof N!="number"&&(N instanceof Array&&(l=N,N=l.pop()),N=d.symbols_[N]||N),N}f(Qe,"lex");for(var B,M,L,Ie,G={},pe,v,Xe,Ae;;){if(M=p[p.length-1],this.defaultActions[M]?L=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Qe()),L=ee[M]&&ee[M][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";Ae=[];for(pe in ee[M])this.terminals_[pe]&&pe>Ze&&Ae.push("'"+this.terminals_[pe]+"'");D.showPosition?Oe="Parse error on line "+(de+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Ae.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(de+1)+": Unexpected "+(B==We?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:Ae})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ke=D.yyleng,s=D.yytext,de=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[s,Ke,de,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),Xe=ee[p[p.length-2]][p[p.length-1]],p.push(Xe);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(d,p){if(this.yy.parser)this.yy.parser.parseError(d,p);else throw new Error(d)},"parseError"),setInput:f(function(c,d){return this.yy=d||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var d=c.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:f(function(c){var d=c.length,p=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(c){this.unput(this.match.slice(c))},"less"),pastInput:f(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var c=this.pastInput(),d=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./C9otdzZM.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./BrNYPcY3.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{d as p}from"./CD7PpB6R.js";import{A as s,z as l}from"./Bhx5E4sN.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./Bgk8kfr8.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
1
+ import{d as p}from"./CD7PpB6R.js";import{A as s,z as l}from"./BjEuTkmJ.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./bwHjDwdJ.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};