@intent-hq/web 2.381.2 → 2.383.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 (334) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.BmwjvpSF.css +1 -0
  3. package/web/app/immutable/chunks/{BeKKPzED.js → -K3ARgq0.js} +1 -1
  4. package/web/app/immutable/chunks/{pGhuLhmB.js → 0PdeE_M-.js} +1 -1
  5. package/web/app/immutable/chunks/{B1TqZZyd.js → 1WR8MecL.js} +3 -3
  6. package/web/app/immutable/chunks/{Bw803iNn.js → 469banqV.js} +3 -3
  7. package/web/app/immutable/chunks/{C9RagC2N.js → 518Fef2L.js} +1 -1
  8. package/web/app/immutable/chunks/{zOXOu59X.js → 6-uYidyP.js} +3 -3
  9. package/web/app/immutable/chunks/{CuMJ0LCw.js → 6Bqipt1r.js} +1 -1
  10. package/web/app/immutable/chunks/{BG_RlrpY.js → 6GlvsI2m.js} +1 -1
  11. package/web/app/immutable/chunks/{BD4C_b2Z.js → 7GuT70Sz.js} +1 -1
  12. package/web/app/immutable/chunks/{CyczJyMt.js → 7UPrdiE9.js} +1 -1
  13. package/web/app/immutable/chunks/A9niI_uA.js +1 -0
  14. package/web/app/immutable/chunks/{B4Uud3OJ.js → B-ef1MlI.js} +1 -1
  15. package/web/app/immutable/chunks/{DN6qgMae.js → B2Ym4lhl.js} +1 -1
  16. package/web/app/immutable/chunks/{CkEbA_As.js → B2nCyo89.js} +1 -1
  17. package/web/app/immutable/chunks/{D2MSvsFH.js → B3Bfek34.js} +1 -1
  18. package/web/app/immutable/chunks/{BmQQcH5z.js → B4SiDSWP.js} +1 -1
  19. package/web/app/immutable/chunks/{Dq39ODex.js → B4WuQori.js} +1 -1
  20. package/web/app/immutable/chunks/{B4K17hnI.js → B4xSB_Hx.js} +1 -1
  21. package/web/app/immutable/chunks/{BZKoidWB.js → B6S6VNu7.js} +1 -1
  22. package/web/app/immutable/chunks/{Bg4SPgrZ.js → B6STvYyK.js} +1 -1
  23. package/web/app/immutable/chunks/{BTQKLXYi.js → B6qvxAO7.js} +1 -1
  24. package/web/app/immutable/chunks/{qE-X6VV1.js → B8-Q1tED.js} +1 -1
  25. package/web/app/immutable/chunks/{Cy0xJYMG.js → B8VxRkn_.js} +1 -1
  26. package/web/app/immutable/chunks/{BIIYZtt3.js → B9oKJyXc.js} +1 -1
  27. package/web/app/immutable/chunks/{BX63FB9x.js → BAKPnd3w.js} +1 -1
  28. package/web/app/immutable/chunks/{ByhEuqgY.js → BAP-Km9w.js} +1 -1
  29. package/web/app/immutable/chunks/{CDnYwtBR.js → BAzzHP-D.js} +1 -1
  30. package/web/app/immutable/chunks/{CN0TD23u.js → BBws4Cyt.js} +1 -1
  31. package/web/app/immutable/chunks/{CHiOQIO1.js → BCS2G1TZ.js} +1 -1
  32. package/web/app/immutable/chunks/{D5Rd8qkd.js → BE6Cp7Qp.js} +1 -1
  33. package/web/app/immutable/chunks/{Bmt71DMB.js → BFEzojY2.js} +1 -1
  34. package/web/app/immutable/chunks/{CKFaA258.js → BFeEPayU.js} +1 -1
  35. package/web/app/immutable/chunks/{EfOpqeLT.js → BFgeFHTs.js} +1 -1
  36. package/web/app/immutable/chunks/{CVuT-llE.js → BGTRTFMR.js} +1 -1
  37. package/web/app/immutable/chunks/{_Juvw-ie.js → BI0hvS48.js} +3 -3
  38. package/web/app/immutable/chunks/{9mNi8996.js → BI3a2AWW.js} +2 -2
  39. package/web/app/immutable/chunks/BIVeXMBl.js +1 -0
  40. package/web/app/immutable/chunks/{Cgjp6r06.js → BK6a0pzX.js} +1 -1
  41. package/web/app/immutable/chunks/{DCfPUdw9.js → BLyGObAP.js} +3 -3
  42. package/web/app/immutable/chunks/{DVHfIJ_U.js → BNkpVy97.js} +1 -1
  43. package/web/app/immutable/chunks/{B3TTR8D_.js → BP3Sccje.js} +1 -1
  44. package/web/app/immutable/chunks/{xlIh55VB.js → BP5uGGO_.js} +1 -1
  45. package/web/app/immutable/chunks/{BavAnT42.js → BPL5Fo2b.js} +1 -1
  46. package/web/app/immutable/chunks/{BKMwkk7g.js → BPzekfWN.js} +1 -1
  47. package/web/app/immutable/chunks/{DnbNqDYS.js → BSKFIBj2.js} +1 -1
  48. package/web/app/immutable/chunks/{CkyY-zEo.js → BTrqJIJZ.js} +1 -1
  49. package/web/app/immutable/chunks/{bT3v1QYj.js → BTw9kxtg.js} +1 -1
  50. package/web/app/immutable/chunks/{DPCjIvYy.js → BUGeL7WE.js} +1 -1
  51. package/web/app/immutable/chunks/{Besc4d7d.js → BWYuMy_r.js} +1 -1
  52. package/web/app/immutable/chunks/{dzRbajCR.js → BX-0SVP7.js} +1 -1
  53. package/web/app/immutable/chunks/{jExJ4qw0.js → BXhT5rHA.js} +2 -2
  54. package/web/app/immutable/chunks/{COWdAscC.js → BY9RbRJy.js} +1 -1
  55. package/web/app/immutable/chunks/{CEUJ2SOA.js → BYP8ebQS.js} +1 -1
  56. package/web/app/immutable/chunks/{Bkn9MGZb.js → BYq9VtBF.js} +1 -1
  57. package/web/app/immutable/chunks/{DQdDAxOz.js → BaujsV9k.js} +1 -1
  58. package/web/app/immutable/chunks/{7Co-pRoL.js → BbvEB4jz.js} +1 -1
  59. package/web/app/immutable/chunks/{s7AiPAor.js → BcpfdNy8.js} +1 -1
  60. package/web/app/immutable/chunks/{BB82Eb4D.js → BeOwB_6G.js} +1 -1
  61. package/web/app/immutable/chunks/{DDHXn0gy.js → BfojStRz.js} +1 -1
  62. package/web/app/immutable/chunks/{IPb2sVOc.js → BjRQQ_jq.js} +4 -4
  63. package/web/app/immutable/chunks/{J4xkCilS.js → BkITif4J.js} +1 -1
  64. package/web/app/immutable/chunks/{DJS9lO4g.js → BlRYe00B.js} +1 -1
  65. package/web/app/immutable/chunks/{BR1_dE35.js → BlVYr5cA.js} +1 -1
  66. package/web/app/immutable/chunks/{Ah-onPNG.js → BmTMWrby.js} +1 -1
  67. package/web/app/immutable/chunks/{BzJwOhb5.js → Bq_wOSEp.js} +1 -1
  68. package/web/app/immutable/chunks/{D5zGpim8.js → Bs9K_x5H.js} +1 -1
  69. package/web/app/immutable/chunks/{HWtwQJMe.js → Bsh6nUhU.js} +1 -1
  70. package/web/app/immutable/chunks/{CTzwWQun.js → BsrrIQeo.js} +1 -1
  71. package/web/app/immutable/chunks/{CpxnRRai.js → BtHTHBJp.js} +1 -1
  72. package/web/app/immutable/chunks/{BWLItowS.js → Bty1UglO.js} +1 -1
  73. package/web/app/immutable/chunks/{B_TGsMEB.js → BvPbguyx.js} +1 -1
  74. package/web/app/immutable/chunks/{o9vqVVAE.js → BvbTU4IL.js} +1 -1
  75. package/web/app/immutable/chunks/{DwzqUxIw.js → Bvi-fRGz.js} +1 -1
  76. package/web/app/immutable/chunks/{zFOAQ-fV.js → BwhjiNjC.js} +1 -1
  77. package/web/app/immutable/chunks/{6eBy--fo.js → BwtFad5m.js} +2 -2
  78. package/web/app/immutable/chunks/{DLs0Gu12.js → BxEf7uwl.js} +1 -1
  79. package/web/app/immutable/chunks/{D1BWZmii.js → BxJ6X-Sl.js} +1 -1
  80. package/web/app/immutable/chunks/{ko5zX9YA.js → BxVnbYG1.js} +1 -1
  81. package/web/app/immutable/chunks/{CLbTxOfk.js → ByfS7UIX.js} +1 -1
  82. package/web/app/immutable/chunks/{BzWnUeNO.js → BypvqIQM.js} +1 -1
  83. package/web/app/immutable/chunks/{DAY78LgA.js → C-O59F9J.js} +2 -2
  84. package/web/app/immutable/chunks/C0QTy0Sy.js +1 -0
  85. package/web/app/immutable/chunks/{Bz7B58eG.js → C1EvfTg-.js} +1 -1
  86. package/web/app/immutable/chunks/{CtJr8Pwg.js → C45U06qp.js} +1 -1
  87. package/web/app/immutable/chunks/{DVkTXE2a.js → C4JXGtw1.js} +1 -1
  88. package/web/app/immutable/chunks/{C1hbmGxM.js → C4JbSg3f.js} +1 -1
  89. package/web/app/immutable/chunks/{Fh9R4BHC.js → C4QKwtCH.js} +1 -1
  90. package/web/app/immutable/chunks/{8OEJW7fY.js → C6Qw0raF.js} +1 -1
  91. package/web/app/immutable/chunks/{CsY5Dftt.js → C6mS8uZB.js} +1 -1
  92. package/web/app/immutable/chunks/{B3Muoj7H.js → C7LIHk5_.js} +1 -1
  93. package/web/app/immutable/chunks/{BUfNfMkk.js → C8JlOzbF.js} +1 -1
  94. package/web/app/immutable/chunks/{Da_Z6CgM.js → C8y9EItt.js} +1 -1
  95. package/web/app/immutable/chunks/{Dxv5pbru.js → C9h2rwKF.js} +1 -1
  96. package/web/app/immutable/chunks/{BE66F_G_.js → CAvYeStH.js} +1 -1
  97. package/web/app/immutable/chunks/{B-wL6Wzy.js → CBkpyV7r.js} +1 -1
  98. package/web/app/immutable/chunks/{Dy2ZTySC.js → CCqqosml.js} +1 -1
  99. package/web/app/immutable/chunks/{Bxk8XeS_.js → CDAoSo12.js} +1 -1
  100. package/web/app/immutable/chunks/{DaYz5Oxb.js → CDCEiDxP.js} +3 -3
  101. package/web/app/immutable/chunks/{KWmquGlL.js → CDK_hSiv.js} +1 -1
  102. package/web/app/immutable/chunks/{5DxHNwZe.js → CDNvYbvS.js} +1 -1
  103. package/web/app/immutable/chunks/{CXCeVP0_.js → CDjpuJh0.js} +1 -1
  104. package/web/app/immutable/chunks/{Yy6hnibL.js → CE7dsja4.js} +1 -1
  105. package/web/app/immutable/chunks/{Cr-iZ9Tf.js → CEOBX1Pf.js} +1 -1
  106. package/web/app/immutable/chunks/{RNoFqjp6.js → CFny5dMa.js} +1 -1
  107. package/web/app/immutable/chunks/{Ckr4n1ss.js → CGIQkN5K.js} +1 -1
  108. package/web/app/immutable/chunks/{C9K8tC7J.js → CHLX1QZz.js} +1 -1
  109. package/web/app/immutable/chunks/{CV9F7g3O.js → CHXhxB4Q.js} +1 -1
  110. package/web/app/immutable/chunks/{CxSmnqpJ.js → CI9sv_EP.js} +1 -1
  111. package/web/app/immutable/chunks/{Bwqr9iPo.js → CJ4Z96pe.js} +1 -1
  112. package/web/app/immutable/chunks/CJO6KBmw.js +1 -0
  113. package/web/app/immutable/chunks/{BROVaoRF.js → CJVoHxzN.js} +1 -1
  114. package/web/app/immutable/chunks/{Dk_2gwLu.js → CKXQrY3X.js} +1 -1
  115. package/web/app/immutable/chunks/{rdao0YQj.js → CL-lzPGU.js} +1 -1
  116. package/web/app/immutable/chunks/{B828qkf6.js → CMu-09q3.js} +1 -1
  117. package/web/app/immutable/chunks/{CYDXSK8a.js → CNAgTnv2.js} +1 -1
  118. package/web/app/immutable/chunks/{I_40sZHA.js → CO5zWp8I.js} +1 -1
  119. package/web/app/immutable/chunks/{BQzm8t-k.js → CRZZ_hOy.js} +1 -1
  120. package/web/app/immutable/chunks/{BFjAz9so.js → CSRYV6LQ.js} +1 -1
  121. package/web/app/immutable/chunks/{C7vw9rpc.js → CSVgdt55.js} +1 -1
  122. package/web/app/immutable/chunks/{F6tZeezN.js → CU5jKGma.js} +1 -1
  123. package/web/app/immutable/chunks/{BIGXb0qV.js → CUkDMZwP.js} +1 -1
  124. package/web/app/immutable/chunks/{wQP9H0b5.js → CY4fyoCV.js} +1 -1
  125. package/web/app/immutable/chunks/C_1hI7HP.js +1 -0
  126. package/web/app/immutable/chunks/{B2JbncL-.js → C_KuQ05a.js} +1 -1
  127. package/web/app/immutable/chunks/{CJotcdQg.js → CaNxJFJ1.js} +1 -1
  128. package/web/app/immutable/chunks/{B_L3BWUb.js → CbO3oDHw.js} +1 -1
  129. package/web/app/immutable/chunks/{C4Fxj3Dv.js → CbqxWBi7.js} +1 -1
  130. package/web/app/immutable/chunks/{CgbisBm3.js → CeHXXIxE.js} +1 -1
  131. package/web/app/immutable/chunks/{C9qmiGPA.js → Cf4fmkfL.js} +1 -1
  132. package/web/app/immutable/chunks/{P-6iyz0U.js → CiMmbOsB.js} +1 -1
  133. package/web/app/immutable/chunks/{B_9Y0vrL.js → CiSIqqOJ.js} +1 -1
  134. package/web/app/immutable/chunks/{CHDBPeiu.js → CjTo2K46.js} +1 -1
  135. package/web/app/immutable/chunks/{DVIpt_-b.js → CjpxPpfy.js} +1 -1
  136. package/web/app/immutable/chunks/{BORX4QsI.js → Ck2X3Rvg.js} +1 -1
  137. package/web/app/immutable/chunks/{76a0x163.js → CkA2ItLw.js} +1 -1
  138. package/web/app/immutable/chunks/{DYXQ0DvL.js → Ckb6le-m.js} +4 -4
  139. package/web/app/immutable/chunks/{CL_Wu5hL.js → CkmRZ_MC.js} +1 -1
  140. package/web/app/immutable/chunks/{hOsZO8to.js → CmrjfWYI.js} +1 -1
  141. package/web/app/immutable/chunks/{BgdV71H8.js → CnAbYuPp.js} +1 -1
  142. package/web/app/immutable/chunks/{BtCfKiJI.js → CnqJXAKo.js} +1 -1
  143. package/web/app/immutable/chunks/{CvmogvXF.js → Co4vj0dC.js} +1 -1
  144. package/web/app/immutable/chunks/{Cywj8P1v.js → Cofxvpdb.js} +1 -1
  145. package/web/app/immutable/chunks/{BzpQRjDP.js → Cqa6LF3b.js} +1 -1
  146. package/web/app/immutable/chunks/CqcqWJoa.js +1 -0
  147. package/web/app/immutable/chunks/CrD0jtXE.js +1 -0
  148. package/web/app/immutable/chunks/{D2ZHHwj-.js → CrFyLBfi.js} +2 -2
  149. package/web/app/immutable/chunks/{DLncssSx.js → Ctbo6mXV.js} +1 -1
  150. package/web/app/immutable/chunks/{dnTowHeA.js → CxFOqPFP.js} +3 -3
  151. package/web/app/immutable/chunks/{lEWu7gpF.js → Cxf6ur9F.js} +1 -1
  152. package/web/app/immutable/chunks/{BCl5zPXa.js → D-YGlaxj.js} +1 -1
  153. package/web/app/immutable/chunks/{CVQJ3G9r.js → D-dukRlA.js} +1 -1
  154. package/web/app/immutable/chunks/D-zjf2Af.js +1 -0
  155. package/web/app/immutable/chunks/{DhkuGmLb.js → D37getya.js} +1 -1
  156. package/web/app/immutable/chunks/{zdyRQTcF.js → D3C3nNLs.js} +1 -1
  157. package/web/app/immutable/chunks/{BgfkQ05m.js → D3p_bZm7.js} +1 -1
  158. package/web/app/immutable/chunks/{B6jOBMKj.js → D4FXvK9L.js} +3 -3
  159. package/web/app/immutable/chunks/{B6v6locT.js → D51XIZYq.js} +1 -1
  160. package/web/app/immutable/chunks/{BGr1zUsV.js → D5tDp1i8.js} +1 -1
  161. package/web/app/immutable/chunks/{DT_2ysGq.js → D6dlPeEM.js} +1 -1
  162. package/web/app/immutable/chunks/{CMzQ5CXp.js → D73nBZuu.js} +1 -1
  163. package/web/app/immutable/chunks/{Do7ouyXz.js → D8ohaX19.js} +1 -1
  164. package/web/app/immutable/chunks/{B4GJOofT.js → DA5opfEp.js} +1 -1
  165. package/web/app/immutable/chunks/{BOSZ-Hrc.js → DB7RVYiL.js} +1 -1
  166. package/web/app/immutable/chunks/{CfRm3l5p.js → DC8keNAk.js} +1 -1
  167. package/web/app/immutable/chunks/{C8SLclsn.js → DCK8dPAL.js} +1 -1
  168. package/web/app/immutable/chunks/{Bl3Cuor0.js → DCRuihKm.js} +2 -2
  169. package/web/app/immutable/chunks/{DsbDY3sD.js → DDJ_XVek.js} +2 -2
  170. package/web/app/immutable/chunks/{3BCA27_7.js → DEI5RmgA.js} +1 -1
  171. package/web/app/immutable/chunks/{mg5SY1J3.js → DIKTPgAK.js} +1 -1
  172. package/web/app/immutable/chunks/{BOzF_1jP.js → DJs4vEjF.js} +1 -1
  173. package/web/app/immutable/chunks/{CnT7X_Ka.js → DKHY8q_S.js} +1 -1
  174. package/web/app/immutable/chunks/{C4_TlGj0.js → DLwWVKiF.js} +1 -1
  175. package/web/app/immutable/chunks/{DkPs4gWX.js → DME_6OFx.js} +1 -1
  176. package/web/app/immutable/chunks/{SCoe-XeJ.js → DMlkDPxV.js} +1 -1
  177. package/web/app/immutable/chunks/{CmLRC7-r.js → DN6OUhsP.js} +1 -1
  178. package/web/app/immutable/chunks/{CPvBbiM1.js → DOUbieNj.js} +1 -1
  179. package/web/app/immutable/chunks/{CfHaUU8C.js → DOhJfAZG.js} +1 -1
  180. package/web/app/immutable/chunks/{tFT894m3.js → DPYlDye0.js} +1 -1
  181. package/web/app/immutable/chunks/{DRdEaij1.js → DPZcepbV.js} +1 -1
  182. package/web/app/immutable/chunks/{CE-ONoWm.js → DPyomP91.js} +1 -1
  183. package/web/app/immutable/chunks/{wJF9cAcZ.js → DPzOIlu9.js} +1 -1
  184. package/web/app/immutable/chunks/{BLCYnNxp.js → DQ_mNIfK.js} +1 -1
  185. package/web/app/immutable/chunks/{CZpxXUzD.js → DR4Kh2SL.js} +1 -1
  186. package/web/app/immutable/chunks/{DMhc83bo.js → DSAj_NCN.js} +1 -1
  187. package/web/app/immutable/chunks/{CrtOf2Rt.js → DTuql3Rj.js} +1 -1
  188. package/web/app/immutable/chunks/{BdSrsYxv.js → DUhA4bgN.js} +1 -1
  189. package/web/app/immutable/chunks/{CplGIhI5.js → DX-Wrapd.js} +1 -1
  190. package/web/app/immutable/chunks/{C1Zw9RUp.js → DXBEIeJu.js} +1 -1
  191. package/web/app/immutable/chunks/{CaBTNP9L.js → D_Xpj-6r.js} +1 -1
  192. package/web/app/immutable/chunks/{C-931TJ0.js → DaaqgDka.js} +1 -1
  193. package/web/app/immutable/chunks/{BnV5imkg.js → Ddq8SBEz.js} +1 -1
  194. package/web/app/immutable/chunks/{CHyLxrMv.js → DduCxuVq.js} +1 -1
  195. package/web/app/immutable/chunks/{aDC6CW-9.js → Dfg3lB2h.js} +1 -1
  196. package/web/app/immutable/chunks/{gWn9PDXZ.js → Dhzl8ugO.js} +1 -1
  197. package/web/app/immutable/chunks/{b16NDDfn.js → Di8eJPr0.js} +2 -2
  198. package/web/app/immutable/chunks/{3ozr1vad.js → Div5PXT-.js} +2 -2
  199. package/web/app/immutable/chunks/{CDGdQPZ3.js → DjHhZWUX.js} +1 -1
  200. package/web/app/immutable/chunks/{Cy1eIaf4.js → Djg1-55Y.js} +1 -1
  201. package/web/app/immutable/chunks/{DqfOHbUh.js → Djp7mdlG.js} +1 -1
  202. package/web/app/immutable/chunks/{oxrHj9WB.js → DlEmrQXN.js} +2 -2
  203. package/web/app/immutable/chunks/{BZRdDiLW.js → Dlk4BhFg.js} +1 -1
  204. package/web/app/immutable/chunks/{CngHTAnD.js → Dm7KqEFT.js} +13 -13
  205. package/web/app/immutable/chunks/{oLeo92vY.js → DmXAUF0G.js} +1 -1
  206. package/web/app/immutable/chunks/DmaEU7hb.js +2 -0
  207. package/web/app/immutable/chunks/{D6uQnPIb.js → DnJ4jlPB.js} +1 -1
  208. package/web/app/immutable/chunks/{Cg1tTx8i.js → DpMOdl0E.js} +1 -1
  209. package/web/app/immutable/chunks/{D2KaVfIR.js → DqMqjmmT.js} +2 -2
  210. package/web/app/immutable/chunks/{Bf8Z3F34.js → Dr0V5Z_Q.js} +1 -1
  211. package/web/app/immutable/chunks/{Ue-wYmxq.js → DrHfN5GT.js} +1 -1
  212. package/web/app/immutable/chunks/{CKt7lvPP.js → DrIA1Azf.js} +1 -1
  213. package/web/app/immutable/chunks/{BX43DT22.js → DrxfcnSy.js} +1 -1
  214. package/web/app/immutable/chunks/{CE095mBY.js → DsGUBv3k.js} +1 -1
  215. package/web/app/immutable/chunks/{DtV42LL1.js → DsT1iX_Q.js} +6 -6
  216. package/web/app/immutable/chunks/{BJGbabcl.js → Dsf8OM9-.js} +1 -1
  217. package/web/app/immutable/chunks/{DtqWU30y.js → Dsr4GELp.js} +1 -1
  218. package/web/app/immutable/chunks/DtF9DVpp.js +1 -0
  219. package/web/app/immutable/chunks/{vnEDE6VU.js → Du_rNq8q.js} +1 -1
  220. package/web/app/immutable/chunks/{Gi8kzv-V.js → DvUGkiYP.js} +1 -1
  221. package/web/app/immutable/chunks/{CLiKsUcS.js → DvYUfzNR.js} +1 -1
  222. package/web/app/immutable/chunks/{BIon5kwa.js → Dw8wIAFi.js} +1 -1
  223. package/web/app/immutable/chunks/{BiKalUOw.js → DwImHc9s.js} +1 -1
  224. package/web/app/immutable/chunks/{D4XZeMXl.js → DwL1A1su.js} +1 -1
  225. package/web/app/immutable/chunks/{B-4Cm2na.js → DzWZGIya.js} +1 -1
  226. package/web/app/immutable/chunks/{BkliVAqJ.js → Dzk9iuw9.js} +4 -4
  227. package/web/app/immutable/chunks/{D81Tox6K.js → EK6zOAHM.js} +1 -1
  228. package/web/app/immutable/chunks/{gtC5KXEz.js → Fdd73CJo.js} +1 -1
  229. package/web/app/immutable/chunks/{CESUeVmp.js → FzlZUztb.js} +1 -1
  230. package/web/app/immutable/chunks/{Bz8C2v0s.js → H9IjxeQk.js} +1 -1
  231. package/web/app/immutable/chunks/{DgW5R9bn.js → J8_M56d9.js} +1 -1
  232. package/web/app/immutable/chunks/{EW9Oxsda.js → KH7BHXXb.js} +1 -1
  233. package/web/app/immutable/chunks/{y7Ugu8WS.js → KHteWVFN.js} +1 -1
  234. package/web/app/immutable/chunks/{CfC-LCr9.js → KSLBBJRy.js} +1 -1
  235. package/web/app/immutable/chunks/{CxRJqvXa.js → KYuLFpkq.js} +1 -1
  236. package/web/app/immutable/chunks/{c5MBfH9F.js → L7j-Q29w.js} +1 -1
  237. package/web/app/immutable/chunks/{DvQWx7ZN.js → L_tYoUCb.js} +1 -1
  238. package/web/app/immutable/chunks/{Bt_5d6KS.js → M-TVgx-R.js} +1 -1
  239. package/web/app/immutable/chunks/{BQyGe_6f.js → MI7EtNv0.js} +1 -1
  240. package/web/app/immutable/chunks/{nMcdiCb6.js → MQBseMlG.js} +1 -1
  241. package/web/app/immutable/chunks/{BNrkXLIB.js → No1eCFy3.js} +1 -1
  242. package/web/app/immutable/chunks/{DEelt7b0.js → OFhgRaUm.js} +1 -1
  243. package/web/app/immutable/chunks/{Q7XiOE5T.js → OtomGvb3.js} +1 -1
  244. package/web/app/immutable/chunks/{3Tv2tBbo.js → P-T74LCo.js} +3 -3
  245. package/web/app/immutable/chunks/{DIQ23RZn.js → PIgqsYsQ.js} +1 -1
  246. package/web/app/immutable/chunks/{BCx2RJGr.js → QeBH-DWE.js} +1 -1
  247. package/web/app/immutable/chunks/{D7kKwL53.js → RFsxwSsB.js} +1 -1
  248. package/web/app/immutable/chunks/{BEGsYnq4.js → Rx5mQeGT.js} +4 -4
  249. package/web/app/immutable/chunks/{Be5foFms.js → S845NCb3.js} +1 -1
  250. package/web/app/immutable/chunks/{Dpd18D9E.js → Su2XS_Ru.js} +1 -1
  251. package/web/app/immutable/chunks/{H_09C3Qv.js → T8d_aLDP.js} +1 -1
  252. package/web/app/immutable/chunks/{DYltC5LY.js → TiuNiN7j.js} +1 -1
  253. package/web/app/immutable/chunks/{DQEQvBuM.js → U9jJmfYa.js} +1 -1
  254. package/web/app/immutable/chunks/{DgQzilAi.js → W7maz5hp.js} +1 -1
  255. package/web/app/immutable/chunks/{C__OzIly.js → WVvubfLN.js} +2 -2
  256. package/web/app/immutable/chunks/{DYTNWFlt.js → XCWZeNYo.js} +1 -1
  257. package/web/app/immutable/chunks/{CoHtEoLb.js → XHPDEELd.js} +1 -1
  258. package/web/app/immutable/chunks/{xAGiw113.js → Y5Ky10uA.js} +1 -1
  259. package/web/app/immutable/chunks/{DwlFFy2U.js → Zx9hB63s.js} +1 -1
  260. package/web/app/immutable/chunks/{Do1K3fjZ.js → _SYFiE9N.js} +1 -1
  261. package/web/app/immutable/chunks/{DdtN-mI9.js → a3TFelkn.js} +1 -1
  262. package/web/app/immutable/chunks/{CFhJzMqD.js → azpKokvz.js} +1 -1
  263. package/web/app/immutable/chunks/{CbUxbw3N.js → bF6PpsOD.js} +1 -1
  264. package/web/app/immutable/chunks/{Gpf-ce3t.js → bhKPSdq4.js} +1 -1
  265. package/web/app/immutable/chunks/{CcrFwPvM.js → c5QZsH9t.js} +1 -1
  266. package/web/app/immutable/chunks/{CYodIWBo.js → chjnSxvZ.js} +1 -1
  267. package/web/app/immutable/chunks/{Bfi3_8Hc.js → eElW3aeh.js} +1 -1
  268. package/web/app/immutable/chunks/{CNXu44c3.js → ebbVP0tp.js} +1 -1
  269. package/web/app/immutable/chunks/{0chz2rsS.js → f24VwgrA.js} +1 -1
  270. package/web/app/immutable/chunks/{BGozEqB2.js → fiz8N_zQ.js} +1 -1
  271. package/web/app/immutable/chunks/{D_2nAvGE.js → h06E2ICA.js} +1 -1
  272. package/web/app/immutable/chunks/{Cr4NRN2o.js → hHMYoFyG.js} +1 -1
  273. package/web/app/immutable/chunks/{Ba-gJiCF.js → haN7a3Sc.js} +1 -1
  274. package/web/app/immutable/chunks/{e9FnhdhA.js → i_QPvq4q.js} +1 -1
  275. package/web/app/immutable/chunks/{Cc08a9kX.js → kS6Z7jzP.js} +1 -1
  276. package/web/app/immutable/chunks/{D5CeMpEM.js → kjxbkPQZ.js} +1 -1
  277. package/web/app/immutable/chunks/{DwgOf6Jh.js → lJeex2Gh.js} +1 -1
  278. package/web/app/immutable/chunks/{DZTelE6-.js → nImP7yvb.js} +1 -1
  279. package/web/app/immutable/chunks/{De9e0mT0.js → nbomrtth.js} +1 -1
  280. package/web/app/immutable/chunks/{BFqSYY_K.js → oOhxfFIU.js} +1 -1
  281. package/web/app/immutable/chunks/{C5BT0KwE.js → ozVAo4aX.js} +1 -1
  282. package/web/app/immutable/chunks/{DlZ4XLhX.js → q6F-1__g.js} +1 -1
  283. package/web/app/immutable/chunks/{VtSYBFwm.js → tZyAiGvb.js} +1 -1
  284. package/web/app/immutable/chunks/{9xo585Vy.js → tr-2J8Mf.js} +1 -1
  285. package/web/app/immutable/chunks/{DhKLQ_6L.js → ujhgjK1k.js} +1 -1
  286. package/web/app/immutable/chunks/{CCHulQ4M.js → v0ybYtGc.js} +1 -1
  287. package/web/app/immutable/chunks/{Cf9FKQ2t.js → viB2mzAd.js} +1 -1
  288. package/web/app/immutable/chunks/{DQGxxGZP.js → wl2qP2wF.js} +1 -1
  289. package/web/app/immutable/chunks/{E-ElQTlm.js → x63yRqVE.js} +1 -1
  290. package/web/app/immutable/chunks/{DZldOwzL.js → yFcbscNn.js} +1 -1
  291. package/web/app/immutable/chunks/{CpCzAUi8.js → yaHL2zPw.js} +1 -1
  292. package/web/app/immutable/chunks/{DQzjOLwV.js → zHu1d_6X.js} +2 -2
  293. package/web/app/immutable/entry/app.CgYQGiwi.js +4 -0
  294. package/web/app/immutable/entry/start.C_kFKw1E.js +1 -0
  295. package/web/app/immutable/nodes/{0.XjTeJo8S.js → 0.DOOOI3Bo.js} +1 -1
  296. package/web/app/immutable/nodes/{1.WAn52SGO.js → 1.DCbWOuyY.js} +1 -1
  297. package/web/app/immutable/nodes/{10.BCt95gGF.js → 10.DkhUAhty.js} +5 -5
  298. package/web/app/immutable/nodes/{11.D9nZjMrf.js → 11.DDwWhO0Z.js} +1 -1
  299. package/web/app/immutable/nodes/{12.J0j9wF8Z.js → 12.BpXDHhXi.js} +1 -1
  300. package/web/app/immutable/nodes/{13.BGHXM182.js → 13.CCKyw-_o.js} +1 -1
  301. package/web/app/immutable/nodes/{14.BpDGhzOE.js → 14.BD92xFv4.js} +3 -3
  302. package/web/app/immutable/nodes/{15.DTHSLR65.js → 15.Dw1bH9Zl.js} +1 -1
  303. package/web/app/immutable/nodes/{16.WKc2P4l3.js → 16.CVCm-nfj.js} +1 -1
  304. package/web/app/immutable/nodes/{17.f0RTyi1E.js → 17.CjKvJw8X.js} +1 -1
  305. package/web/app/immutable/nodes/{18.BCr1DqlF.js → 18.DDY8Eqsn.js} +1 -1
  306. package/web/app/immutable/nodes/{19.kyknfcua.js → 19.BDZr-fpl.js} +2 -2
  307. package/web/app/immutable/nodes/{2.BhjQOmpc.js → 2.BXcXLNQd.js} +4 -4
  308. package/web/app/immutable/nodes/{20.DJSk2vW3.js → 20.CLsq1QLL.js} +1 -1
  309. package/web/app/immutable/nodes/{3.B5ONUR90.js → 3.DSd1hRZn.js} +1 -1
  310. package/web/app/immutable/nodes/{4.9E3WAn5x.js → 4.BkWwx_VF.js} +1 -1
  311. package/web/app/immutable/nodes/5.y9tMc2yb.js +1 -0
  312. package/web/app/immutable/nodes/{6.DC2CoHu2.js → 6.BosoYTZK.js} +1 -1
  313. package/web/app/immutable/nodes/{7.ipL23qll.js → 7.BX-dUHAQ.js} +1 -1
  314. package/web/app/immutable/nodes/{8.H6jtZ1r2.js → 8.DUR07SoM.js} +1 -1
  315. package/web/app/immutable/nodes/9.Cw56XQ1G.js +14 -0
  316. package/web/app/immutable/workers/html-file-preview.worker-BfFljPK-.js +1 -0
  317. package/web/app/version.json +1 -1
  318. package/web/generated/paraglide.js +46 -46
  319. package/web/index.html +19 -19
  320. package/web/app/immutable/assets/0.MRSSdFvi.css +0 -1
  321. package/web/app/immutable/chunks/B8JLAqaa.js +0 -1
  322. package/web/app/immutable/chunks/BEwMx-58.js +0 -1
  323. package/web/app/immutable/chunks/ChxY4HYP.js +0 -1
  324. package/web/app/immutable/chunks/DRhX_2TI.js +0 -1
  325. package/web/app/immutable/chunks/DWOJ689M.js +0 -1
  326. package/web/app/immutable/chunks/LCTocMEs.js +0 -1
  327. package/web/app/immutable/chunks/LNBns0B-.js +0 -1
  328. package/web/app/immutable/chunks/RXLk0Kpm.js +0 -1
  329. package/web/app/immutable/chunks/_FHZ2hc1.js +0 -2
  330. package/web/app/immutable/chunks/lZXQR9AV.js +0 -1
  331. package/web/app/immutable/entry/app.C9XhrjLK.js +0 -4
  332. package/web/app/immutable/entry/start.CkQDADa5.js +0 -1
  333. package/web/app/immutable/nodes/5.51b5Mc5a.js +0 -1
  334. package/web/app/immutable/nodes/9.qiIDO-mm.js +0 -12
