@intent-hq/web 2.313.1 → 2.315.0

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 (268) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Dz6YK0K2.js → -EpgQj88.js} +1 -1
  3. package/web/app/immutable/chunks/{Cbh1BCiS.js → 17xFUwtQ.js} +2 -2
  4. package/web/app/immutable/chunks/{DBUJXdXR.js → 1r2-2NoO.js} +1 -1
  5. package/web/app/immutable/chunks/{CICEz2Qq.js → 2UOzeX2M.js} +1 -1
  6. package/web/app/immutable/chunks/{B88eFHaH.js → 2j5TR93A.js} +1 -1
  7. package/web/app/immutable/chunks/{BE-b7v7R.js → 45Qi4YFf.js} +1 -1
  8. package/web/app/immutable/chunks/{DPG0D59v.js → 4GsjZWx0.js} +1 -1
  9. package/web/app/immutable/chunks/{Bl_iEh1f.js → 6Rt8MvWn.js} +1 -1
  10. package/web/app/immutable/chunks/{CbpiaYyP.js → 6vbvyEDW.js} +1 -1
  11. package/web/app/immutable/chunks/{XzWc0fs1.js → 82qiqofo.js} +1 -1
  12. package/web/app/immutable/chunks/{HWP1BG2L.js → 9CybJbHN.js} +1 -1
  13. package/web/app/immutable/chunks/{_4p7wl12.js → 9GP6SafJ.js} +1 -1
  14. package/web/app/immutable/chunks/{DQNmQX9F.js → AJN9mSFe.js} +1 -1
  15. package/web/app/immutable/chunks/{qcgLBz2O.js → AStlTL_B.js} +1 -1
  16. package/web/app/immutable/chunks/{DGAww3vc.js → B-2_r0A5.js} +1 -1
  17. package/web/app/immutable/chunks/{DvC622kv.js → B-7spAu4.js} +1 -1
  18. package/web/app/immutable/chunks/{C6L7wkhi.js → B-8kHUzd.js} +1 -1
  19. package/web/app/immutable/chunks/{DTMKqgRU.js → B-P4veSb.js} +1 -1
  20. package/web/app/immutable/chunks/{3V4Tx4nH.js → B1h0QCy7.js} +1 -1
  21. package/web/app/immutable/chunks/{CqzZhYYx.js → B2jOlwPp.js} +1 -1
  22. package/web/app/immutable/chunks/{DkrnUdRW.js → B36kU0RI.js} +2 -2
  23. package/web/app/immutable/chunks/B3iaLYr6.js +1 -0
  24. package/web/app/immutable/chunks/{BAssmU5H.js → B6MVuluU.js} +1 -1
  25. package/web/app/immutable/chunks/{1wCbR4ud.js → B6o2T7JU.js} +1 -1
  26. package/web/app/immutable/chunks/{nHQ6ExVj.js → B7ZHl5_Y.js} +1 -1
  27. package/web/app/immutable/chunks/{C11wqToa.js → B9pexpLt.js} +1 -1
  28. package/web/app/immutable/chunks/{Bf1tCDQg.js → B9xm9DK7.js} +1 -1
  29. package/web/app/immutable/chunks/{BRNfUSNR.js → BA8g-07b.js} +1 -1
  30. package/web/app/immutable/chunks/{DzfdD6YD.js → BDIALQgX.js} +1 -1
  31. package/web/app/immutable/chunks/{Ctl9Ux7T.js → BGkYz2ud.js} +1 -1
  32. package/web/app/immutable/chunks/{4wFlAApS.js → BHJ90Mf-.js} +1 -1
  33. package/web/app/immutable/chunks/{D62gE1G0.js → BI7cYdMD.js} +3 -3
  34. package/web/app/immutable/chunks/{q4Mp6azq.js → BKJB_6oY.js} +4 -4
  35. package/web/app/immutable/chunks/{BssmMBl2.js → BL1pyapR.js} +1 -1
  36. package/web/app/immutable/chunks/BLUkoS8T.js +2 -0
  37. package/web/app/immutable/chunks/{CN_VK1iL.js → BLyNH-U9.js} +1 -1
  38. package/web/app/immutable/chunks/{DijSalri.js → BM62R-OM.js} +1 -1
  39. package/web/app/immutable/chunks/{DH9gMPGd.js → BMMcARVk.js} +1 -1
  40. package/web/app/immutable/chunks/{B6mHy78M.js → BP6KtsDA.js} +1 -1
  41. package/web/app/immutable/chunks/{BW6fyv0T.js → BPhG_Xtj.js} +2 -2
  42. package/web/app/immutable/chunks/{COpjcilg.js → BQupMMp-.js} +1 -1
  43. package/web/app/immutable/chunks/{BNasdn-P.js → BS-r7N3W.js} +1 -1
  44. package/web/app/immutable/chunks/{Cop9b2dY.js → BS1nq856.js} +1 -1
  45. package/web/app/immutable/chunks/{DoCNcHnE.js → BTxL9if-.js} +3 -3
  46. package/web/app/immutable/chunks/{ZUZF8K3P.js → BW4xwD_u.js} +1 -1
  47. package/web/app/immutable/chunks/{By8e6LYt.js → BW4yj8m7.js} +1 -1
  48. package/web/app/immutable/chunks/{Cb6WrSKY.js → BWdRpmh3.js} +1 -1
  49. package/web/app/immutable/chunks/{usUeYWMe.js → BX6Kopvz.js} +1 -1
  50. package/web/app/immutable/chunks/{CoKEteoj.js → BYevJ1Pj.js} +1 -1
  51. package/web/app/immutable/chunks/{BgyuoEGq.js → BZmsmL8P.js} +1 -1
  52. package/web/app/immutable/chunks/{EEJgvLyS.js → BbGlxyDx.js} +1 -1
  53. package/web/app/immutable/chunks/{DxZSyekB.js → BcI-R0js.js} +1 -1
  54. package/web/app/immutable/chunks/{qr2Z9jBR.js → Bg4RpIu7.js} +1 -1
  55. package/web/app/immutable/chunks/{DulsjrO4.js → BhfbTmVQ.js} +1 -1
  56. package/web/app/immutable/chunks/{DmsGklpx.js → Bjzk9M3D.js} +1 -1
  57. package/web/app/immutable/chunks/{D47PZJI_.js → BkDFndY7.js} +1 -1
  58. package/web/app/immutable/chunks/{BaWcyleE.js → BlQxdvN2.js} +1 -1
  59. package/web/app/immutable/chunks/{D84mJH5u.js → BoXSGPEf.js} +2 -2
  60. package/web/app/immutable/chunks/{B8VhjfbW.js → Br9IA-Ja.js} +1 -1
  61. package/web/app/immutable/chunks/{OpYhygEs.js → BsB-PCKs.js} +1 -1
  62. package/web/app/immutable/chunks/{C-fnz5X4.js → BsZr4pOk.js} +1 -1
  63. package/web/app/immutable/chunks/{y_yPvfwh.js → BwdewdLu.js} +1 -1
  64. package/web/app/immutable/chunks/{NYwlcfYt.js → BzVDQRgL.js} +1 -1
  65. package/web/app/immutable/chunks/{CQbq623l.js → C-jm3uXv.js} +1 -1
  66. package/web/app/immutable/chunks/{D-8WC0DU.js → C3vS1byi.js} +1 -1
  67. package/web/app/immutable/chunks/{BMkc6ng0.js → C4C2GjZ7.js} +1 -1
  68. package/web/app/immutable/chunks/{CAn8DYJP.js → C5-HTPPK.js} +1 -1
  69. package/web/app/immutable/chunks/{BCoW5DN6.js → C5DgMO0u.js} +3 -3
  70. package/web/app/immutable/chunks/{Y6LratEc.js → C7ilG2WB.js} +1 -1
  71. package/web/app/immutable/chunks/{DNYGh_FV.js → C8LKnqUt.js} +1 -1
  72. package/web/app/immutable/chunks/CA0a6eNp.js +1 -0
  73. package/web/app/immutable/chunks/{UuiGcpAE.js → CBRfvExq.js} +1 -1
  74. package/web/app/immutable/chunks/{DESxr5Rj.js → CD3v15Ti.js} +1 -1
  75. package/web/app/immutable/chunks/{B_CpN824.js → CEoXgs7Q.js} +1 -1
  76. package/web/app/immutable/chunks/{BUjtm23k.js → CFrKPVp-.js} +1 -1
  77. package/web/app/immutable/chunks/{DkI_jPOw.js → CHXEA9Fi.js} +4 -4
  78. package/web/app/immutable/chunks/{C6aPQebU.js → CIOSdkrK.js} +1 -1
  79. package/web/app/immutable/chunks/{Io79CQwx.js → CIkNpS3P.js} +1 -1
  80. package/web/app/immutable/chunks/{CE8vXfAM.js → CJzNuuJO.js} +1 -1
  81. package/web/app/immutable/chunks/{DlKVdWHt.js → CLGCkXvY.js} +15 -15
  82. package/web/app/immutable/chunks/{BOQCK4ni.js → CLSvSGMY.js} +1 -1
  83. package/web/app/immutable/chunks/{C2m8Iivv.js → CLkwa_R_.js} +1 -1
  84. package/web/app/immutable/chunks/{C8_w7W1W.js → CMMABWQi.js} +1 -1
  85. package/web/app/immutable/chunks/{BRIkzo-E.js → CMqLPRJh.js} +1 -1
  86. package/web/app/immutable/chunks/{BjqGlL_Y.js → CPS8yuKp.js} +1 -1
  87. package/web/app/immutable/chunks/{CsTPrgDm.js → CPxyG9KJ.js} +3 -3
  88. package/web/app/immutable/chunks/{dX_oN6Xt.js → CS74N62e.js} +1 -1
  89. package/web/app/immutable/chunks/{CMvHzajx.js → CTKJUmq_.js} +1 -1
  90. package/web/app/immutable/chunks/{a6K5_NPk.js → CTX2aXUF.js} +1 -1
  91. package/web/app/immutable/chunks/{DsU6W5Yf.js → CUjmBXfD.js} +1 -1
  92. package/web/app/immutable/chunks/{yNufUFm8.js → CV9PEzoB.js} +1 -1
  93. package/web/app/immutable/chunks/{DFq6CFhq.js → CVr9pwFM.js} +1 -1
  94. package/web/app/immutable/chunks/{CTfHCA2Y.js → CXnUJFR2.js} +1 -1
  95. package/web/app/immutable/chunks/{Dvil1FCS.js → CZBUuakO.js} +2 -2
  96. package/web/app/immutable/chunks/{Bc2zOKbx.js → CZikPtVV.js} +1 -1
  97. package/web/app/immutable/chunks/{DD-f8Y3V.js → CfHhYnBc.js} +1 -1
  98. package/web/app/immutable/chunks/{BHqHNrOT.js → Ch8MPJbT.js} +1 -1
  99. package/web/app/immutable/chunks/{BtAYzBSd.js → ChLTaT6L.js} +1 -1
  100. package/web/app/immutable/chunks/{DUdpP1ED.js → CiJSzLSf.js} +1 -1
  101. package/web/app/immutable/chunks/{Bfc094Ub.js → CjCXWRTy.js} +1 -1
  102. package/web/app/immutable/chunks/{DwPGocEY.js → CjGoJ5M9.js} +2 -2
  103. package/web/app/immutable/chunks/{AGSVFpXc.js → Clc6wozH.js} +1 -1
  104. package/web/app/immutable/chunks/{CG-371Y6.js → ClgzRlxs.js} +1 -1
  105. package/web/app/immutable/chunks/{BIZcuYRW.js → CnodaVJ0.js} +2 -2
  106. package/web/app/immutable/chunks/{2O2vJlPl.js → Co0AVCAv.js} +1 -1
  107. package/web/app/immutable/chunks/{D-rJNj43.js → CoJeJSLc.js} +1 -1
  108. package/web/app/immutable/chunks/{C9gP-gRX.js → CpELl9t1.js} +3 -3
  109. package/web/app/immutable/chunks/{CXNySl0c.js → Cpn3qWfd.js} +1 -1
  110. package/web/app/immutable/chunks/{DOnT_3WY.js → CpnUYFMu.js} +1 -1
  111. package/web/app/immutable/chunks/{DO2cS8JO.js → CqSXeJtk.js} +1 -1
  112. package/web/app/immutable/chunks/{CWaCCzEn.js → CrskbTlC.js} +1 -1
  113. package/web/app/immutable/chunks/{D0Dsw2tV.js → Csa9LtrA.js} +1 -1
  114. package/web/app/immutable/chunks/{DgfdSIWo.js → Cso7NntT.js} +1 -1
  115. package/web/app/immutable/chunks/{CzRl1R1n.js → CtO7SsM-.js} +1 -1
  116. package/web/app/immutable/chunks/{DY6JypjK.js → Cti1rV_x.js} +3 -3
  117. package/web/app/immutable/chunks/{Bvq2wF7r.js → Cufik1EG.js} +1 -1
  118. package/web/app/immutable/chunks/{CBwn70Pq.js → Cuq9exmb.js} +1 -1
  119. package/web/app/immutable/chunks/{DAtBKOQq.js → CwR0GP6W.js} +1 -1
  120. package/web/app/immutable/chunks/{CYmZhCDN.js → Cwy3o6zK.js} +1 -1
  121. package/web/app/immutable/chunks/{hacdNVQl.js → Czd6tfZA.js} +1 -1
  122. package/web/app/immutable/chunks/{qIh42_HI.js → CzdJ5DN4.js} +1 -1
  123. package/web/app/immutable/chunks/{C-li4cfO.js → CzzsK_z0.js} +1 -1
  124. package/web/app/immutable/chunks/{D-XHjwsv.js → D-b9zJlt.js} +1 -1
  125. package/web/app/immutable/chunks/{B1YnvfKo.js → D0UXbQbI.js} +1 -1
  126. package/web/app/immutable/chunks/{7ZJvg7ev.js → D0UrvUQM.js} +1 -1
  127. package/web/app/immutable/chunks/{6rzwTXJx.js → D1h8l9Ve.js} +1 -1
  128. package/web/app/immutable/chunks/{BDGDJyji.js → D22I-TIV.js} +1 -1
  129. package/web/app/immutable/chunks/{DcYvv2Iw.js → D2QAvk7S.js} +1 -1
  130. package/web/app/immutable/chunks/{C5Nz-crT.js → D38Ru3z6.js} +1 -1
  131. package/web/app/immutable/chunks/{B2st7VbN.js → D43c7AFS.js} +1 -1
  132. package/web/app/immutable/chunks/{x8WBzABF.js → D441f0lY.js} +46 -46
  133. package/web/app/immutable/chunks/{BcVu_y1Z.js → D56XXK4f.js} +1 -1
  134. package/web/app/immutable/chunks/{DQRxUuCh.js → D5arKTNF.js} +1 -1
  135. package/web/app/immutable/chunks/{Bc3_ahSr.js → D60vJvLR.js} +1 -1
  136. package/web/app/immutable/chunks/{DNo4fphO.js → D8NOVJ50.js} +1 -1
  137. package/web/app/immutable/chunks/{C2Cq4c9l.js → D90jQ3ZZ.js} +1 -1
  138. package/web/app/immutable/chunks/{gsqPz4Y0.js → D9Da4bYx.js} +1 -1
  139. package/web/app/immutable/chunks/{tSV1knJu.js → DBOoSzzw.js} +1 -1
  140. package/web/app/immutable/chunks/{CzrG_lpv.js → DCPTVyDU.js} +21 -21
  141. package/web/app/immutable/chunks/{CW1tBVLY.js → DCdW5wmG.js} +1 -1
  142. package/web/app/immutable/chunks/{xfGEIVf6.js → DDIYUGOD.js} +1 -1
  143. package/web/app/immutable/chunks/{CQMd4GmI.js → DE0RJrWM.js} +1 -1
  144. package/web/app/immutable/chunks/{BPk16bSc.js → DEmaG7Ya.js} +1 -1
  145. package/web/app/immutable/chunks/{Ccf4dYFA.js → DGvAL7MJ.js} +1 -1
  146. package/web/app/immutable/chunks/{A3beYjJS.js → DHNO0898.js} +4 -4
  147. package/web/app/immutable/chunks/{CeQYwwry.js → DIYS_mcw.js} +1 -1
  148. package/web/app/immutable/chunks/{9sI_nbHm.js → DJZIU3cR.js} +1 -1
  149. package/web/app/immutable/chunks/DLueLf8l.js +4 -0
  150. package/web/app/immutable/chunks/{992RyGqf.js → DM1ZHS3Y.js} +1 -1
  151. package/web/app/immutable/chunks/{C6XSZJri.js → DMKbkua9.js} +1 -1
  152. package/web/app/immutable/chunks/DMkYHym4.js +324 -0
  153. package/web/app/immutable/chunks/{DUrqH6OL.js → DNFEdIdv.js} +1 -1
  154. package/web/app/immutable/chunks/{_bllxFVr.js → DNOlba2e.js} +1 -1
  155. package/web/app/immutable/chunks/{Cb7SCycF.js → DQ13AkOA.js} +1 -1
  156. package/web/app/immutable/chunks/{BVkJyN1U.js → DQHfY0wY.js} +2 -2
  157. package/web/app/immutable/chunks/{DWccAyE3.js → DRONnAVY.js} +1 -1
  158. package/web/app/immutable/chunks/{CcGPnEzl.js → DSyGSHPH.js} +1 -1
  159. package/web/app/immutable/chunks/{BESrHe_0.js → DTsLO4aV.js} +1 -1
  160. package/web/app/immutable/chunks/{CA7UZgrf.js → DUjsEo3X.js} +1 -1
  161. package/web/app/immutable/chunks/{AHQMxoVk.js → DV6UkZ5a.js} +1 -1
  162. package/web/app/immutable/chunks/DW_tfZdS.js +12 -0
  163. package/web/app/immutable/chunks/{aegF9YRH.js → DWhtEEhJ.js} +1 -1
  164. package/web/app/immutable/chunks/{DwgP_YcK.js → DXHWw6vt.js} +1 -1
  165. package/web/app/immutable/chunks/{CxO_9nE4.js → DXYkWPe_.js} +1 -1
  166. package/web/app/immutable/chunks/{Bc-8qHYh.js → DYlSkPA-.js} +1 -1
  167. package/web/app/immutable/chunks/{B6QJA3k0.js → DZhHioOL.js} +1 -1
  168. package/web/app/immutable/chunks/{CKWaKOqs.js → DaCSSt4n.js} +1 -1
  169. package/web/app/immutable/chunks/{4CMzT_BI.js → DbHbiWFj.js} +1 -1
  170. package/web/app/immutable/chunks/{DhAv1XMF.js → DbrsPlQk.js} +1 -1
  171. package/web/app/immutable/chunks/{TP4sXUzS.js → DcBvBE74.js} +1 -1
  172. package/web/app/immutable/chunks/{CKH-l4ig.js → Dd-BRJYG.js} +1 -1
  173. package/web/app/immutable/chunks/{DL9BUVq-.js → DdHsJ0nA.js} +1 -1
  174. package/web/app/immutable/chunks/{BDXCy3lH.js → Deg5jWhG.js} +1 -1
  175. package/web/app/immutable/chunks/DhLTyNrj.js +1 -0
  176. package/web/app/immutable/chunks/{DW9ZR5Up.js → DhZDbKoP.js} +1 -1
  177. package/web/app/immutable/chunks/{B2RRuLl5.js → Dj42fWMH.js} +1 -1
  178. package/web/app/immutable/chunks/{CCCBFmfe.js → DmYZE-MO.js} +3 -3
  179. package/web/app/immutable/chunks/{kdf0l6Z-.js → DnMKNs0X.js} +3 -3
  180. package/web/app/immutable/chunks/{DwbQaKgL.js → DnouAZbM.js} +1 -1
  181. package/web/app/immutable/chunks/{C0VJEx2v.js → Dr41JWYu.js} +1 -1
  182. package/web/app/immutable/chunks/{Bu6sHonm.js → DrxYPSVr.js} +1 -1
  183. package/web/app/immutable/chunks/DsAKyTjw.js +4 -0
  184. package/web/app/immutable/chunks/{D2uybU7F.js → DsRw0NLx.js} +2 -2
  185. package/web/app/immutable/chunks/DuQiXW7a.js +1 -0
  186. package/web/app/immutable/chunks/{CTX5Fuc9.js → Dvap-Bcg.js} +2 -2
  187. package/web/app/immutable/chunks/{DSOeLuN2.js → DxI6kRYN.js} +1 -1
  188. package/web/app/immutable/chunks/{CelhKzDn.js → DyHgOFFg.js} +1 -1
  189. package/web/app/immutable/chunks/{sg8Cer3T.js → E-3i0Fur.js} +3 -3
  190. package/web/app/immutable/chunks/FAATYx56.js +1 -0
  191. package/web/app/immutable/chunks/H0ZjbDhN.js +1 -0
  192. package/web/app/immutable/chunks/{CBzaXebB.js → HpMdkrj7.js} +1 -1
  193. package/web/app/immutable/chunks/{CJtH5G9P.js → IIdGbw6g.js} +1 -1
  194. package/web/app/immutable/chunks/{MgJqQwQp.js → JchQH-Q8.js} +1 -1
  195. package/web/app/immutable/chunks/{DSRwOSd4.js → Pb7J418u.js} +1 -1
  196. package/web/app/immutable/chunks/{BQFqw3YD.js → PeOOhaLn.js} +1 -1
  197. package/web/app/immutable/chunks/{C48G3Oh4.js → Q95-G3Tv.js} +1 -1
  198. package/web/app/immutable/chunks/{B-xGvc_0.js → QihShgnK.js} +1 -1
  199. package/web/app/immutable/chunks/{7IyNIHph.js → Swkg1pRS.js} +1 -1
  200. package/web/app/immutable/chunks/UWOPR8uY.js +2 -0
  201. package/web/app/immutable/chunks/{LSDVwgG8.js → Uxor6krE.js} +2 -2
  202. package/web/app/immutable/chunks/{C8PuI333.js → WVbSHjXl.js} +1 -1
  203. package/web/app/immutable/chunks/{DOzphY7c.js → ZaCkwnYl.js} +1 -1
  204. package/web/app/immutable/chunks/{qHcHiO2c.js → ZpSdOcUX.js} +1 -1
  205. package/web/app/immutable/chunks/{B0qtRhuw.js → _pUPWAkF.js} +1 -1
  206. package/web/app/immutable/chunks/{BGGxKX5q.js → bS-VFUYb.js} +1 -1
  207. package/web/app/immutable/chunks/cE62vW_i.js +2 -0
  208. package/web/app/immutable/chunks/{D9SqGY86.js → dRknRrDn.js} +1 -1
  209. package/web/app/immutable/chunks/{DKXEy5Lq.js → dUOQ5AaY.js} +1 -1
  210. package/web/app/immutable/chunks/{DYrH45vr.js → daoeIyG_.js} +1 -1
  211. package/web/app/immutable/chunks/{nt8jKVrH.js → dyJEvFNA.js} +1 -1
  212. package/web/app/immutable/chunks/{19F8thw1.js → eYob4ynm.js} +1 -1
  213. package/web/app/immutable/chunks/{AF5xKPfV.js → etKulcEH.js} +1 -1
  214. package/web/app/immutable/chunks/{ClfTOQ5L.js → fKsoycU6.js} +1 -1
  215. package/web/app/immutable/chunks/{Cpwl5RRn.js → gIgvBwPt.js} +1 -1
  216. package/web/app/immutable/chunks/h8IoI-w7.js +9 -0
  217. package/web/app/immutable/chunks/{DiCMHWTR.js → hUiIfi2t.js} +1 -1
  218. package/web/app/immutable/chunks/{BxiJOwnz.js → hYDzZ9as.js} +1 -1
  219. package/web/app/immutable/chunks/{CP06IBS7.js → i8qNDIdz.js} +1 -1
  220. package/web/app/immutable/chunks/{QCq950da.js → j-Hd81da.js} +1 -1
  221. package/web/app/immutable/chunks/{C1XicA-w.js → ja3pdsid.js} +1 -1
  222. package/web/app/immutable/chunks/{D4qqUzAr.js → jn5owXje.js} +1 -1
  223. package/web/app/immutable/chunks/{CBTot2K1.js → qmO_2WOw.js} +1 -1
  224. package/web/app/immutable/chunks/{MED7rLah.js → r3MPkSU0.js} +1 -1
  225. package/web/app/immutable/chunks/{jnmyog2T.js → tVfn9CHP.js} +1 -1
  226. package/web/app/immutable/chunks/{B3W2oJ3u.js → uDDQZzPe.js} +1 -1
  227. package/web/app/immutable/chunks/{dKjrvSqn.js → wc9xM_2L.js} +1 -1
  228. package/web/app/immutable/chunks/{Br5d6l04.js → yJa3kvR1.js} +1 -1
  229. package/web/app/immutable/chunks/{C6gBBEr6.js → ye8JXfxU.js} +1 -1
  230. package/web/app/immutable/entry/{app.BlqNT7Cr.js → app.rwgCwLre.js} +3 -3
  231. package/web/app/immutable/entry/start.CHX_XseY.js +1 -0
  232. package/web/app/immutable/nodes/{0.ShO9PneW.js → 0.CAiwn7VU.js} +1 -1
  233. package/web/app/immutable/nodes/{1.CWY9gUhn.js → 1.4C-qOEjD.js} +1 -1
  234. package/web/app/immutable/nodes/{10.BPcvGGhE.js → 10.CSnI2pUC.js} +1 -1
  235. package/web/app/immutable/nodes/{11.BtNxR4dm.js → 11.DeNilyai.js} +1 -1
  236. package/web/app/immutable/nodes/{12.DQmthXqN.js → 12.ySK4H8-2.js} +1 -1
  237. package/web/app/immutable/nodes/{13.pfWPVnQT.js → 13._q8cT7vQ.js} +3 -3
  238. package/web/app/immutable/nodes/{14.C46jjudj.js → 14.BVMi0m8a.js} +1 -1
  239. package/web/app/immutable/nodes/{15.CkuJDDnR.js → 15.DZYm8wgy.js} +1 -1
  240. package/web/app/immutable/nodes/{16.DxDrMp3A.js → 16.2kka0tX2.js} +2 -2
  241. package/web/app/immutable/nodes/{2.BY4xMtJS.js → 2.BOqim1UO.js} +4 -4
  242. package/web/app/immutable/nodes/{3.RPzUk4Sw.js → 3.rvoF1b9l.js} +1 -1
  243. package/web/app/immutable/nodes/{4.ZFgOw7Ux.js → 4.COWGFPUE.js} +1 -1
  244. package/web/app/immutable/nodes/5.ClB4PiMc.js +5 -0
  245. package/web/app/immutable/nodes/{6.BqCf3vb3.js → 6.B09HHXQ8.js} +1 -1
  246. package/web/app/immutable/nodes/{7.CJYSYpjI.js → 7.ivApEpSz.js} +1 -1
  247. package/web/app/immutable/nodes/8.BSIvYD1L.js +15 -0
  248. package/web/app/immutable/nodes/{9.p1SC8ote.js → 9.C9K9J_Xm.js} +5 -5
  249. package/web/app/version.json +1 -1
  250. package/web/generated/paraglide.js +49 -49
  251. package/web/index.html +18 -18
  252. package/web/app/immutable/chunks/-URcs0EB.js +0 -4
  253. package/web/app/immutable/chunks/2zKcFAvZ.js +0 -1
  254. package/web/app/immutable/chunks/B6Eksue8.js +0 -4
  255. package/web/app/immutable/chunks/BAqR9jtB.js +0 -1
  256. package/web/app/immutable/chunks/BSwWMzab.js +0 -9
  257. package/web/app/immutable/chunks/B_-1t0b5.js +0 -1
  258. package/web/app/immutable/chunks/C6krgOsR.js +0 -324
  259. package/web/app/immutable/chunks/C80u9j_3.js +0 -2
  260. package/web/app/immutable/chunks/CUPAS0zd.js +0 -1
  261. package/web/app/immutable/chunks/CZI4_vlI.js +0 -1
  262. package/web/app/immutable/chunks/C_KYY7ZK.js +0 -12
  263. package/web/app/immutable/chunks/D5XH3yqM.js +0 -2
  264. package/web/app/immutable/chunks/DChetNRi.js +0 -2
  265. package/web/app/immutable/chunks/jq7ACadW.js +0 -1
  266. package/web/app/immutable/entry/start.DaNUqzZq.js +0 -1
  267. package/web/app/immutable/nodes/5.BKaPpN7j.js +0 -5
  268. package/web/app/immutable/nodes/8.B_FmoLB7.js +0 -15
