@intent-hq/web 2.375.0 → 2.375.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BYogu-bj.js → -18XT1CI.js} +1 -1
  3. package/web/app/immutable/chunks/{DY8-bGLw.js → 1KCpY35B.js} +1 -1
  4. package/web/app/immutable/chunks/1Wzdy1K8.js +12 -0
  5. package/web/app/immutable/chunks/{NyvVPxLt.js → 3rxHCGTW.js} +1 -1
  6. package/web/app/immutable/chunks/{C4yk8OLB.js → 4r36FIB7.js} +1 -1
  7. package/web/app/immutable/chunks/{BoTkFjlQ.js → 5mmUTVhd.js} +1 -1
  8. package/web/app/immutable/chunks/{BxuGFBPU.js → 5uDsFopc.js} +1 -1
  9. package/web/app/immutable/chunks/{CoLZlFYv.js → 67uMgcnU.js} +1 -1
  10. package/web/app/immutable/chunks/{DnW7RewE.js → 6JKrky9_.js} +1 -1
  11. package/web/app/immutable/chunks/{CdiJBGdH.js → 8TUe2kcz.js} +1 -1
  12. package/web/app/immutable/chunks/{DMQUTKig.js → B0O5mhBM.js} +1 -1
  13. package/web/app/immutable/chunks/{DCi4jsW7.js → B3fU6XQp.js} +1 -1
  14. package/web/app/immutable/chunks/{CdQuSExc.js → B4SJ0wZk.js} +1 -1
  15. package/web/app/immutable/chunks/{BDeX-hV0.js → B4mmdCiF.js} +1 -1
  16. package/web/app/immutable/chunks/{C0HEk9AZ.js → B4n9OEnJ.js} +1 -1
  17. package/web/app/immutable/chunks/{BxJGXAvM.js → B5CW3gDe.js} +3 -3
  18. package/web/app/immutable/chunks/{3fIKXjaK.js → B5bnHhgO.js} +1 -1
  19. package/web/app/immutable/chunks/{DTUWt5u-.js → B6CxzJhM.js} +1 -1
  20. package/web/app/immutable/chunks/B6sO6A0G.js +1 -0
  21. package/web/app/immutable/chunks/{DlFrh3FY.js → B7ydANq7.js} +1 -1
  22. package/web/app/immutable/chunks/{D81i36ko.js → B9-EoZ1p.js} +1 -1
  23. package/web/app/immutable/chunks/{BDM8O32C.js → BBiqqybB.js} +1 -1
  24. package/web/app/immutable/chunks/{B1dMemvb.js → BCKmKE5y.js} +1 -1
  25. package/web/app/immutable/chunks/{C04LXojG.js → BDXSQt10.js} +2 -2
  26. package/web/app/immutable/chunks/{B-0UNcin.js → BDsVnMYl.js} +1 -1
  27. package/web/app/immutable/chunks/{CKqrw6-U.js → BE5ZU7pI.js} +1 -1
  28. package/web/app/immutable/chunks/{iXlzTS6K.js → BHni5QqW.js} +1 -1
  29. package/web/app/immutable/chunks/{BbI2IBsU.js → BIo9gpGl.js} +1 -1
  30. package/web/app/immutable/chunks/{BpEdOU8N.js → BJuNVIII.js} +1 -1
  31. package/web/app/immutable/chunks/{Cx3Axnc1.js → BK0rB8kZ.js} +1 -1
  32. package/web/app/immutable/chunks/{BzIUVTEA.js → BKPOvbtV.js} +1 -1
  33. package/web/app/immutable/chunks/{DS0_akpz.js → BL39LNxU.js} +1 -1
  34. package/web/app/immutable/chunks/{DUTTFDMl.js → BLYFfqzj.js} +1 -1
  35. package/web/app/immutable/chunks/{CNad7mgH.js → BO3WriTy.js} +1 -1
  36. package/web/app/immutable/chunks/{CnMXdQqd.js → BOsHJKjO.js} +2 -2
  37. package/web/app/immutable/chunks/{C5WtrNXY.js → BQg4hK6W.js} +1 -1
  38. package/web/app/immutable/chunks/{DLsqMqdx.js → BReER1n3.js} +1 -1
  39. package/web/app/immutable/chunks/BSev9KPj.js +1 -0
  40. package/web/app/immutable/chunks/{Dj7hHjNn.js → BSroN1Rt.js} +1 -1
  41. package/web/app/immutable/chunks/{C6b3Oam9.js → BTKPx9nP.js} +1 -1
  42. package/web/app/immutable/chunks/{D4BkzUXQ.js → BWtq4mC4.js} +1 -1
  43. package/web/app/immutable/chunks/{D3tEa5fS.js → BX9IoE2d.js} +1 -1
  44. package/web/app/immutable/chunks/{B8U8ymLg.js → BY16_RoT.js} +1 -1
  45. package/web/app/immutable/chunks/{D7Znc5A-.js → BYC0ucSR.js} +1 -1
  46. package/web/app/immutable/chunks/{kO5CFnIq.js → BZSs3eKh.js} +1 -1
  47. package/web/app/immutable/chunks/{BlvVFb0z.js → B_3JIPw3.js} +1 -1
  48. package/web/app/immutable/chunks/{DeCffqah.js → B_jbAa0I.js} +1 -1
  49. package/web/app/immutable/chunks/{CisSb_NQ.js → Bb_mQye1.js} +1 -1
  50. package/web/app/immutable/chunks/{CEh-jvyV.js → BbzFLKZE.js} +1 -1
  51. package/web/app/immutable/chunks/{BkfIbKpm.js → Bd6SODL5.js} +1 -1
  52. package/web/app/immutable/chunks/{Cj4Wvakk.js → BepABSAk.js} +1 -1
  53. package/web/app/immutable/chunks/{CZ-Otxud.js → BevEoYEw.js} +1 -1
  54. package/web/app/immutable/chunks/{DBuxso7-.js → BifXEk-G.js} +1 -1
  55. package/web/app/immutable/chunks/{BmN9eMeC.js → BjWOzuMm.js} +4 -4
  56. package/web/app/immutable/chunks/{LkAbPA3x.js → Bk5eDkyv.js} +1 -1
  57. package/web/app/immutable/chunks/{BlFWFkDq.js → BkLJnbD1.js} +1 -1
  58. package/web/app/immutable/chunks/{BHp9-XtH.js → Bl8fHOk-.js} +1 -1
  59. package/web/app/immutable/chunks/{BlVozVXB.js → BlyKuyB7.js} +1 -1
  60. package/web/app/immutable/chunks/{gyBy3YIF.js → BmC0p6X8.js} +1 -1
  61. package/web/app/immutable/chunks/{BOy_Wcgz.js → BmEIQ8E-.js} +1 -1
  62. package/web/app/immutable/chunks/{BWVmOkZf.js → BowQ7sBM.js} +1 -1
  63. package/web/app/immutable/chunks/{BKcCLHUi.js → BrFnR1vI.js} +1 -1
  64. package/web/app/immutable/chunks/{BdHGSxzZ.js → BsknvdQb.js} +1 -1
  65. package/web/app/immutable/chunks/{BZlyP16z.js → Bu7GfLOK.js} +1 -1
  66. package/web/app/immutable/chunks/Bv8Gaorn.js +1 -0
  67. package/web/app/immutable/chunks/{BeCwj6et.js → Bw0E8D92.js} +1 -1
  68. package/web/app/immutable/chunks/{lF5WnZ3-.js → BxVNHcGR.js} +1 -1
  69. package/web/app/immutable/chunks/{C_eOvqDJ.js → Byjmi-8z.js} +2 -2
  70. package/web/app/immutable/chunks/{DAT4JPEx.js → C-7W2F0B.js} +1 -1
  71. package/web/app/immutable/chunks/{j_oTTwFB.js → C-JwFHXS.js} +1 -1
  72. package/web/app/immutable/chunks/{Cbx_60Vg.js → C-nutp9J.js} +1 -1
  73. package/web/app/immutable/chunks/{lkd1ZW-k.js → C-zY3GF-.js} +1 -1
  74. package/web/app/immutable/chunks/{NdDKvLdx.js → C0JDt0nm.js} +2 -2
  75. package/web/app/immutable/chunks/{DUp34__o.js → C1m4pSe1.js} +1 -1
  76. package/web/app/immutable/chunks/{BSWBtDcr.js → C44hzh9R.js} +1 -1
  77. package/web/app/immutable/chunks/{ChqwAuuS.js → C58p8xFm.js} +1 -1
  78. package/web/app/immutable/chunks/{UPwMK71A.js → C5l6D9GX.js} +1 -1
  79. package/web/app/immutable/chunks/{t57p8czG.js → C6GJZLOP.js} +1 -1
  80. package/web/app/immutable/chunks/{D3-qDIir.js → C6jYe9up.js} +1 -1
  81. package/web/app/immutable/chunks/{IPXYrXvJ.js → C7TJE1vk.js} +1 -1
  82. package/web/app/immutable/chunks/{DG2Vjnib.js → C7Uh4cHO.js} +1 -1
  83. package/web/app/immutable/chunks/{B8I7pbMG.js → C9EedYBu.js} +1 -1
  84. package/web/app/immutable/chunks/CAEqRKhy.js +1 -0
  85. package/web/app/immutable/chunks/{Cx0aJCCn.js → CBHXSekd.js} +1 -1
  86. package/web/app/immutable/chunks/{DhMJ3PnT.js → CBRC7st2.js} +2 -2
  87. package/web/app/immutable/chunks/{PLPaJ2HO.js → CBl7oWeN.js} +1 -1
  88. package/web/app/immutable/chunks/{nES0rRaw.js → CBtQnhwT.js} +1 -1
  89. package/web/app/immutable/chunks/{BiwLrn4E.js → CCEQVSjx.js} +1 -1
  90. package/web/app/immutable/chunks/{CjtdrNRe.js → CF0098kp.js} +1 -1
  91. package/web/app/immutable/chunks/{DG1kBw3h.js → CFUDIGea.js} +1 -1
  92. package/web/app/immutable/chunks/{DHAEf5XB.js → CFhbo3o1.js} +1 -1
  93. package/web/app/immutable/chunks/{R0He56Uf.js → CFqcGY4P.js} +1 -1
  94. package/web/app/immutable/chunks/{ClE-EAmS.js → CFtfWLBC.js} +1 -1
  95. package/web/app/immutable/chunks/{dO-3u787.js → CGG7txTQ.js} +1 -1
  96. package/web/app/immutable/chunks/{BGx3lSS2.js → CHLHWub0.js} +1 -1
  97. package/web/app/immutable/chunks/{Dt8kaikV.js → CHUCX9T6.js} +1 -1
  98. package/web/app/immutable/chunks/{CF36ME8F.js → CJZ6Gu1k.js} +1 -1
  99. package/web/app/immutable/chunks/{CgePgoYW.js → CM4xaytB.js} +1 -1
  100. package/web/app/immutable/chunks/{DjhHef4w.js → CMFbZICM.js} +2 -2
  101. package/web/app/immutable/chunks/{Cpus9POS.js → COIbDYtT.js} +3 -3
  102. package/web/app/immutable/chunks/{CunUunks.js → COUB9dHY.js} +1 -1
  103. package/web/app/immutable/chunks/{DBd9doot.js → CQ6jYKtE.js} +1 -1
  104. package/web/app/immutable/chunks/{CJaSdgYt.js → CQxAYjD7.js} +1 -1
  105. package/web/app/immutable/chunks/{CeUo6ir6.js → CRl6sOjh.js} +1 -1
  106. package/web/app/immutable/chunks/{efzPt1Zl.js → CSbK1_CV.js} +2 -2
  107. package/web/app/immutable/chunks/{CRLn893E.js → CUXVMwZ6.js} +1 -1
  108. package/web/app/immutable/chunks/{Db2NLoI0.js → CXjIzVpl.js} +1 -1
  109. package/web/app/immutable/chunks/{6rhpXb_m.js → CYWgGrsf.js} +1 -1
  110. package/web/app/immutable/chunks/{CvhvCjNT.js → CYYyuCBb.js} +1 -1
  111. package/web/app/immutable/chunks/{DdDcIctL.js → CZJDTQJi.js} +1 -1
  112. package/web/app/immutable/chunks/{C60Uj5Oh.js → C_GpcLP2.js} +1 -1
  113. package/web/app/immutable/chunks/{BjsevBrV.js → CberoJl6.js} +1 -1
  114. package/web/app/immutable/chunks/{Cu4z1p3l.js → CdvXSvOC.js} +1 -1
  115. package/web/app/immutable/chunks/{gzvqMIq4.js → ChGLvrw4.js} +4 -4
  116. package/web/app/immutable/chunks/{VsHx9wnL.js → ChJ4msi3.js} +1 -1
  117. package/web/app/immutable/chunks/{B4qbKSgg.js → ChbTF48b.js} +1 -1
  118. package/web/app/immutable/chunks/{C9d126Vu.js → ChoM6f6w.js} +1 -1
  119. package/web/app/immutable/chunks/{BCw3PFII.js → CiD4x8Gl.js} +1 -1
  120. package/web/app/immutable/chunks/{B45MDJRY.js → CiJWG6bO.js} +1 -1
  121. package/web/app/immutable/chunks/{DY-y47zV.js → Cin575hV.js} +1 -1
  122. package/web/app/immutable/chunks/{ycAf5D94.js → CkRR8JwL.js} +1 -1
  123. package/web/app/immutable/chunks/{BOuSTURu.js → ClkC2csJ.js} +1 -1
  124. package/web/app/immutable/chunks/{CytaUFLx.js → Cn8hCY5y.js} +1 -1
  125. package/web/app/immutable/chunks/{DOV_3Mb_.js → CnMgdwKG.js} +1 -1
  126. package/web/app/immutable/chunks/{DnQa14YB.js → CpV-ehZ5.js} +1 -1
  127. package/web/app/immutable/chunks/{Che_ZGoB.js → CpYW1yE7.js} +2 -2
  128. package/web/app/immutable/chunks/{BLpjwv6g.js → Cpr2SOSC.js} +1 -1
  129. package/web/app/immutable/chunks/{BdAehcZ4.js → Cq76BY90.js} +1 -1
  130. package/web/app/immutable/chunks/{CdjQq0Iu.js → CqJcYBUx.js} +1 -1
  131. package/web/app/immutable/chunks/{CwUpeMKt.js → Cr9glZDh.js} +1 -1
  132. package/web/app/immutable/chunks/{mqCCiO3s.js → CtX28OJm.js} +1 -1
  133. package/web/app/immutable/chunks/{1KuByHV1.js → Ctusnxiu.js} +1 -1
  134. package/web/app/immutable/chunks/{BkqMr_q6.js → Cwvt_P5T.js} +1 -1
  135. package/web/app/immutable/chunks/{DjvCFFB8.js → Cy9qAjIU.js} +1 -1
  136. package/web/app/immutable/chunks/{CyVcBEzZ.js → CyaIe0jD.js} +1 -1
  137. package/web/app/immutable/chunks/{BXTkPpUv.js → CyyqjEBc.js} +1 -1
  138. package/web/app/immutable/chunks/{BIzY31od.js → CzEqpD5b.js} +1 -1
  139. package/web/app/immutable/chunks/{B4eWJ_Bu.js → D-ls8znw.js} +1 -1
  140. package/web/app/immutable/chunks/{Ch6MwtBn.js → D0Ayz4Dm.js} +1 -1
  141. package/web/app/immutable/chunks/{CkRSDCDR.js → D1HPSWvP.js} +1 -1
  142. package/web/app/immutable/chunks/{ueuVa6sz.js → D1JjMDax.js} +1 -1
  143. package/web/app/immutable/chunks/{DAdd_SrZ.js → D3HVFnZe.js} +1 -1
  144. package/web/app/immutable/chunks/{9QwiN4xS.js → D5HhSqbc.js} +1 -1
  145. package/web/app/immutable/chunks/{CQnJHfSe.js → D6GBnYDv.js} +1 -1
  146. package/web/app/immutable/chunks/{aAABEVAu.js → D6YX_GFv.js} +1 -1
  147. package/web/app/immutable/chunks/{D0bCU7BS.js → D6hUzfgH.js} +1 -1
  148. package/web/app/immutable/chunks/{DysRimch.js → D806p2LW.js} +3 -3
  149. package/web/app/immutable/chunks/{BQxY3Ah2.js → D85P44Dj.js} +1 -1
  150. package/web/app/immutable/chunks/{B-h9NFYC.js → D9JbOH_S.js} +1 -1
  151. package/web/app/immutable/chunks/{BMfGe3vU.js → DCTwUEO7.js} +1 -1
  152. package/web/app/immutable/chunks/{BgFK1Tzv.js → DD_c8x6U.js} +2 -2
  153. package/web/app/immutable/chunks/{Cv8M_XyW.js → DGlNRMU1.js} +1 -1
  154. package/web/app/immutable/chunks/{CGAlSkwN.js → DHqMqA41.js} +1 -1
  155. package/web/app/immutable/chunks/{CpyyX5GQ.js → DINI7WNX.js} +1 -1
  156. package/web/app/immutable/chunks/{coq9FxQ3.js → DIylOQL5.js} +1 -1
  157. package/web/app/immutable/chunks/{D16lDZLt.js → DJ2vnC9G.js} +1 -1
  158. package/web/app/immutable/chunks/{CU4JJfZR.js → DJuFWuFo.js} +1 -1
  159. package/web/app/immutable/chunks/{UjSZ0w3K.js → DK-vph3Z.js} +1 -1
  160. package/web/app/immutable/chunks/{BhM4m95K.js → DK3AlKip.js} +3 -3
  161. package/web/app/immutable/chunks/{BCFZGfl3.js → DKUOdUyV.js} +1 -1
  162. package/web/app/immutable/chunks/{Dgmbj_bB.js → DMqmqAT4.js} +1 -1
  163. package/web/app/immutable/chunks/{C7qjCqmJ.js → DNozBV3M.js} +1 -1
  164. package/web/app/immutable/chunks/{DiXR792D.js → DODG7FHv.js} +1 -1
  165. package/web/app/immutable/chunks/{B7yIgn9w.js → DQAJLaJ3.js} +1 -1
  166. package/web/app/immutable/chunks/{rKuNIkDh.js → DQiheiDa.js} +52 -52
  167. package/web/app/immutable/chunks/{K4_NaV74.js → DRPKvmfX.js} +1 -1
  168. package/web/app/immutable/chunks/{nMnXffEL.js → DSiF4FpM.js} +1 -1
  169. package/web/app/immutable/chunks/{lCedglYn.js → DSiZ9qTg.js} +1 -1
  170. package/web/app/immutable/chunks/{BIt3aMON.js → DTutiDCZ.js} +1 -1
  171. package/web/app/immutable/chunks/{DJaYkAp9.js → DUXVcIKV.js} +1 -1
  172. package/web/app/immutable/chunks/{B9rE1azb.js → DVNEvaXi.js} +1 -1
  173. package/web/app/immutable/chunks/{aPLMYR6x.js → DV_Q2hiQ.js} +2 -2
  174. package/web/app/immutable/chunks/{qyt39Ht-.js → DVcCnfZH.js} +1 -1
  175. package/web/app/immutable/chunks/{eUGUwBNS.js → DXwcjaPR.js} +2 -2
  176. package/web/app/immutable/chunks/{Cbw5HtgA.js → DY61j2wq.js} +1 -1
  177. package/web/app/immutable/chunks/{BW2Yo-SX.js → DZ8q1fkg.js} +1 -1
  178. package/web/app/immutable/chunks/{CXhvHjWN.js → DZBnfhEV.js} +1 -1
  179. package/web/app/immutable/chunks/{B8rr1q9-.js → DZCvTRBp.js} +1 -1
  180. package/web/app/immutable/chunks/{qeN6jwZr.js → DZmV2kHY.js} +1 -1
  181. package/web/app/immutable/chunks/{PJ8cN6ou.js → D_Y9WK2x.js} +1 -1
  182. package/web/app/immutable/chunks/{Cfx0Uwi9.js → D_o67XD6.js} +2 -2
  183. package/web/app/immutable/chunks/{DdSMqDgB.js → D_otNUZh.js} +1 -1
  184. package/web/app/immutable/chunks/{CF0xdc6u.js → DaUQbJQJ.js} +1 -1
  185. package/web/app/immutable/chunks/{PJnBj4PL.js → DaysnCXK.js} +1 -1
  186. package/web/app/immutable/chunks/{DdaL8kO7.js → DbCeN0Lt.js} +1 -1
  187. package/web/app/immutable/chunks/{C897WMf7.js → Db_i0IkD.js} +1 -1
  188. package/web/app/immutable/chunks/{C_QSTf7H.js → DcNvIFJV.js} +1 -1
  189. package/web/app/immutable/chunks/{B3iO_RpU.js → DfdqseMI.js} +1 -1
  190. package/web/app/immutable/chunks/{DR1xQ152.js → DgH7yAy-.js} +1 -1
  191. package/web/app/immutable/chunks/{D-C_OFxV.js → DgIh2Fs6.js} +1 -1
  192. package/web/app/immutable/chunks/{B7Sl095x.js → DgOwYCT0.js} +1 -1
  193. package/web/app/immutable/chunks/{BgKYBpWf.js → DgaiTQpw.js} +1 -1
  194. package/web/app/immutable/chunks/{DFaYuYDf.js → DgiJ63hc.js} +3 -3
  195. package/web/app/immutable/chunks/{B_P3r1-k.js → Dgn5Otg4.js} +1 -1
  196. package/web/app/immutable/chunks/{Dj4HIfWz.js → Di9CSB6H.js} +1 -1
  197. package/web/app/immutable/chunks/{DtpcD4U7.js → DinWeICM.js} +1 -1
  198. package/web/app/immutable/chunks/{kPuGutoa.js → DkkEizQf.js} +1 -1
  199. package/web/app/immutable/chunks/{BlU6dzw_.js → DmQm2Dw6.js} +1 -1
  200. package/web/app/immutable/chunks/{CQHoIlzj.js → Dn-hGN0g.js} +1 -1
  201. package/web/app/immutable/chunks/{CmF_I-JV.js → DoA3JmdK.js} +1 -1
  202. package/web/app/immutable/chunks/{CoZESMt1.js → DoIr8Q2r.js} +1 -1
  203. package/web/app/immutable/chunks/{CuogsFO0.js → DoQnqQZn.js} +1 -1
  204. package/web/app/immutable/chunks/{IJ6BnyUd.js → DppdhMsn.js} +1 -1
  205. package/web/app/immutable/chunks/{uoOOJoue.js → Dqtmunn7.js} +4 -4
  206. package/web/app/immutable/chunks/{DJ5SulcN.js → DqujvsHK.js} +1 -1
  207. package/web/app/immutable/chunks/{D5Cc6bEQ.js → Dr4PDf9D.js} +1 -1
  208. package/web/app/immutable/chunks/{DCngoUvs.js → Ds6Uj2aI.js} +1 -1
  209. package/web/app/immutable/chunks/{BmXlH5RC.js → DtBx3nLm.js} +1 -1
  210. package/web/app/immutable/chunks/{ywq48MB2.js → Dtveg46I.js} +1 -1
  211. package/web/app/immutable/chunks/{BQ-8Lxdd.js → DuDStABj.js} +1 -1
  212. package/web/app/immutable/chunks/{_viKFP4W.js → DuPkRrZF.js} +1 -1
  213. package/web/app/immutable/chunks/{D-HWDX4K.js → Dv3EtVHJ.js} +1 -1
  214. package/web/app/immutable/chunks/{pCJyWOyN.js → DvOdp8Jx.js} +1 -1
  215. package/web/app/immutable/chunks/{CarcaJXf.js → DyT0mOdr.js} +1 -1
  216. package/web/app/immutable/chunks/{BYPnzqei.js → DyiA0AJU.js} +1 -1
  217. package/web/app/immutable/chunks/{D1zUrWJo.js → DzVqblgy.js} +1 -1
  218. package/web/app/immutable/chunks/{D_cHFDRi.js → DzfHkSZF.js} +1 -1
  219. package/web/app/immutable/chunks/{D5WzxpYo.js → E0KBz4I2.js} +1 -1
  220. package/web/app/immutable/chunks/{BEN8keLf.js → EZ4dI6hS.js} +1 -1
  221. package/web/app/immutable/chunks/{-BZC3U8b.js → F-NRzkEu.js} +1 -1
  222. package/web/app/immutable/chunks/{RBtKwdDC.js → GlvfRTgI.js} +1 -1
  223. package/web/app/immutable/chunks/{Bu9YxoMA.js → H3ekn9Mt.js} +1 -1
  224. package/web/app/immutable/chunks/{8BUqeceP.js → IVk1JAtP.js} +1 -1
  225. package/web/app/immutable/chunks/{B7FsENXo.js → Ilt_8E2i.js} +1 -1
  226. package/web/app/immutable/chunks/{DpjOp9Sn.js → Jcrj5YZi.js} +1 -1
  227. package/web/app/immutable/chunks/{C1zmjVy5.js → K7F-rH-C.js} +4 -4
  228. package/web/app/immutable/chunks/{QBswXAkz.js → LAC4SG96.js} +1 -1
  229. package/web/app/immutable/chunks/{yr1egAsa.js → LDe4IsYZ.js} +1 -1
  230. package/web/app/immutable/chunks/{mP9DD0dN.js → LGfIT3MS.js} +3 -3
  231. package/web/app/immutable/chunks/{CggbhM-s.js → LNZr9DCJ.js} +1 -1
  232. package/web/app/immutable/chunks/{BsJAhD8r.js → MBA6k0j3.js} +1 -1
  233. package/web/app/immutable/chunks/{MVCeYY5c.js → MyWfy8xc.js} +1 -1
  234. package/web/app/immutable/chunks/{kqwM5HmG.js → NgEAPl8f.js} +1 -1
  235. package/web/app/immutable/chunks/{DhixUnpP.js → P-zm4ktU.js} +1 -1
  236. package/web/app/immutable/chunks/{6aII5Cgf.js → P3O1Bi5N.js} +1 -1
  237. package/web/app/immutable/chunks/{DzfjBHN3.js → PCtwJJ25.js} +1 -1
  238. package/web/app/immutable/chunks/{CjzqHcYu.js → PZRS5x7m.js} +1 -1
  239. package/web/app/immutable/chunks/{D7FMDsd6.js → Q5HWwxnx.js} +1 -1
  240. package/web/app/immutable/chunks/{BZIZfqWH.js → QjNLPDal.js} +1 -1
  241. package/web/app/immutable/chunks/{TkW_aBfj.js → RLFGU-s6.js} +1 -1
  242. package/web/app/immutable/chunks/{CPrQ_SyG.js → S7_elIn6.js} +1 -1
  243. package/web/app/immutable/chunks/{Bn-XmNjh.js → SMT1sep4.js} +1 -1
  244. package/web/app/immutable/chunks/{D59QVzZ2.js → TodMLsNs.js} +1 -1
  245. package/web/app/immutable/chunks/{OrseeHOk.js → U6kzE96u.js} +1 -1
  246. package/web/app/immutable/chunks/{BC6wNnH8.js → Xgzrv-dN.js} +1 -1
  247. package/web/app/immutable/chunks/{BHvmc93F.js → XyC5Phh7.js} +1 -1
  248. package/web/app/immutable/chunks/{b7-XGFbs.js → YbP7yBkb.js} +1 -1
  249. package/web/app/immutable/chunks/{DUw0rn4I.js → YfYAjqUM.js} +1 -1
  250. package/web/app/immutable/chunks/{k8R6kkwA.js → Zw1KxEm0.js} +1 -1
  251. package/web/app/immutable/chunks/{CqRUehlG.js → a-OtAcF_.js} +3 -3
  252. package/web/app/immutable/chunks/{gUTBVrU_.js → aToNeEMa.js} +1 -1
  253. package/web/app/immutable/chunks/{CL0Ul_VC.js → alEgYZuT.js} +1 -1
  254. package/web/app/immutable/chunks/{WUCjIef5.js → dqvdjjXR.js} +3 -3
  255. package/web/app/immutable/chunks/{BVHQax_4.js → eGxC9Zfx.js} +1 -1
  256. package/web/app/immutable/chunks/{BbiNirix.js → eZSKfAFO.js} +1 -1
  257. package/web/app/immutable/chunks/{bNS6tsE5.js → fXti0RCR.js} +1 -1
  258. package/web/app/immutable/chunks/{BqIIGYCT.js → fXwGuYzr.js} +1 -1
  259. package/web/app/immutable/chunks/{4KqT7Ll0.js → gSg6l32T.js} +1 -1
  260. package/web/app/immutable/chunks/{DkNG60p-.js → gcpLbmeh.js} +1 -1
  261. package/web/app/immutable/chunks/{BlEleC0R.js → grQh-L5q.js} +1 -1
  262. package/web/app/immutable/chunks/{CSjq4Rsm.js → gsUgKMwT.js} +1 -1
  263. package/web/app/immutable/chunks/{BWCYhS_o.js → hK5d1dQ0.js} +1 -1
  264. package/web/app/immutable/chunks/{efBfHuTf.js → iwQqOlmN.js} +1 -1
  265. package/web/app/immutable/chunks/{DOtACZp0.js → iykV4pvb.js} +1 -1
  266. package/web/app/immutable/chunks/{Dvcc8olV.js → jG67l4Uo.js} +2 -2
  267. package/web/app/immutable/chunks/{DszyMWl_.js → jaSHlZjt.js} +1 -1
  268. package/web/app/immutable/chunks/{B7gxRFm3.js → kFANwwYX.js} +1 -1
  269. package/web/app/immutable/chunks/{CLTU5aWY.js → kFRDyP-N.js} +1 -1
  270. package/web/app/immutable/chunks/{DJEHRSq_.js → kZanyiqf.js} +1 -1
  271. package/web/app/immutable/chunks/{sJIt3ZV1.js → kuwy0JZA.js} +1 -1
  272. package/web/app/immutable/chunks/{BFZcOfoA.js → l4TJFOXC.js} +1 -1
  273. package/web/app/immutable/chunks/{vnnHd3CB.js → m8gDbIPC.js} +1 -1
  274. package/web/app/immutable/chunks/{k0igsnU-.js → mF8ZdCMN.js} +1 -1
  275. package/web/app/immutable/chunks/{CFpseBSm.js → mM-wy2h5.js} +1 -1
  276. package/web/app/immutable/chunks/{6nDRYcXT.js → mdoDOmuU.js} +1 -1
  277. package/web/app/immutable/chunks/{BLEC0ier.js → njprJ3WZ.js} +1 -1
  278. package/web/app/immutable/chunks/{CYT6Zdgd.js → o1gxvTJU.js} +1 -1
  279. package/web/app/immutable/chunks/{BQx6c711.js → oJ_ZL_ms.js} +1 -1
  280. package/web/app/immutable/chunks/{CgsnCgev.js → pZsrsFnW.js} +1 -1
  281. package/web/app/immutable/chunks/{_RMhjDCV.js → qPYbzgcC.js} +1 -1
  282. package/web/app/immutable/chunks/{Cdzh4wsB.js → qkmjEtXH.js} +1 -1
  283. package/web/app/immutable/chunks/{DN_jSXnP.js → t4bVJhrn.js} +3 -3
  284. package/web/app/immutable/chunks/{BqMwpfl2.js → tnfQ532f.js} +1 -1
  285. package/web/app/immutable/chunks/{D9GV0_ko.js → uE6SDSU_.js} +1 -1
  286. package/web/app/immutable/chunks/{C9QSNlT9.js → vXh-PQQZ.js} +1 -1
  287. package/web/app/immutable/chunks/{BnI9SXVE.js → xS3xfMki.js} +1 -1
  288. package/web/app/immutable/chunks/{Bw5VPB2A.js → y-lOZYhA.js} +1 -1
  289. package/web/app/immutable/chunks/{DD9voCNU.js → yqs-hTyP.js} +1 -1
  290. package/web/app/immutable/chunks/{Dc7EtuTZ.js → zjXa9LeK.js} +1 -1
  291. package/web/app/immutable/chunks/{BQU2EwaQ.js → zrdFYBgX.js} +1 -1
  292. package/web/app/immutable/entry/{app.SHCnU6q6.js → app.B-3yrq60.js} +3 -3
  293. package/web/app/immutable/entry/start.DZZRsHd3.js +1 -0
  294. package/web/app/immutable/nodes/{0.CKJVR3z2.js → 0.Dr7z-ndg.js} +1 -1
  295. package/web/app/immutable/nodes/{1.BrE6tg5E.js → 1.DszvgcVt.js} +1 -1
  296. package/web/app/immutable/nodes/{10.B0HiMkto.js → 10.mpjVYgcT.js} +5 -5
  297. package/web/app/immutable/nodes/{11.DYgEwCUE.js → 11.d9OIWvmS.js} +1 -1
  298. package/web/app/immutable/nodes/{12.DD4ayee7.js → 12.hNKUSgvY.js} +1 -1
  299. package/web/app/immutable/nodes/{13.D-NXhoSd.js → 13.NTcuwB8X.js} +1 -1
  300. package/web/app/immutable/nodes/{14.B_lftzHg.js → 14.C4hEzDzc.js} +3 -3
  301. package/web/app/immutable/nodes/{15.C3-vZqfR.js → 15.BGv16BME.js} +1 -1
  302. package/web/app/immutable/nodes/{16.BL-08euY.js → 16.BLKEYdtz.js} +1 -1
  303. package/web/app/immutable/nodes/{17.6PnJZ-OV.js → 17.Cw1VnAlL.js} +1 -1
  304. package/web/app/immutable/nodes/{18.S0LzI-c9.js → 18.BC2tc74_.js} +1 -1
  305. package/web/app/immutable/nodes/{19.UI8uLgwf.js → 19.BLf_cCOa.js} +2 -2
  306. package/web/app/immutable/nodes/{2.BPbekzCu.js → 2.DT49t-u_.js} +4 -4
  307. package/web/app/immutable/nodes/{20.D287SLnH.js → 20.CAN0HPlm.js} +1 -1
  308. package/web/app/immutable/nodes/{3.BwsK4zPx.js → 3.CHLlivF3.js} +1 -1
  309. package/web/app/immutable/nodes/{4.B9LoMndp.js → 4.D2tKSs2v.js} +1 -1
  310. package/web/app/immutable/nodes/{5.biVRI9GT.js → 5.B9Lx7aa1.js} +1 -1
  311. package/web/app/immutable/nodes/{6.keV59eWV.js → 6.BXEdmXk5.js} +1 -1
  312. package/web/app/immutable/nodes/{7.hcwDbCdg.js → 7.Cg1blkaN.js} +1 -1
  313. package/web/app/immutable/nodes/{8.C6XZly4b.js → 8.B5g4h2T5.js} +1 -1
  314. package/web/app/immutable/nodes/{9.CapVofQJ.js → 9.CQeYWw6-.js} +9 -9
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +48 -48
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/0-BfhqQQ.js +0 -1
  319. package/web/app/immutable/chunks/0mc1BtLx.js +0 -1
  320. package/web/app/immutable/chunks/B7y-CF5h.js +0 -12
  321. package/web/app/immutable/chunks/CNjGF_c0.js +0 -1
  322. package/web/app/immutable/chunks/TZEIRBy5.js +0 -1
  323. package/web/app/immutable/entry/start.BYC0E11R.js +0 -1