@@ -1,4 +1,4 @@
1
- var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bo as x,bm as P,bw as un,bq as On,b as hn,bs as je}from"./BEwMx-58.js";import{ai as Cr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as L,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as J,aA as C,ay as ne,bS as y,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Hn,a as Us,be as Tt,b$ as ft,bf as or}from"./3SdAC2_C.js";import{i as M}from"./Gpf-ce3t.js";import{g as Pt,i as Ln,I as ir,e as ar}from"./BZKoidWB.js";import{n as cn,l as Ws,c as Bs}from"./C4_TlGj0.js";import{f as En,s as Ve,g as lr}from"./CyczJyMt.js";import{b as on}from"./Dn334wJv.js";import{Jv as Me,eS as Vs,eJ as Ks,eK as js,o_ as qs,nO as Vt,nS as cr,nR as In,eM as Gs,vF as Qs,vG as Xs,vI as Js,Hy as Ys,JA as Zs,rX as eo,eR as to}from"./9xo585Vy.js";import{c as no}from"./lZXQR9AV.js";import{F as Ne,a1 as ro,a8 as An,aw as dr,ax as ur,bS as so,aP as oo,cd as hr,bZ as gr,cq as fr}from"./DQEQvBuM.js";import{dH as io,bs as ao,X as lo,aO as mr,p as co}from"./DQdDAxOz.js";import{L as pr}from"./c5MBfH9F.js";import{C as an}from"./DypB-Dwi.js";import{b8 as kr,bN as uo,bT as ho}from"./CpxnRRai.js";import{q as $e,d as go,g as fo}from"./CHyLxrMv.js";import"./LNBns0B-.js";import"./Bl3Cuor0.js";/* empty css */import{T as Pr}from"./CoHtEoLb.js";import{g as Nn}from"./DEelt7b0.js";import{A as mo}from"./DQGxxGZP.js";import{f as ke}from"./CESUeVmp.js";import{C as po}from"./BLCYnNxp.js";import{C as vo}from"./Ah-onPNG.js";import{s as vr}from"./zFOAQ-fV.js";import{S as Dt}from"./BGozEqB2.js";import{l as Rt}from"./Yy6hnibL.js";import{G as _r}from"./DdtN-mI9.js";import{P as _o}from"./DLncssSx.js";import{g as wo}from"./B4GJOofT.js";import{a8 as bo,Y as So}from"./9mNi8996.js";import{ap as yo}from"./3Tv2tBbo.js";import{N as wr}from"./BkliVAqJ.js";import{ae as xo,ad as Co,af as ko}from"./CngHTAnD.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,S=a?l+c*2:b;if(r=Math.max(r,S),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+S,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Ho=[0,1e-6,.99999,1],Lo={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Lo,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Ho,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,S=a+c+p;return!(r<b-l||r>S)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:S}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(S==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let S,A;b<=0?(S=b,A="bottom"):(S=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(S>=0&&(a.fileOffset<0||S<a.fileOffset)||S<0&&a.fileOffset<0&&S>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:S,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Hr(f,r){if(new.target)return dn({component:Hr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=x(r,"change",7),S=x(r,"foldUnchanged",7,!0),A=x(r,"allowHeadReads",7,!0),F=x(r,"canReadHeadFiles",7),G=x(r,"lineWrapping",7,!1),h=x(r,"scrollToLine",7),oe=x(r,"isAggregate",7,!1),Te=x(r,"showScrollHint",7,!1),ue=x(r,"onStageHunk",7),Q=x(r,"onUnstageHunk",7),at=x(r,"onOpenCommit",7),pt=x(r,"virtualizer",7),vt=x(r,"gitRootId",7,void 0),_t=x(r,"gitRootPath",7,void 0);const ve=kr();let Re=J(!1),Se=J(!1),Fe=J(!1),Ue=J(0),qe=J(void 0);const $=80;function ie(){m(Se,!0)}function De(){m(Se,!1),m(Fe,!1),m(Ue,0)}function He(v){!e(Se)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(Se))&&(m(Fe,!1),m(Ue,0))});let Ht=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:St,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let yt;return Ke==="committed"?yt=an.Committed:rt?yt=an.Staged:yt=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:yt,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:St},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Lt={get change(){return b()},set change(v){b(v),C()},get foldUnchanged(){return S()},set foldUnchanged(v=!0){S(v),C()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),C()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),C()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),C()},get scrollToLine(){return h()},set scrollToLine(v){h(v),C()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),C()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),C()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),C()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),C()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),C()},get virtualizer(){return pt()},set virtualizer(v){pt(v),C()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),C()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),C()},$set:un,$on:(v,_e)=>hn(r,v,_e)},Le=To();let wt;var It=N(Le);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Ht)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return S()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var St=y(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=y(At);L(Ke),L(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(St,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(St=>K(Qe,St),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}L(Le),on(Le,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(Le,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(Le,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",Le,ie),sn("mouseleave",Le,De),sn("wheel",Le,He),ln("focusin",Le,jt),ln("focusout",Le,qt),w(f,Le);var mn=fn(Lt);return c(),mn}Cr(["focusin","focusout"]);function Sr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
1
+ var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bo as x,bm as P,bw as un,bq as On,b as hn,bs as je}from"./C0QTy0Sy.js";import{ai as Cr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as L,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as J,aA as C,ay as ne,bS as y,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Hn,a as Us,be as Tt,b$ as ft,bf as or}from"./3SdAC2_C.js";import{i as M}from"./bhKPSdq4.js";import{g as Pt,i as Ln,I as ir,e as ar}from"./B6S6VNu7.js";import{n as cn,l as Ws,c as Bs}from"./DLwWVKiF.js";import{f as En,s as Ve,g as lr}from"./7UPrdiE9.js";import{b as on}from"./Dn334wJv.js";import{Jv as Me,eS as Vs,eJ as Ks,eK as js,o_ as qs,nO as Vt,nS as cr,nR as In,eM as Gs,vF as Qs,vG as Xs,vI as Js,Hy as Ys,JA as Zs,rX as eo,eR as to}from"./tr-2J8Mf.js";import{c as no}from"./BIVeXMBl.js";import{F as Ne,a1 as ro,a8 as An,aw as dr,ax as ur,bS as so,aP as oo,cd as hr,bZ as gr,cq as fr}from"./U9jJmfYa.js";import{dH as io,bs as ao,X as lo,aO as mr,p as co}from"./BaujsV9k.js";import{L as pr}from"./L7j-Q29w.js";import{C as an}from"./DypB-Dwi.js";import{b8 as kr,bN as uo,bT as ho}from"./BtHTHBJp.js";import{q as $e,d as go,g as fo}from"./DduCxuVq.js";import"./CrD0jtXE.js";import"./DCRuihKm.js";/* empty css */import{T as Pr}from"./XHPDEELd.js";import{g as Nn}from"./OFhgRaUm.js";import{A as mo}from"./wl2qP2wF.js";import{f as ke}from"./FzlZUztb.js";import{C as po}from"./DQ_mNIfK.js";import{C as vo}from"./BmTMWrby.js";import{s as vr}from"./BwhjiNjC.js";import{S as Dt}from"./fiz8N_zQ.js";import{l as Rt}from"./CE7dsja4.js";import{G as _r}from"./a3TFelkn.js";import{P as _o}from"./Ctbo6mXV.js";import{g as wo}from"./DA5opfEp.js";import{a8 as bo,Y as So}from"./BI3a2AWW.js";import{ap as yo}from"./P-T74LCo.js";import{N as wr}from"./Dzk9iuw9.js";import{ae as xo,ad as Co,af as ko}from"./Dm7KqEFT.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,S=a?l+c*2:b;if(r=Math.max(r,S),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+S,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Ho=[0,1e-6,.99999,1],Lo={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Lo,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Ho,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,S=a+c+p;return!(r<b-l||r>S)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:S}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(S==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let S,A;b<=0?(S=b,A="bottom"):(S=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(S>=0&&(a.fileOffset<0||S<a.fileOffset)||S<0&&a.fileOffset<0&&S>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:S,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Hr(f,r){if(new.target)return dn({component:Hr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=x(r,"change",7),S=x(r,"foldUnchanged",7,!0),A=x(r,"allowHeadReads",7,!0),F=x(r,"canReadHeadFiles",7),G=x(r,"lineWrapping",7,!1),h=x(r,"scrollToLine",7),oe=x(r,"isAggregate",7,!1),Te=x(r,"showScrollHint",7,!1),ue=x(r,"onStageHunk",7),Q=x(r,"onUnstageHunk",7),at=x(r,"onOpenCommit",7),pt=x(r,"virtualizer",7),vt=x(r,"gitRootId",7,void 0),_t=x(r,"gitRootPath",7,void 0);const ve=kr();let Re=J(!1),Se=J(!1),Fe=J(!1),Ue=J(0),qe=J(void 0);const $=80;function ie(){m(Se,!0)}function De(){m(Se,!1),m(Fe,!1),m(Ue,0)}function He(v){!e(Se)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(Se))&&(m(Fe,!1),m(Ue,0))});let Ht=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:St,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let yt;return Ke==="committed"?yt=an.Committed:rt?yt=an.Staged:yt=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:yt,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:St},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Lt={get change(){return b()},set change(v){b(v),C()},get foldUnchanged(){return S()},set foldUnchanged(v=!0){S(v),C()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),C()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),C()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),C()},get scrollToLine(){return h()},set scrollToLine(v){h(v),C()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),C()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),C()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),C()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),C()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),C()},get virtualizer(){return pt()},set virtualizer(v){pt(v),C()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),C()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),C()},$set:un,$on:(v,_e)=>hn(r,v,_e)},Le=To();let wt;var It=N(Le);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Ht)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return S()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var St=y(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=y(At);L(Ke),L(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(St,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(St=>K(Qe,St),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}L(Le),on(Le,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(Le,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(Le,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",Le,ie),sn("mouseleave",Le,De),sn("wheel",Le,He),ln("focusin",Le,jt),ln("focusout",Le,qt),w(f,Le);var mn=fn(Lt);return c(),mn}Cr(["focusin","focusout"]);function Sr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
2
2
  `):[],a=r?r.split(`