@@ -1 +1 @@
1
- import{a0 as Ot,l as xt,ao as Pt,aX as kt}from"./DYhIMPy1.js";import{B as St,_ as Tt}from"./BAqR9jtB.js";function en(t,e,...n){var r=new St(t);Ot(()=>{const a=e()??null;Pt&&a==null&&kt(),r.ensure(a,a&&(o=>a(o,...n)))},xt)}const Ft="system";function j(t){try{const e=new Intl.Locale(t).maximize();return{language:e.language??"",script:e.script??"",region:e.region??""}}catch{return null}}function dt(t,e){const n=t.toLowerCase();return e.find(r=>r.toLowerCase()===n)}function Wt(t,e,n){for(const r of t){if(typeof r!="string"||r.trim()==="")continue;const a=dt(r,e);if(a)return a;const o=j(r);if(!o||o.language==="")continue;const s=e.filter(u=>{const l=j(u);return l!==null&&l.language===o.language&&l.script===o.script});if(s.length>0)return s.find(l=>j(l)?.region===o.region)??s[0]}return n}function Yt(t,e,n,r){if(typeof t=="string"&&t.trim()!==""&&t!==Ft){const a=dt(t,n);if(a)return a}return Wt(e,n,r)}const U=globalThis.__INTENT_PARAGLIDE_I18N__.runtime,mt=U.baseLocale,lt=U.locales,Nt=(...t)=>U.overwriteGetLocale(...t),ht=6048e5,Et=864e5,H=43200,K=1440,Z=Symbol.for("constructDateFrom");function k(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Z in t?t[Z](e):t instanceof Date?new t.constructor(e):new Date(e)}function M(t,e){return k(e||t,t)}let Ct={};function A(){return Ct}function X(t,e){const n=A(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=M(t,e?.in),o=a.getDay(),s=(o<r?7:0)+o-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function R(t,e){return X(t,{...e,weekStartsOn:1})}function gt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=k(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=R(a),s=k(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=R(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function $(t){const e=M(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Q(t,...e){const n=k.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function tt(t,e){const n=M(t,e?.in);return n.setHours(0,0,0,0),n}function _t(t,e,n){const[r,a]=Q(n?.in,t,e),o=tt(r),s=tt(a),u=+o-$(o),l=+s-$(s);return Math.round((u-l)/Et)}function qt(t,e){const n=gt(t,e),r=k(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),R(r)}function L(t,e){const n=+M(t)-+M(e);return n<0?-1:n>0?1:n}function Xt(t){return k(t,Date.now())}function At(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function It(t){return!(!At(t)&&typeof t!="number"||isNaN(+M(t)))}function Ht(t,e,n){const[r,a]=Q(n?.in,t,e),o=r.getFullYear()-a.getFullYear(),s=r.getMonth()-a.getMonth();return o*12+s}function Lt(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Rt(t,e){return+M(t)-+M(e)}function $t(t,e){const n=M(t,e?.in);return n.setHours(23,59,59,999),n}function Gt(t,e){const n=M(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qt(t,e){const n=M(t,e?.in);return+$t(n,e)==+Gt(n,e)}function Bt(t,e,n){const[r,a,o]=Q(n?.in,t,t,e),s=L(a,o),u=Math.abs(Ht(a,o));if(u<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*u);let l=L(a,o)===-s;Qt(r)&&u===1&&L(r,o)===1&&(l=!1);const b=s*(u-+l);return b===0?0:b}function jt(t,e,n){const r=Rt(t,e)/1e3;return Lt(n?.roundingMethod)(r)}function Vt(t,e){const n=M(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Jt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zt=(t,e,n)=>{let r;const a=Jt[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function V(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ut={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te={date:V({formats:Ut,defaultWidth:"full"}),time:V({formats:Kt,defaultWidth:"full"}),dateTime:V({formats:Zt,defaultWidth:"full"})},ee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ne=(t,e,n,r)=>ee[t];function _(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):s;a=t.formattingValues[u]||t.formattingValues[s]}else{const s=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[s]}const o=t.argumentCallback?t.argumentCallback(e):e;return a[o]}}const re={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},se={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ce=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fe={ordinalNumber:ce,era:_({values:re,defaultWidth:"wide"}),quarter:_({values:ae,defaultWidth:"wide",argumentCallback:t=>t-1}),month:_({values:oe,defaultWidth:"wide"}),day:_({values:ie,defaultWidth:"wide"}),dayPeriod:_({values:se,defaultWidth:"wide",formattingValues:ue,defaultFormattingWidth:"wide"})};function q(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;const s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?me(u,g=>g.test(s)):de(u,g=>g.test(s));let b;b=t.valueCallback?t.valueCallback(l):l,b=n.valueCallback?n.valueCallback(b):b;const h=e.slice(s.length);return{value:b,rest:h}}}function de(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function me(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function le(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],o=e.match(t.parsePattern);if(!o)return null;let s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const u=e.slice(a.length);return{value:s,rest:u}}}const he=/^(\d+)(th|st|nd|rd)?/i,ge=/\d+/i,we={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ye={any:[/^b/i,/^(a|c)/i]},be={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Me={any:[/1/i,/2/i,/3/i,/4/i]},De={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ve={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ke={ordinalNumber:le({matchPattern:he,parsePattern:ge,valueCallback:t=>parseInt(t,10)}),era:q({matchPatterns:we,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),quarter:q({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any",valueCallback:t=>t+1}),month:q({matchPatterns:De,defaultMatchWidth:"wide",parsePatterns:pe,defaultParseWidth:"any"}),day:q({matchPatterns:ve,defaultMatchWidth:"wide",parsePatterns:Oe,defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:xe,defaultMatchWidth:"any",parsePatterns:Pe,defaultParseWidth:"any"})},wt={code:"en-US",formatDistance:zt,formatLong:te,formatRelative:ne,localize:fe,match:ke,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(t,e){const n=M(t,e?.in);return _t(n,Vt(n))+1}function Te(t,e){const n=M(t,e?.in),r=+R(n)-+qt(n);return Math.round(r/ht)+1}function yt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=A(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=k(e?.in||t,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const u=X(s,e),l=k(e?.in||t,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const b=X(l,e);return+n>=+u?r+1:+n>=+b?r:r-1}function Fe(t,e){const n=A(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=yt(t,e),o=k(e?.in||t,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),X(o,e)}function We(t,e){const n=M(t,e?.in),r=+X(n,e)-+Fe(n,e);return Math.round(r/ht)+1}function m(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const F={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return m(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):m(n+1,2)},d(t,e){return m(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return m(t.getHours()%12||12,e.length)},H(t,e){return m(t.getHours(),e.length)},m(t,e){return m(t.getMinutes(),e.length)},s(t,e){return m(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return m(a,e.length)}},C={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},et={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return F.y(t,e)},Y:function(t,e,n,r){const a=yt(t,r),o=a>0?a:1-a;if(e==="YY"){const s=o%100;return m(s,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):m(o,e.length)},R:function(t,e){const n=gt(t);return m(n,e.length)},u:function(t,e){const n=t.getFullYear();return m(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return F.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=We(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):m(a,e.length)},I:function(t,e,n){const r=Te(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):m(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):F.d(t,e)},D:function(t,e,n){const r=Se(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return m(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return m(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return m(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=C.noon:r===0?a=C.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=C.evening:r>=12?a=C.afternoon:r>=4?a=C.morning:a=C.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return F.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):F.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):F.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):F.s(t,e)},S:function(t,e){return F.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return rt(r);case"XXXX":case"XX":return N(r);case"XXXXX":case"XXX":default:return N(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return rt(r);case"xxxx":case"xx":return N(r);case"xxxxx":case"xxx":default:return N(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nt(r,":");case"OOOO":default:return"GMT"+N(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nt(r,":");case"zzzz":default:return"GMT"+N(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return m(r,e.length)},T:function(t,e,n){return m(+t,e.length)}};function nt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+e+m(o,2)}function rt(t,e){return t%60===0?(t>0?"-":"+")+m(Math.abs(t)/60,2):N(t,e)}function N(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=m(Math.trunc(r/60),2),o=m(r%60,2);return n+a+e+o}const at=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},bt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Ye=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return at(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",at(r,e)).replace("{{time}}",bt(a,e))},Ne={p:bt,P:Ye},Ee=/^D+$/,Ce=/^Y+$/,_e=["D","DD","YY","YYYY"];function qe(t){return Ee.test(t)}function Xe(t){return Ce.test(t)}function Ae(t,e,n){const r=Ie(t,e,n);if(console.warn(r),_e.includes(t))throw new RangeError(r)}function Ie(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const He=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,$e=/''/g,Ge=/[a-zA-Z]/;function Qe(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=M(t,n?.in);if(!It(u))throw new RangeError("Invalid time value");let l=e.match(Le).map(h=>{const g=h[0];if(g==="p"||g==="P"){const w=Ne[g];return w(h,a.formatLong)}return h}).join("").match(He).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const g=h[0];if(g==="'")return{isToken:!1,value:Be(h)};if(et[g])return{isToken:!0,value:h};if(g.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(l=a.localize.preprocessor(u,l));const b={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return l.map(h=>{if(!h.isToken)return h.value;const g=h.value;(!n?.useAdditionalWeekYearTokens&&Xe(g)||!n?.useAdditionalDayOfYearTokens&&qe(g))&&Ae(g,e,String(t));const w=et[g[0]];return w(u,g,a.localize,b)}).join("")}function Be(t){const e=t.match(Re);return e?e[1].replace($e,"'"):t}function je(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=2520,s=L(t,e);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[l,b]=Q(n?.in,...s>0?[e,t]:[t,e]),h=jt(b,l),g=($(b)-$(l))/1e3,w=Math.round((h-g)/60);let S;if(w<2)return n?.includeSeconds?h<5?a.formatDistance("lessThanXSeconds",5,u):h<10?a.formatDistance("lessThanXSeconds",10,u):h<20?a.formatDistance("lessThanXSeconds",20,u):h<40?a.formatDistance("halfAMinute",0,u):h<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):w===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",w,u);if(w<45)return a.formatDistance("xMinutes",w,u);if(w<90)return a.formatDistance("aboutXHours",1,u);if(w<K){const x=Math.round(w/60);return a.formatDistance("aboutXHours",x,u)}else{if(w<o)return a.formatDistance("xDays",1,u);if(w<H){const x=Math.round(w/K);return a.formatDistance("xDays",x,u)}else if(w<H*2)return S=Math.round(w/H),a.formatDistance("aboutXMonths",S,u)}if(S=Bt(b,l),S<12){const x=Math.round(w/H);return a.formatDistance("xMonths",x,u)}else{const x=S%12,E=Math.trunc(S/12);return x<3?a.formatDistance("aboutXYears",E,u):x<9?a.formatDistance("overXYears",E,u):a.formatDistance("almostXYears",E+1,u)}}function Ve(t,e){return je(t,Xt(t),e)}const ot=new Map,it=new Map,st=new Map;function P(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=ot.get(n);return r||(r=new Intl.NumberFormat(t,e),ot.set(n,r)),r}function Y(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=it.get(n);return r||(r=new Intl.DateTimeFormat(t,e),it.set(n,r)),r}function J(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=st.get(n);return r||(r=new Intl.RelativeTimeFormat(t,e),st.set(n,r)),r}const z=new Map;async function Je(t){if(t==="en"||z.has(t))return;const e=await Tt(()=>import("./C48G3Oh4.js"),[],import.meta.url),[n]=t.split("-"),a=[t.replace(/-/g,""),n].map(o=>e[o]).find(o=>o!=null&&typeof o=="object");z.set(t,a)}function ut(t){return z.get(t)}function O(t){const e=t instanceof Date?t:new Date(t);return Number.isNaN(e.getTime())?null:e}function ze(t){const e=Math.round(t/1e3),n=Math.abs(e);if(n<10)return{value:0,unit:"second"};if(n<60)return{value:e,unit:"second"};const r=Math.trunc(e/60);if(Math.abs(r)<60)return{value:r,unit:"minute"};const a=Math.trunc(e/3600);if(Math.abs(a)<24)return{value:a,unit:"hour"};const o=Math.trunc(e/86400);if(Math.abs(o)<7)return{value:o,unit:"day"};if(Math.abs(o)<30)return{value:Math.trunc(o/7),unit:"week"};const s=Math.trunc(o/30);return Math.abs(s)<12?{value:s,unit:"month"}:{value:Math.trunc(o/365),unit:"year"}}function ct(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function ft(t,e){return t.charAt(0).toLocaleUpperCase(e)+t.slice(1)}function nn(t){function e(c,f){return P(t(),f??{}).format(c)}function n(c){return Number.isFinite(c)?P(t(),{maximumFractionDigits:0}).format(c):"0"}function r(c,f){if(!Number.isFinite(c))return n(0);const i=f?.maximumFractionDigits??(Math.abs(c)<1e3?0:1);return P(t(),{notation:"compact",compactDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:i}).format(c)}function a(c,f,i){if(!Number.isFinite(c))return"";const d=t(),y=c!==0&&Math.abs(c)<1,D=i?.fractionDigits!==void 0?{minimumFractionDigits:i.fractionDigits,maximumFractionDigits:i.fractionDigits}:y?{minimumFractionDigits:2,maximumFractionDigits:4}:{};try{return P(d,{style:"currency",currency:f,...D}).format(c)}catch{return`${P(d,{minimumFractionDigits:i?.fractionDigits??2,maximumFractionDigits:i?.fractionDigits??(y?4:2)}).format(c)} ${f}`}}function o(c){if(!Number.isFinite(c)||c<0)return"";const f=["B","Ki","Mi","Gi","Ti"];let i=c,d=0;for(;i>=1024&&d<f.length-1;)i/=1024,d++;return`${P(t(),{maximumSignificantDigits:3,useGrouping:!1}).format(i)}${f[d]}`}function s(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,{value:y,unit:D}=ze(i.getTime()-d.getTime());return J(t(),{numeric:"auto",style:f?.style==="narrow"?"narrow":"long"}).format(y,D)}function u(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=d.getTime()-i.getTime(),p=Math.floor(D/6e4),v=(B,vt)=>P(y,{style:"unit",unit:B,unitDisplay:"narrow"}).format(vt);if(D<=0)return J(y,{numeric:"auto"}).format(0,"second");if(p<1)return v("second",Math.floor(D/1e3));if(p<60)return v("minute",p);const T=Math.floor(p/60);if(T<24)return v("hour",T);const W=Math.floor(T/24);if(W<7)return v("day",W);const I=Math.floor(W/7);return I<5?v("week",I):w(i,{now:d})}function l(c){if(!Number.isFinite(c))return"";const f=t(),i=(I,B)=>P(f,{style:"unit",unit:I,unitDisplay:"narrow"}).format(B),d=Math.max(0,Math.round(c/1e3)),y=d%60,D=Math.floor(d/60);if(D===0)return i("second",y);const p=D%60,v=Math.floor(D/60);if(v===0)return y===0?i("minute",p):`${i("minute",p)} ${i("second",y)}`;const T=v%24,W=Math.floor(v/24);return W===0?p===0?i("hour",T):`${i("hour",T)} ${i("minute",p)}`:T===0?i("day",W):`${i("day",W)} ${i("hour",T)}`}function b(c){if(!Number.isFinite(c))return"";const f=t(),i=(y,D)=>P(f,{style:"unit",unit:y,unitDisplay:"narrow"}).format(D),d=Math.max(0,c);return d<6e4?i("second",Math.round(d/1e3)):d<36e5?i("minute",Math.floor(d/6e4)):d<864e5?i("hour",Math.floor(d/36e5)):i("day",Math.floor(d/864e5))}function h(c,f){const i=O(c);if(!i)return"";const d=f?.seconds?{hour:"2-digit",minute:"2-digit",second:"2-digit"}:{hour:"numeric",minute:"2-digit"};return Y(t(),d).format(i)}function g(c){const f=O(c);return f?Y(t(),{dateStyle:"medium"}).format(f):""}function w(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=i.getFullYear()===d.getFullYear();return Y(t(),{month:"short",day:"numeric",...y?{}:{year:"numeric"}}).format(i)}function S(c){const f=O(c);return f?Y(t(),{dateStyle:"medium",timeStyle:"short"}).format(f):""}function x(c){const f=O(c);return f?Y(t(),{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(f):""}function E(c){const f=O(c);return f?Y(t(),{weekday:"long"}).format(f):""}function Mt(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=J(y,{numeric:"auto"});if(ct(i,d))return ft(D.format(0,"day"),y);const p=new Date(d);if(p.setDate(p.getDate()-1),ct(i,p))return ft(D.format(-1,"day"),y);const v=new Date(d);return v.setDate(v.getDate()-7),i>v&&i<d?E(i):Y(y,{weekday:"long",month:"long",day:"numeric",...i.getFullYear()===d.getFullYear()?{}:{year:"numeric"}}).format(i)}function Dt(c,f){const i=O(c);return i?Ve(i,{addSuffix:f?.addSuffix??!0,locale:ut(t())}):""}function pt(c,f){const i=O(c);return i?Qe(i,f,{locale:ut(t())}):""}return{formatNumber:e,formatInteger:n,formatCompactNumber:r,formatCurrency:a,formatBytesBinary:o,formatRelativeTime:s,formatCompactRelativeTime:u,formatCompactDuration:l,formatSalientDuration:b,formatTime:h,formatDate:g,formatShortDate:w,formatDateTime:S,formatFullDateTime:x,formatWeekday:E,formatDaySeparator:Mt,formatDistanceToNow:Dt,formatDatePattern:pt}}let G=mt;Nt(()=>G);function Ue(){return typeof navigator>"u"?[]:Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages:navigator.language?[navigator.language]:[]}function rn(){return lt}function Ke(t){return Yt(t,Ue(),lt,mt)}function an(t){G=Ke(t),Je(G)}function on(){return G}function sn(t){let e=t;try{const n=new Intl.Locale(t).maximize();n.language==="zh"&&n.script&&(e=`zh-${n.script}`)}catch{}try{const n=new Intl.DisplayNames([t],{type:"language"}).of(e);if(n&&n!==e)return n.charAt(0).toLocaleUpperCase(t)+n.slice(1)}catch{}return t}export{Ft as S,an as a,V as b,_ as c,q as d,le as e,nn as f,_t as g,wt as h,zt as i,ne as j,on as k,rn as l,sn as m,lt as n,fe as o,ke as p,Q as q,Ke as r,en as s,X as t,M as u};
1
+ import{a0 as Ot,l as xt,ao as Pt,aX as kt}from"./DYhIMPy1.js";import{B as St,_ as Tt}from"./B3iaLYr6.js";function en(t,e,...n){var r=new St(t);Ot(()=>{const a=e()??null;Pt&&a==null&&kt(),r.ensure(a,a&&(o=>a(o,...n)))},xt)}const Ft="system";function j(t){try{const e=new Intl.Locale(t).maximize();return{language:e.language??"",script:e.script??"",region:e.region??""}}catch{return null}}function dt(t,e){const n=t.toLowerCase();return e.find(r=>r.toLowerCase()===n)}function Wt(t,e,n){for(const r of t){if(typeof r!="string"||r.trim()==="")continue;const a=dt(r,e);if(a)return a;const o=j(r);if(!o||o.language==="")continue;const s=e.filter(u=>{const l=j(u);return l!==null&&l.language===o.language&&l.script===o.script});if(s.length>0)return s.find(l=>j(l)?.region===o.region)??s[0]}return n}function Yt(t,e,n,r){if(typeof t=="string"&&t.trim()!==""&&t!==Ft){const a=dt(t,n);if(a)return a}return Wt(e,n,r)}const U=globalThis.__INTENT_PARAGLIDE_I18N__.runtime,mt=U.baseLocale,lt=U.locales,Nt=(...t)=>U.overwriteGetLocale(...t),ht=6048e5,Et=864e5,H=43200,K=1440,Z=Symbol.for("constructDateFrom");function k(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Z in t?t[Z](e):t instanceof Date?new t.constructor(e):new Date(e)}function M(t,e){return k(e||t,t)}let Ct={};function A(){return Ct}function X(t,e){const n=A(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=M(t,e?.in),o=a.getDay(),s=(o<r?7:0)+o-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function R(t,e){return X(t,{...e,weekStartsOn:1})}function gt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=k(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=R(a),s=k(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=R(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function $(t){const e=M(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Q(t,...e){const n=k.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function tt(t,e){const n=M(t,e?.in);return n.setHours(0,0,0,0),n}function _t(t,e,n){const[r,a]=Q(n?.in,t,e),o=tt(r),s=tt(a),u=+o-$(o),l=+s-$(s);return Math.round((u-l)/Et)}function qt(t,e){const n=gt(t,e),r=k(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),R(r)}function L(t,e){const n=+M(t)-+M(e);return n<0?-1:n>0?1:n}function Xt(t){return k(t,Date.now())}function At(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function It(t){return!(!At(t)&&typeof t!="number"||isNaN(+M(t)))}function Ht(t,e,n){const[r,a]=Q(n?.in,t,e),o=r.getFullYear()-a.getFullYear(),s=r.getMonth()-a.getMonth();return o*12+s}function Lt(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Rt(t,e){return+M(t)-+M(e)}function $t(t,e){const n=M(t,e?.in);return n.setHours(23,59,59,999),n}function Gt(t,e){const n=M(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qt(t,e){const n=M(t,e?.in);return+$t(n,e)==+Gt(n,e)}function Bt(t,e,n){const[r,a,o]=Q(n?.in,t,t,e),s=L(a,o),u=Math.abs(Ht(a,o));if(u<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*u);let l=L(a,o)===-s;Qt(r)&&u===1&&L(r,o)===1&&(l=!1);const b=s*(u-+l);return b===0?0:b}function jt(t,e,n){const r=Rt(t,e)/1e3;return Lt(n?.roundingMethod)(r)}function Vt(t,e){const n=M(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Jt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zt=(t,e,n)=>{let r;const a=Jt[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function V(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ut={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te={date:V({formats:Ut,defaultWidth:"full"}),time:V({formats:Kt,defaultWidth:"full"}),dateTime:V({formats:Zt,defaultWidth:"full"})},ee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ne=(t,e,n,r)=>ee[t];function _(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):s;a=t.formattingValues[u]||t.formattingValues[s]}else{const s=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[s]}const o=t.argumentCallback?t.argumentCallback(e):e;return a[o]}}const re={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},se={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ce=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fe={ordinalNumber:ce,era:_({values:re,defaultWidth:"wide"}),quarter:_({values:ae,defaultWidth:"wide",argumentCallback:t=>t-1}),month:_({values:oe,defaultWidth:"wide"}),day:_({values:ie,defaultWidth:"wide"}),dayPeriod:_({values:se,defaultWidth:"wide",formattingValues:ue,defaultFormattingWidth:"wide"})};function q(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;const s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?me(u,g=>g.test(s)):de(u,g=>g.test(s));let b;b=t.valueCallback?t.valueCallback(l):l,b=n.valueCallback?n.valueCallback(b):b;const h=e.slice(s.length);return{value:b,rest:h}}}function de(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function me(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function le(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],o=e.match(t.parsePattern);if(!o)return null;let s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const u=e.slice(a.length);return{value:s,rest:u}}}const he=/^(\d+)(th|st|nd|rd)?/i,ge=/\d+/i,we={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ye={any:[/^b/i,/^(a|c)/i]},be={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Me={any:[/1/i,/2/i,/3/i,/4/i]},De={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ve={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ke={ordinalNumber:le({matchPattern:he,parsePattern:ge,valueCallback:t=>parseInt(t,10)}),era:q({matchPatterns:we,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),quarter:q({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any",valueCallback:t=>t+1}),month:q({matchPatterns:De,defaultMatchWidth:"wide",parsePatterns:pe,defaultParseWidth:"any"}),day:q({matchPatterns:ve,defaultMatchWidth:"wide",parsePatterns:Oe,defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:xe,defaultMatchWidth:"any",parsePatterns:Pe,defaultParseWidth:"any"})},wt={code:"en-US",formatDistance:zt,formatLong:te,formatRelative:ne,localize:fe,match:ke,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(t,e){const n=M(t,e?.in);return _t(n,Vt(n))+1}function Te(t,e){const n=M(t,e?.in),r=+R(n)-+qt(n);return Math.round(r/ht)+1}function yt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=A(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=k(e?.in||t,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const u=X(s,e),l=k(e?.in||t,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const b=X(l,e);return+n>=+u?r+1:+n>=+b?r:r-1}function Fe(t,e){const n=A(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=yt(t,e),o=k(e?.in||t,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),X(o,e)}function We(t,e){const n=M(t,e?.in),r=+X(n,e)-+Fe(n,e);return Math.round(r/ht)+1}function m(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const F={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return m(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):m(n+1,2)},d(t,e){return m(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return m(t.getHours()%12||12,e.length)},H(t,e){return m(t.getHours(),e.length)},m(t,e){return m(t.getMinutes(),e.length)},s(t,e){return m(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return m(a,e.length)}},C={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},et={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return F.y(t,e)},Y:function(t,e,n,r){const a=yt(t,r),o=a>0?a:1-a;if(e==="YY"){const s=o%100;return m(s,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):m(o,e.length)},R:function(t,e){const n=gt(t);return m(n,e.length)},u:function(t,e){const n=t.getFullYear();return m(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return F.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=We(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):m(a,e.length)},I:function(t,e,n){const r=Te(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):m(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):F.d(t,e)},D:function(t,e,n){const r=Se(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return m(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return m(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return m(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=C.noon:r===0?a=C.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=C.evening:r>=12?a=C.afternoon:r>=4?a=C.morning:a=C.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return F.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):F.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):F.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):F.s(t,e)},S:function(t,e){return F.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return rt(r);case"XXXX":case"XX":return N(r);case"XXXXX":case"XXX":default:return N(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return rt(r);case"xxxx":case"xx":return N(r);case"xxxxx":case"xxx":default:return N(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nt(r,":");case"OOOO":default:return"GMT"+N(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nt(r,":");case"zzzz":default:return"GMT"+N(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return m(r,e.length)},T:function(t,e,n){return m(+t,e.length)}};function nt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+e+m(o,2)}function rt(t,e){return t%60===0?(t>0?"-":"+")+m(Math.abs(t)/60,2):N(t,e)}function N(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=m(Math.trunc(r/60),2),o=m(r%60,2);return n+a+e+o}const at=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},bt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Ye=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return at(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",at(r,e)).replace("{{time}}",bt(a,e))},Ne={p:bt,P:Ye},Ee=/^D+$/,Ce=/^Y+$/,_e=["D","DD","YY","YYYY"];function qe(t){return Ee.test(t)}function Xe(t){return Ce.test(t)}function Ae(t,e,n){const r=Ie(t,e,n);if(console.warn(r),_e.includes(t))throw new RangeError(r)}function Ie(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const He=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,$e=/''/g,Ge=/[a-zA-Z]/;function Qe(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=M(t,n?.in);if(!It(u))throw new RangeError("Invalid time value");let l=e.match(Le).map(h=>{const g=h[0];if(g==="p"||g==="P"){const w=Ne[g];return w(h,a.formatLong)}return h}).join("").match(He).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const g=h[0];if(g==="'")return{isToken:!1,value:Be(h)};if(et[g])return{isToken:!0,value:h};if(g.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(l=a.localize.preprocessor(u,l));const b={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return l.map(h=>{if(!h.isToken)return h.value;const g=h.value;(!n?.useAdditionalWeekYearTokens&&Xe(g)||!n?.useAdditionalDayOfYearTokens&&qe(g))&&Ae(g,e,String(t));const w=et[g[0]];return w(u,g,a.localize,b)}).join("")}function Be(t){const e=t.match(Re);return e?e[1].replace($e,"'"):t}function je(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=2520,s=L(t,e);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[l,b]=Q(n?.in,...s>0?[e,t]:[t,e]),h=jt(b,l),g=($(b)-$(l))/1e3,w=Math.round((h-g)/60);let S;if(w<2)return n?.includeSeconds?h<5?a.formatDistance("lessThanXSeconds",5,u):h<10?a.formatDistance("lessThanXSeconds",10,u):h<20?a.formatDistance("lessThanXSeconds",20,u):h<40?a.formatDistance("halfAMinute",0,u):h<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):w===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",w,u);if(w<45)return a.formatDistance("xMinutes",w,u);if(w<90)return a.formatDistance("aboutXHours",1,u);if(w<K){const x=Math.round(w/60);return a.formatDistance("aboutXHours",x,u)}else{if(w<o)return a.formatDistance("xDays",1,u);if(w<H){const x=Math.round(w/K);return a.formatDistance("xDays",x,u)}else if(w<H*2)return S=Math.round(w/H),a.formatDistance("aboutXMonths",S,u)}if(S=Bt(b,l),S<12){const x=Math.round(w/H);return a.formatDistance("xMonths",x,u)}else{const x=S%12,E=Math.trunc(S/12);return x<3?a.formatDistance("aboutXYears",E,u):x<9?a.formatDistance("overXYears",E,u):a.formatDistance("almostXYears",E+1,u)}}function Ve(t,e){return je(t,Xt(t),e)}const ot=new Map,it=new Map,st=new Map;function P(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=ot.get(n);return r||(r=new Intl.NumberFormat(t,e),ot.set(n,r)),r}function Y(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=it.get(n);return r||(r=new Intl.DateTimeFormat(t,e),it.set(n,r)),r}function J(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=st.get(n);return r||(r=new Intl.RelativeTimeFormat(t,e),st.set(n,r)),r}const z=new Map;async function Je(t){if(t==="en"||z.has(t))return;const e=await Tt(()=>import("./Q95-G3Tv.js"),[],import.meta.url),[n]=t.split("-"),a=[t.replace(/-/g,""),n].map(o=>e[o]).find(o=>o!=null&&typeof o=="object");z.set(t,a)}function ut(t){return z.get(t)}function O(t){const e=t instanceof Date?t:new Date(t);return Number.isNaN(e.getTime())?null:e}function ze(t){const e=Math.round(t/1e3),n=Math.abs(e);if(n<10)return{value:0,unit:"second"};if(n<60)return{value:e,unit:"second"};const r=Math.trunc(e/60);if(Math.abs(r)<60)return{value:r,unit:"minute"};const a=Math.trunc(e/3600);if(Math.abs(a)<24)return{value:a,unit:"hour"};const o=Math.trunc(e/86400);if(Math.abs(o)<7)return{value:o,unit:"day"};if(Math.abs(o)<30)return{value:Math.trunc(o/7),unit:"week"};const s=Math.trunc(o/30);return Math.abs(s)<12?{value:s,unit:"month"}:{value:Math.trunc(o/365),unit:"year"}}function ct(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function ft(t,e){return t.charAt(0).toLocaleUpperCase(e)+t.slice(1)}function nn(t){function e(c,f){return P(t(),f??{}).format(c)}function n(c){return Number.isFinite(c)?P(t(),{maximumFractionDigits:0}).format(c):"0"}function r(c,f){if(!Number.isFinite(c))return n(0);const i=f?.maximumFractionDigits??(Math.abs(c)<1e3?0:1);return P(t(),{notation:"compact",compactDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:i}).format(c)}function a(c,f,i){if(!Number.isFinite(c))return"";const d=t(),y=c!==0&&Math.abs(c)<1,D=i?.fractionDigits!==void 0?{minimumFractionDigits:i.fractionDigits,maximumFractionDigits:i.fractionDigits}:y?{minimumFractionDigits:2,maximumFractionDigits:4}:{};try{return P(d,{style:"currency",currency:f,...D}).format(c)}catch{return`${P(d,{minimumFractionDigits:i?.fractionDigits??2,maximumFractionDigits:i?.fractionDigits??(y?4:2)}).format(c)} ${f}`}}function o(c){if(!Number.isFinite(c)||c<0)return"";const f=["B","Ki","Mi","Gi","Ti"];let i=c,d=0;for(;i>=1024&&d<f.length-1;)i/=1024,d++;return`${P(t(),{maximumSignificantDigits:3,useGrouping:!1}).format(i)}${f[d]}`}function s(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,{value:y,unit:D}=ze(i.getTime()-d.getTime());return J(t(),{numeric:"auto",style:f?.style==="narrow"?"narrow":"long"}).format(y,D)}function u(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=d.getTime()-i.getTime(),p=Math.floor(D/6e4),v=(B,vt)=>P(y,{style:"unit",unit:B,unitDisplay:"narrow"}).format(vt);if(D<=0)return J(y,{numeric:"auto"}).format(0,"second");if(p<1)return v("second",Math.floor(D/1e3));if(p<60)return v("minute",p);const T=Math.floor(p/60);if(T<24)return v("hour",T);const W=Math.floor(T/24);if(W<7)return v("day",W);const I=Math.floor(W/7);return I<5?v("week",I):w(i,{now:d})}function l(c){if(!Number.isFinite(c))return"";const f=t(),i=(I,B)=>P(f,{style:"unit",unit:I,unitDisplay:"narrow"}).format(B),d=Math.max(0,Math.round(c/1e3)),y=d%60,D=Math.floor(d/60);if(D===0)return i("second",y);const p=D%60,v=Math.floor(D/60);if(v===0)return y===0?i("minute",p):`${i("minute",p)} ${i("second",y)}`;const T=v%24,W=Math.floor(v/24);return W===0?p===0?i("hour",T):`${i("hour",T)} ${i("minute",p)}`:T===0?i("day",W):`${i("day",W)} ${i("hour",T)}`}function b(c){if(!Number.isFinite(c))return"";const f=t(),i=(y,D)=>P(f,{style:"unit",unit:y,unitDisplay:"narrow"}).format(D),d=Math.max(0,c);return d<6e4?i("second",Math.round(d/1e3)):d<36e5?i("minute",Math.floor(d/6e4)):d<864e5?i("hour",Math.floor(d/36e5)):i("day",Math.floor(d/864e5))}function h(c,f){const i=O(c);if(!i)return"";const d=f?.seconds?{hour:"2-digit",minute:"2-digit",second:"2-digit"}:{hour:"numeric",minute:"2-digit"};return Y(t(),d).format(i)}function g(c){const f=O(c);return f?Y(t(),{dateStyle:"medium"}).format(f):""}function w(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=i.getFullYear()===d.getFullYear();return Y(t(),{month:"short",day:"numeric",...y?{}:{year:"numeric"}}).format(i)}function S(c){const f=O(c);return f?Y(t(),{dateStyle:"medium",timeStyle:"short"}).format(f):""}function x(c){const f=O(c);return f?Y(t(),{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(f):""}function E(c){const f=O(c);return f?Y(t(),{weekday:"long"}).format(f):""}function Mt(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=J(y,{numeric:"auto"});if(ct(i,d))return ft(D.format(0,"day"),y);const p=new Date(d);if(p.setDate(p.getDate()-1),ct(i,p))return ft(D.format(-1,"day"),y);const v=new Date(d);return v.setDate(v.getDate()-7),i>v&&i<d?E(i):Y(y,{weekday:"long",month:"long",day:"numeric",...i.getFullYear()===d.getFullYear()?{}:{year:"numeric"}}).format(i)}function Dt(c,f){const i=O(c);return i?Ve(i,{addSuffix:f?.addSuffix??!0,locale:ut(t())}):""}function pt(c,f){const i=O(c);return i?Qe(i,f,{locale:ut(t())}):""}return{formatNumber:e,formatInteger:n,formatCompactNumber:r,formatCurrency:a,formatBytesBinary:o,formatRelativeTime:s,formatCompactRelativeTime:u,formatCompactDuration:l,formatSalientDuration:b,formatTime:h,formatDate:g,formatShortDate:w,formatDateTime:S,formatFullDateTime:x,formatWeekday:E,formatDaySeparator:Mt,formatDistanceToNow:Dt,formatDatePattern:pt}}let G=mt;Nt(()=>G);function Ue(){return typeof navigator>"u"?[]:Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages:navigator.language?[navigator.language]:[]}function rn(){return lt}function Ke(t){return Yt(t,Ue(),lt,mt)}function an(t){G=Ke(t),Je(G)}function on(){return G}function sn(t){let e=t;try{const n=new Intl.Locale(t).maximize();n.language==="zh"&&n.script&&(e=`zh-${n.script}`)}catch{}try{const n=new Intl.DisplayNames([t],{type:"language"}).of(e);if(n&&n!==e)return n.charAt(0).toLocaleUpperCase(t)+n.slice(1)}catch{}return t}export{Ft as S,an as a,V as b,_ as c,q as d,le as e,nn as f,_t as g,wt as h,zt as i,ne as j,on as k,rn as l,sn as m,lt as n,fe as o,ke as p,Q as q,Ke as r,en as s,X as t,M as u};
@@ -1,4 +1,4 @@
1
- var aC=Object.defineProperty;var iC=(t,e,r)=>e in t?aC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var L=(t,e,r)=>iC(t,typeof e!="symbol"?e+"":e,r);import{_ as et}from"./BAqR9jtB.js";var sC=Object.create,ol=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,nd=Object.getOwnPropertyNames,lC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty,s=(t,e)=>ol(t,"name",{value:e,configurable:!0}),cC=(t,e)=>function(){return t&&(e=(0,t[nd(t)[0]])(t=0)),e},re=(t,e)=>function(){return e||(0,t[nd(t)[0]])((e={exports:{}}).exports,e),e.exports},fC=(t,e)=>{for(var r in e)ol(t,r,{get:e[r],enumerable:!0})},_y=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nd(e))!uC.call(t,n)&&n!==r&&ol(t,n,{get:()=>e[n],enumerable:!(a=oC(e,n))||a.enumerable});return t},ad=(t,e,r)=>(r=t!=null?sC(lC(t)):{},_y(ol(r,"default",{value:t,enumerable:!0}),t)),id=t=>_y(ol({},"__esModule",{value:!0}),t),ll=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=e,t.string=r,t.number=a,t.error=n,t.func=i,t.array=o,t.stringArray=u;function e(l){return l===!0||l===!1}s(e,"boolean");function r(l){return typeof l=="string"||l instanceof String}s(r,"string");function a(l){return typeof l=="number"||l instanceof Number}s(a,"number");function n(l){return l instanceof Error}s(n,"error");function i(l){return typeof l=="function"}s(i,"func");function o(l){return Array.isArray(l)}s(o,"array");function u(l){return o(l)&&l.every(c=>r(c))}s(u,"stringArray")}}),Sy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var G,S,I,v,w,k,_,x,U,Z,Q,ee,ae,pe,ye,Le,Ne,Je,Ze,pt,ze,xe,st,Qe,se;var e=t&&t.__createBinding||(Object.create?(function(B,q,z,oe){oe===void 0&&(oe=z);var de=Object.getOwnPropertyDescriptor(q,z);(!de||("get"in de?!q.__esModule:de.writable||de.configurable))&&(de={enumerable:!0,get:s(function(){return q[z]},"get")}),Object.defineProperty(B,oe,de)}):(function(B,q,z,oe){oe===void 0&&(oe=z),B[oe]=q[z]})),r=t&&t.__setModuleDefault||(Object.create?(function(B,q){Object.defineProperty(B,"default",{enumerable:!0,value:q})}):function(B,q){B.default=q}),a=t&&t.__importStar||(function(){var B=s(function(q){return B=Object.getOwnPropertyNames||function(z){var oe=[];for(var de in z)Object.prototype.hasOwnProperty.call(z,de)&&(oe[oe.length]=de);return oe},B(q)},"ownKeys");return function(q){if(q&&q.__esModule)return q;var z={};if(q!=null)for(var oe=B(q),de=0;de<oe.length;de++)oe[de]!=="default"&&e(z,q,oe[de]);return r(z,q),z}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var n=a(ll()),i;(function(B){B.ParseError=-32700,B.InvalidRequest=-32600,B.MethodNotFound=-32601,B.InvalidParams=-32602,B.InternalError=-32603,B.jsonrpcReservedErrorRangeStart=-32099,B.serverErrorStart=-32099,B.MessageWriteError=-32099,B.MessageReadError=-32098,B.PendingResponseRejected=-32097,B.ConnectionInactive=-32096,B.ServerNotInitialized=-32002,B.UnknownErrorCode=-32001,B.jsonrpcReservedErrorRangeEnd=-32e3,B.serverErrorEnd=-32e3})(i||(t.ErrorCodes=i={}));var o=(G=class extends Error{constructor(z,oe,de){super(oe);L(this,"code");L(this,"data");this.code=n.number(z)?z:i.UnknownErrorCode,this.data=de,Object.setPrototypeOf(this,G.prototype)}toJson(){const z={code:this.code,message:this.message};return this.data!==void 0&&(z.data=this.data),z}},s(G,"ResponseError"),G);t.ResponseError=o;var u=(S=class{constructor(q){L(this,"kind");this.kind=q}static is(q){return q===S.auto||q===S.byName||q===S.byPosition}toString(){return this.kind}},s(S,"ParameterStructures"),L(S,"auto",new S("auto")),L(S,"byPosition",new S("byPosition")),L(S,"byName",new S("byName")),S);t.ParameterStructures=u;var l=(I=class{constructor(q,z){L(this,"method");L(this,"numberOfParams");this.method=q,this.numberOfParams=z}get parameterStructures(){return u.auto}},s(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=l;var c=(v=class extends l{constructor(z){super(z,0);L(this,"_")}},s(v,"RequestType0"),v);t.RequestType0=c;var f=(w=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(w,"RequestType"),w);t.RequestType=f;var p=(k=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(k,"RequestType1"),k);t.RequestType1=p;var h=(_=class extends l{constructor(z){super(z,2);L(this,"_")}},s(_,"RequestType2"),_);t.RequestType2=h;var g=(x=class extends l{constructor(z){super(z,3);L(this,"_")}},s(x,"RequestType3"),x);t.RequestType3=g;var A=(U=class extends l{constructor(z){super(z,4);L(this,"_")}},s(U,"RequestType4"),U);t.RequestType4=A;var $=(Z=class extends l{constructor(z){super(z,5);L(this,"_")}},s(Z,"RequestType5"),Z);t.RequestType5=$;var R=(Q=class extends l{constructor(z){super(z,6);L(this,"_")}},s(Q,"RequestType6"),Q);t.RequestType6=R;var m=(ee=class extends l{constructor(z){super(z,7);L(this,"_")}},s(ee,"RequestType7"),ee);t.RequestType7=m;var y=(ae=class extends l{constructor(z){super(z,8);L(this,"_")}},s(ae,"RequestType8"),ae);t.RequestType8=y;var E=(pe=class extends l{constructor(z){super(z,9);L(this,"_")}},s(pe,"RequestType9"),pe);t.RequestType9=E;var b=(ye=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(ye,"NotificationType"),ye);t.NotificationType=b;var P=(Le=class extends l{constructor(z){super(z,0);L(this,"_")}},s(Le,"NotificationType0"),Le);t.NotificationType0=P;var F=(Ne=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(Ne,"NotificationType1"),Ne);t.NotificationType1=F;var K=(Je=class extends l{constructor(z){super(z,2);L(this,"_")}},s(Je,"NotificationType2"),Je);t.NotificationType2=K;var le=(Ze=class extends l{constructor(z){super(z,3);L(this,"_")}},s(Ze,"NotificationType3"),Ze);t.NotificationType3=le;var ge=(pt=class extends l{constructor(z){super(z,4);L(this,"_")}},s(pt,"NotificationType4"),pt);t.NotificationType4=ge;var X=(ze=class extends l{constructor(z){super(z,5);L(this,"_")}},s(ze,"NotificationType5"),ze);t.NotificationType5=X;var ve=(xe=class extends l{constructor(z){super(z,6);L(this,"_")}},s(xe,"NotificationType6"),xe);t.NotificationType6=ve;var Me=(st=class extends l{constructor(z){super(z,7);L(this,"_")}},s(st,"NotificationType7"),st);t.NotificationType7=Me;var D=(Qe=class extends l{constructor(z){super(z,8);L(this,"_")}},s(Qe,"NotificationType8"),Qe);t.NotificationType8=D;var N=(se=class extends l{constructor(z){super(z,9);L(this,"_")}},s(se,"NotificationType9"),se);t.NotificationType9=N;var M;(function(B){function q(de){const Oe=de;return Oe&&n.string(Oe.method)&&(n.string(Oe.id)||n.number(Oe.id))}s(q,"isRequest"),B.isRequest=q;function z(de){const Oe=de;return Oe&&n.string(Oe.method)&&de.id===void 0}s(z,"isNotification"),B.isNotification=z;function oe(de){const Oe=de;return Oe&&(Oe.result!==void 0||!!Oe.error)&&(n.string(Oe.id)||n.number(Oe.id)||Oe.id===null)}s(oe,"isResponse"),B.isResponse=oe})(M||(t.Message=M={}))}}),wy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var e;(function(u){u.None=0,u.First=1,u.AsOld=u.First,u.Last=2,u.AsNew=u.Last})(e||(t.Touch=e={}));var r=(i=class{constructor(){L(this,n,"LinkedMap");L(this,"_map");L(this,"_head");L(this,"_tail");L(this,"_size");L(this,"_state");this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(l){const c=this._map.get(l);return c?c.previous?.value:void 0}after(l){const c=this._map.get(l);return c?c.next?.value:void 0}has(l){return this._map.has(l)}get(l,c=e.None){const f=this._map.get(l);if(f)return c!==e.None&&this.touch(f,c),f.value}set(l,c,f=e.None){let p=this._map.get(l);if(p)p.value=c,f!==e.None&&this.touch(p,f);else{switch(p={key:l,value:c,next:void 0,previous:void 0},f){case e.None:this.addItemLast(p);break;case e.First:this.addItemFirst(p);break;case e.Last:this.addItemLast(p);break;default:this.addItemLast(p);break}this._map.set(l,p),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const c=this._map.get(l);if(c)return this._map.delete(l),this.removeItem(c),this._size--,c.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,c){const f=this._state;let p=this._head;for(;p;){if(c?l.bind(c)(p.value,p.key,this):l(p.value,p.key,this),this._state!==f)throw new Error("LinkedMap got modified during iteration.");p=p.next}}keys(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.key,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}values(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.value,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}entries(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:[c.key,c.value],done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let c=this._head,f=this.size;for(;c&&f>l;)this._map.delete(c.key),c=c.next,f--;this._head=c,this._size=f,c&&(c.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const c=l.next,f=l.previous;if(!c||!f)throw new Error("Invalid list");c.previous=f,f.next=c}l.next=void 0,l.previous=void 0,this._state++}touch(l,c){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(c!==e.First&&c!==e.Last)){if(c===e.First){if(l===this._head)return;const f=l.next,p=l.previous;l===this._tail?(p.next=void 0,this._tail=p):(f.previous=p,p.next=f),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(c===e.Last){if(l===this._tail)return;const f=l.next,p=l.previous;l===this._head?(f.previous=void 0,this._head=f):(f.previous=p,p.next=f),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((c,f)=>{l.push([f,c])}),l}fromJSON(l){this.clear();for(const[c,f]of l)this.set(c,f)}},s(i,"LinkedMap"),i);t.LinkedMap=r;var a=(o=class extends r{constructor(c,f=1){super();L(this,"_limit");L(this,"_ratio");this._limit=c,this._ratio=Math.min(Math.max(0,f),1)}get limit(){return this._limit}set limit(c){this._limit=c,this.checkTrim()}get ratio(){return this._ratio}set ratio(c){this._ratio=Math.min(Math.max(0,c),1),this.checkTrim()}get(c,f=e.AsNew){return super.get(c,f)}peek(c){return super.get(c,e.None)}set(c,f){return super.set(c,f,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},s(o,"LRUCache"),o);t.LRUCache=a}}),pC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function a(n){return{dispose:n}}s(a,"create"),r.create=a})(e||(t.Disposable=e={}))}}),Kr=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}s(r,"RAL"),(function(a){function n(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}s(n,"install"),a.install=n})(r||(r={})),t.default=r}}),ul=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var o,u;var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var r=e(Kr()),a;(function(l){const c={dispose(){}};l.None=function(){return c}})(a||(t.Event=a={}));var n=(o=class{constructor(){L(this,"_callbacks");L(this,"_contexts")}add(c,f=null,p){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(c),this._contexts.push(f),Array.isArray(p)&&p.push({dispose:s(()=>this.remove(c,f),"dispose")})}remove(c,f=null){if(!this._callbacks)return;let p=!1;for(let h=0,g=this._callbacks.length;h<g;h++)if(this._callbacks[h]===c)if(this._contexts[h]===f){this._callbacks.splice(h,1),this._contexts.splice(h,1);return}else p=!0;if(p)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...c){if(!this._callbacks)return[];const f=[],p=this._callbacks.slice(0),h=this._contexts.slice(0);for(let g=0,A=p.length;g<A;g++)try{f.push(p[g].apply(h[g],c))}catch($){(0,r.default)().console.error($)}return f}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s(o,"CallbackList"),o),i=(u=class{constructor(c){L(this,"_options");L(this,"_event");L(this,"_callbacks");this._options=c}get event(){return this._event||(this._event=(c,f,p)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(c,f);const h={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(c,f),h.dispose=u._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(p)&&p.push(h),h}),this._event}fire(c){this._callbacks&&this._callbacks.invoke.call(this._callbacks,c)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},s(u,"Emitter"),L(u,"_noop",s(function(){},"_noop")),u);t.Emitter=i}}),sd=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var h,g;var e=t&&t.__createBinding||(Object.create?(function(A,$,R,m){m===void 0&&(m=R);var y=Object.getOwnPropertyDescriptor($,R);(!y||("get"in y?!$.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:s(function(){return $[R]},"get")}),Object.defineProperty(A,m,y)}):(function(A,$,R,m){m===void 0&&(m=R),A[m]=$[R]})),r=t&&t.__setModuleDefault||(Object.create?(function(A,$){Object.defineProperty(A,"default",{enumerable:!0,value:$})}):function(A,$){A.default=$}),a=t&&t.__importStar||(function(){var A=s(function($){return A=Object.getOwnPropertyNames||function(R){var m=[];for(var y in R)Object.prototype.hasOwnProperty.call(R,y)&&(m[m.length]=y);return m},A($)},"ownKeys");return function($){if($&&$.__esModule)return $;var R={};if($!=null)for(var m=A($),y=0;y<m.length;y++)m[y]!=="default"&&e(R,$,m[y]);return r(R,$),R}})(),n=t&&t.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l;(function(A){A.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:u.Event.None}),A.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:u.Event.None});function $(R){const m=R;return m&&(m===A.None||m===A.Cancelled||o.boolean(m.isCancellationRequested)&&!!m.onCancellationRequested)}s($,"is"),A.is=$})(l||(t.CancellationToken=l={}));var c=Object.freeze(function(A,$){const R=(0,i.default)().timer.setTimeout(A.bind($),0);return{dispose(){R.dispose()}}}),f=(h=class{constructor(){L(this,"_isCancelled",!1);L(this,"_emitter")}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?c:(this._emitter||(this._emitter=new u.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},s(h,"MutableToken"),h),p=(g=class{constructor(){L(this,"_token")}get token(){return this._token||(this._token=new f),this._token}cancel(){this._token?this._token.cancel():this._token=l.Cancelled}dispose(){this._token?this._token instanceof f&&this._token.dispose():this._token=l.None}},s(g,"CancellationTokenSource"),g);t.CancellationTokenSource=p}}),dC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var u,l,c,f;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=sd(),r;(function(p){p.Continue=0,p.Cancelled=1})(r||(r={}));var a=(u=class{constructor(){L(this,"buffers");this.buffers=new Map}enableCancellation(h){if(h.id===null)return;const g=new SharedArrayBuffer(4),A=new Int32Array(g,0,1);A[0]=r.Continue,this.buffers.set(h.id,g),h.$cancellationData=g}async sendCancellation(h,g){const A=this.buffers.get(g);if(A===void 0)return;const $=new Int32Array(A,0,1);Atomics.store($,0,r.Cancelled)}cleanup(h){this.buffers.delete(h)}dispose(){this.buffers.clear()}},s(u,"SharedArraySenderStrategy"),u);t.SharedArraySenderStrategy=a;var n=(l=class{constructor(h){L(this,"data");this.data=new Int32Array(h,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s(l,"SharedArrayBufferCancellationToken"),l),i=(c=class{constructor(h){L(this,"token");this.token=new n(h)}cancel(){}dispose(){}},s(c,"SharedArrayBufferCancellationTokenSource"),c),o=(f=class{constructor(){L(this,"kind","request")}createCancellationTokenSource(h){const g=h.$cancellationData;return g===void 0?new e.CancellationTokenSource:new i(g)}},s(f,"SharedArrayReceiverStrategy"),f);t.SharedArrayReceiverStrategy=o}}),Py=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var r=e(Kr()),a=(n=class{constructor(o=1){L(this,"_capacity");L(this,"_active");L(this,"_waiting");if(o<=0)throw new Error("Capacity must be greater than 0");this._capacity=o,this._active=0,this._waiting=[]}lock(o){return new Promise((u,l)=>{this._waiting.push({thunk:o,resolve:u,reject:l}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const o=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const u=o.thunk();u instanceof Promise?u.then(l=>{this._active--,o.resolve(l),this.runNext()},l=>{this._active--,o.reject(l),this.runNext()}):(this._active--,o.resolve(u),this.runNext())}catch(u){this._active--,o.reject(u),this.runNext()}}},s(n,"Semaphore"),n);t.Semaphore=a}}),mC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var g,A;var e=t&&t.__createBinding||(Object.create?(function($,R,m,y){y===void 0&&(y=m);var E=Object.getOwnPropertyDescriptor(R,m);(!E||("get"in E?!R.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:s(function(){return R[m]},"get")}),Object.defineProperty($,y,E)}):(function($,R,m,y){y===void 0&&(y=m),$[y]=R[m]})),r=t&&t.__setModuleDefault||(Object.create?(function($,R){Object.defineProperty($,"default",{enumerable:!0,value:R})}):function($,R){$.default=R}),a=t&&t.__importStar||(function(){var $=s(function(R){return $=Object.getOwnPropertyNames||function(m){var y=[];for(var E in m)Object.prototype.hasOwnProperty.call(m,E)&&(y[y.length]=E);return y},$(R)},"ownKeys");return function(R){if(R&&R.__esModule)return R;var m={};if(R!=null)for(var y=$(R),E=0;E<y.length;E++)y[E]!=="default"&&e(m,R,y[E]);return r(m,R),m}})(),n=t&&t.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l=Py(),c;(function($){function R(m){const y=m;return y&&o.func(y.listen)&&o.func(y.dispose)&&o.func(y.onError)&&o.func(y.onClose)&&o.func(y.onPartialMessage)}s(R,"is"),$.is=R})(c||(t.MessageReader=c={}));var f=(g=class{constructor(){L(this,"errorEmitter");L(this,"closeEmitter");L(this,"partialMessageEmitter");this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter,this.partialMessageEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(R){this.errorEmitter.fire(this.asError(R))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(R){this.partialMessageEmitter.fire(R)}asError(R){return R instanceof Error?R:new Error(`Reader received error. Reason: ${o.string(R.message)?R.message:"unknown"}`)}},s(g,"AbstractMessageReader"),g);t.AbstractMessageReader=f;var p;(function($){function R(m){let y,E;const b=new Map;let P;const F=new Map;if(m===void 0||typeof m=="string")y=m??"utf-8";else{if(y=m.charset??"utf-8",m.contentDecoder!==void 0&&(E=m.contentDecoder,b.set(E.name,E)),m.contentDecoders!==void 0)for(const K of m.contentDecoders)b.set(K.name,K);if(m.contentTypeDecoder!==void 0&&(P=m.contentTypeDecoder,F.set(P.name,P)),m.contentTypeDecoders!==void 0)for(const K of m.contentTypeDecoders)F.set(K.name,K)}return P===void 0&&(P=(0,i.default)().applicationJson.decoder,F.set(P.name,P)),{charset:y,contentDecoder:E,contentDecoders:b,contentTypeDecoder:P,contentTypeDecoders:F}}s(R,"fromOptions"),$.fromOptions=R})(p||(p={}));var h=(A=class extends f{constructor(m,y){super();L(this,"readable");L(this,"options");L(this,"callback");L(this,"nextMessageLength");L(this,"messageToken");L(this,"buffer");L(this,"partialMessageTimer");L(this,"_partialMessageTimeout");L(this,"readSemaphore");this.readable=m,this.options=p.fromOptions(y),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new l.Semaphore(1)}set partialMessageTimeout(m){this._partialMessageTimeout=m}get partialMessageTimeout(){return this._partialMessageTimeout}listen(m){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=m;const y=this.readable.onData(E=>{this.onData(E)});return this.readable.onError(E=>this.fireError(E)),this.readable.onClose(()=>this.fireClose()),y}onData(m){try{for(this.buffer.append(m);;){if(this.nextMessageLength===-1){const E=this.buffer.tryReadHeaders(!0);if(!E)return;const b=E.get("content-length");if(!b){this.fireError(new Error(`Header must provide a Content-Length property.
1
+ var aC=Object.defineProperty;var iC=(t,e,r)=>e in t?aC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var L=(t,e,r)=>iC(t,typeof e!="symbol"?e+"":e,r);import{_ as et}from"./B3iaLYr6.js";var sC=Object.create,ol=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,nd=Object.getOwnPropertyNames,lC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty,s=(t,e)=>ol(t,"name",{value:e,configurable:!0}),cC=(t,e)=>function(){return t&&(e=(0,t[nd(t)[0]])(t=0)),e},re=(t,e)=>function(){return e||(0,t[nd(t)[0]])((e={exports:{}}).exports,e),e.exports},fC=(t,e)=>{for(var r in e)ol(t,r,{get:e[r],enumerable:!0})},_y=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nd(e))!uC.call(t,n)&&n!==r&&ol(t,n,{get:()=>e[n],enumerable:!(a=oC(e,n))||a.enumerable});return t},ad=(t,e,r)=>(r=t!=null?sC(lC(t)):{},_y(ol(r,"default",{value:t,enumerable:!0}),t)),id=t=>_y(ol({},"__esModule",{value:!0}),t),ll=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=e,t.string=r,t.number=a,t.error=n,t.func=i,t.array=o,t.stringArray=u;function e(l){return l===!0||l===!1}s(e,"boolean");function r(l){return typeof l=="string"||l instanceof String}s(r,"string");function a(l){return typeof l=="number"||l instanceof Number}s(a,"number");function n(l){return l instanceof Error}s(n,"error");function i(l){return typeof l=="function"}s(i,"func");function o(l){return Array.isArray(l)}s(o,"array");function u(l){return o(l)&&l.every(c=>r(c))}s(u,"stringArray")}}),Sy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(t){var G,S,I,v,w,k,_,x,U,Z,Q,ee,ae,pe,ye,Le,Ne,Je,Ze,pt,ze,xe,st,Qe,se;var e=t&&t.__createBinding||(Object.create?(function(B,q,z,oe){oe===void 0&&(oe=z);var de=Object.getOwnPropertyDescriptor(q,z);(!de||("get"in de?!q.__esModule:de.writable||de.configurable))&&(de={enumerable:!0,get:s(function(){return q[z]},"get")}),Object.defineProperty(B,oe,de)}):(function(B,q,z,oe){oe===void 0&&(oe=z),B[oe]=q[z]})),r=t&&t.__setModuleDefault||(Object.create?(function(B,q){Object.defineProperty(B,"default",{enumerable:!0,value:q})}):function(B,q){B.default=q}),a=t&&t.__importStar||(function(){var B=s(function(q){return B=Object.getOwnPropertyNames||function(z){var oe=[];for(var de in z)Object.prototype.hasOwnProperty.call(z,de)&&(oe[oe.length]=de);return oe},B(q)},"ownKeys");return function(q){if(q&&q.__esModule)return q;var z={};if(q!=null)for(var oe=B(q),de=0;de<oe.length;de++)oe[de]!=="default"&&e(z,q,oe[de]);return r(z,q),z}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;var n=a(ll()),i;(function(B){B.ParseError=-32700,B.InvalidRequest=-32600,B.MethodNotFound=-32601,B.InvalidParams=-32602,B.InternalError=-32603,B.jsonrpcReservedErrorRangeStart=-32099,B.serverErrorStart=-32099,B.MessageWriteError=-32099,B.MessageReadError=-32098,B.PendingResponseRejected=-32097,B.ConnectionInactive=-32096,B.ServerNotInitialized=-32002,B.UnknownErrorCode=-32001,B.jsonrpcReservedErrorRangeEnd=-32e3,B.serverErrorEnd=-32e3})(i||(t.ErrorCodes=i={}));var o=(G=class extends Error{constructor(z,oe,de){super(oe);L(this,"code");L(this,"data");this.code=n.number(z)?z:i.UnknownErrorCode,this.data=de,Object.setPrototypeOf(this,G.prototype)}toJson(){const z={code:this.code,message:this.message};return this.data!==void 0&&(z.data=this.data),z}},s(G,"ResponseError"),G);t.ResponseError=o;var u=(S=class{constructor(q){L(this,"kind");this.kind=q}static is(q){return q===S.auto||q===S.byName||q===S.byPosition}toString(){return this.kind}},s(S,"ParameterStructures"),L(S,"auto",new S("auto")),L(S,"byPosition",new S("byPosition")),L(S,"byName",new S("byName")),S);t.ParameterStructures=u;var l=(I=class{constructor(q,z){L(this,"method");L(this,"numberOfParams");this.method=q,this.numberOfParams=z}get parameterStructures(){return u.auto}},s(I,"AbstractMessageSignature"),I);t.AbstractMessageSignature=l;var c=(v=class extends l{constructor(z){super(z,0);L(this,"_")}},s(v,"RequestType0"),v);t.RequestType0=c;var f=(w=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(w,"RequestType"),w);t.RequestType=f;var p=(k=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(k,"RequestType1"),k);t.RequestType1=p;var h=(_=class extends l{constructor(z){super(z,2);L(this,"_")}},s(_,"RequestType2"),_);t.RequestType2=h;var g=(x=class extends l{constructor(z){super(z,3);L(this,"_")}},s(x,"RequestType3"),x);t.RequestType3=g;var A=(U=class extends l{constructor(z){super(z,4);L(this,"_")}},s(U,"RequestType4"),U);t.RequestType4=A;var $=(Z=class extends l{constructor(z){super(z,5);L(this,"_")}},s(Z,"RequestType5"),Z);t.RequestType5=$;var R=(Q=class extends l{constructor(z){super(z,6);L(this,"_")}},s(Q,"RequestType6"),Q);t.RequestType6=R;var m=(ee=class extends l{constructor(z){super(z,7);L(this,"_")}},s(ee,"RequestType7"),ee);t.RequestType7=m;var y=(ae=class extends l{constructor(z){super(z,8);L(this,"_")}},s(ae,"RequestType8"),ae);t.RequestType8=y;var E=(pe=class extends l{constructor(z){super(z,9);L(this,"_")}},s(pe,"RequestType9"),pe);t.RequestType9=E;var b=(ye=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(ye,"NotificationType"),ye);t.NotificationType=b;var P=(Le=class extends l{constructor(z){super(z,0);L(this,"_")}},s(Le,"NotificationType0"),Le);t.NotificationType0=P;var F=(Ne=class extends l{constructor(z,oe=u.auto){super(z,1);L(this,"_parameterStructures");L(this,"_");this._parameterStructures=oe}get parameterStructures(){return this._parameterStructures}},s(Ne,"NotificationType1"),Ne);t.NotificationType1=F;var K=(Je=class extends l{constructor(z){super(z,2);L(this,"_")}},s(Je,"NotificationType2"),Je);t.NotificationType2=K;var le=(Ze=class extends l{constructor(z){super(z,3);L(this,"_")}},s(Ze,"NotificationType3"),Ze);t.NotificationType3=le;var ge=(pt=class extends l{constructor(z){super(z,4);L(this,"_")}},s(pt,"NotificationType4"),pt);t.NotificationType4=ge;var X=(ze=class extends l{constructor(z){super(z,5);L(this,"_")}},s(ze,"NotificationType5"),ze);t.NotificationType5=X;var ve=(xe=class extends l{constructor(z){super(z,6);L(this,"_")}},s(xe,"NotificationType6"),xe);t.NotificationType6=ve;var Me=(st=class extends l{constructor(z){super(z,7);L(this,"_")}},s(st,"NotificationType7"),st);t.NotificationType7=Me;var D=(Qe=class extends l{constructor(z){super(z,8);L(this,"_")}},s(Qe,"NotificationType8"),Qe);t.NotificationType8=D;var N=(se=class extends l{constructor(z){super(z,9);L(this,"_")}},s(se,"NotificationType9"),se);t.NotificationType9=N;var M;(function(B){function q(de){const Oe=de;return Oe&&n.string(Oe.method)&&(n.string(Oe.id)||n.number(Oe.id))}s(q,"isRequest"),B.isRequest=q;function z(de){const Oe=de;return Oe&&n.string(Oe.method)&&de.id===void 0}s(z,"isNotification"),B.isNotification=z;function oe(de){const Oe=de;return Oe&&(Oe.result!==void 0||!!Oe.error)&&(n.string(Oe.id)||n.number(Oe.id)||Oe.id===null)}s(oe,"isResponse"),B.isResponse=oe})(M||(t.Message=M={}))}}),wy=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(t){var n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0;var e;(function(u){u.None=0,u.First=1,u.AsOld=u.First,u.Last=2,u.AsNew=u.Last})(e||(t.Touch=e={}));var r=(i=class{constructor(){L(this,n,"LinkedMap");L(this,"_map");L(this,"_head");L(this,"_tail");L(this,"_size");L(this,"_state");this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(l){const c=this._map.get(l);return c?c.previous?.value:void 0}after(l){const c=this._map.get(l);return c?c.next?.value:void 0}has(l){return this._map.has(l)}get(l,c=e.None){const f=this._map.get(l);if(f)return c!==e.None&&this.touch(f,c),f.value}set(l,c,f=e.None){let p=this._map.get(l);if(p)p.value=c,f!==e.None&&this.touch(p,f);else{switch(p={key:l,value:c,next:void 0,previous:void 0},f){case e.None:this.addItemLast(p);break;case e.First:this.addItemFirst(p);break;case e.Last:this.addItemLast(p);break;default:this.addItemLast(p);break}this._map.set(l,p),this._size++}return this}delete(l){return!!this.remove(l)}remove(l){const c=this._map.get(l);if(c)return this._map.delete(l),this.removeItem(c),this._size--,c.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const l=this._head;return this._map.delete(l.key),this.removeItem(l),this._size--,l.value}forEach(l,c){const f=this._state;let p=this._head;for(;p;){if(c?l.bind(c)(p.value,p.key,this):l(p.value,p.key,this),this._state!==f)throw new Error("LinkedMap got modified during iteration.");p=p.next}}keys(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.key,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}values(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:c.value,done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}entries(){const l=this._state;let c=this._head;const f={[Symbol.iterator]:()=>f,next:s(()=>{if(this._state!==l)throw new Error("LinkedMap got modified during iteration.");if(c){const p={value:[c.key,c.value],done:!1};return c=c.next,p}else return{value:void 0,done:!0}},"next")};return f}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(l){if(l>=this.size)return;if(l===0){this.clear();return}let c=this._head,f=this.size;for(;c&&f>l;)this._map.delete(c.key),c=c.next,f--;this._head=c,this._size=f,c&&(c.previous=void 0),this._state++}addItemFirst(l){if(!this._head&&!this._tail)this._tail=l;else if(this._head)l.next=this._head,this._head.previous=l;else throw new Error("Invalid list");this._head=l,this._state++}addItemLast(l){if(!this._head&&!this._tail)this._head=l;else if(this._tail)l.previous=this._tail,this._tail.next=l;else throw new Error("Invalid list");this._tail=l,this._state++}removeItem(l){if(l===this._head&&l===this._tail)this._head=void 0,this._tail=void 0;else if(l===this._head){if(!l.next)throw new Error("Invalid list");l.next.previous=void 0,this._head=l.next}else if(l===this._tail){if(!l.previous)throw new Error("Invalid list");l.previous.next=void 0,this._tail=l.previous}else{const c=l.next,f=l.previous;if(!c||!f)throw new Error("Invalid list");c.previous=f,f.next=c}l.next=void 0,l.previous=void 0,this._state++}touch(l,c){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(c!==e.First&&c!==e.Last)){if(c===e.First){if(l===this._head)return;const f=l.next,p=l.previous;l===this._tail?(p.next=void 0,this._tail=p):(f.previous=p,p.next=f),l.previous=void 0,l.next=this._head,this._head.previous=l,this._head=l,this._state++}else if(c===e.Last){if(l===this._tail)return;const f=l.next,p=l.previous;l===this._head?(f.previous=void 0,this._head=f):(f.previous=p,p.next=f),l.next=void 0,l.previous=this._tail,this._tail.next=l,this._tail=l,this._state++}}}toJSON(){const l=[];return this.forEach((c,f)=>{l.push([f,c])}),l}fromJSON(l){this.clear();for(const[c,f]of l)this.set(c,f)}},s(i,"LinkedMap"),i);t.LinkedMap=r;var a=(o=class extends r{constructor(c,f=1){super();L(this,"_limit");L(this,"_ratio");this._limit=c,this._ratio=Math.min(Math.max(0,f),1)}get limit(){return this._limit}set limit(c){this._limit=c,this.checkTrim()}get ratio(){return this._ratio}set ratio(c){this._ratio=Math.min(Math.max(0,c),1),this.checkTrim()}get(c,f=e.AsNew){return super.get(c,f)}peek(c){return super.get(c,e.None)}set(c,f){return super.set(c,f,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}},s(o,"LRUCache"),o);t.LRUCache=a}}),pC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0;var e;(function(r){function a(n){return{dispose:n}}s(a,"create"),r.create=a})(e||(t.Disposable=e={}))}}),Kr=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(t){Object.defineProperty(t,"__esModule",{value:!0});var e;function r(){if(e===void 0)throw new Error("No runtime abstraction layer installed");return e}s(r,"RAL"),(function(a){function n(i){if(i===void 0)throw new Error("No runtime abstraction layer provided");e=i}s(n,"install"),a.install=n})(r||(r={})),t.default=r}}),ul=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(t){var o,u;var e=t&&t.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var r=e(Kr()),a;(function(l){const c={dispose(){}};l.None=function(){return c}})(a||(t.Event=a={}));var n=(o=class{constructor(){L(this,"_callbacks");L(this,"_contexts")}add(c,f=null,p){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(c),this._contexts.push(f),Array.isArray(p)&&p.push({dispose:s(()=>this.remove(c,f),"dispose")})}remove(c,f=null){if(!this._callbacks)return;let p=!1;for(let h=0,g=this._callbacks.length;h<g;h++)if(this._callbacks[h]===c)if(this._contexts[h]===f){this._callbacks.splice(h,1),this._contexts.splice(h,1);return}else p=!0;if(p)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...c){if(!this._callbacks)return[];const f=[],p=this._callbacks.slice(0),h=this._contexts.slice(0);for(let g=0,A=p.length;g<A;g++)try{f.push(p[g].apply(h[g],c))}catch($){(0,r.default)().console.error($)}return f}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},s(o,"CallbackList"),o),i=(u=class{constructor(c){L(this,"_options");L(this,"_event");L(this,"_callbacks");this._options=c}get event(){return this._event||(this._event=(c,f,p)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(c,f);const h={dispose:s(()=>{this._callbacks&&(this._callbacks.remove(c,f),h.dispose=u._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(p)&&p.push(h),h}),this._event}fire(c){this._callbacks&&this._callbacks.invoke.call(this._callbacks,c)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}},s(u,"Emitter"),L(u,"_noop",s(function(){},"_noop")),u);t.Emitter=i}}),sd=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(t){var h,g;var e=t&&t.__createBinding||(Object.create?(function(A,$,R,m){m===void 0&&(m=R);var y=Object.getOwnPropertyDescriptor($,R);(!y||("get"in y?!$.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:s(function(){return $[R]},"get")}),Object.defineProperty(A,m,y)}):(function(A,$,R,m){m===void 0&&(m=R),A[m]=$[R]})),r=t&&t.__setModuleDefault||(Object.create?(function(A,$){Object.defineProperty(A,"default",{enumerable:!0,value:$})}):function(A,$){A.default=$}),a=t&&t.__importStar||(function(){var A=s(function($){return A=Object.getOwnPropertyNames||function(R){var m=[];for(var y in R)Object.prototype.hasOwnProperty.call(R,y)&&(m[m.length]=y);return m},A($)},"ownKeys");return function($){if($&&$.__esModule)return $;var R={};if($!=null)for(var m=A($),y=0;y<m.length;y++)m[y]!=="default"&&e(R,$,m[y]);return r(R,$),R}})(),n=t&&t.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l;(function(A){A.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:u.Event.None}),A.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:u.Event.None});function $(R){const m=R;return m&&(m===A.None||m===A.Cancelled||o.boolean(m.isCancellationRequested)&&!!m.onCancellationRequested)}s($,"is"),A.is=$})(l||(t.CancellationToken=l={}));var c=Object.freeze(function(A,$){const R=(0,i.default)().timer.setTimeout(A.bind($),0);return{dispose(){R.dispose()}}}),f=(h=class{constructor(){L(this,"_isCancelled",!1);L(this,"_emitter")}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?c:(this._emitter||(this._emitter=new u.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},s(h,"MutableToken"),h),p=(g=class{constructor(){L(this,"_token")}get token(){return this._token||(this._token=new f),this._token}cancel(){this._token?this._token.cancel():this._token=l.Cancelled}dispose(){this._token?this._token instanceof f&&this._token.dispose():this._token=l.None}},s(g,"CancellationTokenSource"),g);t.CancellationTokenSource=p}}),dC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(t){var u,l,c,f;Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;var e=sd(),r;(function(p){p.Continue=0,p.Cancelled=1})(r||(r={}));var a=(u=class{constructor(){L(this,"buffers");this.buffers=new Map}enableCancellation(h){if(h.id===null)return;const g=new SharedArrayBuffer(4),A=new Int32Array(g,0,1);A[0]=r.Continue,this.buffers.set(h.id,g),h.$cancellationData=g}async sendCancellation(h,g){const A=this.buffers.get(g);if(A===void 0)return;const $=new Int32Array(A,0,1);Atomics.store($,0,r.Cancelled)}cleanup(h){this.buffers.delete(h)}dispose(){this.buffers.clear()}},s(u,"SharedArraySenderStrategy"),u);t.SharedArraySenderStrategy=a;var n=(l=class{constructor(h){L(this,"data");this.data=new Int32Array(h,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s(l,"SharedArrayBufferCancellationToken"),l),i=(c=class{constructor(h){L(this,"token");this.token=new n(h)}cancel(){}dispose(){}},s(c,"SharedArrayBufferCancellationTokenSource"),c),o=(f=class{constructor(){L(this,"kind","request")}createCancellationTokenSource(h){const g=h.$cancellationData;return g===void 0?new e.CancellationTokenSource:new i(g)}},s(f,"SharedArrayReceiverStrategy"),f);t.SharedArrayReceiverStrategy=o}}),Py=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(t){var n;var e=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var r=e(Kr()),a=(n=class{constructor(o=1){L(this,"_capacity");L(this,"_active");L(this,"_waiting");if(o<=0)throw new Error("Capacity must be greater than 0");this._capacity=o,this._active=0,this._waiting=[]}lock(o){return new Promise((u,l)=>{this._waiting.push({thunk:o,resolve:u,reject:l}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,r.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const o=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{const u=o.thunk();u instanceof Promise?u.then(l=>{this._active--,o.resolve(l),this.runNext()},l=>{this._active--,o.reject(l),this.runNext()}):(this._active--,o.resolve(u),this.runNext())}catch(u){this._active--,o.reject(u),this.runNext()}}},s(n,"Semaphore"),n);t.Semaphore=a}}),mC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(t){var g,A;var e=t&&t.__createBinding||(Object.create?(function($,R,m,y){y===void 0&&(y=m);var E=Object.getOwnPropertyDescriptor(R,m);(!E||("get"in E?!R.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:s(function(){return R[m]},"get")}),Object.defineProperty($,y,E)}):(function($,R,m,y){y===void 0&&(y=m),$[y]=R[m]})),r=t&&t.__setModuleDefault||(Object.create?(function($,R){Object.defineProperty($,"default",{enumerable:!0,value:R})}):function($,R){$.default=R}),a=t&&t.__importStar||(function(){var $=s(function(R){return $=Object.getOwnPropertyNames||function(m){var y=[];for(var E in m)Object.prototype.hasOwnProperty.call(m,E)&&(y[y.length]=E);return y},$(R)},"ownKeys");return function(R){if(R&&R.__esModule)return R;var m={};if(R!=null)for(var y=$(R),E=0;E<y.length;E++)y[E]!=="default"&&e(m,R,y[E]);return r(m,R),m}})(),n=t&&t.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;var i=n(Kr()),o=a(ll()),u=ul(),l=Py(),c;(function($){function R(m){const y=m;return y&&o.func(y.listen)&&o.func(y.dispose)&&o.func(y.onError)&&o.func(y.onClose)&&o.func(y.onPartialMessage)}s(R,"is"),$.is=R})(c||(t.MessageReader=c={}));var f=(g=class{constructor(){L(this,"errorEmitter");L(this,"closeEmitter");L(this,"partialMessageEmitter");this.errorEmitter=new u.Emitter,this.closeEmitter=new u.Emitter,this.partialMessageEmitter=new u.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(R){this.errorEmitter.fire(this.asError(R))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(R){this.partialMessageEmitter.fire(R)}asError(R){return R instanceof Error?R:new Error(`Reader received error. Reason: ${o.string(R.message)?R.message:"unknown"}`)}},s(g,"AbstractMessageReader"),g);t.AbstractMessageReader=f;var p;(function($){function R(m){let y,E;const b=new Map;let P;const F=new Map;if(m===void 0||typeof m=="string")y=m??"utf-8";else{if(y=m.charset??"utf-8",m.contentDecoder!==void 0&&(E=m.contentDecoder,b.set(E.name,E)),m.contentDecoders!==void 0)for(const K of m.contentDecoders)b.set(K.name,K);if(m.contentTypeDecoder!==void 0&&(P=m.contentTypeDecoder,F.set(P.name,P)),m.contentTypeDecoders!==void 0)for(const K of m.contentTypeDecoders)F.set(K.name,K)}return P===void 0&&(P=(0,i.default)().applicationJson.decoder,F.set(P.name,P)),{charset:y,contentDecoder:E,contentDecoders:b,contentTypeDecoder:P,contentTypeDecoders:F}}s(R,"fromOptions"),$.fromOptions=R})(p||(p={}));var h=(A=class extends f{constructor(m,y){super();L(this,"readable");L(this,"options");L(this,"callback");L(this,"nextMessageLength");L(this,"messageToken");L(this,"buffer");L(this,"partialMessageTimer");L(this,"_partialMessageTimeout");L(this,"readSemaphore");this.readable=m,this.options=p.fromOptions(y),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new l.Semaphore(1)}set partialMessageTimeout(m){this._partialMessageTimeout=m}get partialMessageTimeout(){return this._partialMessageTimeout}listen(m){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=m;const y=this.readable.onData(E=>{this.onData(E)});return this.readable.onError(E=>this.fireError(E)),this.readable.onClose(()=>this.fireClose()),y}onData(m){try{for(this.buffer.append(m);;){if(this.nextMessageLength===-1){const E=this.buffer.tryReadHeaders(!0);if(!E)return;const b=E.get("content-length");if(!b){this.fireError(new Error(`Header must provide a Content-Length property.
2
2
  ${JSON.stringify(Object.fromEntries(E))}`));return}const P=parseInt(b);if(isNaN(P)){this.fireError(new Error(`Content-Length value must be a number. Got ${b}`));return}this.nextMessageLength=P}const y=this.buffer.tryReadBody(this.nextMessageLength);if(y===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const E=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(y):y,b=await this.options.contentTypeDecoder.decode(E,this.options);this.callback(b)}).catch(E=>{this.fireError(E)})}}catch(y){this.fireError(y)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,i.default)().timer.setTimeout((m,y)=>{this.partialMessageTimer=void 0,m===this.messageToken&&(this.firePartialMessage({messageToken:m,waitingTime:y}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}},s(A,"ReadableStreamMessageReader"),A);t.ReadableStreamMessageReader=h}}),hC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(t){var $,R;var e=t&&t.__createBinding||(Object.create?(function(m,y,E,b){b===void 0&&(b=E);var P=Object.getOwnPropertyDescriptor(y,E);(!P||("get"in P?!y.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:s(function(){return y[E]},"get")}),Object.defineProperty(m,b,P)}):(function(m,y,E,b){b===void 0&&(b=E),m[b]=y[E]})),r=t&&t.__setModuleDefault||(Object.create?(function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}):function(m,y){m.default=y}),a=t&&t.__importStar||(function(){var m=s(function(y){return m=Object.getOwnPropertyNames||function(E){var b=[];for(var P in E)Object.prototype.hasOwnProperty.call(E,P)&&(b[b.length]=P);return b},m(y)},"ownKeys");return function(y){if(y&&y.__esModule)return y;var E={};if(y!=null)for(var b=m(y),P=0;P<b.length;P++)b[P]!=="default"&&e(E,y,b[P]);return r(E,y),E}})(),n=t&&t.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;var i=n(Kr()),o=a(ll()),u=Py(),l=ul(),c="Content-Length: ",f=`\r
3
3
  `,p;(function(m){function y(E){const b=E;return b&&o.func(b.dispose)&&o.func(b.onClose)&&o.func(b.onError)&&o.func(b.write)}s(y,"is"),m.is=y})(p||(t.MessageWriter=p={}));var h=($=class{constructor(){L(this,"errorEmitter");L(this,"closeEmitter");this.errorEmitter=new l.Emitter,this.closeEmitter=new l.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(y,E,b){this.errorEmitter.fire([this.asError(y),E,b])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(y){return y instanceof Error?y:new Error(`Writer received error. Reason: ${o.string(y.message)?y.message:"unknown"}`)}},s($,"AbstractMessageWriter"),$);t.AbstractMessageWriter=h;var g;(function(m){function y(E){return E===void 0||typeof E=="string"?{charset:E??"utf-8",contentTypeEncoder:(0,i.default)().applicationJson.encoder}:{charset:E.charset??"utf-8",contentEncoder:E.contentEncoder,contentTypeEncoder:E.contentTypeEncoder??(0,i.default)().applicationJson.encoder}}s(y,"fromOptions"),m.fromOptions=y})(g||(g={}));var A=(R=class extends h{constructor(E,b){super();L(this,"writable");L(this,"options");L(this,"errorCount");L(this,"writeSemaphore");this.writable=E,this.options=g.fromOptions(b),this.errorCount=0,this.writeSemaphore=new u.Semaphore(1),this.writable.onError(P=>this.fireError(P)),this.writable.onClose(()=>this.fireClose())}async write(E){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(E,this.options).then(P=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(P):P).then(P=>{const F=[];return F.push(c,P.byteLength.toString(),f),F.push(f),this.doWrite(E,F,P)},P=>{throw this.fireError(P),P}))}async doWrite(E,b,P){try{return await this.writable.write(b.join(""),"ascii"),this.writable.write(P)}catch(F){return this.handleError(F,E),Promise.reject(F)}}handleError(E,b){this.errorCount++,this.fireError(E,b,this.errorCount)}end(){this.writable.end()}},s(R,"WriteableStreamMessageWriter"),R);t.WriteableStreamMessageWriter=A}}),yC=re({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0;var e=13,r=10,a=`\r
4
4
  `,n=(i=class{constructor(u="utf-8"){L(this,"_encoding");L(this,"_chunks");L(this,"_totalLength");this._encoding=u,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(u){const l=typeof u=="string"?this.fromString(u,this._encoding):u;this._chunks.push(l),this._totalLength+=l.byteLength}tryReadHeaders(u=!1){if(this._chunks.length===0)return;let l=0,c=0,f=0,p=0;e:for(;c<this._chunks.length;){const $=this._chunks[c];for(f=0;f<$.length;){switch($[f]){case e:switch(l){case 0:l=1;break;case 2:l=3;break;default:l=0}break;case r:switch(l){case 1:l=2;break;case 3:l=4,f++;break e;default:l=0}break;default:l=0}f++}p+=$.byteLength,c++}if(l!==4)return;const h=this._read(p+f),g=new Map,A=this.toString(h,"ascii").split(a);if(A.length<2)return g;for(let $=0;$<A.length-2;$++){const R=A[$],m=R.indexOf(":");if(m===-1)throw new Error(`Message header must separate key and value using ':'
@@ -1 +1 @@
1
- import{t as B,bq as m,a_ as P,bo as a,by as $,b as E,bu as oe,bs as ie}from"./BAqR9jtB.js";import{bs as G,a5 as S,aD as q,bS as g,bl as D,bA as O,b_ as x,bO as v,W as k,bn as H,c9 as V,aA as f,aB as R,be as W,b$ as j,c5 as L,a7 as ce,ay as le}from"./DYhIMPy1.js";import{h as de,s as N}from"./BPk16bSc.js";import{f as A}from"./C9gP-gRX.js";import{h as ue,W as _e,i as pe}from"./DKXEy5Lq.js";import{ac as ge}from"./x8WBzABF.js";import{Hp as ve,iG as ke}from"./BSwWMzab.js";var me=R('<li class="flex items-center gap-2"><!> <span class="min-w-0 flex-1 break-words"> </span> <span class="shrink-0 text-muted-foreground"> </span></li>'),fe=R('<ul class="space-y-1 text-sm"></ul>');function X(y,n){if(new.target)return B({component:X,...y});G(n,!0);let t=m(n,"checklist",7);const p=V(()=>{const s=_=>({state:_?"done":"waiting",status:_?a.desktop_os_checklist_allowed():a.desktop_os_checklist_missing()}),r=()=>!t().accessibility||!t().screenRecording?{state:"waiting",status:a.desktop_os_checklist_blocked()}:t().screenCapture==="ready"?{state:"done",status:a.desktop_os_checklist_ready()}:t().screenCapture==="pending"?{state:"waiting",status:a.desktop_os_checklist_checking()}:{state:"failed",status:a.desktop_os_checklist_unconfirmed()};return[{label:a.desktop_os_checklist_accessibility(),...s(t().accessibility)},{label:a.desktop_os_checklist_screenRecording(),...s(t().screenRecording)},{label:a.desktop_os_checklist_screenCapture(),...r()}]});var w={get checklist(){return t()},set checklist(s){t(s),f()},$set:$,$on:(s,r)=>E(n,s,r)},c=fe();return de(c,21,()=>q(p),s=>s.label,(s,r)=>{var _=me(),h=S(_);{var b=d=>{ue(d,{class:"size-4 shrink-0 text-success","aria-hidden":"true"})},z=d=>{_e(d,{class:"size-4 shrink-0 text-danger","aria-hidden":"true"})},U=d=>{pe(d,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})};P(h,d=>{q(r).state==="done"?d(b):q(r).state==="failed"?d(z,1):d(U,-1)})}var C=g(h,2),i=D(C,!0),I=g(C,2),T=D(I,!0);O(_),x(()=>{N(_,"data-state",q(r).state),v(i,q(r).label),v(T,q(r).status)}),k(s,_)}),O(c),x(s=>N(c,"aria-label",s),[()=>a.desktop_os_checklist_title()]),k(y,c),H(w)}var he=R('<p class="text-sm text-muted-foreground"> </p>'),Q=R('<p role="status" class="text-sm"> </p>'),be=R('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function Y(y,n){if(new.target)return B({component:Y,...y});G(n,!0);let t=m(n,"request",7),p=m(n,"pending",7,!1),w=m(n,"settingUp",7,!1),c=m(n,"guidance",7),s=m(n,"checklist",7),r=m(n,"onDecision",7);var _={get request(){return t()},set request(e){t(e),f()},get pending(){return p()},set pending(e=!1){p(e),f()},get settingUp(){return w()},set settingUp(e=!1){w(e),f()},get guidance(){return c()},set guidance(e){c(e),f()},get checklist(){return s()},set checklist(e){s(e),f()},get onDecision(){return r()},set onDecision(e){r(e),f()},$set:$,$on:(e,o)=>E(n,e,o)},h=be(),b=S(h),z=S(b),U=D(z,!0),C=g(z,2),i=D(C,!0),I=g(C,2);{var T=e=>{var o=he(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_claimPrimary({computer:t().computerName})]),k(e,o)};P(I,e=>{t().claimsPrimary&&e(T)})}var d=g(I,2);{var ee=e=>{X(e,{get checklist(){return s()}})};P(d,e=>{s()&&e(ee)})}var M=g(d,2);{var te=e=>{var o=Q(),l=D(o,!0);x(()=>v(l,c())),k(e,o)};P(M,e=>{c()&&e(te)})}var se=g(M,2);{var re=e=>{var o=Q(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_pending()]),k(e,o)};P(se,e=>{p()&&!w()&&e(re)})}O(b);var F=g(b,2),J=S(F);A(J,{size:"compact",variant:"primary",get disabled(){return p()},onclick:()=>r()("allow_once"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_once()]),k(e,l)},$$slots:{default:!0}});var K=g(J,2);A(K,{size:"compact",variant:"outline",get disabled(){return p()},onclick:()=>r()("allow_future"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_future()]),k(e,l)},$$slots:{default:!0}});var ae=g(K,2);{let e=V(()=>p()&&!w());A(ae,{size:"compact",variant:"ghost",get disabled(){return q(e)},onclick:()=>r()("deny"),children:(o,l)=>{W();var u=j();x(ne=>v(u,ne),[()=>a.desktop_consent_deny()]),k(o,u)},$$slots:{default:!0}})}return O(F),O(h),x((e,o,l,u)=>{N(h,"aria-label",e),N(b,"aria-label",o),v(U,l),v(i,u)},[()=>a.desktop_consent_title(),()=>a.desktop_consent_title(),()=>a.desktop_consent_request({agent:t().agentName,computer:t().computerName}),()=>a.desktop_consent_description()]),k(y,h),H(_)}function Z(y,n){if(new.target)return B({component:Z,...y});G(n,!0);const t=()=>oe(_,"$entry",p),[p,w]=ie();let c=m(n,"workspaceId",7),s=m(n,"agentId",7),r=m(n,"requestId",7);const _=ge(L(()=>c()),L(()=>s()));var h={get workspaceId(){return c()},set workspaceId(i){c(i),f()},get agentId(){return s()},set agentId(i){s(i),f()},get requestId(){return r()},set requestId(i){r(i),f()},$set:$,$on:(i,I)=>E(n,i,I)},b=ce(),z=le(b);{var U=i=>{Y(i,{get request(){return t().pending},get pending(){return t().submitting},get settingUp(){return t().settingUp},get guidance(){return t().error},get checklist(){return t().osChecklist},onDecision:I=>ve.dispatch(ke(c(),s(),r(),I))})};P(z,i=>{t()?.pending?.requestId===r()&&i(U)})}k(y,b);var C=H(h);return w(),C}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));export{Z as D,ze as a,X as b};
1
+ import{t as B,bq as m,a_ as P,bo as a,by as $,b as E,bu as oe,bs as ie}from"./B3iaLYr6.js";import{bs as G,a5 as S,aD as q,bS as g,bl as D,bA as O,b_ as x,bO as v,W as k,bn as H,c9 as V,aA as f,aB as R,be as W,b$ as j,c5 as L,a7 as ce,ay as le}from"./DYhIMPy1.js";import{h as de,s as N}from"./DEmaG7Ya.js";import{f as A}from"./CpELl9t1.js";import{h as ue,W as _e,i as pe}from"./dUOQ5AaY.js";import{ac as ge}from"./D441f0lY.js";import{Hp as ve,iG as ke}from"./h8IoI-w7.js";var me=R('<li class="flex items-center gap-2"><!> <span class="min-w-0 flex-1 break-words"> </span> <span class="shrink-0 text-muted-foreground"> </span></li>'),fe=R('<ul class="space-y-1 text-sm"></ul>');function X(y,n){if(new.target)return B({component:X,...y});G(n,!0);let t=m(n,"checklist",7);const p=V(()=>{const s=_=>({state:_?"done":"waiting",status:_?a.desktop_os_checklist_allowed():a.desktop_os_checklist_missing()}),r=()=>!t().accessibility||!t().screenRecording?{state:"waiting",status:a.desktop_os_checklist_blocked()}:t().screenCapture==="ready"?{state:"done",status:a.desktop_os_checklist_ready()}:t().screenCapture==="pending"?{state:"waiting",status:a.desktop_os_checklist_checking()}:{state:"failed",status:a.desktop_os_checklist_unconfirmed()};return[{label:a.desktop_os_checklist_accessibility(),...s(t().accessibility)},{label:a.desktop_os_checklist_screenRecording(),...s(t().screenRecording)},{label:a.desktop_os_checklist_screenCapture(),...r()}]});var w={get checklist(){return t()},set checklist(s){t(s),f()},$set:$,$on:(s,r)=>E(n,s,r)},c=fe();return de(c,21,()=>q(p),s=>s.label,(s,r)=>{var _=me(),h=S(_);{var b=d=>{ue(d,{class:"size-4 shrink-0 text-success","aria-hidden":"true"})},z=d=>{_e(d,{class:"size-4 shrink-0 text-danger","aria-hidden":"true"})},U=d=>{pe(d,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})};P(h,d=>{q(r).state==="done"?d(b):q(r).state==="failed"?d(z,1):d(U,-1)})}var C=g(h,2),i=D(C,!0),I=g(C,2),T=D(I,!0);O(_),x(()=>{N(_,"data-state",q(r).state),v(i,q(r).label),v(T,q(r).status)}),k(s,_)}),O(c),x(s=>N(c,"aria-label",s),[()=>a.desktop_os_checklist_title()]),k(y,c),H(w)}var he=R('<p class="text-sm text-muted-foreground"> </p>'),Q=R('<p role="status" class="text-sm"> </p>'),be=R('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function Y(y,n){if(new.target)return B({component:Y,...y});G(n,!0);let t=m(n,"request",7),p=m(n,"pending",7,!1),w=m(n,"settingUp",7,!1),c=m(n,"guidance",7),s=m(n,"checklist",7),r=m(n,"onDecision",7);var _={get request(){return t()},set request(e){t(e),f()},get pending(){return p()},set pending(e=!1){p(e),f()},get settingUp(){return w()},set settingUp(e=!1){w(e),f()},get guidance(){return c()},set guidance(e){c(e),f()},get checklist(){return s()},set checklist(e){s(e),f()},get onDecision(){return r()},set onDecision(e){r(e),f()},$set:$,$on:(e,o)=>E(n,e,o)},h=be(),b=S(h),z=S(b),U=D(z,!0),C=g(z,2),i=D(C,!0),I=g(C,2);{var T=e=>{var o=he(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_claimPrimary({computer:t().computerName})]),k(e,o)};P(I,e=>{t().claimsPrimary&&e(T)})}var d=g(I,2);{var ee=e=>{X(e,{get checklist(){return s()}})};P(d,e=>{s()&&e(ee)})}var M=g(d,2);{var te=e=>{var o=Q(),l=D(o,!0);x(()=>v(l,c())),k(e,o)};P(M,e=>{c()&&e(te)})}var se=g(M,2);{var re=e=>{var o=Q(),l=D(o,!0);x(u=>v(l,u),[()=>a.desktop_consent_pending()]),k(e,o)};P(se,e=>{p()&&!w()&&e(re)})}O(b);var F=g(b,2),J=S(F);A(J,{size:"compact",variant:"primary",get disabled(){return p()},onclick:()=>r()("allow_once"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_once()]),k(e,l)},$$slots:{default:!0}});var K=g(J,2);A(K,{size:"compact",variant:"outline",get disabled(){return p()},onclick:()=>r()("allow_future"),children:(e,o)=>{W();var l=j();x(u=>v(l,u),[()=>a.desktop_consent_future()]),k(e,l)},$$slots:{default:!0}});var ae=g(K,2);{let e=V(()=>p()&&!w());A(ae,{size:"compact",variant:"ghost",get disabled(){return q(e)},onclick:()=>r()("deny"),children:(o,l)=>{W();var u=j();x(ne=>v(u,ne),[()=>a.desktop_consent_deny()]),k(o,u)},$$slots:{default:!0}})}return O(F),O(h),x((e,o,l,u)=>{N(h,"aria-label",e),N(b,"aria-label",o),v(U,l),v(i,u)},[()=>a.desktop_consent_title(),()=>a.desktop_consent_title(),()=>a.desktop_consent_request({agent:t().agentName,computer:t().computerName}),()=>a.desktop_consent_description()]),k(y,h),H(_)}function Z(y,n){if(new.target)return B({component:Z,...y});G(n,!0);const t=()=>oe(_,"$entry",p),[p,w]=ie();let c=m(n,"workspaceId",7),s=m(n,"agentId",7),r=m(n,"requestId",7);const _=ge(L(()=>c()),L(()=>s()));var h={get workspaceId(){return c()},set workspaceId(i){c(i),f()},get agentId(){return s()},set agentId(i){s(i),f()},get requestId(){return r()},set requestId(i){r(i),f()},$set:$,$on:(i,I)=>E(n,i,I)},b=ce(),z=le(b);{var U=i=>{Y(i,{get request(){return t().pending},get pending(){return t().submitting},get settingUp(){return t().settingUp},get guidance(){return t().error},get checklist(){return t().osChecklist},onDecision:I=>ve.dispatch(ke(c(),s(),r(),I))})};P(z,i=>{t()?.pending?.requestId===r()&&i(U)})}k(y,b);var C=H(h);return w(),C}const ze=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));export{Z as D,ze as a,X as b};
@@ -1 +1 @@
1
- import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as G}from"./D-XHjwsv.js";import{F as g,o as P,p,H as _}from"./C0VJEx2v.js";import{Hp as c}from"./BSwWMzab.js";import{y as J,F as S,u as Q,M as Z,G as V}from"./UuiGcpAE.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||G(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as G}from"./D-b9zJlt.js";import{F as g,o as P,p,H as _}from"./Dr41JWYu.js";import{Hp as c}from"./h8IoI-w7.js";import{y as J,F as S,u as Q,M as Z,G as V}from"./CBRfvExq.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||G(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -1 +1 @@
1
- import{a2 as f,HR as p,qA as k}from"./BSwWMzab.js";import{cd as m}from"./DYhIMPy1.js";const h=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],N="agent:delegated";function n(t){return typeof t=="string"&&t.length>0?t:void 0}function S(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const r=n(e.status)??"";return r==="error"||r==="failed"?"err":r==="completed"?"ok":p(r)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return n(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const r=n(e.displayStatus);return r==="pr_merged"||r==="complete"?"ok":r==="pr_ready"||r==="pr_queued"||r==="pr_open"?"accent":r==="needs_attention"?"warn":r==="idle"||r==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?k(n(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function T(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return n(e.error)??"";case"agent:status-changed":return"";case"task:created":return n(e.noteTitle)??n(e.noteId)??"";case"task:status-changed":return[n(e.noteTitle)??n(e.noteId),n(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return n(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,n(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return n(e.message)??n(e.commit)??"";case"git:pull":return n(e.branch)??"";default:return""}}const w=new Set(["idle","inactive"]);function E(t,e){if(t!=="agent:status-changed")return!1;const r=(n(e.status)??"").toLowerCase();return w.has(r)}function _(t,e){return t==="workspace:attention-changed"&&n(e.attention)===f}function y(t){const e=typeof t.type=="string"?t.type:"";if(!h.includes(e))return null;const r=n(t.id),u=n(t.timestamp),c=n(t.workspaceId);if(!r||!u||!c)return null;const a=t.data&&typeof t.data=="object"?t.data:{};if(E(e,a)||_(e,a))return null;const s={id:r,ts:u,colorClass:S(e,a),source:c,kind:e,text:T(e,a)};if(e.startsWith("agent:")){const i=n(a.agentId),d=n(a.agentName);if(i&&(s.agentId=i),d&&(s.agentName=d),e==="agent:status-changed"){const l=n(a.status);l&&(s.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const i=n(a.displayStatus);i&&(s.displayStatus=i)}return s}const o=new Set;function A(t){return o.add(t),()=>o.delete(t)}function D(t){for(const e of o)e(t)}const g=m(null),H={subscribe:g.subscribe};function U(t){g.set(t)}export{N as H,h as a,D as e,y as m,A as o,U as s,H as t};
1
+ import{a2 as f,HR as p,qA as k}from"./h8IoI-w7.js";import{cd as m}from"./DYhIMPy1.js";const h=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],N="agent:delegated";function n(t){return typeof t=="string"&&t.length>0?t:void 0}function S(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const r=n(e.status)??"";return r==="error"||r==="failed"?"err":r==="completed"?"ok":p(r)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return n(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const r=n(e.displayStatus);return r==="pr_merged"||r==="complete"?"ok":r==="pr_ready"||r==="pr_queued"||r==="pr_open"?"accent":r==="needs_attention"?"warn":r==="idle"||r==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?k(n(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function T(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return n(e.error)??"";case"agent:status-changed":return"";case"task:created":return n(e.noteTitle)??n(e.noteId)??"";case"task:status-changed":return[n(e.noteTitle)??n(e.noteId),n(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return n(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,n(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return n(e.message)??n(e.commit)??"";case"git:pull":return n(e.branch)??"";default:return""}}const w=new Set(["idle","inactive"]);function E(t,e){if(t!=="agent:status-changed")return!1;const r=(n(e.status)??"").toLowerCase();return w.has(r)}function _(t,e){return t==="workspace:attention-changed"&&n(e.attention)===f}function y(t){const e=typeof t.type=="string"?t.type:"";if(!h.includes(e))return null;const r=n(t.id),u=n(t.timestamp),c=n(t.workspaceId);if(!r||!u||!c)return null;const a=t.data&&typeof t.data=="object"?t.data:{};if(E(e,a)||_(e,a))return null;const s={id:r,ts:u,colorClass:S(e,a),source:c,kind:e,text:T(e,a)};if(e.startsWith("agent:")){const i=n(a.agentId),d=n(a.agentName);if(i&&(s.agentId=i),d&&(s.agentName=d),e==="agent:status-changed"){const l=n(a.status);l&&(s.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const i=n(a.displayStatus);i&&(s.displayStatus=i)}return s}const o=new Set;function A(t){return o.add(t),()=>o.delete(t)}function D(t){for(const e of o)e(t)}const g=m(null),H={subscribe:g.subscribe};function U(t){g.set(t)}export{N as H,h as a,D as e,y as m,A as o,U as s,H as t};
@@ -1 +1 @@
1
- import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./BAqR9jtB.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./BPk16bSc.js";import{s as Me}from"./DiCMHWTR.js";import{c as S}from"./B2RRuLl5.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./DKXEy5Lq.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./DD-f8Y3V.js";import{f as ge}from"./C9gP-gRX.js";import{i as Vt}from"./B6Eksue8.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./DO2cS8JO.js";import{n as ve}from"./Bc-8qHYh.js";import{c as Jt}from"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{Hp as je,mp as Ut,Ee as Yt}from"./BSwWMzab.js";import{v as Qt}from"./UuiGcpAE.js";import{i as J}from"./BHqHNrOT.js";import{bn as Zt,b4 as er,b2 as tr}from"./C80u9j_3.js";import{ck as rr}from"./DY6JypjK.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
1
+ import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./B3iaLYr6.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./DEmaG7Ya.js";import{s as Me}from"./hUiIfi2t.js";import{c as S}from"./Dj42fWMH.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./dUOQ5AaY.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./CfHhYnBc.js";import{f as ge}from"./CpELl9t1.js";import{i as Vt}from"./DsAKyTjw.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./CqSXeJtk.js";import{n as ve}from"./DYlSkPA-.js";import{c as Jt}from"./ChTqQfQN.js";import"./D0UrvUQM.js";import{Hp as je,mp as Ut,Ee as Yt}from"./h8IoI-w7.js";import{v as Qt}from"./CBRfvExq.js";import{i as J}from"./Ch8MPJbT.js";import{bp as Zt,b6 as er,b4 as tr}from"./BLUkoS8T.js";import{ck as rr}from"./Cti1rV_x.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
@@ -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"./q4Mp6azq.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"./BKJB_6oY.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,4 +1,4 @@
1
- import{t as Ge,bq as m,bo as d,a_ as me,by as qe,b as He,bt as Lr,bu as mt,bs as Sr}from"./BAqR9jtB.js";import{bs as je,ay as q,be as dt,b$ as tt,b_ as W,bO as G,W as h,bS as g,aD as e,a7 as _t,bl as he,bn as Xe,c9 as b,aA as _,aB as X,ca as Pe,c0 as ht,bH as i,a5 as Q,bA as ee,bV as M,br as xt,bk as Tr,bj as $r,bf as Co,c5 as Ct,aw as Jt,bz as ko,cd as qt}from"./DYhIMPy1.js";import{c as Y}from"./B2RRuLl5.js";import{h as br,i as Io,k as Pt,s as Ze,l as Eo,I as Po,a as kt}from"./BPk16bSc.js";import{b as vt}from"./BaIAhI85.js";import{d as mr}from"./C6krgOsR.js";import{F as Fo,E as Ro,I as Lo}from"./UuiGcpAE.js";import{c as or}from"./ChTqQfQN.js";import{b as So}from"./BgyuoEGq.js";import{f as Re,bc as To}from"./C9gP-gRX.js";import{n as at}from"./Bc-8qHYh.js";import{s as $o}from"./DiCMHWTR.js";import{ck as Ur,F as ve,a7 as Uo,aX as No,aq as Ao,cF as Bo,aK as Oo,aY as Yt,$ as nr,a1 as ar,a$ as Mo,av as Do,ce as Nr,bP as Ar,b8 as Vo,cO as Br,ci as Or,ax as Wo}from"./DKXEy5Lq.js";import"./7ZJvg7ev.js";import{Hp as Ee,fI as Ko,bv as zo,ym as Go,xI as qo,Jo as _r,dM as Ho,bO as jo,Jn as Xo,ts as Zo,Jl as hr,go as Jo,sO as Yo,Jm as Qo,J1 as yr,Jk as xr}from"./BSwWMzab.js";import{a as Mr,B as It}from"./BvFAWM27.js";import{ce as en}from"./C80u9j_3.js";import{$ as tn}from"./D84mJH5u.js";import{w as rn,K as on}from"./C0VJEx2v.js";import{I as $t}from"./XzWc0fs1.js";import{d as nn}from"./DoCNcHnE.js";import{aa as an}from"./A3beYjJS.js";import{i as Qt}from"./BHqHNrOT.js";import{i as sn,a as ln}from"./DhAv1XMF.js";import{R as dn,n as Ht,o as lt,m as un,l as ze,s as Dr,k as Vr,K as cn,p as fn,r as gn,q as vn,M as Wr}from"./DO2cS8JO.js";import{k as pn,B as wn}from"./B6Eksue8.js";import"./7IyNIHph.js";import{t as Ne}from"./Bl_iEh1f.js";import{M as Kr}from"./AGSVFpXc.js";import"./BRNfUSNR.js";import"./-URcs0EB.js";import"./DH9gMPGd.js";import{o as Cr,s as it,n as St}from"./UyBYtOpv.js";import{g as bn}from"./DfN8_dcw.js";import{f as mn}from"./BOQCK4ni.js";import{az as _n,a1 as hn,Q as yn}from"./sg8Cer3T.js";import{aN as xn}from"./DY6JypjK.js";function Cn(o,r){return o.loadURL(r)}function kn(o){return{previousUrlProp:o||null}}function kr(o,r){o.previousUrlProp=r}function In(o,r,a){const v=a||r;return o.previousUrlProp===v?null:(o.previousUrlProp=v,v)}function En(o,r,a){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:a.webviewReady?(o.previousUrlProp=r,a.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const zr=or("TabBoundsReporter"),Pn=150;function jt(o,r,a){!(r>0)||!(a>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:a}).catch(v=>{zr.debug("Failed to report tab bounds",{tabId:o,error:v})})}function Ir(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{zr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Fn(o,r){let a=r,v;const P=typeof ResizeObserver>"u"?void 0:new ResizeObserver(F=>{if(!a)return;const E=F[F.length-1]?.contentRect;if(!E)return;const w=a;clearTimeout(v),v=setTimeout(()=>{jt(w,E.width,E.height)},Pn)});if(P?.observe(o),a){const F=o.getBoundingClientRect();jt(a,F.width,F.height)}return{update(F){if(F!==a&&(clearTimeout(v),a&&Ir(a),a=F,a)){const E=o.getBoundingClientRect();jt(a,E.width,E.height)}},destroy(){clearTimeout(v),P?.disconnect(),a&&Ir(a)}}}function Gr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function st(o,r=typeof window<"u"?window.location.origin:""){return o==="about:blank"||qr(o,r)}function qr(o,r=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const a=new URL(o);return Mr.NAVIGATION_ALLOWED.includes(a.protocol)&&a.origin!==r}catch{return!1}}const er="__INTENT_PANEL_BRACKET__:",Rn=`
1
+ import{t as Ge,bq as m,bo as d,a_ as me,by as qe,b as He,bt as Lr,bu as mt,bs as Sr}from"./B3iaLYr6.js";import{bs as je,ay as q,be as dt,b$ as tt,b_ as W,bO as G,W as h,bS as g,aD as e,a7 as _t,bl as he,bn as Xe,c9 as b,aA as _,aB as X,ca as Pe,c0 as ht,bH as i,a5 as Q,bA as ee,bV as M,br as xt,bk as Tr,bj as $r,bf as Co,c5 as Ct,aw as Jt,bz as ko,cd as qt}from"./DYhIMPy1.js";import{c as Y}from"./Dj42fWMH.js";import{h as br,i as Io,k as Pt,s as Ze,l as Eo,I as Po,a as kt}from"./DEmaG7Ya.js";import{b as vt}from"./BaIAhI85.js";import{d as mr}from"./DMkYHym4.js";import{F as Fo,E as Ro,I as Lo}from"./CBRfvExq.js";import{c as or}from"./ChTqQfQN.js";import{b as So}from"./BZmsmL8P.js";import{f as Re,bc as To}from"./CpELl9t1.js";import{n as at}from"./DYlSkPA-.js";import{s as $o}from"./hUiIfi2t.js";import{ck as Ur,F as ve,a7 as Uo,aX as No,aq as Ao,cF as Bo,aK as Oo,aY as Yt,$ as nr,a1 as ar,a$ as Mo,av as Do,ce as Nr,bP as Ar,b8 as Vo,cO as Br,ci as Or,ax as Wo}from"./dUOQ5AaY.js";import"./D0UrvUQM.js";import{Hp as Ee,fI as Ko,bv as zo,ym as Go,xI as qo,Jo as _r,dM as Ho,bO as jo,Jn as Xo,ts as Zo,Jl as hr,go as Jo,sO as Yo,Jm as Qo,J1 as yr,Jk as xr}from"./h8IoI-w7.js";import{a as Mr,B as It}from"./BvFAWM27.js";import{ch as en}from"./BLUkoS8T.js";import{$ as tn}from"./BoXSGPEf.js";import{w as rn,K as on}from"./Dr41JWYu.js";import{I as $t}from"./82qiqofo.js";import{d as nn}from"./BTxL9if-.js";import{aa as an}from"./DHNO0898.js";import{i as Qt}from"./Ch8MPJbT.js";import{i as sn,a as ln}from"./DbrsPlQk.js";import{R as dn,n as Ht,o as lt,m as un,l as ze,s as Dr,k as Vr,K as cn,p as fn,r as gn,q as vn,M as Wr}from"./CqSXeJtk.js";import{k as pn,B as wn}from"./DsAKyTjw.js";import"./Swkg1pRS.js";import{t as Ne}from"./6Rt8MvWn.js";import{M as Kr}from"./Clc6wozH.js";import"./BA8g-07b.js";import"./DLueLf8l.js";import"./BMMcARVk.js";import{o as Cr,s as it,n as St}from"./UyBYtOpv.js";import{g as bn}from"./DfN8_dcw.js";import{f as mn}from"./CLSvSGMY.js";import{az as _n,a1 as hn,Q as yn}from"./E-3i0Fur.js";import{aN as xn}from"./Cti1rV_x.js";function Cn(o,r){return o.loadURL(r)}function kn(o){return{previousUrlProp:o||null}}function kr(o,r){o.previousUrlProp=r}function In(o,r,a){const v=a||r;return o.previousUrlProp===v?null:(o.previousUrlProp=v,v)}function En(o,r,a){return r?o.previousUrlProp===null?(o.previousUrlProp=r,{shouldLoad:!1,targetUrl:null}):r===o.previousUrlProp?{shouldLoad:!1,targetUrl:null}:a.webviewReady?(o.previousUrlProp=r,a.isValidBrowserUrl(r)?{shouldLoad:!0,targetUrl:r}:{shouldLoad:!1,targetUrl:null}):{shouldLoad:!1,targetUrl:null}:{shouldLoad:!1,targetUrl:null}}const zr=or("TabBoundsReporter"),Pn=150;function jt(o,r,a){!(r>0)||!(a>0)||window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o,width:r,height:a}).catch(v=>{zr.debug("Failed to report tab bounds",{tabId:o,error:v})})}function Ir(o){window.electronAPI?.invoke("browser:report-tab-bounds",{tabId:o}).catch(r=>{zr.debug("Failed to clear tab bounds",{tabId:o,error:r})})}function Fn(o,r){let a=r,v;const P=typeof ResizeObserver>"u"?void 0:new ResizeObserver(F=>{if(!a)return;const E=F[F.length-1]?.contentRect;if(!E)return;const w=a;clearTimeout(v),v=setTimeout(()=>{jt(w,E.width,E.height)},Pn)});if(P?.observe(o),a){const F=o.getBoundingClientRect();jt(a,F.width,F.height)}return{update(F){if(F!==a&&(clearTimeout(v),a&&Ir(a),a=F,a)){const E=o.getBoundingClientRect();jt(a,E.width,E.height)}},destroy(){clearTimeout(v),P?.disconnect(),a&&Ir(a)}}}function Gr(o){let r=o.trim();if(!r)return null;/^[a-z][a-z0-9+.-]*:\/\//i.test(r)||(r=(r.includes("localhost")||r.includes("127.0.0.1")||r.includes("0.0.0.0")?"http://":"https://")+r);try{return new URL(r),r}catch{return null}}function st(o,r=typeof window<"u"?window.location.origin:""){return o==="about:blank"||qr(o,r)}function qr(o,r=typeof window<"u"?window.location.origin:""){if(!o)return!1;try{const a=new URL(o);return Mr.NAVIGATION_ALLOWED.includes(a.protocol)&&a.origin!==r}catch{return!1}}const er="__INTENT_PANEL_BRACKET__:",Rn=`
2
2
  (function() {
3
3
  if (window.__augmentKeyboardInterceptorInstalled) return;
4
4
  window.__augmentKeyboardInterceptorInstalled = true;
@@ -1 +1 @@
1
- import{t as k,bq as s,a_ as j,by as q,b as B,br as D,bt as z}from"./BAqR9jtB.js";import{bo as E,bs as H,a7 as _,ay as p,W as m,bn as I,aA as l,aD as S,a5 as F,bf as J,bA as G,c9 as N,aB as K}from"./DYhIMPy1.js";import{s as w}from"./DiCMHWTR.js";import{c as L}from"./B2RRuLl5.js";import{c as M,f as O}from"./BPk16bSc.js";import{a as Q}from"./B6Eksue8.js";import{aT as W,aJ as P,bn as R}from"./C9gP-gRX.js";var U=new Set(["$$slots","$$events","$$legacy","id","level","children","child","ref"]),V=K("<div><!></div>");function T(f,r){const d=E();if(new.target)return k({component:T,...f});H(r,!0);let n=s(r,"id",23,()=>W(d)),o=s(r,"level",7,2),u=s(r,"children",7),i=s(r,"child",7),c=s(r,"ref",15,null),b=D(r,U);const t=Q.create({id:P(()=>n()),level:P(()=>o()),ref:P(()=>c(),e=>c(e))}),v=N(()=>R(b,t.props));var x={get id(){return n()},set id(e=W(d)){n(e),l()},get level(){return o()},set level(e=2){o(e),l()},get children(){return u()},set children(e){u(e),l()},get child(){return i()},set child(e){i(e),l()},get ref(){return c()},set ref(e=null){c(e),l()},$set:q,$on:(e,a)=>B(r,e,a)},g=_(),C=p(g);{var h=e=>{var a=_(),A=p(a);w(A,i,()=>({props:S(v)})),m(e,a)},y=e=>{var a=V();M(a,()=>({...S(v)}));var A=F(a);w(A,()=>u()??J),G(a),m(e,a)};j(C,e=>{i()?e(h):e(y,-1)})}return m(f,g),I(x)}var X=new Set(["$$slots","$$events","$$legacy","level","class","children"]);function Y(f,r){if(new.target)return k({component:Y,...f});H(r,!0);let d=s(r,"level",7,3),n=s(r,"class",7),o=s(r,"children",7),u=D(r,X);var i={get level(){return d()},set level(t=3){d(t),l()},get class(){return n()},set class(t){n(t),l()},get children(){return o()},set children(t){o(t),l()},$set:q,$on:(t,v)=>B(r,t,v)},c=_(),b=p(c);{let t=N(()=>O("flex",n()));L(b,()=>T,(v,x)=>{x(v,z({get level(){return d()},get class(){return S(t)}},()=>u,{children:(g,C)=>{var h=_(),y=p(h);w(y,()=>o()??J),m(g,h)},$$slots:{default:!0}}))})}return m(f,c),I(i)}export{Y as A};
1
+ import{t as k,bq as s,a_ as j,by as q,b as B,br as D,bt as z}from"./B3iaLYr6.js";import{bo as E,bs as H,a7 as _,ay as p,W as m,bn as I,aA as l,aD as S,a5 as F,bf as J,bA as G,c9 as N,aB as K}from"./DYhIMPy1.js";import{s as w}from"./hUiIfi2t.js";import{c as L}from"./Dj42fWMH.js";import{c as M,f as O}from"./DEmaG7Ya.js";import{a as Q}from"./DsAKyTjw.js";import{aT as W,aJ as P,bn as R}from"./CpELl9t1.js";var U=new Set(["$$slots","$$events","$$legacy","id","level","children","child","ref"]),V=K("<div><!></div>");function T(f,r){const d=E();if(new.target)return k({component:T,...f});H(r,!0);let n=s(r,"id",23,()=>W(d)),o=s(r,"level",7,2),u=s(r,"children",7),i=s(r,"child",7),c=s(r,"ref",15,null),b=D(r,U);const t=Q.create({id:P(()=>n()),level:P(()=>o()),ref:P(()=>c(),e=>c(e))}),v=N(()=>R(b,t.props));var x={get id(){return n()},set id(e=W(d)){n(e),l()},get level(){return o()},set level(e=2){o(e),l()},get children(){return u()},set children(e){u(e),l()},get child(){return i()},set child(e){i(e),l()},get ref(){return c()},set ref(e=null){c(e),l()},$set:q,$on:(e,a)=>B(r,e,a)},g=_(),C=p(g);{var h=e=>{var a=_(),A=p(a);w(A,i,()=>({props:S(v)})),m(e,a)},y=e=>{var a=V();M(a,()=>({...S(v)}));var A=F(a);w(A,()=>u()??J),G(a),m(e,a)};j(C,e=>{i()?e(h):e(y,-1)})}return m(f,g),I(x)}var X=new Set(["$$slots","$$events","$$legacy","level","class","children"]);function Y(f,r){if(new.target)return k({component:Y,...f});H(r,!0);let d=s(r,"level",7,3),n=s(r,"class",7),o=s(r,"children",7),u=D(r,X);var i={get level(){return d()},set level(t=3){d(t),l()},get class(){return n()},set class(t){n(t),l()},get children(){return o()},set children(t){o(t),l()},$set:q,$on:(t,v)=>B(r,t,v)},c=_(),b=p(c);{let t=N(()=>O("flex",n()));L(b,()=>T,(v,x)=>{x(v,z({get level(){return d()},get class(){return S(t)}},()=>u,{children:(g,C)=>{var h=_(),y=p(h);w(y,()=>o()??J),m(g,h)},$$slots:{default:!0}}))})}return m(f,c),I(i)}export{Y as A};
@@ -1,3 +1,3 @@
1
- import{t as D,bq as d,a_ as P,by as b,b as S}from"./BAqR9jtB.js";import{bs as A,a7 as C,ay as M,W as $,bn as x,aA as m,aD as i,c9 as c}from"./DYhIMPy1.js";import{D as f,M as z}from"./q4Mp6azq.js";import{S as B,p as J}from"./CA7UZgrf.js";import{N}from"./CzrG_lpv.js";import{Hp as W,u8 as j,bi as E}from"./BSwWMzab.js";import{J as K}from"./B6Eksue8.js";import{$ as O}from"./DY6JypjK.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new N,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
1
+ import{t as D,bq as d,a_ as P,by as b,b as S}from"./B3iaLYr6.js";import{bs as A,a7 as C,ay as M,W as $,bn as x,aA as m,aD as i,c9 as c}from"./DYhIMPy1.js";import{D as f,M as z}from"./BKJB_6oY.js";import{S as B,p as J}from"./DUjsEo3X.js";import{N}from"./DCPTVyDU.js";import{Hp as W,u8 as j,bi as E}from"./h8IoI-w7.js";import{J as K}from"./DsAKyTjw.js";import{$ as O}from"./Cti1rV_x.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new N,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
2
2
  ${t()}
3
3
  \`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return J(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?W.dispatch(j(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:E(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},u=C(),y=M(u);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{z(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},_=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);B(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(I):e(_,-1)})}return $(l,u),x(w)}export{R as default};