@@ -1 +1 @@
1
- var W=Object.defineProperty;var q=(n,a,r)=>a in n?W(n,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[a]=r;var S=(n,a,r)=>q(n,typeof a!="symbol"?a+"":a,r);import{t as N,bo as f,bw as R,b as T}from"./CNjGF_c0.js";import{bs as j,a7 as J,ay as K,W as s,bn as E,aA as g,be as z,b_ as V,aC as l,a5 as D,bS as P,aD as c,bA as I,c9 as y,bl as Q,bO as U}from"./3SdAC2_C.js";import{i as F}from"./C5WtrNXY.js";import{s as v,f as X,g as Y}from"./BQxY3Ah2.js";/* empty css */var Z=l('<g transform="translate(-2 -2)"><path d="M9.958 11.718V16.135M4.658 6.455L7.477 8.082C7.826 8.284 8.264 8.246 8.573 7.986C8.881 7.727 8.995 7.302 8.857 6.924L7.744 3.865M12.172 3.865L11.059 6.924C10.921 7.302 11.035 7.727 11.344 7.986C11.653 8.246 12.091 8.284 12.44 8.082L15.259 6.455M6.014 14.111L8.106 11.618C8.366 11.309 8.404 10.871 8.202 10.522C8.001 10.173 7.602 9.987 7.205 10.057L4 10.622M16 10.622L12.794 10.057C12.397 9.987 11.999 10.173 11.797 10.522C11.596 10.871 11.634 11.309 11.893 11.618L13.985 14.111"></path></g>'),$=l('<path d="M5.333 4.666H6C7.105 4.666 8 5.561 8 6.666V8.333M5.333 11.999H6C7.105 11.999 8 11.104 8 9.999V8.332M10.667 4.666H10C8.896 4.666 8 5.561 8 6.666V8.333M10.667 11.999H10C8.896 11.999 8 11.104 8 9.999V8.332"></path><path d="M3.667 6L2.303 6.963C1.485 7.54 1.451 8.741 2.235 9.363L3.667 10.5M12.334 6L13.698 6.963C14.515 7.54 14.549 8.741 13.766 9.363L12.334 10.5"></path>',1),ee=l('<path d="M3.667 5.75L2.303 6.713C1.485 7.29 1.451 8.491 2.235 9.113L3.667 10.25M12.334 5.75L13.698 6.713C14.515 7.29 14.549 8.491 13.765 9.113L12.334 10.25M5.5 7.756L6.441 9.688C6.818 10.46 7.928 10.43 8.262 9.638L10.5 4.333"></path>'),ae=l('<rect x="6.333" y="6.333" width="3.334" height="3.334" rx="0.334"></rect><path d="M9 3H11C12.105 3 13 3.895 13 5V7M9 13H11C12.105 13 13 12.105 13 11V9M7 3H5C3.895 3 3 3.895 3 5V7M7 13H5C3.895 13 3 12.105 3 11V9"></path>',1),re=l('<g transform="translate(1 4.468)"><path d="M4 .543L1.636 2.212C.818 2.789.784 3.99 1.568 4.612L4 6.543M10 .543L12.364 2.212C13.182 2.789 13.216 3.99 12.432 4.612L10 6.543"></path><circle cx="7" cy="3.543" r="1.25" fill="currentColor" stroke="none"></circle></g>'),te=l('<g transform="translate(.5 4)"><path d="M10 7.665H5M10 4.165H5M10 .665H5M3 2.165L1.636 3.128C.818 3.705.784 4.906 1.568 5.528L3 6.665M12 2.165L13.364 3.128C14.182 3.705 14.216 4.906 13.432 5.528L12 6.665"></path></g>'),ne=l('<g transform="translate(1 3)"><path d="M7 0V10M4 2L1.636 3.669C.818 4.246.784 5.447 1.568 6.069L4 8M10 2L12.364 3.669C13.182 4.246 13.216 5.447 12.432 6.069L10 8"></path></g>'),ie=l('<g transform="translate(1 5.335)"><path d="M6 2.665H8M0 2.665H2M12 2.665H14"></path><circle cx="4" cy="2.665" r="2"></circle><circle cx="10" cy="2.665" r="2"></circle></g>'),se=l('<g><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14"></path><circle cx="4.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle><circle cx="9.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle></g>'),oe=l('<g transform="translate(1 3.085)"><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14M4 9.165H10"></path></g>'),le=l('<path d="M13 4.5L10.636 6.169C9.818 6.746 9.784 7.947 10.568 8.569L13 10.5M3 4.5L5.364 6.169C6.182 6.746 6.216 7.947 5.432 8.569L3 10.5M6 11.5H10"></path>'),ce=l('<g transform="translate(4 6.5)" fill="currentColor" stroke="none"><circle cx="1.5" cy="1.5" r="1.5"></circle><circle cx="6.5" cy="1.5" r="1.5"></circle></g>');function G(n,a){if(new.target)return N({component:G,...n});j(a,!0);let r=f(a,"design",7);var u={get design(){return r()},set design(e){r(e),g()},$set:R,$on:(e,t)=>T(a,e,t)},h=J(),M=K(h);{var p=e=>{var t=Z();s(e,t)},m=e=>{var t=$();z(),s(e,t)},_=e=>{var t=ee();s(e,t)},d=e=>{var t=ae();z(),s(e,t)},b=e=>{var t=re();s(e,t)},C=e=>{var t=te();s(e,t)},L=e=>{var t=ne();s(e,t)},A=e=>{var t=ie();s(e,t)},o=e=>{var t=se();V(()=>v(t,"transform",r()==="fallback-crown"?"translate(1 2.918)":"translate(1 13.082) scale(1 -1)")),s(e,t)},w=e=>{var t=oe();s(e,t)},k=e=>{var t=le();s(e,t)},H=e=>{var t=ce();s(e,t)};F(M,e=>{r()==="coordinator"?e(p):r()==="implementor"?e(m,1):r()==="verifier"?e(_,2):r()==="pr-reviewer"?e(d,3):r()==="ui-designer"?e(b,4):r()==="chief-of-staff"?e(C,5):r()==="ralph"?e(L,6):r()==="fallback-glasses"?e(A,7):r()==="fallback-crown"||r()==="fallback-crown-inverted"?e(o,8):r()==="fallback-crown-mouth"?e(w,9):r()==="fallback-code"?e(k,10):e(H,-1)})}return s(n,h),E(u)}function de(n){let a=0;if(n.length===0)return a;for(let r=0;r<n.length;r++){const u=n.charCodeAt(r);a=(a<<5)-a+u,a=a&a}return Math.abs(a)}class fe{constructor(a){S(this,"seed");this.seed=a}next(){return this.seed=this.seed*1103515245+12345&2147483647,this.seed/2147483648}pick(a){if(a.length===0)throw new Error("Cannot pick from empty array");const r=Math.floor(this.next()*a.length);return a[r]}nextInt(a){return Math.floor(this.next()*a)}}function ge(n){return new fe(de(n))}const ve=["fallback-glasses","fallback-crown","fallback-crown-inverted","fallback-crown-mouth","fallback-code","fallback-dots"],ue=["coordinator","implementor","verifier","pr-reviewer","ui-designer","chief-of-staff","ralph"],he={coordinator:"coordinator","spec-writer":"coordinator",implementor:"implementor",verifier:"verifier",developer:"verifier","product-manager":"coordinator","maintenance-coordinator":"ralph","pr-reviewer":"pr-reviewer","ui-designer":"ui-designer","chief-of-staff":"chief-of-staff",ralph:"ralph"};function pe(n){return ge(n).pick([...ve])}function me(n){return ue.includes(n)}function Ce(n,a,r){return r&&me(r)?r:he[a??""]??pe(n)}const Le={compact:{surface:16,art:14,clearSpace:1,radius:5,ring:1,overlap:4},standard:{surface:20,art:16,clearSpace:2,radius:6,ring:1,overlap:5},emphasized:{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},"card-stack":{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},prominent:{surface:40,art:32,clearSpace:4,radius:12,ring:2,overlap:8}},B="standard";var Me=l("<title> </title>"),_e=l('<svg viewBox="0 0 16 16" fill="none" overflow="hidden" xmlns="http://www.w3.org/2000/svg" focusable="false" data-agent-avatar=""><!><g fill="none" stroke="currentColor" stroke-width="1.33" stroke-linecap="butt" stroke-linejoin="miter"><!></g></svg>');function be(n,a){if(new.target)return N({component:be,...n});j(a,!0);let r=f(a,"agentId",7,""),u=f(a,"specialist",7,null),h=f(a,"icon",7,null),M=f(a,"provider",7,void 0),p=f(a,"variant",7,B),m=f(a,"size",7,void 0),_=f(a,"class",7,""),d=f(a,"ariaLabel",7,void 0);const b=y(()=>(M(),Ce(r(),u(),h()))),C=y(()=>m()??Le[p()].surface),L=y(()=>m()===void 0);var A={get agentId(){return r()},set agentId(i=""){r(i),g()},get specialist(){return u()},set specialist(i=null){u(i),g()},get icon(){return h()},set icon(i=null){h(i),g()},get provider(){return M()},set provider(i=void 0){M(i),g()},get variant(){return p()},set variant(i=B){p(i),g()},get size(){return m()},set size(i=void 0){m(i),g()},get class(){return _()},set class(i=""){_(i),g()},get ariaLabel(){return d()},set ariaLabel(i=void 0){d(i),g()},$set:R,$on:(i,x)=>T(a,i,x)},o=_e();let w;var k=D(o);{var H=i=>{var x=Me(),O=Q(x,!0);V(()=>U(O,d())),s(i,x)};F(k,i=>{d()&&i(H)})}var e=P(k),t=D(e);return G(t,{get design(){return c(b)}}),I(e),I(o),V(()=>{v(o,"width",c(C)),v(o,"height",c(C)),X(o,0,`agent-avatar agent-avatar--${c(L)?"named":"legacy"} ${_()??""}`,"svelte-1vi6z9y"),v(o,"role",d()?"img":void 0),v(o,"aria-label",d()),v(o,"aria-hidden",d()?void 0:"true"),v(o,"data-avatar-variant",c(L)?p():void 0),v(o,"data-avatar-design",c(b)),w=Y(o,"",w,{width:c(L)?void 0:`${c(C)}px`,height:c(L)?void 0:`${c(C)}px`})}),s(n,o),E(A)}export{be as A,Le as a,B as d};
1
+ var W=Object.defineProperty;var q=(n,a,r)=>a in n?W(n,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[a]=r;var S=(n,a,r)=>q(n,typeof a!="symbol"?a+"":a,r);import{t as N,bo as f,bw as R,b as T}from"./Bv8Gaorn.js";import{bs as j,a7 as J,ay as K,W as s,bn as E,aA as g,be as z,b_ as V,aC as l,a5 as D,bS as P,aD as c,bA as I,c9 as y,bl as Q,bO as U}from"./3SdAC2_C.js";import{i as F}from"./BQg4hK6W.js";import{s as v,f as X,g as Y}from"./D85P44Dj.js";/* empty css */var Z=l('<g transform="translate(-2 -2)"><path d="M9.958 11.718V16.135M4.658 6.455L7.477 8.082C7.826 8.284 8.264 8.246 8.573 7.986C8.881 7.727 8.995 7.302 8.857 6.924L7.744 3.865M12.172 3.865L11.059 6.924C10.921 7.302 11.035 7.727 11.344 7.986C11.653 8.246 12.091 8.284 12.44 8.082L15.259 6.455M6.014 14.111L8.106 11.618C8.366 11.309 8.404 10.871 8.202 10.522C8.001 10.173 7.602 9.987 7.205 10.057L4 10.622M16 10.622L12.794 10.057C12.397 9.987 11.999 10.173 11.797 10.522C11.596 10.871 11.634 11.309 11.893 11.618L13.985 14.111"></path></g>'),$=l('<path d="M5.333 4.666H6C7.105 4.666 8 5.561 8 6.666V8.333M5.333 11.999H6C7.105 11.999 8 11.104 8 9.999V8.332M10.667 4.666H10C8.896 4.666 8 5.561 8 6.666V8.333M10.667 11.999H10C8.896 11.999 8 11.104 8 9.999V8.332"></path><path d="M3.667 6L2.303 6.963C1.485 7.54 1.451 8.741 2.235 9.363L3.667 10.5M12.334 6L13.698 6.963C14.515 7.54 14.549 8.741 13.766 9.363L12.334 10.5"></path>',1),ee=l('<path d="M3.667 5.75L2.303 6.713C1.485 7.29 1.451 8.491 2.235 9.113L3.667 10.25M12.334 5.75L13.698 6.713C14.515 7.29 14.549 8.491 13.765 9.113L12.334 10.25M5.5 7.756L6.441 9.688C6.818 10.46 7.928 10.43 8.262 9.638L10.5 4.333"></path>'),ae=l('<rect x="6.333" y="6.333" width="3.334" height="3.334" rx="0.334"></rect><path d="M9 3H11C12.105 3 13 3.895 13 5V7M9 13H11C12.105 13 13 12.105 13 11V9M7 3H5C3.895 3 3 3.895 3 5V7M7 13H5C3.895 13 3 12.105 3 11V9"></path>',1),re=l('<g transform="translate(1 4.468)"><path d="M4 .543L1.636 2.212C.818 2.789.784 3.99 1.568 4.612L4 6.543M10 .543L12.364 2.212C13.182 2.789 13.216 3.99 12.432 4.612L10 6.543"></path><circle cx="7" cy="3.543" r="1.25" fill="currentColor" stroke="none"></circle></g>'),te=l('<g transform="translate(.5 4)"><path d="M10 7.665H5M10 4.165H5M10 .665H5M3 2.165L1.636 3.128C.818 3.705.784 4.906 1.568 5.528L3 6.665M12 2.165L13.364 3.128C14.182 3.705 14.216 4.906 13.432 5.528L12 6.665"></path></g>'),ne=l('<g transform="translate(1 3)"><path d="M7 0V10M4 2L1.636 3.669C.818 4.246.784 5.447 1.568 6.069L4 8M10 2L12.364 3.669C13.182 4.246 13.216 5.447 12.432 6.069L10 8"></path></g>'),ie=l('<g transform="translate(1 5.335)"><path d="M6 2.665H8M0 2.665H2M12 2.665H14"></path><circle cx="4" cy="2.665" r="2"></circle><circle cx="10" cy="2.665" r="2"></circle></g>'),se=l('<g><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14"></path><circle cx="4.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle><circle cx="9.5" cy="8.915" r="1.25" fill="currentColor" stroke="none"></circle></g>'),oe=l('<g transform="translate(1 3.085)"><path d="M2 5.665L3.62 1.461C3.788.982 4.219.665 4.7.665C5.183.665 5.616.98 5.79 1.457L6.043 2.154C6.363 3.038 7.616 3.031 7.926 2.144L8.165 1.461C8.333.982 8.764.665 9.246.665C9.729.665 10.162.98 10.335 1.457L12 5.665M0 5.665H14M4 9.165H10"></path></g>'),le=l('<path d="M13 4.5L10.636 6.169C9.818 6.746 9.784 7.947 10.568 8.569L13 10.5M3 4.5L5.364 6.169C6.182 6.746 6.216 7.947 5.432 8.569L3 10.5M6 11.5H10"></path>'),ce=l('<g transform="translate(4 6.5)" fill="currentColor" stroke="none"><circle cx="1.5" cy="1.5" r="1.5"></circle><circle cx="6.5" cy="1.5" r="1.5"></circle></g>');function G(n,a){if(new.target)return N({component:G,...n});j(a,!0);let r=f(a,"design",7);var u={get design(){return r()},set design(e){r(e),g()},$set:R,$on:(e,t)=>T(a,e,t)},h=J(),M=K(h);{var p=e=>{var t=Z();s(e,t)},m=e=>{var t=$();z(),s(e,t)},_=e=>{var t=ee();s(e,t)},d=e=>{var t=ae();z(),s(e,t)},b=e=>{var t=re();s(e,t)},C=e=>{var t=te();s(e,t)},L=e=>{var t=ne();s(e,t)},A=e=>{var t=ie();s(e,t)},o=e=>{var t=se();V(()=>v(t,"transform",r()==="fallback-crown"?"translate(1 2.918)":"translate(1 13.082) scale(1 -1)")),s(e,t)},w=e=>{var t=oe();s(e,t)},k=e=>{var t=le();s(e,t)},H=e=>{var t=ce();s(e,t)};F(M,e=>{r()==="coordinator"?e(p):r()==="implementor"?e(m,1):r()==="verifier"?e(_,2):r()==="pr-reviewer"?e(d,3):r()==="ui-designer"?e(b,4):r()==="chief-of-staff"?e(C,5):r()==="ralph"?e(L,6):r()==="fallback-glasses"?e(A,7):r()==="fallback-crown"||r()==="fallback-crown-inverted"?e(o,8):r()==="fallback-crown-mouth"?e(w,9):r()==="fallback-code"?e(k,10):e(H,-1)})}return s(n,h),E(u)}function de(n){let a=0;if(n.length===0)return a;for(let r=0;r<n.length;r++){const u=n.charCodeAt(r);a=(a<<5)-a+u,a=a&a}return Math.abs(a)}class fe{constructor(a){S(this,"seed");this.seed=a}next(){return this.seed=this.seed*1103515245+12345&2147483647,this.seed/2147483648}pick(a){if(a.length===0)throw new Error("Cannot pick from empty array");const r=Math.floor(this.next()*a.length);return a[r]}nextInt(a){return Math.floor(this.next()*a)}}function ge(n){return new fe(de(n))}const ve=["fallback-glasses","fallback-crown","fallback-crown-inverted","fallback-crown-mouth","fallback-code","fallback-dots"],ue=["coordinator","implementor","verifier","pr-reviewer","ui-designer","chief-of-staff","ralph"],he={coordinator:"coordinator","spec-writer":"coordinator",implementor:"implementor",verifier:"verifier",developer:"verifier","product-manager":"coordinator","maintenance-coordinator":"ralph","pr-reviewer":"pr-reviewer","ui-designer":"ui-designer","chief-of-staff":"chief-of-staff",ralph:"ralph"};function pe(n){return ge(n).pick([...ve])}function me(n){return ue.includes(n)}function Ce(n,a,r){return r&&me(r)?r:he[a??""]??pe(n)}const Le={compact:{surface:16,art:14,clearSpace:1,radius:5,ring:1,overlap:4},standard:{surface:20,art:16,clearSpace:2,radius:6,ring:1,overlap:5},emphasized:{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},"card-stack":{surface:24,art:20,clearSpace:2,radius:7,ring:1,overlap:6},prominent:{surface:40,art:32,clearSpace:4,radius:12,ring:2,overlap:8}},B="standard";var Me=l("<title> </title>"),_e=l('<svg viewBox="0 0 16 16" fill="none" overflow="hidden" xmlns="http://www.w3.org/2000/svg" focusable="false" data-agent-avatar=""><!><g fill="none" stroke="currentColor" stroke-width="1.33" stroke-linecap="butt" stroke-linejoin="miter"><!></g></svg>');function be(n,a){if(new.target)return N({component:be,...n});j(a,!0);let r=f(a,"agentId",7,""),u=f(a,"specialist",7,null),h=f(a,"icon",7,null),M=f(a,"provider",7,void 0),p=f(a,"variant",7,B),m=f(a,"size",7,void 0),_=f(a,"class",7,""),d=f(a,"ariaLabel",7,void 0);const b=y(()=>(M(),Ce(r(),u(),h()))),C=y(()=>m()??Le[p()].surface),L=y(()=>m()===void 0);var A={get agentId(){return r()},set agentId(i=""){r(i),g()},get specialist(){return u()},set specialist(i=null){u(i),g()},get icon(){return h()},set icon(i=null){h(i),g()},get provider(){return M()},set provider(i=void 0){M(i),g()},get variant(){return p()},set variant(i=B){p(i),g()},get size(){return m()},set size(i=void 0){m(i),g()},get class(){return _()},set class(i=""){_(i),g()},get ariaLabel(){return d()},set ariaLabel(i=void 0){d(i),g()},$set:R,$on:(i,x)=>T(a,i,x)},o=_e();let w;var k=D(o);{var H=i=>{var x=Me(),O=Q(x,!0);V(()=>U(O,d())),s(i,x)};F(k,i=>{d()&&i(H)})}var e=P(k),t=D(e);return G(t,{get design(){return c(b)}}),I(e),I(o),V(()=>{v(o,"width",c(C)),v(o,"height",c(C)),X(o,0,`agent-avatar agent-avatar--${c(L)?"named":"legacy"} ${_()??""}`,"svelte-1vi6z9y"),v(o,"role",d()?"img":void 0),v(o,"aria-label",d()),v(o,"aria-hidden",d()?void 0:"true"),v(o,"data-avatar-variant",c(L)?p():void 0),v(o,"data-avatar-design",c(b)),w=Y(o,"",w,{width:c(L)?void 0:`${c(C)}px`,height:c(L)?void 0:`${c(C)}px`})}),s(n,o),E(A)}export{be as A,Le as a,B as d};
@@ -1 +1 @@
1
- import{t as g,bo as h,bm as u,bw as C,b as S}from"./CNjGF_c0.js";import{bs as T,a5 as _,bl as l,bS as m,bA as c,b_ as w,bO as n,W as A,bn as j,aA as B,aB as I}from"./3SdAC2_C.js";var L=I('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p></div></div>');function O(p,a){if(new.target)return g({component:O,...p});T(a,!0);let e=h(a,"tab",7);var v={get tab(){return e()},set tab(t){e(t),B()},$set:C,$on:(t,r)=>S(a,t,r)},s=L(),o=_(s),b=_(o),d=l(b,!0),i=m(b,2),x=l(i,!0),f=m(i,2),y=l(f,!0);return c(o),c(s),w((t,r)=>{n(d,e().title),n(x,t),n(y,r)},[()=>u.layout_panelContent_typeLabel({type:e().type}),()=>u.layout_settingsTab_notImplemented_label()]),A(p,s),j(v)}export{O as default};
1
+ import{t as g,bo as h,bm as u,bw as C,b as S}from"./Bv8Gaorn.js";import{bs as T,a5 as _,bl as l,bS as m,bA as c,b_ as w,bO as n,W as A,bn as j,aA as B,aB as I}from"./3SdAC2_C.js";var L=I('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p></div></div>');function O(p,a){if(new.target)return g({component:O,...p});T(a,!0);let e=h(a,"tab",7);var v={get tab(){return e()},set tab(t){e(t),B()},$set:C,$on:(t,r)=>S(a,t,r)},s=L(),o=_(s),b=_(o),d=l(b,!0),i=m(b,2),x=l(i,!0),f=m(i,2),y=l(f,!0);return c(o),c(s),w((t,r)=>{n(d,e().title),n(x,t),n(y,r)},[()=>u.layout_panelContent_typeLabel({type:e().type}),()=>u.layout_settingsTab_notImplemented_label()]),A(p,s),j(v)}export{O as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DICr2Lvd.js","/app/immutable/chunks/lwn02icp.js"])))=>i.map(i=>d[i]);
2
- import{_ as r}from"./CNjGF_c0.js";import{bn as L}from"./BmN9eMeC.js";function u(t){const m=[],p=new Set;for(const e of D(t.themes)){const i=s(e)?e.getThemes():[e];for(const o of i){if(p.has(o.name))throw new Error(`Theme collection already contains theme "${o.name}"`);p.add(o.name),m.push(o)}}const _=Object.freeze([...m]),l=Object.freeze(_.filter(e=>e.colorScheme==="light")),d=Object.freeze(_.filter(e=>e.colorScheme==="dark")),n=new Map(_.map(e=>[e.name,e])),I=Object.freeze(_.map(e=>e.name)),P=Object.freeze(l.map(e=>e.name)),R=Object.freeze(d.map(e=>e.name));function E(e){if(e==null)return _;const{colorScheme:i,collection:o}=e;return o==null?i==="light"?l:i==="dark"?d:_:_.filter(a=>a.collection!==o?!1:i==null||a.colorScheme===i)}return{getTheme(e){return n.get(e)},getThemes(e){return E(e)},getThemeNames(e){return e?.collection==null?e?.colorScheme==="light"?P:e?.colorScheme==="dark"?R:I:E(e).map(i=>i.name)},hasTheme(e){return n.has(e)},orderBy(e){return u({themes:_.map((i,o)=>({descriptor:i,index:o})).sort((i,o)=>{const a=e(i.descriptor,o.descriptor);return a!==0?a:i.index-o.index}).map(i=>i.descriptor)})},pick(e){const i=[],o=new Set;for(const a of e){if(o.has(a))throw new Error(`Theme collection pick already includes theme "${a}"`);o.add(a);const h=n.get(a);if(h==null)throw new Error(`Theme collection does not contain theme "${a}"`);i.push(h)}return u({themes:i})},registerInto(e){for(const i of _)e.registerThemeIfAbsent(i.name,i.load)}}}function D(t){return O(t)?[t]:t}function O(t){return s(t)||k(t)}function k(t){return typeof t.name=="string"&&typeof t.load=="function"}function s(t){return typeof t.getThemes=="function"}function T({name:t,load:m,colorScheme:p,collection:_,displayName:l}){return{name:t,colorScheme:p,collection:_,displayName:l,load:A(m)}}function A(t){return async()=>{const[m,{normalizeTheme:p}]=await Promise.all([t(),r(()=>import("./DICr2Lvd.js").then(_=>_.c),__vite__mapDeps([0,1]),import.meta.url)]);return p(L(m))}}const f="pierre",V=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],g=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],b=[...g,...V],S=new Set(g);function w(t){return S.has(t)?"light":"dark"}const y={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},z={"pierre-dark":()=>r(()=>import("./CyvmCCZW.js"),[],import.meta.url),"pierre-dark-soft":()=>r(()=>import("./BHGpRqa4.js"),[],import.meta.url),"pierre-dark-vibrant":()=>r(()=>import("./BWBVywrn.js"),[],import.meta.url),"pierre-dark-protanopia-deuteranopia":()=>r(()=>import("./Rgc0TwpF.js"),[],import.meta.url),"pierre-dark-tritanopia":()=>r(()=>import("./Beq2gCRQ.js"),[],import.meta.url),"pierre-light":()=>r(()=>import("./480U9XYS.js"),[],import.meta.url),"pierre-light-soft":()=>r(()=>import("./CVdyfjmI.js"),[],import.meta.url),"pierre-light-vibrant":()=>r(()=>import("./DdTDNdfJ.js"),[],import.meta.url),"pierre-light-protanopia-deuteranopia":()=>r(()=>import("./CaVOBURG.js"),[],import.meta.url),"pierre-light-tritanopia":()=>r(()=>import("./B4_gpKOM.js"),[],import.meta.url)};function H(t){return T({name:t,collection:f,colorScheme:w(t),displayName:y[t],load:z[t]})}const x=u({themes:b.map(t=>H(t))}),M="shiki",v=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],N=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],C=new Set(v);function K(t){return C.has(t)?"light":"dark"}const j={andromeeda:()=>r(()=>import("./C4gqWexZ.js"),[],import.meta.url),"aurora-x":()=>r(()=>import("./D-2ljcwZ.js"),[],import.meta.url),"ayu-dark":()=>r(()=>import("./DYE7WIF3.js"),[],import.meta.url),"ayu-light":()=>r(()=>import("./BA47KaF1.js"),[],import.meta.url),"ayu-mirage":()=>r(()=>import("./32ctXXKs.js"),[],import.meta.url),"catppuccin-frappe":()=>r(()=>import("./CZL1YF0i.js"),[],import.meta.url),"catppuccin-latte":()=>r(()=>import("./DH-8KZSZ.js"),[],import.meta.url),"catppuccin-macchiato":()=>r(()=>import("./B7yYVSCf.js"),[],import.meta.url),"catppuccin-mocha":()=>r(()=>import("./Ct7hS0mc.js"),[],import.meta.url),"dark-plus":()=>r(()=>import("./C3mMm8J8.js"),[],import.meta.url),dracula:()=>r(()=>import("./BzJJZx-M.js"),[],import.meta.url),"dracula-soft":()=>r(()=>import("./BXkSAIEj.js"),[],import.meta.url),"everforest-dark":()=>r(()=>import("./BgDCqdQA.js"),[],import.meta.url),"everforest-light":()=>r(()=>import("./C8M2exoo.js"),[],import.meta.url),"github-dark":()=>r(()=>import("./DHJKELXO.js"),[],import.meta.url),"github-dark-default":()=>r(()=>import("./Cuk6v7N8.js"),[],import.meta.url),"github-dark-dimmed":()=>r(()=>import("./DH5Ifo-i.js"),[],import.meta.url),"github-dark-high-contrast":()=>r(()=>import("./E3gJ1_iC.js"),[],import.meta.url),"github-light":()=>r(()=>import("./DAi9KRSo.js"),[],import.meta.url),"github-light-default":()=>r(()=>import("./D7oLnXFd.js"),[],import.meta.url),"github-light-high-contrast":()=>r(()=>import("./BfjtVDDH.js"),[],import.meta.url),"gruvbox-dark-hard":()=>r(()=>import("./CFHQjOhq.js"),[],import.meta.url),"gruvbox-dark-medium":()=>r(()=>import("./GsRaNv29.js"),[],import.meta.url),"gruvbox-dark-soft":()=>r(()=>import("./CVdnzihN.js"),[],import.meta.url),"gruvbox-light-hard":()=>r(()=>import("./CH1njM8p.js"),[],import.meta.url),"gruvbox-light-medium":()=>r(()=>import("./DRw_LuNl.js"),[],import.meta.url),"gruvbox-light-soft":()=>r(()=>import("./hJgmCMqR.js"),[],import.meta.url),horizon:()=>r(()=>import("./BUw7H-hv.js"),[],import.meta.url),"horizon-bright":()=>r(()=>import("./CUuTKBJd.js"),[],import.meta.url),houston:()=>r(()=>import("./DnULxvSX.js"),[],import.meta.url),"kanagawa-dragon":()=>r(()=>import("./BuwD2xS4.js"),[],import.meta.url),"kanagawa-lotus":()=>r(()=>import("./C3DzagqV.js"),[],import.meta.url),"kanagawa-wave":()=>r(()=>import("./DFGoQZhC.js"),[],import.meta.url),laserwave:()=>r(()=>import("./DUszq2jm.js"),[],import.meta.url),"light-plus":()=>r(()=>import("./B7mTdjB0.js"),[],import.meta.url),"material-theme":()=>r(()=>import("./D5KoaKCx.js"),[],import.meta.url),"material-theme-darker":()=>r(()=>import("./BfHTSMKl.js"),[],import.meta.url),"material-theme-lighter":()=>r(()=>import("./B0m2ddpp.js"),[],import.meta.url),"material-theme-ocean":()=>r(()=>import("./CyktbL80.js"),[],import.meta.url),"material-theme-palenight":()=>r(()=>import("./Csfq5Kiy.js"),[],import.meta.url),"min-dark":()=>r(()=>import("./CafNBF8u.js"),[],import.meta.url),"min-light":()=>r(()=>import("./CTRr51gU.js"),[],import.meta.url),monokai:()=>r(()=>import("./CR4piiQ-.js"),[],import.meta.url),"night-owl":()=>r(()=>import("./C39BiMTA.js"),[],import.meta.url),"night-owl-light":()=>r(()=>import("./CMTm3GFP.js"),[],import.meta.url),nord:()=>r(()=>import("./Ddv68eIx.js"),[],import.meta.url),"one-dark-pro":()=>r(()=>import("./CxGP3dtY.js"),[],import.meta.url),"one-light":()=>r(()=>import("./C3Wv6jpd.js"),[],import.meta.url),plastic:()=>r(()=>import("./3e1v2bzS.js"),[],import.meta.url),poimandres:()=>r(()=>import("./CS3Unz2-.js"),[],import.meta.url),red:()=>r(()=>import("./DMbB5_pp.js"),[],import.meta.url),"rose-pine":()=>r(()=>import("./5qJOZa0Y.js"),[],import.meta.url),"rose-pine-dawn":()=>r(()=>import("./zx0QlTCp.js"),[],import.meta.url),"rose-pine-moon":()=>r(()=>import("./C9pEdX9L.js"),[],import.meta.url),"slack-dark":()=>r(()=>import("./BthQWCQV.js"),[],import.meta.url),"slack-ochin":()=>r(()=>import("./DqwNpetd.js"),[],import.meta.url),"snazzy-light":()=>r(()=>import("./Bw305WKR.js"),[],import.meta.url),"solarized-dark":()=>r(()=>import("./UcubFVte.js"),[],import.meta.url),"solarized-light":()=>r(()=>import("./DCG28T6R.js"),[],import.meta.url),"synthwave-84":()=>r(()=>import("./CbfX1IO0.js"),[],import.meta.url),"tokyo-night":()=>r(()=>import("./hegEt444.js"),[],import.meta.url),vesper:()=>r(()=>import("./DRje8inN.js"),[],import.meta.url),"vitesse-black":()=>r(()=>import("./Bkuqu6BP.js"),[],import.meta.url),"vitesse-dark":()=>r(()=>import("./D0r3Knsf.js"),[],import.meta.url),"vitesse-light":()=>r(()=>import("./CVO1_9PV.js"),[],import.meta.url)};function c(t){return T({name:t,collection:M,colorScheme:K(t),load:j[t]})}const G=Object.freeze([...v.map(t=>c(t)),...N.map(t=>c(t))]),$=u({themes:G}),q=u({themes:[x,$]});export{T as createTheme,x as pierreThemes,$ as shikiThemes,q as themes};
2
+ import{_ as r}from"./Bv8Gaorn.js";import{bn as L}from"./BjWOzuMm.js";function u(t){const m=[],p=new Set;for(const e of D(t.themes)){const i=s(e)?e.getThemes():[e];for(const o of i){if(p.has(o.name))throw new Error(`Theme collection already contains theme "${o.name}"`);p.add(o.name),m.push(o)}}const _=Object.freeze([...m]),l=Object.freeze(_.filter(e=>e.colorScheme==="light")),d=Object.freeze(_.filter(e=>e.colorScheme==="dark")),n=new Map(_.map(e=>[e.name,e])),I=Object.freeze(_.map(e=>e.name)),P=Object.freeze(l.map(e=>e.name)),R=Object.freeze(d.map(e=>e.name));function E(e){if(e==null)return _;const{colorScheme:i,collection:o}=e;return o==null?i==="light"?l:i==="dark"?d:_:_.filter(a=>a.collection!==o?!1:i==null||a.colorScheme===i)}return{getTheme(e){return n.get(e)},getThemes(e){return E(e)},getThemeNames(e){return e?.collection==null?e?.colorScheme==="light"?P:e?.colorScheme==="dark"?R:I:E(e).map(i=>i.name)},hasTheme(e){return n.has(e)},orderBy(e){return u({themes:_.map((i,o)=>({descriptor:i,index:o})).sort((i,o)=>{const a=e(i.descriptor,o.descriptor);return a!==0?a:i.index-o.index}).map(i=>i.descriptor)})},pick(e){const i=[],o=new Set;for(const a of e){if(o.has(a))throw new Error(`Theme collection pick already includes theme "${a}"`);o.add(a);const h=n.get(a);if(h==null)throw new Error(`Theme collection does not contain theme "${a}"`);i.push(h)}return u({themes:i})},registerInto(e){for(const i of _)e.registerThemeIfAbsent(i.name,i.load)}}}function D(t){return O(t)?[t]:t}function O(t){return s(t)||k(t)}function k(t){return typeof t.name=="string"&&typeof t.load=="function"}function s(t){return typeof t.getThemes=="function"}function T({name:t,load:m,colorScheme:p,collection:_,displayName:l}){return{name:t,colorScheme:p,collection:_,displayName:l,load:A(m)}}function A(t){return async()=>{const[m,{normalizeTheme:p}]=await Promise.all([t(),r(()=>import("./DICr2Lvd.js").then(_=>_.c),__vite__mapDeps([0,1]),import.meta.url)]);return p(L(m))}}const f="pierre",V=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],g=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],b=[...g,...V],S=new Set(g);function w(t){return S.has(t)?"light":"dark"}const y={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},z={"pierre-dark":()=>r(()=>import("./CyvmCCZW.js"),[],import.meta.url),"pierre-dark-soft":()=>r(()=>import("./BHGpRqa4.js"),[],import.meta.url),"pierre-dark-vibrant":()=>r(()=>import("./BWBVywrn.js"),[],import.meta.url),"pierre-dark-protanopia-deuteranopia":()=>r(()=>import("./Rgc0TwpF.js"),[],import.meta.url),"pierre-dark-tritanopia":()=>r(()=>import("./Beq2gCRQ.js"),[],import.meta.url),"pierre-light":()=>r(()=>import("./480U9XYS.js"),[],import.meta.url),"pierre-light-soft":()=>r(()=>import("./CVdyfjmI.js"),[],import.meta.url),"pierre-light-vibrant":()=>r(()=>import("./DdTDNdfJ.js"),[],import.meta.url),"pierre-light-protanopia-deuteranopia":()=>r(()=>import("./CaVOBURG.js"),[],import.meta.url),"pierre-light-tritanopia":()=>r(()=>import("./B4_gpKOM.js"),[],import.meta.url)};function H(t){return T({name:t,collection:f,colorScheme:w(t),displayName:y[t],load:z[t]})}const x=u({themes:b.map(t=>H(t))}),M="shiki",v=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],N=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],C=new Set(v);function K(t){return C.has(t)?"light":"dark"}const j={andromeeda:()=>r(()=>import("./C4gqWexZ.js"),[],import.meta.url),"aurora-x":()=>r(()=>import("./D-2ljcwZ.js"),[],import.meta.url),"ayu-dark":()=>r(()=>import("./DYE7WIF3.js"),[],import.meta.url),"ayu-light":()=>r(()=>import("./BA47KaF1.js"),[],import.meta.url),"ayu-mirage":()=>r(()=>import("./32ctXXKs.js"),[],import.meta.url),"catppuccin-frappe":()=>r(()=>import("./CZL1YF0i.js"),[],import.meta.url),"catppuccin-latte":()=>r(()=>import("./DH-8KZSZ.js"),[],import.meta.url),"catppuccin-macchiato":()=>r(()=>import("./B7yYVSCf.js"),[],import.meta.url),"catppuccin-mocha":()=>r(()=>import("./Ct7hS0mc.js"),[],import.meta.url),"dark-plus":()=>r(()=>import("./C3mMm8J8.js"),[],import.meta.url),dracula:()=>r(()=>import("./BzJJZx-M.js"),[],import.meta.url),"dracula-soft":()=>r(()=>import("./BXkSAIEj.js"),[],import.meta.url),"everforest-dark":()=>r(()=>import("./BgDCqdQA.js"),[],import.meta.url),"everforest-light":()=>r(()=>import("./C8M2exoo.js"),[],import.meta.url),"github-dark":()=>r(()=>import("./DHJKELXO.js"),[],import.meta.url),"github-dark-default":()=>r(()=>import("./Cuk6v7N8.js"),[],import.meta.url),"github-dark-dimmed":()=>r(()=>import("./DH5Ifo-i.js"),[],import.meta.url),"github-dark-high-contrast":()=>r(()=>import("./E3gJ1_iC.js"),[],import.meta.url),"github-light":()=>r(()=>import("./DAi9KRSo.js"),[],import.meta.url),"github-light-default":()=>r(()=>import("./D7oLnXFd.js"),[],import.meta.url),"github-light-high-contrast":()=>r(()=>import("./BfjtVDDH.js"),[],import.meta.url),"gruvbox-dark-hard":()=>r(()=>import("./CFHQjOhq.js"),[],import.meta.url),"gruvbox-dark-medium":()=>r(()=>import("./GsRaNv29.js"),[],import.meta.url),"gruvbox-dark-soft":()=>r(()=>import("./CVdnzihN.js"),[],import.meta.url),"gruvbox-light-hard":()=>r(()=>import("./CH1njM8p.js"),[],import.meta.url),"gruvbox-light-medium":()=>r(()=>import("./DRw_LuNl.js"),[],import.meta.url),"gruvbox-light-soft":()=>r(()=>import("./hJgmCMqR.js"),[],import.meta.url),horizon:()=>r(()=>import("./BUw7H-hv.js"),[],import.meta.url),"horizon-bright":()=>r(()=>import("./CUuTKBJd.js"),[],import.meta.url),houston:()=>r(()=>import("./DnULxvSX.js"),[],import.meta.url),"kanagawa-dragon":()=>r(()=>import("./BuwD2xS4.js"),[],import.meta.url),"kanagawa-lotus":()=>r(()=>import("./C3DzagqV.js"),[],import.meta.url),"kanagawa-wave":()=>r(()=>import("./DFGoQZhC.js"),[],import.meta.url),laserwave:()=>r(()=>import("./DUszq2jm.js"),[],import.meta.url),"light-plus":()=>r(()=>import("./B7mTdjB0.js"),[],import.meta.url),"material-theme":()=>r(()=>import("./D5KoaKCx.js"),[],import.meta.url),"material-theme-darker":()=>r(()=>import("./BfHTSMKl.js"),[],import.meta.url),"material-theme-lighter":()=>r(()=>import("./B0m2ddpp.js"),[],import.meta.url),"material-theme-ocean":()=>r(()=>import("./CyktbL80.js"),[],import.meta.url),"material-theme-palenight":()=>r(()=>import("./Csfq5Kiy.js"),[],import.meta.url),"min-dark":()=>r(()=>import("./CafNBF8u.js"),[],import.meta.url),"min-light":()=>r(()=>import("./CTRr51gU.js"),[],import.meta.url),monokai:()=>r(()=>import("./CR4piiQ-.js"),[],import.meta.url),"night-owl":()=>r(()=>import("./C39BiMTA.js"),[],import.meta.url),"night-owl-light":()=>r(()=>import("./CMTm3GFP.js"),[],import.meta.url),nord:()=>r(()=>import("./Ddv68eIx.js"),[],import.meta.url),"one-dark-pro":()=>r(()=>import("./CxGP3dtY.js"),[],import.meta.url),"one-light":()=>r(()=>import("./C3Wv6jpd.js"),[],import.meta.url),plastic:()=>r(()=>import("./3e1v2bzS.js"),[],import.meta.url),poimandres:()=>r(()=>import("./CS3Unz2-.js"),[],import.meta.url),red:()=>r(()=>import("./DMbB5_pp.js"),[],import.meta.url),"rose-pine":()=>r(()=>import("./5qJOZa0Y.js"),[],import.meta.url),"rose-pine-dawn":()=>r(()=>import("./zx0QlTCp.js"),[],import.meta.url),"rose-pine-moon":()=>r(()=>import("./C9pEdX9L.js"),[],import.meta.url),"slack-dark":()=>r(()=>import("./BthQWCQV.js"),[],import.meta.url),"slack-ochin":()=>r(()=>import("./DqwNpetd.js"),[],import.meta.url),"snazzy-light":()=>r(()=>import("./Bw305WKR.js"),[],import.meta.url),"solarized-dark":()=>r(()=>import("./UcubFVte.js"),[],import.meta.url),"solarized-light":()=>r(()=>import("./DCG28T6R.js"),[],import.meta.url),"synthwave-84":()=>r(()=>import("./CbfX1IO0.js"),[],import.meta.url),"tokyo-night":()=>r(()=>import("./hegEt444.js"),[],import.meta.url),vesper:()=>r(()=>import("./DRje8inN.js"),[],import.meta.url),"vitesse-black":()=>r(()=>import("./Bkuqu6BP.js"),[],import.meta.url),"vitesse-dark":()=>r(()=>import("./D0r3Knsf.js"),[],import.meta.url),"vitesse-light":()=>r(()=>import("./CVO1_9PV.js"),[],import.meta.url)};function c(t){return T({name:t,collection:M,colorScheme:K(t),load:j[t]})}const G=Object.freeze([...v.map(t=>c(t)),...N.map(t=>c(t))]),$=u({themes:G}),q=u({themes:[x,$]});export{T as createTheme,x as pierreThemes,$ as shikiThemes,q as themes};
@@ -1,2 +1,2 @@
1
- import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./CNjGF_c0.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./3SdAC2_C.js";import{i as f}from"./C5WtrNXY.js";import{I as Bt,g as Ct}from"./ueuVa6sz.js";import{n as Pt,j as zt}from"./BgKYBpWf.js";import{f as F}from"./CNad7mgH.js";import"./efzPt1Zl.js";import"./BQxY3Ah2.js";import"./CXhvHjWN.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./BCw3PFII.js";import{A as Dt}from"./coq9FxQ3.js";import{D as Lt}from"./BYPnzqei.js";import{Jr as $t,u_ as Ht}from"./kqwM5HmG.js";import{g as Nt}from"./DgAgTFcK.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./Bv8Gaorn.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./3SdAC2_C.js";import{i as f}from"./BQg4hK6W.js";import{I as Bt,g as Ct}from"./D1JjMDax.js";import{n as Pt,j as zt}from"./DgaiTQpw.js";import{f as F}from"./BO3WriTy.js";import"./CSbK1_CV.js";import"./D85P44Dj.js";import"./DZBnfhEV.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./CiD4x8Gl.js";import{A as Dt}from"./DIylOQL5.js";import{D as Lt}from"./DyiA0AJU.js";import{Jr as $t,u_ as Ht}from"./NgEAPl8f.js";import{g as Nt}from"./DgAgTFcK.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(J)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||H()));function ot(){et(V,!e(V))}function it(){e(J)?H()?.():$()?.()}var lt={get patches(){return A()},set patches(t){A(t),h()},get label(){return M()},set label(t=g.ui_patchBlock_label()){M(t),h()},get lastApply(){return O()},set lastApply(t){O(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return H()},set onRevert(t){H(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=Vt(),v=q(o),b=q(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());F(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:i=>{L()&&$t.dispatch(Ht(L(),{agentId:w(),...Nt(i)}))},get title(){return e(c)},children:(i,m)=>{Dt(i,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);F(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var i=qt(),m=Q(i);{var B=l=>{rt(l,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,l=>{w()||l(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=q(d),R=S(r),N=u(r,2),G=S(N);W(d);var K=u(d,2);{var tt=l=>{var j=jt(),_t=S(j,!0);D(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(l,j)};f(K,l=>{e(J)&&l(tt)})}D(()=>{x(s,M()),x(R,`+${e(X).addCount??""}`),x(G,`-${e(X).removeCount??""}`)}),p(a,i)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{F(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:it,get disabled(){return P()},children:(c,i)=>{var m=Ft(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};f(B,r=>{P()?r(C):e(T).icon&&r(s,1)})}var d=u(B);D(()=>x(d,` ${e(T).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Ot(),i=q(c);{var m=s=>{var d=Mt();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let G=y(()=>e(N)===e(E)?"default":"ghost-light");F(r,{get variant(){return e(G)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var l=It();D(j=>x(l,j),[()=>e(R).filePath.split("/").pop()]),p(K,l)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(i,s=>{A().length>1&&s(m)})}var B=u(i,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(V)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(lt)}export{Jt as P};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/8BUqeceP.js","/app/immutable/chunks/BlFWFkDq.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CNjGF_c0.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/C5WtrNXY.js","/app/immutable/chunks/BQxY3Ah2.js","/app/immutable/chunks/CXhvHjWN.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CNad7mgH.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/ueuVa6sz.js","/app/immutable/chunks/efzPt1Zl.js","/app/immutable/chunks/3fIKXjaK.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DJEHRSq_.js","/app/immutable/chunks/VsHx9wnL.js","/app/immutable/chunks/BSWBtDcr.js","/app/immutable/chunks/DUTTFDMl.js","/app/immutable/chunks/kqwM5HmG.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CdiJBGdH.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/BCw3PFII.js","/app/immutable/chunks/BgKYBpWf.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BpEdOU8N.js","/app/immutable/chunks/D4BkzUXQ.js"])))=>i.map(i=>d[i]);
2
- var Fh=Object.defineProperty;var Nh=(t,e,i)=>e in t?Fh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var P=(t,e,i)=>Nh(t,typeof e!="symbol"?e+"":e,i);import{cd as zh}from"./3SdAC2_C.js";import{bm as $s,_ as Dn}from"./CNjGF_c0.js";import{a as Xi}from"./BdWqymET.js";import{i as Fs}from"./BBWuirRW.js";import{f as Wh}from"./D5Cc6bEQ.js";import{t as Hh}from"./D_cHFDRi.js";import{d as Hi}from"./B0Z-1lwJ.js";import{c as Uh}from"./ChTqQfQN.js";import{s as Wt}from"./CQ409-Pj.js";import{H as Kh}from"./efzPt1Zl.js";import{Jr as _t,Kw as Bn,gD as qh,a_ as Vh,Cz as Gh,AM as Yh,si as Xh}from"./kqwM5HmG.js";import{O as An,S as Pn,J as On,B as In}from"./Bqd7fdCF.js";import{g as jh}from"./efBfHuTf.js";import{f as Zh,l as Jh}from"./mqCCiO3s.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/IVk1JAtP.js","/app/immutable/chunks/BkLJnbD1.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/Bv8Gaorn.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BQg4hK6W.js","/app/immutable/chunks/D85P44Dj.js","/app/immutable/chunks/DZBnfhEV.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BO3WriTy.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/D1JjMDax.js","/app/immutable/chunks/CSbK1_CV.js","/app/immutable/chunks/B5bnHhgO.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/kZanyiqf.js","/app/immutable/chunks/ChJ4msi3.js","/app/immutable/chunks/C44hzh9R.js","/app/immutable/chunks/BLYFfqzj.js","/app/immutable/chunks/NgEAPl8f.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/8TUe2kcz.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CiD4x8Gl.js","/app/immutable/chunks/DgaiTQpw.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BJuNVIII.js","/app/immutable/chunks/BWtq4mC4.js"])))=>i.map(i=>d[i]);
2
+ var Fh=Object.defineProperty;var Nh=(t,e,i)=>e in t?Fh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var P=(t,e,i)=>Nh(t,typeof e!="symbol"?e+"":e,i);import{cd as zh}from"./3SdAC2_C.js";import{bm as $s,_ as Dn}from"./Bv8Gaorn.js";import{a as Xi}from"./BdWqymET.js";import{i as Fs}from"./BBWuirRW.js";import{f as Wh}from"./Dr4PDf9D.js";import{t as Hh}from"./DzfHkSZF.js";import{d as Hi}from"./B0Z-1lwJ.js";import{c as Uh}from"./ChTqQfQN.js";import{s as Wt}from"./CQ409-Pj.js";import{H as Kh}from"./CSbK1_CV.js";import{Jr as _t,Kw as Bn,gD as qh,a_ as Vh,Cz as Gh,AM as Yh,si as Xh}from"./NgEAPl8f.js";import{O as An,S as Pn,J as On,B as In}from"./Bqd7fdCF.js";import{g as jh}from"./iwQqOlmN.js";import{f as Zh,l as Jh}from"./CtX28OJm.js";/**
3
3
  * Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
4
4
  * @license MIT
5
5
  *
@@ -141,6 +141,6 @@ void main() {
141
141
  `))}},df=class extends Error{constructor(t,e){super(t),this.name="ListenerLeakError",this.stack=e}},uf=class extends Error{constructor(t,e){super(t),this.name="ListenerRefusalError",this.stack=e}},_f=0,dr=class{constructor(t){this.value=t,this.id=_f++}},ff=2,gf,ut=class{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new lf(t?.onListenerError??cr,this._options?.leakWarningThreshold??hf):void 0,this._perfMon=this._options?._profName?new af(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(t,e,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let o=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(o);let a=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new uf(`${o}. HINT: Stack shows most frequent listener (${a[1]}-times)`,a[0]);return(this._options?.onListenerError||cr)(l),Kt.None}if(this._disposed)return Kt.None;e&&(t=t.bind(e));let s=new dr(t),r;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=cf.create(),r=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof dr?(this._deliveryQueue??=new pf,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;let n=Ci(()=>{r?.(),this._removeListener(s)});return i instanceof xn?i.add(n):Array.isArray(i)&&i.push(n),n},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let e=this._listeners,i=e.indexOf(t);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,e[i]=void 0;let s=this._deliveryQueue.current===this;if(this._size*ff<=e.length){let r=0;for(let n=0;n<e.length;n++)e[n]?e[r++]=e[n]:s&&(this._deliveryQueue.end--,r<this._deliveryQueue.i&&this._deliveryQueue.i--);e.length=r}}_deliver(t,e){if(!t)return;let i=this._options?.onListenerError||cr;if(!i){t.value(e);return}try{t.value(e)}catch(s){i(s)}}_deliverQueue(t){let e=t.current._listeners;for(;t.i<t.end;)this._deliver(e[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof dr)this._deliver(this._listeners,t);else{let e=this._deliveryQueue;e.enqueue(this,t,this._listeners.length),this._deliverQueue(e)}this._perfMon?.stop()}hasListeners(){return this._size>0}},pf=class{constructor(){this.i=-1,this.end=0}enqueue(t,e,i){this.i=0,this.end=i,this.current=t,this.value=e}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Ph=Object.freeze(function(t,e){let i=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(i)}}}),mf;(t=>{function e(i){return i===t.None||i===t.Cancelled||i instanceof vf?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:kn.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ph})})(mf||={});var vf=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Ph:(this._emitter||(this._emitter=new ut),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},pi="en",ur=!1,cs,bs=pi,oa=pi,Sf,Et,ri=globalThis,Ge;typeof ri.vscode<"u"&&typeof ri.vscode.process<"u"?Ge=ri.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ge=process);var wf=typeof Ge?.versions?.electron=="string",bf=wf&&Ge?.type==="renderer";if(typeof Ge=="object"){Ge.platform,Ge.platform,ur=Ge.platform==="linux",ur&&Ge.env.SNAP&&Ge.env.SNAP_REVISION,Ge.env.CI||Ge.env.BUILD_ARTIFACTSTAGINGDIRECTORY,cs=pi,bs=pi;let t=Ge.env.VSCODE_NLS_CONFIG;if(t)try{let e=JSON.parse(t);cs=e.userLocale,oa=e.osLocale,bs=e.resolvedLanguage||pi,Sf=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!bf?(Et=navigator.userAgent,Et.indexOf("Windows")>=0,Et.indexOf("Macintosh")>=0,(Et.indexOf("Macintosh")>=0||Et.indexOf("iPad")>=0||Et.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ur=Et.indexOf("Linux")>=0,Et?.indexOf("Mobi")>=0,bs=globalThis._VSCODE_NLS_LANGUAGE||pi,cs=navigator.language.toLowerCase(),oa=cs):console.error("Unable to resolve platform.");var vt=Et,$t=bs,Cf;(t=>{function e(){return $t}t.value=e;function i(){return $t.length===2?$t==="en":$t.length>=3?$t[0]==="e"&&$t[1]==="n"&&$t[2]==="-":!1}t.isDefaultVariant=i;function s(){return $t==="en"}t.isDefault=s})(Cf||={});var yf=typeof ri.postMessage=="function"&&!ri.importScripts;(()=>{if(yf){let t=[];ri.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let s=0,r=t.length;s<r;s++){let n=t[s];if(n.id===i.data.vscodeScheduleAsyncWork){t.splice(s,1),n.callback();return}}});let e=0;return i=>{let s=++e;t.push({id:s,callback:i}),ri.postMessage({vscodeScheduleAsyncWork:s},"*")}}return t=>setTimeout(t)})();var xf=!!(vt&&vt.indexOf("Chrome")>=0);vt&&vt.indexOf("Firefox")>=0;!xf&&vt&&vt.indexOf("Safari")>=0;vt&&vt.indexOf("Edg/")>=0;vt&&vt.indexOf("Android")>=0;function Oh(t,e=0,i){let s=setTimeout(()=>{t()},e);return Ci(()=>{clearTimeout(s)})}var kf;(t=>{async function e(s){let r,n=await Promise.all(s.map(o=>o.then(a=>a,a=>{r||(r=a)})));if(typeof r<"u")throw r;return n}t.settled=e;function i(s){return new Promise(async(r,n)=>{try{await s(r,n)}catch(o){n(o)}})}t.withAsyncBody=i})(kf||={});var aa=class Qe{static fromArray(e){return new Qe(i=>{i.emitMany(e)})}static fromPromise(e){return new Qe(async i=>{i.emitMany(await e)})}static fromPromises(e){return new Qe(async i=>{await Promise.all(e.map(async s=>i.emitOne(await s)))})}static merge(e){return new Qe(async i=>{await Promise.all(e.map(async s=>{for await(let r of s)i.emitOne(r)}))})}constructor(e,i){this._state=0,this._results=[],this._error=null,this._onReturn=i,this._onStateChanged=new ut,queueMicrotask(async()=>{let s={emitOne:r=>this.emitOne(r),emitMany:r=>this.emitMany(r),reject:r=>this.reject(r)};try{await Promise.resolve(e(s)),this.resolve()}catch(r){this.reject(r)}finally{s.emitOne=void 0,s.emitMany=void 0,s.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(this._state===1)return{done:!0,value:void 0};await kn.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,i){return new Qe(async s=>{for await(let r of e)s.emitOne(i(r))})}map(e){return Qe.map(this,e)}static filter(e,i){return new Qe(async s=>{for await(let r of e)i(r)&&s.emitOne(r)})}filter(e){return Qe.filter(this,e)}static coalesce(e){return Qe.filter(e,i=>!!i)}coalesce(){return Qe.coalesce(this)}static async toPromise(e){let i=[];for await(let s of e)i.push(s);return i}toPromise(){return Qe.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}};aa.EMPTY=aa.fromArray([]);var Lf=class extends Kt{constructor(t){super(),this._terminal=t,this._linesCacheTimeout=this._register(new Ts),this._linesCacheDisposables=this._register(new Ts),this._register(Ci(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=new Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=Eh(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=Oh(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(t){return this._linesCache?.[t]}setLineInCache(t,e){this._linesCache&&(this._linesCache[t]=e)}translateBufferLineToStringWithWrap(t,e){let i=[],s=[0],r=this._terminal.buffer.active.getLine(t);for(;r;){let n=this._terminal.buffer.active.getLine(t+1),o=n?n.isWrapped:!1,a=r.translateToString(!o&&e);if(o&&n){let l=r.getCell(r.length-1);l&&l.getCode()===0&&l.getWidth()===1&&n.getCell(0)?.getWidth()===2&&(a=a.slice(0,-1))}if(i.push(a),o)s.push(s[s.length-1]+a.length);else break;t++,r=n}return[i.join(""),s]}},Ef=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(t){this._cachedSearchTerm=t}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(t){this._lastSearchOptions=t}isValidSearchTerm(t){return!!(t&&t.length>0)}didOptionsChange(t){return this._lastSearchOptions?t?this._lastSearchOptions.caseSensitive!==t.caseSensitive||this._lastSearchOptions.regex!==t.regex||this._lastSearchOptions.wholeWord!==t.wholeWord:!1:!0}shouldUpdateHighlighting(t,e){return e?.decorations?this._cachedSearchTerm===void 0||t!==this._cachedSearchTerm||this.didOptionsChange(e):!1}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},Mf=class{constructor(t,e){this._terminal=t,this._lineCache=e}find(t,e,i,s){if(!t||t.length===0){this._terminal.clearSelection();return}if(i>this._terminal.cols)throw new Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let r={startRow:e,startCol:i},n=this._findInLine(t,r,s);if(!n)for(let o=e+1;o<this._terminal.buffer.active.baseY+this._terminal.rows&&(r.startRow=o,r.startCol=0,n=this._findInLine(t,r,s),!n);o++);return n}findNextWithSelection(t,e,i){if(!t||t.length===0){this._terminal.clearSelection();return}let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=0,n=0;s&&(i===t?(r=s.end.x,n=s.end.y):(r=s.start.x,n=s.start.y)),this._lineCache.initLinesCache();let o={startRow:n,startCol:r},a=this._findInLine(t,o,e);if(!a)for(let l=n+1;l<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=l,o.startCol=0,a=this._findInLine(t,o,e),!a);l++);if(!a&&n!==0)for(let l=0;l<n&&(o.startRow=l,o.startCol=0,a=this._findInLine(t,o,e),!a);l++);return!a&&s&&(o.startRow=s.start.y,o.startCol=0,a=this._findInLine(t,o,e)),a}findPreviousWithSelection(t,e,i){if(!t||t.length===0){this._terminal.clearSelection();return}let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=this._terminal.buffer.active.baseY+this._terminal.rows-1,n=this._terminal.cols,o=!0;this._lineCache.initLinesCache();let a={startRow:r,startCol:n},l;if(s&&(a.startRow=r=s.start.y,a.startCol=n=s.start.x,i!==t&&(l=this._findInLine(t,a,e,!1),l||(a.startRow=r=s.end.y,a.startCol=n=s.end.x))),l||(l=this._findInLine(t,a,e,o)),!l){a.startCol=Math.max(a.startCol,this._terminal.cols);for(let h=r-1;h>=0&&(a.startRow=h,l=this._findInLine(t,a,e,o),!l);h--);}if(!l&&r!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let h=this._terminal.buffer.active.baseY+this._terminal.rows-1;h>=r&&(a.startRow=h,l=this._findInLine(t,a,e,o),!l);h--);return l}_isWholeWord(t,e,i){return(t===0||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(e[t-1]))&&(t+i.length===e.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(e[t+i.length]))}_findInLine(t,e,i={},s=!1){let r=e.startRow,n=e.startCol;if(this._terminal.buffer.active.getLine(r)?.isWrapped){if(s){e.startCol+=this._terminal.cols;return}return e.startRow--,e.startCol+=this._terminal.cols,this._findInLine(t,e,i)}let o=this._lineCache.getLineFromCache(r);o||(o=this._lineCache.translateBufferLineToStringWithWrap(r,!0),this._lineCache.setLineInCache(r,o));let[a,l]=o,h=this._bufferColsToStringOffset(r,n),c=t,d=a;i.regex||(c=i.caseSensitive?t:t.toLowerCase(),d=i.caseSensitive?a:a.toLowerCase());let u=-1;if(i.regex){let f=RegExp(c,i.caseSensitive?"g":"gi"),g;if(s)for(;g=f.exec(d.slice(0,h));)u=f.lastIndex-g[0].length,t=g[0],f.lastIndex-=t.length-1;else g=f.exec(d.slice(h)),g&&g[0].length>0&&(u=h+(f.lastIndex-g[0].length),t=g[0])}else s?h-c.length>=0&&(u=d.lastIndexOf(c,h-c.length)):u=d.indexOf(c,h);if(u>=0){if(i.wholeWord&&!this._isWholeWord(u,d,t))return;let f=0;for(;f<l.length-1&&u>=l[f+1];)f++;let g=f;for(;g<l.length-1&&u+t.length>=l[g+1];)g++;let C=u-l[f],L=u+t.length-l[g],D=this._stringLengthToBufferSize(r+f,C),B=this._stringLengthToBufferSize(r+g,L)-D+this._terminal.cols*(g-f);return{term:t,col:D,row:r+f,size:B}}}_stringLengthToBufferSize(t,e){let i=this._terminal.buffer.active.getLine(t);if(!i)return 0;for(let s=0;s<e;s++){let r=i.getCell(s);if(!r)break;let n=r.getChars();n.length>1&&(e-=n.length-1);let o=i.getCell(s+1);o&&o.getWidth()===0&&e++}return e}_bufferColsToStringOffset(t,e){let i=t,s=0,r=this._terminal.buffer.active.getLine(i);for(;e>0&&r;){for(let n=0;n<e&&n<this._terminal.cols;n++){let o=r.getCell(n);if(!o)break;o.getWidth()&&(s+=o.getCode()===0?1:o.getChars().length)}if(i++,r=this._terminal.buffer.active.getLine(i),r&&!r.isWrapped)break;e-=this._terminal.cols}return s}},Tf=class extends Kt{constructor(t){super(),this._terminal=t,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(Ci(()=>this.clearHighlightDecorations()))}createHighlightDecorations(t,e){this.clearHighlightDecorations();for(let i of t){let s=this._createResultDecorations(i,e,!1);if(s)for(let r of s)this._storeDecoration(r,i)}}createActiveDecoration(t,e){let i=this._createResultDecorations(t,e,!0);if(i)return{decorations:i,match:t,dispose(){Ki(i)}}}clearHighlightDecorations(){Ki(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(t,e){this._highlightedLines.add(t.marker.line),this._highlightDecorations.push({decoration:t,match:e,dispose(){t.dispose()}})}_applyStyles(t,e,i){t.classList.contains("xterm-find-result-decoration")||(t.classList.add("xterm-find-result-decoration"),e&&(t.style.outline=`1px solid ${e}`)),i&&t.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(t,e,i){let s=[],r=t.col,n=t.size,o=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+t.row;for(;n>0;){let l=Math.min(this._terminal.cols-r,n);s.push([o,r,l]),r=0,n-=l,o++}let a=[];for(let l of s){let h=this._terminal.registerMarker(l[0]),c=this._terminal.registerDecoration({marker:h,x:l[1],width:l[2],backgroundColor:i?e.activeMatchBackground:e.matchBackground,overviewRulerOptions:this._highlightedLines.has(h.line)?void 0:{color:i?e.activeMatchColorOverviewRuler:e.matchOverviewRuler,position:"center"}});if(c){let d=[];d.push(h),d.push(c.onRender(u=>this._applyStyles(u,i?e.activeMatchBorder:e.matchBorder,!1))),d.push(c.onDispose(()=>Ki(d))),a.push(c)}}return a.length===0?void 0:a}},Rf=class extends Kt{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new ut)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(t){this._selectedDecoration=t}updateResults(t,e){this._searchResults=t.slice(0,e)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(t){for(let e=0;e<this._searchResults.length;e++){let i=this._searchResults[e];if(i.row===t.row&&i.col===t.col&&i.size===t.size)return e}return-1}fireResultsChanged(t){if(!t)return;let e=-1;this._selectedDecoration&&(e=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:e,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},Df=class extends Kt{constructor(t){super(),this._highlightTimeout=this._register(new Ts),this._lineCache=this._register(new Ts),this._state=new Ef,this._resultTracker=this._register(new Rf),this._highlightLimit=t?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(t){this._terminal=t,this._lineCache.value=new Lf(t),this._engine=new Mf(t,this._lineCache.value),this._decorationManager=new Tf(t),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(Ci(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=Oh(()=>{let t=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(t,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(t){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),t||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(t,e,i){if(!this._terminal||!this._engine)throw new Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=e,this._state.shouldUpdateHighlighting(t,e)&&this._highlightAllMatches(t,e);let s=this._findNextAndSelect(t,e,i);return this._fireResults(e),this._state.cachedSearchTerm=t,s}_highlightAllMatches(t,e){if(!this._terminal||!this._engine||!this._decorationManager)throw new Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(t)){this.clearDecorations();return}this.clearDecorations(!0);let i=[],s,r=this._engine.find(t,0,0,e);for(;r&&(s?.row!==r.row||s?.col!==r.col)&&!(i.length>=this._highlightLimit);)s=r,i.push(s),r=this._engine.find(t,s.col+s.term.length>=this._terminal.cols?s.row+1:s.row,s.col+s.term.length>=this._terminal.cols?0:s.col+1,e);this._resultTracker.updateResults(i,this._highlightLimit),e.decorations&&this._decorationManager.createHighlightDecorations(i,e.decorations)}_findNextAndSelect(t,e,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(t))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findNextWithSelection(t,e,this._state.cachedSearchTerm);return this._selectResult(s,e?.decorations,i?.noScroll)}findPrevious(t,e,i){if(!this._terminal||!this._engine)throw new Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=e,this._state.shouldUpdateHighlighting(t,e)&&this._highlightAllMatches(t,e);let s=this._findPreviousAndSelect(t,e,i);return this._fireResults(e),this._state.cachedSearchTerm=t,s}_fireResults(t){this._resultTracker.fireResultsChanged(!!t?.decorations)}_findPreviousAndSelect(t,e,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(t))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findPreviousWithSelection(t,e,this._state.cachedSearchTerm);return this._selectResult(s,e?.decorations,i?.noScroll)}_selectResult(t,e,i){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!t)return this._terminal.clearSelection(),!1;if(this._terminal.select(t.col,t.row,t.size),e){let s=this._decorationManager.createActiveDecoration(t,e);s&&(this._resultTracker.selectedDecoration=s)}if(!i&&(t.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||t.row<this._terminal.buffer.active.viewportY)){let s=t.row-this._terminal.buffer.active.viewportY;s-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(s)}return!0}};const Gt=new Xi("TerminalStateMachine");var et=(t=>(t.UNINITIALIZED="uninitialized",t.INITIALIZING="initializing",t.CONNECTING="connecting",t.CONNECTED="connected",t.RECONNECTING="reconnecting",t.DISCONNECTED="disconnected",t.ERROR="error",t.DISPOSED="disposed",t))(et||{});class Bf{constructor(e){P(this,"currentState","uninitialized");P(this,"stateListeners",new Map);P(this,"transitionListeners",new Set);P(this,"errorHandlers",new Set);P(this,"transitions",[{from:["uninitialized"],to:"initializing",action:"initialize"},{from:["initializing"],to:"connecting",action:"connect"},{from:["connecting"],to:"connected",action:"connected"},{from:["disconnected","error"],to:"reconnecting",action:"reconnect"},{from:["reconnecting"],to:"connected",action:"reconnected"},{from:["connected","connecting"],to:"disconnected",action:"disconnect"},{from:["initializing","connecting","connected","reconnecting"],to:"error",action:"error"},{from:["uninitialized","initializing","connecting","connected","reconnecting","disconnected","error"],to:"disposed",action:"dispose"}]);this.terminalId=e}getState(){return this.currentState}canTransition(e){const i=this.transitions.find(s=>s.action===e&&s.from.includes(this.currentState));return!(!i||i.guard&&!i.guard())}transition(e){const i=this.transitions.find(r=>r.action===e&&r.from.includes(this.currentState));if(!i)return Gt.warn(`Invalid transition: ${e} from ${this.currentState}`),!1;if(i.guard&&!i.guard())return Gt.warn(`Guard failed for transition: ${e}`),!1;const s=this.currentState;return this.currentState=i.to,Gt.info(`Terminal ${this.terminalId}: ${s} -> ${this.currentState} (${e})`),this.notifyStateListeners(this.currentState),this.notifyTransitionListeners(s,this.currentState),!0}onStateChange(e,i){let s=this.stateListeners.get(e);return s||(s=new Set,this.stateListeners.set(e,s)),s.add(i),()=>{this.stateListeners.get(e)?.delete(i)}}onTransition(e){return this.transitionListeners.add(e),()=>{this.transitionListeners.delete(e)}}onError(e){return this.errorHandlers.add(e),()=>{this.errorHandlers.delete(e)}}reportError(e){Gt.error(`Terminal ${this.terminalId} error:`,e),this.errorHandlers.forEach(i=>{try{i(e)}catch(s){Gt.error("Error handler threw exception:",s)}}),this.currentState!=="disposed"&&this.transition("error")}isHealthy(){return["connected","connecting","reconnecting"].includes(this.currentState)}canAcceptInput(){return this.currentState==="connected"}isDisposed(){return this.currentState==="disposed"}notifyStateListeners(e){this.stateListeners.get(e)?.forEach(i=>{try{i()}catch(s){Gt.error("Error in state listener:",s)}})}notifyTransitionListeners(e,i){this.transitionListeners.forEach(s=>{try{s(e,i)}catch(r){Gt.error("Error in transition listener:",r)}})}dispose(){this.isDisposed()||this.transition("dispose"),this.stateListeners.clear(),this.transitionListeners.clear(),this.errorHandlers.clear()}}const ct=new Xi("TerminalBufferManager"),Ln="terminal-buffer-index";let Zt=null,an=0;const Af=5e3;function En(){const t=Date.now();if(Zt&&t-an<Af)return Zt;try{const e=localStorage.getItem(Ln);if(e){const i=JSON.parse(e);Zt=new Map(i.map(s=>[s.key,s.timestamp]))}else Zt=new Map}catch{Zt=new Map}return an=t,Zt}function Mn(t){try{const e=Array.from(t.entries()).map(([i,s])=>({key:i,timestamp:s}));localStorage.setItem(Ln,JSON.stringify(e)),Zt=t,an=Date.now()}catch{}}function ha(t,e){const i=En();i.set(t,e),Mn(i)}function la(t){const e=En();e.delete(t),Mn(e)}const $e=class $e{constructor(e,i){P(this,"storageKey");P(this,"fallbackStorage",new Map);this.workspaceId=e,this.terminalId=i,this.storageKey=`terminal-buffer-${e}-${i}`}async saveBuffer(e,i,s){try{const n={lines:this.trimBuffer(e),cursorX:i,cursorY:s,timestamp:Date.now(),version:$e.BUFFER_VERSION};if(await this.hasStorageSpace(n))try{return localStorage.setItem(this.storageKey,JSON.stringify(n)),ha(this.storageKey,n.timestamp),ct.debug(`Saved buffer for terminal ${this.terminalId}`),!0}catch(o){return ct.warn("localStorage failed, using fallback storage:",o),this.fallbackStorage.set(this.storageKey,n),!0}else{await this.cleanupOldBuffers();try{return localStorage.setItem(this.storageKey,JSON.stringify(n)),ha(this.storageKey,n.timestamp),!0}catch{return this.fallbackStorage.set(this.storageKey,n),!0}}}catch(r){return ct.error("Failed to save buffer:",r),!1}}async restoreBuffer(){try{const e=localStorage.getItem(this.storageKey);if(e){const s=JSON.parse(e);if(this.isValidSnapshot(s))return ct.debug(`Restored buffer for terminal ${this.terminalId}`),s;localStorage.removeItem(this.storageKey)}const i=this.fallbackStorage.get(this.storageKey);return i&&this.isValidSnapshot(i)?i:null}catch(e){return ct.error("Failed to restore buffer:",e),null}}async clearBuffer(){try{localStorage.removeItem(this.storageKey),this.fallbackStorage.delete(this.storageKey),la(this.storageKey)}catch(e){ct.error("Failed to clear buffer:",e)}}trimBuffer(e){for(;e.length>0&&!e[e.length-1].trim();)e.pop();return e.length>$e.MAX_BUFFER_SIZE&&(e=e.slice(-1e4)),e.map(i=>i.length>$e.MAX_LINE_LENGTH?`${i.substring(0,$e.MAX_LINE_LENGTH)}…`:i)}isValidSnapshot(e){return!(e.version!==$e.BUFFER_VERSION||Date.now()-e.timestamp>$e.RETENTION_PERIOD||!Array.isArray(e.lines))}async hasStorageSpace(e){try{const i=JSON.stringify(e).length;if("storage"in navigator&&"estimate"in navigator.storage){const s=await navigator.storage.estimate();return(s.quota||0)-(s.usage||0)>i+$e.STORAGE_QUOTA_BUFFER}return!0}catch{return!0}}async cleanupOldBuffers(){try{const e=[],i=Date.now(),s=En();for(const[r,n]of s)i-n>$e.RETENTION_PERIOD&&e.push(r);for(const r of e)localStorage.removeItem(r),la(r),ct.debug(`Cleaned up old buffer: ${r}`);s.size===0&&await this.rebuildBufferIndex()}catch(e){ct.error("Failed to cleanup old buffers:",e)}}async rebuildBufferIndex(){try{const e=new Map;for(let i=0;i<localStorage.length;i++){const s=localStorage.key(i);if(s?.startsWith("terminal-buffer-")&&s!==Ln)try{const r=localStorage.getItem(s);if(r){const n=JSON.parse(r);e.set(s,n.timestamp)}}catch{}}e.size>0&&(Mn(e),ct.debug(`Rebuilt buffer index with ${e.size} entries`))}catch(e){ct.error("Failed to rebuild buffer index:",e)}}getStats(){try{const e=localStorage.getItem(this.storageKey);if(e){const i=JSON.parse(e);return{size:e.length,lineCount:i.lines.length,age:Date.now()-i.timestamp}}return null}catch{return null}}};P($e,"BUFFER_VERSION",1),P($e,"MAX_BUFFER_SIZE",1e4),P($e,"MAX_LINE_LENGTH",1e3),P($e,"RETENTION_PERIOD",1440*60*1e3),P($e,"STORAGE_QUOTA_BUFFER",100*1024);let Rs=$e;const Pi=new Xi("TerminalThemeManager"),Se=class Se{constructor(e){P(this,"currentTheme");P(this,"customTerminalTheme",null);P(this,"themeObserver",null);P(this,"transitionTimeout",null);P(this,"darkModeQuery",null);P(this,"darkModeChangeHandler",null);P(this,"themeChangeHandler",null);this.container=e,this.currentTheme=this.detectSystemTheme(),this.setContainer(this.container??null),this.setupThemeObserver()}setContainer(e){this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.container&&this.container!==e&&(this.container.style.transition=""),this.container=e,this.container&&(this.container.style.backgroundColor=this.currentTheme.background||"transparent")}getCurrentTheme(){return this.currentTheme}applyTheme(e,i){const s=i||this.detectSystemTheme();if(s.name!==this.currentTheme.name)try{this.container&&(this.container.style.transition=`background-color ${Se.TRANSITION_DURATION}ms ease`),e.options.theme=s,this.container&&(this.container.style.backgroundColor=s.background||"transparent"),e.refresh(0,e.rows-1),this.currentTheme=s,Pi.debug(`Applied theme: ${s.name}`),this.transitionTimeout&&clearTimeout(this.transitionTimeout),this.transitionTimeout=setTimeout(()=>{this.container&&(this.container.style.transition="")},Se.TRANSITION_DURATION)}catch(r){Pi.error("Failed to apply theme:",r)}}detectSystemTheme(){if(this.customTerminalTheme)return this.customTerminalTheme;const e=document.documentElement.classList.contains("dark"),i=document.documentElement.classList.contains("light");if(e)return Se.DARK_THEME;if(i)return Se.LIGHT_THEME;const s=document.documentElement.getAttribute("data-theme");if(s==="dark")return Se.DARK_THEME;if(s==="light")return Se.LIGHT_THEME;const n=getComputedStyle(document.documentElement).getPropertyValue("--background").trim();return n&&this.isColorDark(n)||Hh.isDark()?Se.DARK_THEME:Se.LIGHT_THEME}isColorDark(e){const i=this.colorToRgb(e);return i?(.299*i.r+.587*i.g+.114*i.b)/255<.5:!1}colorToRgb(e){if(e.startsWith("#")){const s=e.slice(1);if(s.length===3)return{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16)};if(s.length===6)return{r:parseInt(s.slice(0,2),16),g:parseInt(s.slice(2,4),16),b:parseInt(s.slice(4,6),16)}}const i=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);return i?{r:parseInt(i[1]),g:parseInt(i[2]),b:parseInt(i[3])}:null}setupThemeObserver(){typeof window>"u"||(this.themeObserver=new MutationObserver(e=>{for(const i of e)if(i.type==="attributes"){const s=i.attributeName;if(s==="class"||s==="data-theme"){const r=this.detectSystemTheme();r.name!==this.currentTheme.name&&(Pi.debug(`Theme change detected: ${this.currentTheme.name} -> ${r.name}`),Hi("terminal-theme-changed",{theme:r}))}}}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),this.darkModeQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.darkModeChangeHandler=()=>{Pi.debug("System theme preference changed");const e=this.detectSystemTheme();e.name!==this.currentTheme.name&&Hi("terminal-theme-changed",{theme:e})},this.darkModeQuery.addEventListener("change",this.darkModeChangeHandler),this.themeChangeHandler=e=>{const i=e.detail?.isDark,s=e.detail?.terminalColors;let r;s&&Object.keys(s).length>0?(r={...i?Se.DARK_THEME:Se.LIGHT_THEME,...s,name:"custom",isDark:i},this.customTerminalTheme=r):(this.customTerminalTheme=null,r=i?Se.DARK_THEME:Se.LIGHT_THEME),(r.name!==this.currentTheme.name||s)&&(Pi.debug(`App theme changed to ${r.name}`),Hi("terminal-theme-changed",{theme:r}))},window.addEventListener("theme-changed",this.themeChangeHandler))}dispose(){this.themeObserver&&(this.themeObserver.disconnect(),this.themeObserver=null),this.darkModeQuery&&this.darkModeChangeHandler&&(this.darkModeQuery.removeEventListener("change",this.darkModeChangeHandler),this.darkModeQuery=null,this.darkModeChangeHandler=null),this.themeChangeHandler&&(window.removeEventListener("theme-changed",this.themeChangeHandler),this.themeChangeHandler=null),this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.setContainer(null)}};P(Se,"TRANSITION_DURATION",200),P(Se,"DARK_THEME",{name:"sleek-dark",isDark:!0,background:"#0B0B0E",foreground:"#e4e4e7",cursor:"#fbbf24",cursorAccent:"#1a1a1a",selectionBackground:"#3f3f46",selectionForeground:"#F7F7F7",selectionInactiveBackground:"#27272a",black:"#18181b",red:"#ef4444",green:"#22c55e",yellow:"#eab308",blue:"#3b82f6",magenta:"#a855f7",cyan:"#06b6d4",white:"#d4d4d8",brightBlack:"#52525b",brightRed:"#f87171",brightGreen:"#4ade80",brightYellow:"#facc15",brightBlue:"#60a5fa",brightMagenta:"#c084fc",brightCyan:"#22d3ee",brightWhite:"#f4f4f5"}),P(Se,"LIGHT_THEME",{name:"sleek-light",isDark:!1,background:"#F7F7F8",foreground:"#18181b",cursor:"#f59e0b",cursorAccent:"#F7F7F7",selectionBackground:"#e4e4e7",selectionForeground:"#09090b",selectionInactiveBackground:"#f4f4f5",black:"#18181b",red:"#dc2626",green:"#16a34a",yellow:"#ca8a04",blue:"#2563eb",magenta:"#9333ea",cyan:"#0891b2",white:"#e4e4e7",brightBlack:"#71717a",brightRed:"#ef4444",brightGreen:"#22c55e",brightYellow:"#eab308",brightBlue:"#3b82f6",brightMagenta:"#a855f7",brightCyan:"#06b6d4",brightWhite:"#F7F7F7"});let hn=Se;const Yt=Uh("TerminalHistoryTracker"),Jt=class Jt{constructor(){P(this,"histories",new Map);P(this,"MAX_HISTORY_SIZE",10);P(this,"MAX_OUTPUT_LENGTH",500);P(this,"STORAGE_PREFIX","terminal-history-");P(this,"_updateCounter",zh(0));P(this,"updateCounter",{subscribe:this._updateCounter.subscribe});this.loadHistories()}notifyUpdate(){this._updateCounter.update(e=>e+1)}static getInstance(){return Jt.instance||(Jt.instance=new Jt),Jt.instance}getOrCreateHistory(e,i){let s=this.histories.get(e);return s||(s={terminalId:e,workspaceId:i,commands:[],currentOutput:"",isExecuting:!1},this.histories.set(e,s)),s}onCommandStart(e,i,s){const r=this.getOrCreateHistory(e,i),n=Wt(s);r.currentCommand=n,r.currentOutput="",r.isExecuting=!0,r.lastCommand=n,this.notifyUpdate(),Yt.debug(`Command started for terminal ${e}: ${n}`)}onOutput(e,i,s){const r=this.getOrCreateHistory(e,i);r.currentOutput.length<this.MAX_OUTPUT_LENGTH&&(r.currentOutput+=s,r.currentOutput.length>this.MAX_OUTPUT_LENGTH&&(r.currentOutput=`${r.currentOutput.substring(0,this.MAX_OUTPUT_LENGTH)}...`))}onCommandFinish(e,i){const s=this.getOrCreateHistory(e,i);if(s.currentCommand){const r=Wt(s.currentCommand),n={command:r,timestamp:Date.now(),output:s.currentOutput};s.commands.push(n),s.commands.length>this.MAX_HISTORY_SIZE&&(s.commands=s.commands.slice(-this.MAX_HISTORY_SIZE)),s.lastCommand=r,s.lastOutput=s.currentOutput,this.saveHistory(e,s),Yt.debug(`Command finished for terminal ${e}: ${r}`)}s.currentCommand=void 0,s.currentOutput="",s.isExecuting=!1,this.notifyUpdate()}getHistory(e){return this.histories.get(e)}getHistoriesForWorkspace(e){return Array.from(this.histories.values()).filter(i=>i.workspaceId===e)}getLastCommand(e){return this.histories.get(e)?.lastCommand}getLastOutput(e){return this.histories.get(e)?.lastOutput}saveHistory(e,i){try{const s=`${this.STORAGE_PREFIX}${e}`,r={terminalId:i.terminalId,workspaceId:i.workspaceId,commands:i.commands.slice(-5).map(n=>({...n,command:Wt(n.command)})),lastCommand:i.lastCommand?Wt(i.lastCommand):void 0,lastOutput:i.lastOutput?.substring(0,200)};localStorage.setItem(s,JSON.stringify(r))}catch(s){Yt.warn("Failed to save terminal history:",s)}}loadHistories(){try{const e=Object.keys(localStorage).filter(i=>i.startsWith(this.STORAGE_PREFIX));for(const i of e)try{const s=localStorage.getItem(i);if(s){const r=JSON.parse(s);r.terminalId&&this.histories.set(r.terminalId,{...r,currentOutput:"",isExecuting:!1,commands:r.commands||[]})}}catch(s){Yt.warn(`Failed to load terminal history for ${i}:`,s)}Yt.info(`Loaded ${this.histories.size} terminal histories from localStorage`)}catch(e){Yt.error("Failed to load terminal histories:",e)}}clearHistory(e){this.histories.delete(e);try{localStorage.removeItem(`${this.STORAGE_PREFIX}${e}`)}catch(i){Yt.warn("Failed to clear terminal history:",i)}}clearWorkspaceHistories(e){const i=[];for(const[s,r]of this.histories.entries())r.workspaceId===e&&i.push(s);for(const s of i)this.clearHistory(s)}};P(Jt,"instance");let ln=Jt;const Oi=ln.getInstance();function Pf(t,e){return setTimeout(()=>{try{t.dispose()}catch(i){if(e)e(i);else throw i}},0)}const Of=["panel.focus-next-column","panel.focus-previous-column","global.next-space-alt","global.previous-space-alt","navigation.go-to-tab","navigation.recent-agents"];function If(t,e,i,s=!1){const r=o=>An(o,e),n=s?r("navigation.go-to-device"):An("navigation.go-to-tab",e)===Pn["navigation.go-to-tab"]?Pn["navigation.go-to-device"]:null;return n&&On(t,n,i)>=0&&!In("navigation.go-to-device",t,r,i)?!0:Of.some(o=>On(t,r(o),i)>=0&&(o!=="navigation.go-to-tab"||!In(o,t,r,i)))}const $f=Df,I=new Xi("TerminalAdapter"),Ff=typeof process<"u"&&process.platform==="win32",Nf=100,Ae=class Ae{constructor(e){P(this,"xterm");P(this,"fitAddon");P(this,"searchAddon");P(this,"webLinksAddon");P(this,"webglAddon",null);P(this,"stateMachine");P(this,"bufferManager");P(this,"themeManager");P(this,"terminalId");P(this,"workspaceId");P(this,"container");P(this,"eventListeners",[]);P(this,"resizeObserver",null);P(this,"reattachFitObserver",null);P(this,"reattachFitTimer",null);P(this,"visibilityObserver",null);P(this,"wasVisible",!0);P(this,"isVisible",!0);P(this,"lastFittedSize",null);P(this,"resizeDebounceTimer",null);P(this,"bufferSaveTimer",null);P(this,"dataDisposable",null);P(this,"resizeDisposable",null);P(this,"selectionDisposable",null);P(this,"ipcCleanup",null);P(this,"themeCleanup",null);P(this,"webglContextLostCleanup",null);P(this,"isDisposed",!1);P(this,"isXtermOpened",!1);P(this,"autoReconnectTimer",null);P(this,"autoReconnectAttempts",0);P(this,"heartbeatTimer",null);P(this,"webglRecoveryAttempts",0);P(this,"exitedNormally",!1);P(this,"lastCwd");P(this,"isExecuting",!1);P(this,"startTime",Date.now());P(this,"commandBuffer","");P(this,"currentLineBuffer","");P(this,"isAtPrompt",!1);P(this,"callbacks");P(this,"terminals");this.workspaceId=e.workspaceId,this.terminalId=e.terminalId||`terminal-${Date.now()}-${Math.random().toString(36).substring(2,11)}`,this.container=e.container,this.terminals=(e.appClient??Wh).terminals,this.callbacks={onReady:e.onReady,onExit:e.onExit,onCommandStart:e.onCommandStart,onCommandFinished:e.onCommandFinished,onCwdChanged:e.onCwdChanged,onError:e.onError,onToggleSearch:e.onToggleSearch},this.stateMachine=new Bf(this.terminalId),this.setupStateMachineListeners(),this.bufferManager=new Rs(this.workspaceId,this.terminalId),this.themeManager=new hn(this.container);const i=e.fontFamily??jh.select(_t.state);this.xterm=new au({allowProposedApi:!0,fontFamily:i,fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!0,cursorStyle:"block",cursorWidth:1,scrollback:1e4,allowTransparency:!0,windowsPty:Ff?{backend:"conpty"}:void 0,macOptionIsMeta:!0,rightClickSelectsWord:!0,convertEol:!0,drawBoldTextInBrightColors:!0,scrollSensitivity:1,theme:this.themeManager.getCurrentTheme()}),this.fitAddon=new cu,this.xterm.loadAddon(this.fitAddon),this.webLinksAddon=new pu((s,r)=>{this.handleLinkClick(r)}),this.xterm.loadAddon(this.webLinksAddon),this.searchAddon=new $f,this.xterm.loadAddon(this.searchAddon),this.searchAddon.onDidChangeResults(s=>{this.callbacks.onSearchResultsChange?.(s.resultIndex,s.resultCount)})}getSearchDecorations(){return{matchBackground:"#515c6a",matchBorder:"#515c6a",matchOverviewRuler:"#515c6a",activeMatchBackground:"#eab308",activeMatchBorder:"#ca8a04",activeMatchColorOverviewRuler:"#eab308"}}setupStateMachineListeners(){this.stateMachine.onTransition((e,i)=>{i===et.ERROR&&this.handleError(new Error(`Terminal entered error state from ${e}`)),(i===et.DISCONNECTED||i===et.ERROR)&&(this.stopHeartbeat(),this.exitedNormally||this.scheduleAutoReconnect()),i===et.CONNECTED&&(this.autoReconnectAttempts=0,this.cancelAutoReconnect(),this.startHeartbeat())}),this.stateMachine.onError(e=>{this.handleError(e)})}async initialize(e=!1){if(this.isDisposed)throw new Error("Cannot initialize disposed terminal");if(!this.container)throw new Error("Cannot initialize terminal without a container");const i=this.container;if(!this.stateMachine.canTransition("initialize"))throw new Error(`Cannot initialize terminal in state ${this.stateMachine.getState()}`);this.stateMachine.transition("initialize");try{this.isXtermOpened?I.warn(`[initialize] XTerm already opened for terminal ${this.terminalId}, skipping open()`):(this.xterm.open(i),this.isXtermOpened=!0,I.info(`[initialize] XTerm opened for terminal ${this.terminalId}`)),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer for light theme (better anti-aliasing)"),this.themeManager.applyTheme(this.xterm),this.fitTerminalToContainer()||(I.warn("Container has no dimensions, delaying fit"),setTimeout(()=>{this.fitTerminalToContainer()},100)),this.setupResizeObserver(),this.setupXTermEventHandlers(),this.setupThemeChangeListener();const r=this.xterm.cols,n=this.xterm.rows,o=await this.findBackendTerminal(),a=o!==null;if(!e)if(a)try{const l=await this.terminals.getBuffer(this.terminalId,void 0,this.workspaceId);l&&(I.info(`Restoring ${l.length} bytes of buffered output from backend`),this.xterm.write(l),this.parseTerminalOutput(l))}catch(l){I.warn("Could not restore terminal buffer from backend:",l)}else{const l=await this.bufferManager.restoreBuffer();l&&(I.info("Restoring terminal buffer from local storage"),this.restoreFromSnapshot(l))}this.startBufferAutoSave(),this.stateMachine.transition("connect"),a?(this.setupIpcEventHandlers(),this.stateMachine.transition("connected"),this.resize(r,n),o?.isExecuting===!1&&this.hideCursorOnExit(),this.callbacks.onReady?.()):(I.debug(`[initialize] Terminal ${this.terminalId} creating new PTY`),await this.openPtyConnection(r,n)),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()})}catch(s){throw this.stateMachine.reportError(s),s}}async openPtyConnection(e,i){try{const s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||$s.terminal_adapter_openFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("connected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(s){throw this.stateMachine.reportError(s),s}}async findBackendTerminal(){try{const{terminals:e}=await this.terminals.list(this.workspaceId);return e.find(i=>i.id===this.terminalId)??null}catch(e){return I.warn("Could not check terminal existence:",e),null}}async terminalExistsOnBackend(){return await this.findBackendTerminal()!==null}hideCursorOnExit(){this.isDisposed||(this.xterm.options.cursorBlink=!1,this.xterm.write("\x1B[?25l"))}restoreCursor(){this.isDisposed||(this.xterm.options.cursorBlink=!0,this.xterm.write("\x1B[?25h"))}setupXTermEventHandlers(){this.container&&(this.dataDisposable&&(this.dataDisposable.dispose(),this.dataDisposable=null),this.resizeDisposable&&(this.resizeDisposable.dispose(),this.resizeDisposable=null),this.selectionDisposable&&(this.selectionDisposable.dispose(),this.selectionDisposable=null),this.xterm.attachCustomKeyEventHandler(e=>{const i=navigator.platform.toUpperCase().includes("MAC"),s=i?e.metaKey:e.ctrlKey;return e.metaKey&&e.key==="k"&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&this.clear(),!1):s&&e.key==="j"&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&_t.dispatch(Bn(this.workspaceId)),!1):s&&e.key==="f"&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&this.callbacks.onToggleSearch?.(),!1):s&&(e.key==="t"||e.key==="T")&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&Hi("workspace:new-terminal",{workspaceId:this.workspaceId}),!1):s&&(e.key==="w"||e.key==="W")&&!e.shiftKey&&!e.altKey?(e.type==="keydown"&&_t.dispatch(qh(this.workspaceId)),!1):If(e,_t.state.userPreferences?.shortcutOverrides??{},i,_t.state.machineRail?.enabled??!1)||s&&e.shiftKey&&!e.altKey&&(e.key==="]"||e.key==="}"||e.key==="["||e.key==="{")?!1:e.ctrlKey&&!e.metaKey&&!e.altKey&&(e.key==="`"||e.key==="~")?(e.type==="keydown"&&(e.shiftKey||e.key==="~"?Hi("workspace:new-terminal",{workspaceId:this.workspaceId}):_t.dispatch(Bn(this.workspaceId))),!1):!0}),this.dataDisposable=this.xterm.onData(e=>{this.isDisposed||this.write(e)}),this.resizeDisposable=this.xterm.onResize(({cols:e,rows:i})=>{!this.isDisposed&&this.stateMachine.canAcceptInput()&&this.resize(e,i)}),this.selectionDisposable=this.xterm.onSelectionChange(()=>{}))}setupIpcEventHandlers(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null);let e=!1;const i=this.terminals.subscribeEvents(this.terminalId,{onData:({chunk:s})=>{e||this.isDisposed||this.stateMachine.canAcceptInput()&&(this.xterm.write(s),this.parseTerminalOutput(s))},onExit:({exitCode:s})=>{e||this.isDisposed||(this.exitedNormally=!0,this.hideCursorOnExit(),this.callbacks.onExit?.(s),this.stateMachine.transition("disconnect"))},onCwd:({cwd:s})=>{e||this.isDisposed||(this.lastCwd=s,this.callbacks.onCwdChanged?.(s))}},this.workspaceId);this.ipcCleanup=()=>{e=!0;try{i()}catch(s){I.warn("Failed to unsubscribe terminal events:",s)}}}setupResizeObserver(){if(!this.container||!this.isVisible)return;const e=this.container;this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.resizeObserver=new ResizeObserver(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.fitTerminalToContainer()},100)}),this.resizeObserver.observe(e),this.setupVisibilityObserver()}setupVisibilityObserver(){if(!this.container)return;const e=this.container;this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.visibilityObserver=new IntersectionObserver(i=>{for(const s of i){const r=s.isIntersecting;r&&!this.wasVisible&&(I.debug(`[visibility] Terminal ${this.terminalId} became visible, reconnecting ResizeObserver`),this.resizeObserver||(this.resizeObserver=new ResizeObserver(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout(()=>{this.fitTerminalToContainer()},100)}),this.resizeObserver.observe(e)),this.fitTerminalToContainer()),this.wasVisible=r}}),this.visibilityObserver.observe(e)}loadWebglAddon(){this.disposeWebglAddon();try{this.webglAddon=new Z_,this.xterm.loadAddon(this.webglAddon);const e=this.xterm.element?.querySelector("canvas");if(e){const i=s=>{s.preventDefault(),I.warn(`[WebGL] Context lost for terminal ${this.terminalId}, recovering...`),!this.isDisposed&&(this.disposeWebglAddon(),setTimeout(()=>{if(this.isDisposed)return;if(!this.themeManager.getCurrentTheme().isDark){I.info("[WebGL] Skipping WebGL recovery on light theme, using Canvas renderer");return}if(this.webglRecoveryAttempts>=Ae.MAX_WEBGL_RECOVERY_ATTEMPTS){I.warn(`[WebGL] Max recovery attempts (${Ae.MAX_WEBGL_RECOVERY_ATTEMPTS}) reached for terminal ${this.terminalId}, staying on Canvas renderer`);return}this.webglRecoveryAttempts++;try{this.loadWebglAddon(),I.info(`[WebGL] Successfully recovered from context loss (attempt ${this.webglRecoveryAttempts})`)}catch(n){I.warn("[WebGL] Failed to recover from context loss, falling back to Canvas renderer:",n),this.webglAddon=null}},100))};e.addEventListener("webglcontextlost",i),this.webglContextLostCleanup=()=>{e.removeEventListener("webglcontextlost",i)}}}catch(e){I.warn("Failed to load WebGL renderer, falling back to Canvas renderer:",e),this.webglAddon=null}}disposeWebglAddon(){if(this.webglContextLostCleanup&&(this.webglContextLostCleanup(),this.webglContextLostCleanup=null),this.webglAddon){try{this.webglAddon.dispose()}catch(e){I.warn("Error disposing WebGL addon:",e)}this.webglAddon=null}}setupThemeChangeListener(){this.themeCleanup&&(this.themeCleanup(),this.themeCleanup=null);const e=i=>{const s=i.detail?.theme;s&&this.xterm&&(I.info(`[Theme] Theme changed to: ${s.name} (isDark: ${s.isDark})`),this.themeManager.applyTheme(this.xterm,s),s.isDark?this.webglAddon||this.loadWebglAddon():this.webglAddon&&(this.disposeWebglAddon(),I.info("[WebGL] Disposed WebGL addon for light theme (using Canvas renderer)")))};window.addEventListener("terminal-theme-changed",e),this.themeCleanup=()=>{window.removeEventListener("terminal-theme-changed",e)}}parseTerminalOutput(e){Oi.onOutput(this.terminalId,this.workspaceId,e),e.includes("\x1B]133;C\x07")?(this.isExecuting&&(this.isExecuting=!1,this.callbacks.onCommandFinished?.(),Oi.onCommandFinish(this.terminalId,this.workspaceId)),this.commandBuffer="",this.isAtPrompt=!0):e.includes("\x1B]133;A\x07")&&(this.isExecuting||(this.isExecuting=!0,this.callbacks.onCommandStart?.()),this.isAtPrompt=!0,this.commandBuffer="");const i=/[\$%]\s*$/,s=/^.*[\$%]\s+(.+)$/,r=e.split(/\r?\n/);for(const o of r){const a=o.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g,"").replace(/\x1b\][^\x07]*\x07/g,"").replace(/\x1b\][^\x1b]*\x1b\\/g,"").replace(/\x1b[()][AB0-2]/g,"").replace(/\x1b[=>]/g,"").replace(/\x1b[78]/g,"").replace(/\x1b[DME]/g,"").replace(/\x1b[HZ]/g,"").replace(/\x1b[c]/g,"").replace(/\[\?[0-9;]*[a-zA-Z]/g,"").replace(/\x07/g,"").replace(/\x00-\x08\x0b\x0c\x0e-\x1f/g,"").trim();if(!a||/^\[[\?0-9;]*[a-zA-Z]$/.test(a))continue;const l=a.match(s);if(l&&l[1]){const h=l[1].trim(),c=/^[a-zA-Z0-9.\/~]/.test(h);h.length>0&&!this.isExecuting&&c?(I.info(`[TerminalAdapter] Detected command from output: ${Wt(h)}`),Oi.onCommandStart(this.terminalId,this.workspaceId,h),this.isExecuting=!0,this.callbacks.onCommandStart?.()):h.length>0&&!c&&I.debug(`[TerminalAdapter] Skipping suspicious command detection: ${Wt(h)}`)}i.test(a)&&!l&&(this.isExecuting&&(this.isExecuting=!1,this.callbacks.onCommandFinished?.(),Oi.onCommandFinish(this.terminalId,this.workspaceId),I.debug(`[TerminalAdapter] Command finished, prompt detected: ${Wt(a)}`)),this.isAtPrompt=!0,this.commandBuffer="")}const n=e.match(/\x1b\]7;file:\/\/[^/]*([^\x07]*)\x07/);if(n){const o=decodeURIComponent(n[1]);o!==this.lastCwd&&(this.lastCwd=o,this.callbacks.onCwdChanged?.(o))}}startBufferAutoSave(){this.bufferSaveTimer=setInterval(()=>{this.stateMachine?.canAcceptInput()&&this.saveBuffer()},5e3)}async saveBuffer(){try{const e=this.xterm.buffer.active,i=[];for(let s=0;s<e.length;s++){const r=e.getLine(s);r&&i.push(r.translateToString(!0))}await this.bufferManager.saveBuffer(i,e.cursorX,e.cursorY)}catch(e){I.error("Failed to save buffer:",e)}}restoreFromSnapshot(e){if(e.lines&&e.lines.length>0){this.xterm.clear();const i=[...e.lines];for(;i.length>0&&i[i.length-1].trim()==="";)i.pop();const s=/[\$>#%]\s*$/,r=/@[\w-]+/;if(i.length>0){const n=i[i.length-1],o=i.length>1?i[i.length-2]:"";if(s.test(n)&&r.test(n))i.pop();else if(s.test(n)&&n.trim().length<80)i.pop(),i.length>0&&r.test(i[i.length-1])&&i.pop();else if(i.length>=2){const a=o+n;s.test(a)&&r.test(a)&&(i.pop(),i.pop())}}for(let n=0;n<i.length;n++)n<i.length-1?this.xterm.writeln(i[n]):i[n].trim()&&this.xterm.writeln(i[n]);I.debug(`Restored terminal buffer for ${this.terminalId} with ${i.length} lines (prompt removed)`)}}getCommandFromXtermBuffer(){try{const e=this.xterm.buffer.active,i=e.cursorY+e.baseY,s=e.getLine(i);if(!s)return null;const r=s.translateToString(!0);if(!r||!r.trim())return null;const n=r.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g,"").replace(/\x1b\][^\x07]*\x07/g,"").replace(/\x1b[()][AB0-2]/g,"").replace(/\x07/g,"").trim();if(!n)return null;const o=n.match(/^.*[\$%#❯➜]\s+(.+)$/);return o&&o[1]?o[1].trim():null}catch{return null}}write(e){if(!(this.isDisposed||!this.stateMachine.canAcceptInput())){if(e==="\r"||e===`
142
142
  `){const i=this.getCommandFromXtermBuffer(),s=i||this.commandBuffer.trim();s&&(Oi.onCommandStart(this.terminalId,this.workspaceId,s),this.isExecuting=!0,I.debug(`Command executed: ${Wt(s)}${i?" (from xterm buffer)":" (from keystroke buffer)"}`)),this.commandBuffer="",this.currentLineBuffer=""}else e===""||e==="\b"?this.commandBuffer.length>0&&(this.commandBuffer=this.commandBuffer.slice(0,-1)):e===""?(this.commandBuffer="",this.currentLineBuffer=""):e===""?(this.commandBuffer="",this.currentLineBuffer=""):e.match(/[\x00-\x1F\x7F]/)||(this.commandBuffer+=e,this.currentLineBuffer+=e);this.terminals.write(this.terminalId,e,this.workspaceId).then(i=>{i.success||I.error(`[write] Terminal ${this.terminalId}: write failed - ${i.error}`)}).catch(i=>{I.error(`[write] Terminal ${this.terminalId}: transport error - ${i}`),this.isDisposed||this.stateMachine.reportError(i)})}}resize(e,i){this.isDisposed||!this.stateMachine.canAcceptInput()||this.terminals.resize(this.terminalId,e,i,this.workspaceId).catch(s=>{I.error("Failed to resize terminal:",s)})}focus(){!this.isDisposed&&this.isVisible&&this.xterm.focus()}blur(){this.isDisposed||this.xterm.blur()}setVisible(e){if(!(this.isDisposed||this.isVisible===e)){if(this.isVisible=e,this.wasVisible=e,!e){this.xterm.blur(),this.disconnectLayoutObservers();return}this.setupResizeObserver(),requestAnimationFrame(()=>this.fitTerminalToContainer())}}fitTerminalToContainer(){if(this.isDisposed||!this.isVisible||!this.container)return!1;const{width:e,height:i}=this.container.getBoundingClientRect();return e<=0||i<=0?!1:(this.lastFittedSize?.width===e&&this.lastFittedSize.height===i||(this.fitAddon.fit(),this.lastFittedSize={width:e,height:i}),!0)}disconnectLayoutObservers(){this.resizeObserver?.disconnect(),this.resizeObserver=null,this.visibilityObserver?.disconnect(),this.visibilityObserver=null,this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null)}fitAfterReattach(e){if(this.cancelReattachFit(),this.fitReattachedContainer(e))return;const i=new ResizeObserver(()=>{if(this.reattachFitObserver!==i){i.disconnect();return}this.hasReattachedContainerBox(e)&&(this.reattachFitTimer&&clearTimeout(this.reattachFitTimer),this.reattachFitTimer=setTimeout(()=>{this.reattachFitTimer=null,this.fitReattachedContainer(e)&&this.cancelReattachFit()},Nf))});this.reattachFitObserver=i,i.observe(e)}fitReattachedContainer(e){if(this.isDisposed||this.container!==e)return!0;if(!this.hasReattachedContainerBox(e))return!1;const{width:i,height:s}=e.getBoundingClientRect();return this.fitAddon.fit(),this.lastFittedSize={width:i,height:s},this.xterm.refresh(0,this.xterm.rows-1),!0}hasReattachedContainerBox(e){if(!this.isVisible)return!1;const{width:i,height:s}=e.getBoundingClientRect();return i>0&&s>0}cancelReattachFit(){this.reattachFitObserver?.disconnect(),this.reattachFitObserver=null,this.reattachFitTimer&&(clearTimeout(this.reattachFitTimer),this.reattachFitTimer=null)}clear(){this.isDisposed||this.xterm.clear()}async reattach(e){if(this.isDisposed||this.stateMachine.isDisposed())throw new Error("Cannot reattach disposed terminal");this.cancelAutoReconnect(),this.autoReconnectAttempts=0,this.webglRecoveryAttempts=0,this.exitedNormally=!1,this.setupIpcEventHandlers();const i=this.stateMachine.getState();if(i!==et.CONNECTED){I.info(`[reattach] Terminal ${this.terminalId} not in CONNECTED state (${i}), attempting to restore`);const n=await this.findBackendTerminal();n&&(i===et.DISCONNECTED||i===et.ERROR?(this.stateMachine.transition("reconnect"),this.stateMachine.transition("reconnected")):i===et.CONNECTING&&this.stateMachine.transition("connected"),n.isExecuting===!1&&this.hideCursorOnExit(),I.info(`[reattach] Terminal ${this.terminalId} state restored to ${this.stateMachine.getState()}`))}const s=this.xterm.element;if(s){e.appendChild(s),this.container=e,this.themeManager.setContainer(e),this.disposeWebglAddon(),this.themeManager.applyTheme(this.xterm),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer after move (light theme)"),this.fitAfterReattach(e),this.setupResizeObserver(),this.setupXTermEventHandlers(),this.commandBuffer="",this.currentLineBuffer="",this.isAtPrompt=!1,this.startHeartbeat(),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()});return}I.warn(`Could not move terminal element, recreating for terminal ${this.terminalId}`),this.container&&(this.container.innerHTML=""),this.disposeWebglAddon(),this.dataDisposable&&(this.dataDisposable.dispose(),this.dataDisposable=null),this.container=e,this.themeManager.setContainer(e),this.isXtermOpened&&I.warn(`[reattach] XTerm was already opened for terminal ${this.terminalId}, calling open() again may cause duplicate handlers`),this.xterm.open(e),this.isXtermOpened=!0,this.themeManager.applyTheme(this.xterm),this.themeManager.getCurrentTheme().isDark?this.loadWebglAddon():I.debug("[Renderer] Using Canvas renderer on reattach (light theme)"),this.fitAfterReattach(e),this.setupXTermEventHandlers(),this.setupResizeObserver(),this.commandBuffer="",this.currentLineBuffer="",this.isAtPrompt=!1,this.startHeartbeat(),requestAnimationFrame(()=>{!this.isDisposed&&this.isVisible&&this.xterm.focus()})}updateCallbacks(e){Object.assign(this.callbacks,e)}updateFontFamily(e){this.isDisposed||this.xterm.options.fontFamily!==e&&(this.xterm.options.fontFamily=e)}findNext(e,i){return this.searchAddon.findNext(e,{caseSensitive:i?.caseSensitive??!1,wholeWord:i?.wholeWord??!1,regex:i?.regex??!1,incremental:!1,decorations:this.getSearchDecorations()})}findPrevious(e,i){return this.searchAddon.findPrevious(e,{caseSensitive:i?.caseSensitive??!1,wholeWord:i?.wholeWord??!1,regex:i?.regex??!1,incremental:!1,decorations:this.getSearchDecorations()})}clearSearch(){this.searchAddon.clearDecorations()}getSelection(){return this.xterm.getSelection()}getInfo(){const e=this.bufferManager.getStats();return{id:this.terminalId,workspaceId:this.workspaceId,state:this.stateMachine.getState(),cwd:this.lastCwd,isExecuting:this.isExecuting,stats:e?{bufferSize:e.size,lineCount:e.lineCount,uptime:Date.now()-this.startTime}:void 0}}startHeartbeat(){this.heartbeatTimer||this.isDisposed||(I.debug(`[heartbeat] Starting for terminal ${this.terminalId} (every ${Ae.HEARTBEAT_INTERVAL_MS}ms)`),this.heartbeatTimer=setInterval(()=>{this.performHealthCheck()},Ae.HEARTBEAT_INTERVAL_MS))}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=null,I.debug(`[heartbeat] Stopped for terminal ${this.terminalId}`))}async performHealthCheck(){if(this.isDisposed||!this.ipcCleanup||this.stateMachine.getState()!==et.CONNECTED)return;let e=null;try{const i=await Promise.race([this.terminalExistsOnBackend(),new Promise((s,r)=>{e=setTimeout(()=>r(new Error("Heartbeat timeout")),Ae.HEARTBEAT_TIMEOUT_MS)})]);if(e&&clearTimeout(e),this.isDisposed)return;i||(I.warn(`[heartbeat] Terminal ${this.terminalId}: PTY not found on backend, transitioning to DISCONNECTED`),this.stopHeartbeat(),this.stateMachine.transition("disconnect"))}catch(i){if(e&&clearTimeout(e),this.isDisposed)return;I.warn(`[heartbeat] Terminal ${this.terminalId}: health check failed:`,i),this.stopHeartbeat(),this.stateMachine.transition("disconnect")}}scheduleAutoReconnect(){if(this.isDisposed)return;if(this.autoReconnectAttempts>=Ae.MAX_RECONNECT_ATTEMPTS){I.warn(`[auto-reconnect] Terminal ${this.terminalId}: max reconnect attempts (${Ae.MAX_RECONNECT_ATTEMPTS}) reached, giving up`);return}this.cancelAutoReconnect();const e=Ae.BASE_RECONNECT_DELAY_MS*Math.pow(2,this.autoReconnectAttempts);this.autoReconnectAttempts++,I.info(`[auto-reconnect] Terminal ${this.terminalId}: scheduling attempt ${this.autoReconnectAttempts}/${Ae.MAX_RECONNECT_ATTEMPTS} in ${e}ms`),this.autoReconnectTimer=setTimeout(()=>{this.autoReconnectTimer=null,this.attemptAutoReconnect()},e)}cancelAutoReconnect(){this.autoReconnectTimer&&(clearTimeout(this.autoReconnectTimer),this.autoReconnectTimer=null)}async attemptAutoReconnect(){if(this.isDisposed)return;const e=this.stateMachine.getState();if(e!==et.DISCONNECTED&&e!==et.ERROR){I.debug(`[auto-reconnect] Terminal ${this.terminalId}: skipping, state is ${e}`);return}this.exitedNormally=!1,I.info(`[auto-reconnect] Terminal ${this.terminalId}: attempting reconnect (attempt ${this.autoReconnectAttempts})`);try{const i=await this.findBackendTerminal();if(this.isDisposed)return;i?(I.info(`[auto-reconnect] Terminal ${this.terminalId}: PTY exists on backend, re-establishing connection`),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnect"),this.stateMachine.transition("reconnected"),this.xterm.cols&&this.xterm.rows&&this.resize(this.xterm.cols,this.xterm.rows),i.isExecuting===!1&&this.hideCursorOnExit(),this.callbacks.onReady?.(),I.info(`[auto-reconnect] Terminal ${this.terminalId}: reconnected successfully`)):(I.info(`[auto-reconnect] Terminal ${this.terminalId}: PTY not found, creating new PTY`),await this.reconnect(),I.info(`[auto-reconnect] Terminal ${this.terminalId}: new PTY created successfully`))}catch(i){I.error(`[auto-reconnect] Terminal ${this.terminalId}: attempt ${this.autoReconnectAttempts} failed:`,i),this.scheduleAutoReconnect()}}handleError(e){I.error(`Terminal ${this.terminalId} error:`,e),this.callbacks.onError?.(e),this.isDisposed||this.xterm.writeln(`\r
143
143
  \x1B[31m${$s.terminal_adapter_errorLine_label({message:e.message})}\x1B[0m\r
144
- `)}handleLinkClick(e){try{if(Kh(e)||this.workspaceId===Vh){I.debug("Opening terminal link in external browser",{uri:e,workspaceId:this.workspaceId}),Fs("shell:openExternal",{url:e});return}Dn(async()=>{const{resolveBrowserLinkForOpen:i}=await import("./8BUqeceP.js").then(s=>s.b);return{resolveBrowserLinkForOpen:i}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url).then(({resolveBrowserLinkForOpen:i})=>i(e)).catch(()=>({url:e})).then(i=>{Dn(async()=>{const{getPanelLayoutManager:s}=await import("./BpEdOU8N.js").then(r=>r.p);return{getPanelLayoutManager:s}},__vite__mapDeps([32,21,22,5,23,24,3,8,4,25,15,2,33]),import.meta.url).then(({getPanelLayoutManager:s})=>{s(this.workspaceId).openBrowserPanel(i.url,void 0,void 0,i.requestedUrl),I.debug("Opened URL in browser panel",{uri:e,resolvedUrl:i.url,workspaceId:this.workspaceId})}).catch(s=>{I.warn("Failed to open URL in browser panel, falling back to external browser",{uri:e,error:s}),Fs("shell:openExternal",{url:i.url})})})}catch(i){I.warn("Failed to handle link click",{uri:e,error:i}),Fs("shell:openExternal",{url:e})}}async reconnect(){if(this.isDisposed)throw new Error("Cannot reconnect disposed terminal");if(!this.stateMachine.canTransition("reconnect"))throw new Error(`Cannot reconnect in state ${this.stateMachine.getState()}`);this.exitedNormally=!1,this.stateMachine.transition("reconnect");try{const e=this.xterm.cols,i=this.xterm.rows,s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||$s.terminal_adapter_reconnectFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(e){throw this.stateMachine.reportError(e),e}}detach(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null),this.stopHeartbeat(),this.cancelAutoReconnect(),this.cancelReattachFit(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null);const e=this.xterm.element;e&&e.parentNode&&e.parentNode.removeChild(e),this.themeManager.setContainer(null),this.container=null}dispose(e={}){if(!(this.isDisposed||this.stateMachine.isDisposed())){if(this.isDisposed=!0,this.cancelAutoReconnect(),this.stopHeartbeat(),this.cancelReattachFit(),this.stateMachine.transition("dispose"),this.saveBuffer().catch(()=>{}),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.bufferSaveTimer&&(clearInterval(this.bufferSaveTimer),this.bufferSaveTimer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.dataDisposable){try{this.dataDisposable.dispose()}catch(i){I.error("Error disposing data handler:",i)}this.dataDisposable=null}if(this.resizeDisposable){try{this.resizeDisposable.dispose()}catch(i){I.error("Error disposing resize handler:",i)}this.resizeDisposable=null}if(this.selectionDisposable){try{this.selectionDisposable.dispose()}catch(i){I.error("Error disposing selection handler:",i)}this.selectionDisposable=null}if(this.ipcCleanup){try{this.ipcCleanup()}catch(i){I.error("Error cleaning up IPC handlers:",i)}this.ipcCleanup=null}if(this.themeCleanup){try{this.themeCleanup()}catch(i){I.error("Error cleaning up theme listener:",i)}this.themeCleanup=null}this.eventListeners.forEach(i=>{try{i()}catch(s){I.error("Error cleaning up event listener:",s)}}),this.eventListeners=[],e.killPty!==!1&&this.terminals.kill(this.terminalId,this.workspaceId).catch(i=>{I.error("Error killing PTY connection:",i)});try{this.searchAddon?.dispose&&this.searchAddon.dispose(),this.webLinksAddon?.dispose&&this.webLinksAddon.dispose(),this.disposeWebglAddon(),this.fitAddon?.dispose&&this.fitAddon.dispose()}catch(i){I.error("Error disposing addons:",i)}try{this.themeManager.dispose()}catch(i){I.error("Error disposing theme manager:",i)}try{this.stateMachine.dispose()}catch(i){I.error("Error disposing state machine:",i)}Pf(this.xterm,i=>{I.error("Error disposing xterm:",i)})}}};P(Ae,"MAX_RECONNECT_ATTEMPTS",5),P(Ae,"BASE_RECONNECT_DELAY_MS",1e3),P(Ae,"HEARTBEAT_INTERVAL_MS",3e4),P(Ae,"HEARTBEAT_TIMEOUT_MS",1e4),P(Ae,"MAX_WEBGL_RECOVERY_ATTEMPTS",3);let cn=Ae;const le=new Xi("TerminalManager");class zf{constructor(){P(this,"terminals",new Map)}saveTerminalMetadata(e,i,s){try{_t.dispatch(Gh(i,e,s,new Date().toISOString())),le.debug(`[RendererTerminalManager] Saved terminal metadata for ${e}`)}catch(r){le.error("[RendererTerminalManager] Failed to save terminal metadata:",r)}}loadTerminalMetadata(e){try{return Zh.select(_t.state,e).map(i=>({terminalId:i.id,workspaceId:i.workspaceId??e,createdAt:i.createdAt??"",title:i.customName||Jh(i.name)}))}catch(i){le.error("[RendererTerminalManager] Failed to load terminal metadata:",i)}return[]}removeTerminalMetadata(e,i){try{_t.dispatch(Yh(i,e)),le.debug(`[RendererTerminalManager] Removed terminal metadata for ${e}`)}catch(s){le.error("[RendererTerminalManager] Failed to remove terminal metadata:",s)}}hasTerminal(e){return this.terminals.has(e)}async getOrCreateTerminal(e,i,s,r,n=!1){let o=this.terminals.get(e);if(n&&o&&(le.info(`[RendererTerminalManager] Force creating new terminal, disposing existing: ${e}`),this.disposeTerminal(e),o=void 0),o)if(o.workspaceId!==i)le.warn(`[RendererTerminalManager] Terminal ${e} has mismatched workspaceId (has: ${o.workspaceId}, requested: ${i}). Disposing and recreating.`),this.disposeTerminal(e),o=void 0;else return le.info(`[RendererTerminalManager] Reattaching to existing terminal: ${e} (was attached: ${o.isAttached})`),o.container=s,o.isAttached=!0,await o.adapter.reattach(s),r&&(o.adapter.updateCallbacks(r),r.onReady?.()),le.info(`[RendererTerminalManager] Successfully reattached terminal: ${e}`),o.adapter;le.info(`[RendererTerminalManager] Creating new terminal: ${e}`);const a=new cn({workspaceId:i,terminalId:e,container:s,...r});return o={adapter:a,terminalId:e,workspaceId:i,isAttached:!0,container:s},this.terminals.set(e,o),this.saveTerminalMetadata(e,i),await a.initialize(n),a}isAttachedTo(e,i){const s=this.terminals.get(e);return!!s&&s.isAttached&&s.container===i}detachTerminal(e,i){const s=this.terminals.get(e);if(s){if(i&&s.container!==i){le.info(`[RendererTerminalManager] Ignoring detach from a stale surface: ${e}`);return}le.info(`[RendererTerminalManager] Detaching terminal: ${e}`),s.isAttached=!1,s.adapter.detach(),s.container=null}}disposeTerminal(e,i){const s=this.terminals.get(e);s?(le.info(`[RendererTerminalManager] Disposing terminal: ${e}`),s.adapter.dispose(),this.terminals.delete(e),this.removeTerminalMetadata(e,s.workspaceId)):_t.dispatch(Xh(e,i))}disposeExitedTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Disposing exited terminal: ${e}`),i.adapter.dispose({killPty:!1}),this.terminals.delete(e))}clearTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Clearing terminal: ${e}`),i.adapter.clear())}getTerminalInfo(e){const i=this.terminals.get(e);return i?i.adapter.getInfo():null}async getBufferContent(e,i){const s=this.terminals.get(e);if(s?.adapter)try{const r=s.adapter.xterm;if(r?.buffer?.active){const n=r.buffer.active,o=[];for(let a=0;a<n.length;a++){const l=n.getLine(a);l&&o.push(l.translateToString(!0))}for(;o.length>0&&!o[o.length-1].trim();)o.pop();if(o.length>0)return o.join(`
144
+ `)}handleLinkClick(e){try{if(Kh(e)||this.workspaceId===Vh){I.debug("Opening terminal link in external browser",{uri:e,workspaceId:this.workspaceId}),Fs("shell:openExternal",{url:e});return}Dn(async()=>{const{resolveBrowserLinkForOpen:i}=await import("./IVk1JAtP.js").then(s=>s.b);return{resolveBrowserLinkForOpen:i}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url).then(({resolveBrowserLinkForOpen:i})=>i(e)).catch(()=>({url:e})).then(i=>{Dn(async()=>{const{getPanelLayoutManager:s}=await import("./BJuNVIII.js").then(r=>r.p);return{getPanelLayoutManager:s}},__vite__mapDeps([32,21,22,5,23,24,3,8,4,25,15,2,33]),import.meta.url).then(({getPanelLayoutManager:s})=>{s(this.workspaceId).openBrowserPanel(i.url,void 0,void 0,i.requestedUrl),I.debug("Opened URL in browser panel",{uri:e,resolvedUrl:i.url,workspaceId:this.workspaceId})}).catch(s=>{I.warn("Failed to open URL in browser panel, falling back to external browser",{uri:e,error:s}),Fs("shell:openExternal",{url:i.url})})})}catch(i){I.warn("Failed to handle link click",{uri:e,error:i}),Fs("shell:openExternal",{url:e})}}async reconnect(){if(this.isDisposed)throw new Error("Cannot reconnect disposed terminal");if(!this.stateMachine.canTransition("reconnect"))throw new Error(`Cannot reconnect in state ${this.stateMachine.getState()}`);this.exitedNormally=!1,this.stateMachine.transition("reconnect");try{const e=this.xterm.cols,i=this.xterm.rows,s=await this.terminals.create({workspaceId:this.workspaceId,cols:e,rows:i});if(!s.success)throw new Error(s.error||$s.terminal_adapter_reconnectFailed_error());s.id&&(this.terminalId=s.id),this.setupIpcEventHandlers(),this.stateMachine.transition("reconnected"),this.restoreCursor(),this.callbacks.onReady?.()}catch(e){throw this.stateMachine.reportError(e),e}}detach(){this.ipcCleanup&&(this.ipcCleanup(),this.ipcCleanup=null),this.stopHeartbeat(),this.cancelAutoReconnect(),this.cancelReattachFit(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null);const e=this.xterm.element;e&&e.parentNode&&e.parentNode.removeChild(e),this.themeManager.setContainer(null),this.container=null}dispose(e={}){if(!(this.isDisposed||this.stateMachine.isDisposed())){if(this.isDisposed=!0,this.cancelAutoReconnect(),this.stopHeartbeat(),this.cancelReattachFit(),this.stateMachine.transition("dispose"),this.saveBuffer().catch(()=>{}),this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null),this.bufferSaveTimer&&(clearInterval(this.bufferSaveTimer),this.bufferSaveTimer=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=null),this.dataDisposable){try{this.dataDisposable.dispose()}catch(i){I.error("Error disposing data handler:",i)}this.dataDisposable=null}if(this.resizeDisposable){try{this.resizeDisposable.dispose()}catch(i){I.error("Error disposing resize handler:",i)}this.resizeDisposable=null}if(this.selectionDisposable){try{this.selectionDisposable.dispose()}catch(i){I.error("Error disposing selection handler:",i)}this.selectionDisposable=null}if(this.ipcCleanup){try{this.ipcCleanup()}catch(i){I.error("Error cleaning up IPC handlers:",i)}this.ipcCleanup=null}if(this.themeCleanup){try{this.themeCleanup()}catch(i){I.error("Error cleaning up theme listener:",i)}this.themeCleanup=null}this.eventListeners.forEach(i=>{try{i()}catch(s){I.error("Error cleaning up event listener:",s)}}),this.eventListeners=[],e.killPty!==!1&&this.terminals.kill(this.terminalId,this.workspaceId).catch(i=>{I.error("Error killing PTY connection:",i)});try{this.searchAddon?.dispose&&this.searchAddon.dispose(),this.webLinksAddon?.dispose&&this.webLinksAddon.dispose(),this.disposeWebglAddon(),this.fitAddon?.dispose&&this.fitAddon.dispose()}catch(i){I.error("Error disposing addons:",i)}try{this.themeManager.dispose()}catch(i){I.error("Error disposing theme manager:",i)}try{this.stateMachine.dispose()}catch(i){I.error("Error disposing state machine:",i)}Pf(this.xterm,i=>{I.error("Error disposing xterm:",i)})}}};P(Ae,"MAX_RECONNECT_ATTEMPTS",5),P(Ae,"BASE_RECONNECT_DELAY_MS",1e3),P(Ae,"HEARTBEAT_INTERVAL_MS",3e4),P(Ae,"HEARTBEAT_TIMEOUT_MS",1e4),P(Ae,"MAX_WEBGL_RECOVERY_ATTEMPTS",3);let cn=Ae;const le=new Xi("TerminalManager");class zf{constructor(){P(this,"terminals",new Map)}saveTerminalMetadata(e,i,s){try{_t.dispatch(Gh(i,e,s,new Date().toISOString())),le.debug(`[RendererTerminalManager] Saved terminal metadata for ${e}`)}catch(r){le.error("[RendererTerminalManager] Failed to save terminal metadata:",r)}}loadTerminalMetadata(e){try{return Zh.select(_t.state,e).map(i=>({terminalId:i.id,workspaceId:i.workspaceId??e,createdAt:i.createdAt??"",title:i.customName||Jh(i.name)}))}catch(i){le.error("[RendererTerminalManager] Failed to load terminal metadata:",i)}return[]}removeTerminalMetadata(e,i){try{_t.dispatch(Yh(i,e)),le.debug(`[RendererTerminalManager] Removed terminal metadata for ${e}`)}catch(s){le.error("[RendererTerminalManager] Failed to remove terminal metadata:",s)}}hasTerminal(e){return this.terminals.has(e)}async getOrCreateTerminal(e,i,s,r,n=!1){let o=this.terminals.get(e);if(n&&o&&(le.info(`[RendererTerminalManager] Force creating new terminal, disposing existing: ${e}`),this.disposeTerminal(e),o=void 0),o)if(o.workspaceId!==i)le.warn(`[RendererTerminalManager] Terminal ${e} has mismatched workspaceId (has: ${o.workspaceId}, requested: ${i}). Disposing and recreating.`),this.disposeTerminal(e),o=void 0;else return le.info(`[RendererTerminalManager] Reattaching to existing terminal: ${e} (was attached: ${o.isAttached})`),o.container=s,o.isAttached=!0,await o.adapter.reattach(s),r&&(o.adapter.updateCallbacks(r),r.onReady?.()),le.info(`[RendererTerminalManager] Successfully reattached terminal: ${e}`),o.adapter;le.info(`[RendererTerminalManager] Creating new terminal: ${e}`);const a=new cn({workspaceId:i,terminalId:e,container:s,...r});return o={adapter:a,terminalId:e,workspaceId:i,isAttached:!0,container:s},this.terminals.set(e,o),this.saveTerminalMetadata(e,i),await a.initialize(n),a}isAttachedTo(e,i){const s=this.terminals.get(e);return!!s&&s.isAttached&&s.container===i}detachTerminal(e,i){const s=this.terminals.get(e);if(s){if(i&&s.container!==i){le.info(`[RendererTerminalManager] Ignoring detach from a stale surface: ${e}`);return}le.info(`[RendererTerminalManager] Detaching terminal: ${e}`),s.isAttached=!1,s.adapter.detach(),s.container=null}}disposeTerminal(e,i){const s=this.terminals.get(e);s?(le.info(`[RendererTerminalManager] Disposing terminal: ${e}`),s.adapter.dispose(),this.terminals.delete(e),this.removeTerminalMetadata(e,s.workspaceId)):_t.dispatch(Xh(e,i))}disposeExitedTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Disposing exited terminal: ${e}`),i.adapter.dispose({killPty:!1}),this.terminals.delete(e))}clearTerminal(e){const i=this.terminals.get(e);i&&(le.info(`[RendererTerminalManager] Clearing terminal: ${e}`),i.adapter.clear())}getTerminalInfo(e){const i=this.terminals.get(e);return i?i.adapter.getInfo():null}async getBufferContent(e,i){const s=this.terminals.get(e);if(s?.adapter)try{const r=s.adapter.xterm;if(r?.buffer?.active){const n=r.buffer.active,o=[];for(let a=0;a<n.length;a++){const l=n.getLine(a);l&&o.push(l.translateToString(!0))}for(;o.length>0&&!o[o.length-1].trim();)o.pop();if(o.length>0)return o.join(`
145
145
  `)}}catch(r){le.warn("[RendererTerminalManager] Failed to read live buffer, falling back:",r)}try{const n=await new Rs(i,e).restoreBuffer();if(n&&n.lines.length>0){const o=[...n.lines];for(;o.length>0&&!o[o.length-1].trim();)o.pop();return o.join(`
146
146
  `)}}catch(r){le.error("[RendererTerminalManager] Failed to read persisted buffer:",r)}return null}disposeWorkspaceTerminals(e){const i=[];for(const[s,r]of this.terminals)r.workspaceId===e&&i.push(s);if(i.length>0){le.info(`[RendererTerminalManager] Disposing ${i.length} terminals for workspace ${e}`);for(const s of i)try{const r=this.terminals.get(s);r&&(r.adapter.dispose(),this.terminals.delete(s))}catch(r){le.error(`[RendererTerminalManager] Failed to dispose terminal ${s}:`,r)}}}disposeAll(){le.info(`[RendererTerminalManager] Disposing all ${this.terminals.size} terminals`);for(const[e,i]of this.terminals)try{i.adapter.dispose()}catch(s){le.error(`[RendererTerminalManager] Failed to dispose terminal ${e}:`,s)}this.terminals.clear()}}typeof window<"u"&&!window.__terminalManager&&(window.__terminalManager=new zf);const Wf=window.__terminalManager,Tp=Object.freeze(Object.defineProperty({__proto__:null,terminalManager:Wf},Symbol.toStringTag,{value:"Module"}));export{au as D,pu as L,hn as T,Wf as a,Tp as b,Pf as d,cu as o,Oi as t};
@@ -1 +1 @@
1
- import{t as O,bo as m,bw as R,b as T,bm as y}from"./CNjGF_c0.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./C5WtrNXY.js";import{E as z}from"./CQnJHfSe.js";import"./BQxY3Ah2.js";import"./CunUunks.js";import"./efzPt1Zl.js";import{f as A}from"./CNad7mgH.js";import{F as et,a3 as at,bP as ot}from"./BCw3PFII.js";import"./CXhvHjWN.js";import{I as st}from"./ueuVa6sz.js";import{i as nt,b as rt}from"./lF5WnZ3-.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
1
+ import{t as O,bo as m,bw as R,b as T,bm as y}from"./Bv8Gaorn.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./BQg4hK6W.js";import{E as z}from"./D6GBnYDv.js";import"./D85P44Dj.js";import"./COUB9dHY.js";import"./CSbK1_CV.js";import{f as A}from"./BO3WriTy.js";import{F as et,a3 as at,bP as ot}from"./CiD4x8Gl.js";import"./DZBnfhEV.js";import{I as st}from"./D1JjMDax.js";import{i as nt,b as rt}from"./BxVNHcGR.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
@@ -1 +1 @@
1
- import{t as _,bo as g,bw as h,b as y,bp as x}from"./CNjGF_c0.js";import{bs as w,a7 as S,ay as P,aD as s,W as i,bn as k,c9 as C,aA as H,aB as W}from"./3SdAC2_C.js";import{i as A}from"./C5WtrNXY.js";import{b as d}from"./BQxY3Ah2.js";import{e as B}from"./BMfGe3vU.js";import{aY as D,aQ as O}from"./CNad7mgH.js";const v={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};D(v);var Q=new Set(["$$slots","$$events","$$legacy","value"]),l=W("<input/>");function T(n,a){if(new.target)return _({component:T,...n});w(a,!0);let r=g(a,"value",15),u=x(a,Q);const o=C(()=>O(u,{"aria-hidden":"true",tabindex:-1,style:{...v,position:"absolute",top:"0",left:"0"}}));var m={get value(){return r()},set value(e){r(e),H()},$set:h,$on:(e,t)=>y(a,e,t)},p=S(),c=P(p);{var f=e=>{var t=l();d(t,()=>({...s(o),value:r()}),void 0,void 0,void 0,void 0,!0),i(e,t)},b=e=>{var t=l();d(t,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),B(t,r),i(e,t)};A(c,e=>{s(o).type==="checkbox"?e(f):e(b,-1)})}return i(n,p),k(m)}export{T as H};
1
+ import{t as _,bo as g,bw as h,b as y,bp as x}from"./Bv8Gaorn.js";import{bs as w,a7 as S,ay as P,aD as s,W as i,bn as k,c9 as C,aA as H,aB as W}from"./3SdAC2_C.js";import{i as A}from"./BQg4hK6W.js";import{b as d}from"./D85P44Dj.js";import{e as B}from"./DCTwUEO7.js";import{aY as D,aQ as O}from"./BO3WriTy.js";const v={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"};D(v);var Q=new Set(["$$slots","$$events","$$legacy","value"]),l=W("<input/>");function T(n,a){if(new.target)return _({component:T,...n});w(a,!0);let r=g(a,"value",15),u=x(a,Q);const o=C(()=>O(u,{"aria-hidden":"true",tabindex:-1,style:{...v,position:"absolute",top:"0",left:"0"}}));var m={get value(){return r()},set value(e){r(e),H()},$set:h,$on:(e,t)=>y(a,e,t)},p=S(),c=P(p);{var f=e=>{var t=l();d(t,()=>({...s(o),value:r()}),void 0,void 0,void 0,void 0,!0),i(e,t)},b=e=>{var t=l();d(t,()=>({...s(o)}),void 0,void 0,void 0,void 0,!0),B(t,r),i(e,t)};A(c,e=>{s(o).type==="checkbox"?e(f):e(b,-1)})}return i(n,p),k(m)}export{T as H};
@@ -1 +1 @@
1
- import{g as o,r as l,d as t}from"./DiXR792D.js";import{p as m}from"./Bn-XmNjh.js";import{b as n,ay as s}from"./gzvqMIq4.js";import{M as p,d as u}from"./NyvVPxLt.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
1
+ import{g as o,r as l,d as t}from"./DODG7FHv.js";import{p as m}from"./SMT1sep4.js";import{b as n,ay as s}from"./ChGLvrw4.js";import{M as p,d as u}from"./3rxHCGTW.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),y=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),g={parse:n(e=>{t.clear(),s.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const i=r.value;s.debug("[Railroad Parser] Parsed rules:",i.rules.length),y(i),s.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},h={parser:g,db:t,renderer:l,styles:o};export{h as diagram};
@@ -1,4 +1,4 @@
1
- import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./gzvqMIq4.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./ChGLvrw4.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1 +1 @@
1
- import{f as n}from"./B1dMemvb.js";const u=n;function a(r,o,e,c=!1){const d=r.alerts??{},i=c||!!r.captureDisabled;return{capture:{revision:r.captureRevision,label:o.capture,tooltip:d.capture??r.captureTooltip??(r.captureDisabled?o.captureLimit:o.capture),disabled:i,pending:!!r.capturePending,alert:!!d.capture},record:{label:r.recording?o.stopRecording:o.record,tooltip:d.record??r.recordingTooltip??(r.recording?o.stopRecording:o.record),disabled:c||!!r.recordingDisabled,pending:!!r.recordingPending,alert:!!d.record,recording:r.recording,startedAt:r.recording?e?.startedAt??null:null,pausedAt:r.recording?e?.pausedAt??null:null,pausedMs:r.recording?e?.pausedMs??0:0}}}export{a as d,u as f};
1
+ import{f as n}from"./BCKmKE5y.js";const u=n;function a(r,o,e,c=!1){const d=r.alerts??{},i=c||!!r.captureDisabled;return{capture:{revision:r.captureRevision,label:o.capture,tooltip:d.capture??r.captureTooltip??(r.captureDisabled?o.captureLimit:o.capture),disabled:i,pending:!!r.capturePending,alert:!!d.capture},record:{label:r.recording?o.stopRecording:o.record,tooltip:d.record??r.recordingTooltip??(r.recording?o.stopRecording:o.record),disabled:c||!!r.recordingDisabled,pending:!!r.recordingPending,alert:!!d.record,recording:r.recording,startedAt:r.recording?e?.startedAt??null:null,pausedAt:r.recording?e?.pausedAt??null:null,pausedMs:r.recording?e?.pausedMs??0:0}}}export{a as d,u as f};