3
3
  `):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const S=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:S,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(Sr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=Sr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),S=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:S,headLines:F-S,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,S,A)=>{let F=S;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const S of b.lines)S.type==="Context"?(S.oldLineNumber!==void 0&&(a=p(r,a,S.oldLineNumber)),S.newLineNumber!==void 0&&(c=p(l,c,S.newLineNumber)),r.push(S.content),l.push(S.content),a++,c++):S.type==="Deletion"?(S.oldLineNumber!==void 0&&(a=p(r,a,S.oldLineNumber)),r.push(S.content),a++):S.type==="Addition"&&(S.newLineNumber!==void 0&&(c=p(l,c,S.newLineNumber)),l.push(S.content),c++)}return{oldContent:r.join(`
4
4
  `),newContent:l.join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BzJwOhb5.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CsY5Dftt.js","/app/immutable/chunks/BEwMx-58.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/9xo585Vy.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CplGIhI5.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/LNBns0B-.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/Bl3Cuor0.js","/app/immutable/chunks/B3Muoj7H.js","/app/immutable/chunks/CyczJyMt.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D4XZeMXl.js","/app/immutable/chunks/DQdDAxOz.js","/app/immutable/chunks/DQEQvBuM.js","/app/immutable/chunks/BIGXb0qV.js","/app/immutable/chunks/Gpf-ce3t.js","/app/immutable/chunks/BZKoidWB.js","/app/immutable/chunks/DvQWx7ZN.js","/app/immutable/chunks/Yy6hnibL.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/b16NDDfn.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/lEWu7gpF.js"])))=>i.map(i=>d[i]);
2
- import{bm as c,_ as p}from"./BEwMx-58.js";import{m as k}from"./Ah-onPNG.js";import"./3SdAC2_C.js";import"./CyczJyMt.js";import"./LNBns0B-.js";import{Q as A}from"./Bl3Cuor0.js";import"./ChTqQfQN.js";import"./BmQQcH5z.js";import{m as L,Jv as d,vI as g,vK as v}from"./9xo585Vy.js";import{a9 as R}from"./DQdDAxOz.js";import{selectCurrentWorkspaceTabId as P}from"./Be5foFms.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&I(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&I(a[0])&&I(a[2])&&I(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return k.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./BzJwOhb5.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:k.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?k.error(c.ui_linkHandler_notFound_title(),{description:n.message}):k.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./CsY5Dftt.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./lEWu7gpF.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./lEWu7gpF.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./lEWu7gpF.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./Bl3Cuor0.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bq_wOSEp.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Di8eJPr0.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Cxf6ur9F.js"])))=>i.map(i=>d[i]);
2
+ import{bm as c,_ as p}from"./C0QTy0Sy.js";import{m as k}from"./BmTMWrby.js";import"./3SdAC2_C.js";import"./7UPrdiE9.js";import"./CrD0jtXE.js";import{Q as A}from"./DCRuihKm.js";import"./ChTqQfQN.js";import"./B4SiDSWP.js";import{m as L,Jv as d,vI as g,vK as v}from"./tr-2J8Mf.js";import{a9 as R}from"./BaujsV9k.js";import{selectCurrentWorkspaceTabId as P}from"./S845NCb3.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=m(a.slice(1));else if(a.length>=3&&I(a[0])&&a[1]==="file")o=a[0],s="file",i=m(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&I(a[0])&&I(a[2])&&I(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),h=A(E+l);return i=m(h.path.split("/")),w=h.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function m(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!I(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function I(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return k.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./Bq_wOSEp.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:k.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?k.error(c.ui_linkHandler_notFound_title(),{description:n.message}):k.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Q(e,r){return R(e,r)}function Z(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./C6mS8uZB.js").then(o=>o.s);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./Cxf6ur9F.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./Cxf6ur9F.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./Cxf6ur9F.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([34,7,5,6,8,9,10,11,4,12,13,14,32,33]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./DCRuihKm.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,Z as createIntentLinkClickHandler,Q as generateNoteLink,T as handleIntentLink,W as parseIntentLink};