@highstate/designer 0.9.14 → 0.9.16

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 (522) hide show
  1. package/package.json +15 -9
  2. package/.output/nitro.json +0 -15
  3. package/.output/public/_nuxt/-gUCin__.js +0 -1
  4. package/.output/public/_nuxt/0cvrggvQ.js +0 -6
  5. package/.output/public/_nuxt/1FBXtL6T.js +0 -1
  6. package/.output/public/_nuxt/25W9uPmb.js +0 -6
  7. package/.output/public/_nuxt/2vEc2rIP.js +0 -1
  8. package/.output/public/_nuxt/32uRPJ4N.js +0 -1
  9. package/.output/public/_nuxt/3e1v2bzS.js +0 -1
  10. package/.output/public/_nuxt/3x3noH9Z.js +0 -1
  11. package/.output/public/_nuxt/4Ik7cdeQ.js +0 -8
  12. package/.output/public/_nuxt/5Rap-vPy.js +0 -6
  13. package/.output/public/_nuxt/5i3qLPDT.js +0 -1
  14. package/.output/public/_nuxt/6nHXG8SA.js +0 -1
  15. package/.output/public/_nuxt/7i6GEmcB.js +0 -1
  16. package/.output/public/_nuxt/8VYUoF4n.js +0 -1
  17. package/.output/public/_nuxt/8iK_SAcF.js +0 -1
  18. package/.output/public/_nuxt/B-n0qIwP.js +0 -1
  19. package/.output/public/_nuxt/B03wrqEc.js +0 -6
  20. package/.output/public/_nuxt/B0QpCHAm.js +0 -1
  21. package/.output/public/_nuxt/B0m2ddpp.js +0 -1
  22. package/.output/public/_nuxt/B1yitclQ.js +0 -1
  23. package/.output/public/_nuxt/B2VXiYNb.js +0 -1
  24. package/.output/public/_nuxt/B5zXfXm9.js +0 -6
  25. package/.output/public/_nuxt/B7mTdjB0.js +0 -1
  26. package/.output/public/_nuxt/B7zkapVa.js +0 -1
  27. package/.output/public/_nuxt/B82-JnRn.js +0 -1
  28. package/.output/public/_nuxt/B9Kps4VT.js +0 -1
  29. package/.output/public/_nuxt/B9QVBjCK.js +0 -1
  30. package/.output/public/_nuxt/B9QZihn4.js +0 -1
  31. package/.output/public/_nuxt/B9Xyijhd.js +0 -6
  32. package/.output/public/_nuxt/BAmeXbWa.js +0 -1
  33. package/.output/public/_nuxt/BAsAT7ku.js +0 -1
  34. package/.output/public/_nuxt/BB0-839A.js +0 -1
  35. package/.output/public/_nuxt/BDJi0rE3.js +0 -1
  36. package/.output/public/_nuxt/BEwlwnbL.js +0 -1
  37. package/.output/public/_nuxt/BFG1Mk7z.js +0 -6
  38. package/.output/public/_nuxt/BFKVEqu8.js +0 -1
  39. package/.output/public/_nuxt/BFVdkX1U.js +0 -1
  40. package/.output/public/_nuxt/BFdI9D2b.js +0 -1
  41. package/.output/public/_nuxt/BG8T9Pi3.js +0 -1
  42. package/.output/public/_nuxt/BHrmToEH.js +0 -1
  43. package/.output/public/_nuxt/BHuRbl13.js +0 -1
  44. package/.output/public/_nuxt/BIHI7g3E.js +0 -1
  45. package/.output/public/_nuxt/BIkblFNm.js +0 -1
  46. package/.output/public/_nuxt/BInbHe_J.js +0 -1
  47. package/.output/public/_nuxt/BIzIjuvV.js +0 -1
  48. package/.output/public/_nuxt/BKLW6Or0.js +0 -1
  49. package/.output/public/_nuxt/BKe6jfpc.js +0 -1
  50. package/.output/public/_nuxt/BKlk5iyT.js +0 -6
  51. package/.output/public/_nuxt/BLe-5KzV.js +0 -1
  52. package/.output/public/_nuxt/BMWR74SV.js +0 -1
  53. package/.output/public/_nuxt/BPQEJVH-.js +0 -1
  54. package/.output/public/_nuxt/BQ8w6xss.js +0 -1
  55. package/.output/public/_nuxt/BR7mELCv.js +0 -1
  56. package/.output/public/_nuxt/BRGHnwaO.js +0 -1
  57. package/.output/public/_nuxt/BRZ36xJF.js +0 -1
  58. package/.output/public/_nuxt/BSkB5QuD.js +0 -6
  59. package/.output/public/_nuxt/BTJTHyun.js +0 -1
  60. package/.output/public/_nuxt/BU0udk1K.js +0 -1
  61. package/.output/public/_nuxt/BUGa-R-r.js +0 -1
  62. package/.output/public/_nuxt/BV7otONQ.js +0 -1
  63. package/.output/public/_nuxt/BVgHyAf_.js +0 -1
  64. package/.output/public/_nuxt/BWvSN4gD.js +0 -1
  65. package/.output/public/_nuxt/BXkSAIEj.js +0 -1
  66. package/.output/public/_nuxt/B_c3zf-v.js +0 -6
  67. package/.output/public/_nuxt/B_fMsGYe.js +0 -6
  68. package/.output/public/_nuxt/B_m7g4N7.js +0 -1
  69. package/.output/public/_nuxt/BaJupSGV.js +0 -6
  70. package/.output/public/_nuxt/BaLxmfj-.js +0 -6
  71. package/.output/public/_nuxt/BauLn-NW.js +0 -1
  72. package/.output/public/_nuxt/BbbGund1.js +0 -6
  73. package/.output/public/_nuxt/BbcW6ACK.js +0 -1
  74. package/.output/public/_nuxt/Bc-MNOVW.js +0 -1
  75. package/.output/public/_nuxt/Bc-ZgV77.js +0 -6
  76. package/.output/public/_nuxt/Bc5W3P_y.js +0 -1
  77. package/.output/public/_nuxt/BcOcwvcX.js +0 -1
  78. package/.output/public/_nuxt/BdBarL6S.js +0 -1
  79. package/.output/public/_nuxt/BdnUsdx6.js +0 -1
  80. package/.output/public/_nuxt/BfB9GJr7.js +0 -1
  81. package/.output/public/_nuxt/BfEKNvv3.js +0 -7
  82. package/.output/public/_nuxt/BfHTSMKl.js +0 -1
  83. package/.output/public/_nuxt/BfjtVDDH.js +0 -1
  84. package/.output/public/_nuxt/BgDCqdQA.js +0 -1
  85. package/.output/public/_nuxt/BgLz8NXr.js +0 -1
  86. package/.output/public/_nuxt/BgWFZNIN.js +0 -1
  87. package/.output/public/_nuxt/BhjYvbSs.js +0 -15
  88. package/.output/public/_nuxt/Bhzvs7bI.js +0 -6
  89. package/.output/public/_nuxt/Bio4gycK.js +0 -6
  90. package/.output/public/_nuxt/BjMo22yv.js +0 -1
  91. package/.output/public/_nuxt/BkPM1oy1.js +0 -1
  92. package/.output/public/_nuxt/Bkuqu6BP.js +0 -1
  93. package/.output/public/_nuxt/Bl2oy6fF.js +0 -1
  94. package/.output/public/_nuxt/BlI8fBv_.js +0 -1
  95. package/.output/public/_nuxt/BmXAJ9_W.js +0 -1
  96. package/.output/public/_nuxt/BoASPUxF.js +0 -1
  97. package/.output/public/_nuxt/BoFRg7Ot.js +0 -6
  98. package/.output/public/_nuxt/BoKiGodi.js +0 -1
  99. package/.output/public/_nuxt/BoLEjfBh.js +0 -1
  100. package/.output/public/_nuxt/Bp6g37R7.js +0 -1
  101. package/.output/public/_nuxt/Bp_PLy4w.js +0 -1
  102. package/.output/public/_nuxt/Bqgm2twL.js +0 -6
  103. package/.output/public/_nuxt/BrgZPUOV.js +0 -6
  104. package/.output/public/_nuxt/BsS91CYL.js +0 -1
  105. package/.output/public/_nuxt/BsTHnhdd.js +0 -7
  106. package/.output/public/_nuxt/BthQWCQV.js +0 -1
  107. package/.output/public/_nuxt/Btyk0a-E.js +0 -1
  108. package/.output/public/_nuxt/Buea-lGh.js +0 -1
  109. package/.output/public/_nuxt/Bv2DfwTI.js +0 -1
  110. package/.output/public/_nuxt/BvCpsbMi.js +0 -1
  111. package/.output/public/_nuxt/Bw305WKR.js +0 -1
  112. package/.output/public/_nuxt/Bx8CTVFK.js +0 -1
  113. package/.output/public/_nuxt/BzJJZx-M.js +0 -1
  114. package/.output/public/_nuxt/BzgE5b26.js +0 -1
  115. package/.output/public/_nuxt/C-LNjlSw.js +0 -1
  116. package/.output/public/_nuxt/C-NeSi84.js +0 -6
  117. package/.output/public/_nuxt/C-SQnVFl.js +0 -1
  118. package/.output/public/_nuxt/C0HS_06l.js +0 -1
  119. package/.output/public/_nuxt/C151Ov-r.js +0 -1
  120. package/.output/public/_nuxt/C1s3v70Z.js +0 -1
  121. package/.output/public/_nuxt/C2pHKz2C.js +0 -1
  122. package/.output/public/_nuxt/C2t-YnRu.js +0 -1
  123. package/.output/public/_nuxt/C39BiMTA.js +0 -1
  124. package/.output/public/_nuxt/C3B-1QV4.js +0 -1
  125. package/.output/public/_nuxt/C3khCPGq.js +0 -1
  126. package/.output/public/_nuxt/C3mMm8J8.js +0 -1
  127. package/.output/public/_nuxt/C4IJs8-o.js +0 -1
  128. package/.output/public/_nuxt/C5CPwoy2.js +0 -1
  129. package/.output/public/_nuxt/C5DMNY_Y.js +0 -1
  130. package/.output/public/_nuxt/C5WLch3f.js +0 -6
  131. package/.output/public/_nuxt/C8M2exoo.js +0 -1
  132. package/.output/public/_nuxt/C8_cZGvL.js +0 -1
  133. package/.output/public/_nuxt/C8lEn-DE.js +0 -1
  134. package/.output/public/_nuxt/C9-wYoAy.js +0 -1
  135. package/.output/public/_nuxt/C96HV_dC.js +0 -1
  136. package/.output/public/_nuxt/C9lfyjdU.js +0 -1
  137. package/.output/public/_nuxt/C9sg6759.js +0 -1
  138. package/.output/public/_nuxt/C9tS-k6U.js +0 -1
  139. package/.output/public/_nuxt/CBs8Keu3.js +0 -1
  140. package/.output/public/_nuxt/CCLpvtro.js +0 -1
  141. package/.output/public/_nuxt/CCSDG5nI.js +0 -6
  142. package/.output/public/_nuxt/CChMg1-B.js +0 -1
  143. package/.output/public/_nuxt/CCouqEzj.js +0 -1
  144. package/.output/public/_nuxt/CDAMuZvO.js +0 -1
  145. package/.output/public/_nuxt/CDCQC_zV.js +0 -1
  146. package/.output/public/_nuxt/CDGzqUPQ.js +0 -6
  147. package/.output/public/_nuxt/CDVJQ6XC.js +0 -1
  148. package/.output/public/_nuxt/CDntyWJ8.js +0 -6
  149. package/.output/public/_nuxt/CDuD-thZ.js +0 -9
  150. package/.output/public/_nuxt/CEizyJ1q.js +0 -1
  151. package/.output/public/_nuxt/CEu0bR-o.js +0 -1
  152. package/.output/public/_nuxt/CF10PKvl.js +0 -1
  153. package/.output/public/_nuxt/CF2rxYMY.js +0 -9
  154. package/.output/public/_nuxt/CFJys5tQ.js +0 -1
  155. package/.output/public/_nuxt/CFKIUWau.js +0 -6
  156. package/.output/public/_nuxt/CFOPXBzS.js +0 -6
  157. package/.output/public/_nuxt/CFetOo1p.js +0 -1
  158. package/.output/public/_nuxt/CFfumueS.js +0 -1
  159. package/.output/public/_nuxt/CG6Dc4jp.js +0 -1
  160. package/.output/public/_nuxt/CHM0blh-.js +0 -1
  161. package/.output/public/_nuxt/CHadp7IV.js +0 -1
  162. package/.output/public/_nuxt/CJ1eVxFS.js +0 -1
  163. package/.output/public/_nuxt/CJ_jXfK4.js +0 -6
  164. package/.output/public/_nuxt/CK-KhNJq.js +0 -1
  165. package/.output/public/_nuxt/CKfMBS6n.js +0 -1
  166. package/.output/public/_nuxt/CLLBncYj.js +0 -6
  167. package/.output/public/_nuxt/CNgRkp1_.js +0 -1
  168. package/.output/public/_nuxt/COqw26dr.js +0 -1
  169. package/.output/public/_nuxt/COyEY5Pt.js +0 -7
  170. package/.output/public/_nuxt/CPajHgWi.js +0 -6
  171. package/.output/public/_nuxt/CS3Unz2-.js +0 -1
  172. package/.output/public/_nuxt/CSgDAwbP.js +0 -1
  173. package/.output/public/_nuxt/CTRr51gU.js +0 -1
  174. package/.output/public/_nuxt/CVO1_9PV.js +0 -1
  175. package/.output/public/_nuxt/CVTao1yP.js +0 -1
  176. package/.output/public/_nuxt/CVwtpugi.js +0 -6
  177. package/.output/public/_nuxt/CW2Vrioc.js +0 -1
  178. package/.output/public/_nuxt/CX-rkNHf.js +0 -6
  179. package/.output/public/_nuxt/CXOwvkN_.js +0 -6
  180. package/.output/public/_nuxt/CXTBPihj.js +0 -1
  181. package/.output/public/_nuxt/CXtECtnM.js +0 -1
  182. package/.output/public/_nuxt/CYBft37h.js +0 -1
  183. package/.output/public/_nuxt/CYoF9-Z5.js +0 -1
  184. package/.output/public/_nuxt/CYx6PXAq.js +0 -1
  185. package/.output/public/_nuxt/CafNBF8u.js +0 -1
  186. package/.output/public/_nuxt/CbDh3JAd.js +0 -8
  187. package/.output/public/_nuxt/CbfX1IO0.js +0 -1
  188. package/.output/public/_nuxt/Cc-FHe7z.js +0 -1
  189. package/.output/public/_nuxt/CdQndTaG.js +0 -6
  190. package/.output/public/_nuxt/Ce3n6wWz.js +0 -6
  191. package/.output/public/_nuxt/CeDfCXaY.js +0 -1
  192. package/.output/public/_nuxt/CfQXZHmo.js +0 -1
  193. package/.output/public/_nuxt/Cg7bfA9N.js +0 -6
  194. package/.output/public/_nuxt/Chm2_3hY.js +0 -1
  195. package/.output/public/_nuxt/Cj5Yp3dK.js +0 -1
  196. package/.output/public/_nuxt/CkXjmgJE.js +0 -1
  197. package/.output/public/_nuxt/ClSdsI-R.js +0 -1
  198. package/.output/public/_nuxt/Cn55uXmY.js +0 -1
  199. package/.output/public/_nuxt/CnK8MTSM.js +0 -1
  200. package/.output/public/_nuxt/Coy0nst6.js +0 -1
  201. package/.output/public/_nuxt/Cp-IABpG.js +0 -1
  202. package/.output/public/_nuxt/Cp1zYvxS.js +0 -6
  203. package/.output/public/_nuxt/CpIb_Oan.js +0 -6
  204. package/.output/public/_nuxt/Cpb6xl2v.js +0 -6
  205. package/.output/public/_nuxt/Cphgjts3.js +0 -6
  206. package/.output/public/_nuxt/Cpx7UCi2.js +0 -1
  207. package/.output/public/_nuxt/Cqtoupvr.js +0 -1
  208. package/.output/public/_nuxt/CquLrc37.js +0 -1
  209. package/.output/public/_nuxt/CrUG655c.js +0 -1
  210. package/.output/public/_nuxt/CrtRcjh8.js +0 -1
  211. package/.output/public/_nuxt/Csfq5Kiy.js +0 -1
  212. package/.output/public/_nuxt/CtIj0LFu.js +0 -1
  213. package/.output/public/_nuxt/CtpALBBA.js +0 -1
  214. package/.output/public/_nuxt/CtrldY6v.js +0 -1
  215. package/.output/public/_nuxt/CuV6Jo3-.js +0 -6
  216. package/.output/public/_nuxt/Cuk6v7N8.js +0 -1
  217. package/.output/public/_nuxt/Cv9koXgw.js +0 -1
  218. package/.output/public/_nuxt/CwNk8-XU.js +0 -6
  219. package/.output/public/_nuxt/CwwkfVSR.js +0 -1
  220. package/.output/public/_nuxt/CxGSJlkm.js +0 -1
  221. package/.output/public/_nuxt/CyXODqwf.js +0 -16
  222. package/.output/public/_nuxt/CyktbL80.js +0 -1
  223. package/.output/public/_nuxt/CzKuDChf.js +0 -6
  224. package/.output/public/_nuxt/D-2ljcwZ.js +0 -1
  225. package/.output/public/_nuxt/D-MeaMDU.js +0 -6
  226. package/.output/public/_nuxt/D08WgyRC.js +0 -1
  227. package/.output/public/_nuxt/D0YGMca9.js +0 -1
  228. package/.output/public/_nuxt/D0r3Knsf.js +0 -1
  229. package/.output/public/_nuxt/D1HCxHaw.js +0 -1
  230. package/.output/public/_nuxt/D3h14YRZ.js +0 -8
  231. package/.output/public/_nuxt/D4h5O-jR.js +0 -1
  232. package/.output/public/_nuxt/D5-asLiD.js +0 -1
  233. package/.output/public/_nuxt/D5C2fndG.js +0 -6
  234. package/.output/public/_nuxt/D5KoaKCx.js +0 -1
  235. package/.output/public/_nuxt/D7oLnXFd.js +0 -1
  236. package/.output/public/_nuxt/D82EKSYY.js +0 -1
  237. package/.output/public/_nuxt/D8bMfLuX.js +0 -1
  238. package/.output/public/_nuxt/D97Zzqfu.js +0 -1
  239. package/.output/public/_nuxt/DAi9KRSo.js +0 -1
  240. package/.output/public/_nuxt/DC3yV9u3.js +0 -1
  241. package/.output/public/_nuxt/DCIw00iZ.js +0 -1
  242. package/.output/public/_nuxt/DDwshQtU.js +0 -6
  243. package/.output/public/_nuxt/DFFYXpeI.js +0 -1
  244. package/.output/public/_nuxt/DFR6f4Jn.js +0 -1
  245. package/.output/public/_nuxt/DFXneXwc.js +0 -1
  246. package/.output/public/_nuxt/DH5Ifo-i.js +0 -1
  247. package/.output/public/_nuxt/DHJKELXO.js +0 -1
  248. package/.output/public/_nuxt/DHaeiCBh.js +0 -6
  249. package/.output/public/_nuxt/DHd_1LBM.js +0 -1
  250. package/.output/public/_nuxt/DJs7a6wl.js +0 -1
  251. package/.output/public/_nuxt/DLb4zeju.js +0 -1
  252. package/.output/public/_nuxt/DLpp9LvF.js +0 -1
  253. package/.output/public/_nuxt/DOiXYxxS.js +0 -1
  254. package/.output/public/_nuxt/DPjEyH5T.js +0 -1
  255. package/.output/public/_nuxt/DREyJzTe.js +0 -1
  256. package/.output/public/_nuxt/DRg8JJMk.js +0 -1
  257. package/.output/public/_nuxt/DSZPf7rp.js +0 -6
  258. package/.output/public/_nuxt/DTECt2xU.js +0 -6
  259. package/.output/public/_nuxt/DU1UobuO.js +0 -1
  260. package/.output/public/_nuxt/DUszq2jm.js +0 -1
  261. package/.output/public/_nuxt/DUyX-Nai.js +0 -1
  262. package/.output/public/_nuxt/DVMEJ2y_.js +0 -1
  263. package/.output/public/_nuxt/DVZd9B17.js +0 -1
  264. package/.output/public/_nuxt/DVxCFoDh.js +0 -1
  265. package/.output/public/_nuxt/DW9tJLXY.js +0 -1
  266. package/.output/public/_nuxt/DWedfzmr.js +0 -1
  267. package/.output/public/_nuxt/DXbdFlpD.js +0 -1
  268. package/.output/public/_nuxt/DXyYeYxl.js +0 -6
  269. package/.output/public/_nuxt/DYQUnd45.js +0 -303
  270. package/.output/public/_nuxt/D_3VmgUT.js +0 -1
  271. package/.output/public/_nuxt/D_T-aAMc.js +0 -1
  272. package/.output/public/_nuxt/Da4t7zrk.js +0 -1
  273. package/.output/public/_nuxt/Da5cRb03.js +0 -1
  274. package/.output/public/_nuxt/DavNy3c2.js +0 -6
  275. package/.output/public/_nuxt/DbnbuKy4.js +0 -1
  276. package/.output/public/_nuxt/DcaNXYhu.js +0 -1
  277. package/.output/public/_nuxt/Dcsh5twl.js +0 -1
  278. package/.output/public/_nuxt/Dd19v3D-.js +0 -1
  279. package/.output/public/_nuxt/Dd3NCNK9.js +0 -6
  280. package/.output/public/_nuxt/Ddv68eIx.js +0 -1
  281. package/.output/public/_nuxt/Des-eS-w.js +0 -1
  282. package/.output/public/_nuxt/Df68jz8_.js +0 -1
  283. package/.output/public/_nuxt/Df6bDoY_.js +0 -1
  284. package/.output/public/_nuxt/DfYh35At.js +0 -1
  285. package/.output/public/_nuxt/DfbSQCnh.js +0 -1
  286. package/.output/public/_nuxt/DfzH4Xui.js +0 -6
  287. package/.output/public/_nuxt/DgWikGMS.js +0 -1
  288. package/.output/public/_nuxt/DgyLZaXg.js +0 -6
  289. package/.output/public/_nuxt/Dk9CX82j.js +0 -6
  290. package/.output/public/_nuxt/DkwncUOv.js +0 -1
  291. package/.output/public/_nuxt/Dl801n_x.js +0 -6
  292. package/.output/public/_nuxt/DmN1BIHU.js +0 -1
  293. package/.output/public/_nuxt/DnHyzjbg.js +0 -6
  294. package/.output/public/_nuxt/DnULxvSX.js +0 -1
  295. package/.output/public/_nuxt/DpWJAGvS.js +0 -1
  296. package/.output/public/_nuxt/Dql7v_Bn.js +0 -1
  297. package/.output/public/_nuxt/DqnT6WTg.js +0 -1
  298. package/.output/public/_nuxt/DqwNpetd.js +0 -1
  299. package/.output/public/_nuxt/DrQuvNYM.js +0 -6
  300. package/.output/public/_nuxt/Drc7WvVn.js +0 -6
  301. package/.output/public/_nuxt/DtXx6hVj.js +0 -1
  302. package/.output/public/_nuxt/DtwEQg79.js +0 -6
  303. package/.output/public/_nuxt/DwJ7jVG9.js +0 -8
  304. package/.output/public/_nuxt/Dx-B1_4e.js +0 -1
  305. package/.output/public/_nuxt/DxClSFGm.js +0 -6
  306. package/.output/public/_nuxt/DyJlTyXw.js +0 -1
  307. package/.output/public/_nuxt/DyP6w7ZV.js +0 -6
  308. package/.output/public/_nuxt/Dykf6cri.js +0 -1
  309. package/.output/public/_nuxt/E3gJ1_iC.js +0 -1
  310. package/.output/public/_nuxt/E_RAAYUa.js +0 -1
  311. package/.output/public/_nuxt/G3-HApOe.js +0 -1
  312. package/.output/public/_nuxt/GXefNOxV.js +0 -1
  313. package/.output/public/_nuxt/Hhtzho9R.js +0 -1
  314. package/.output/public/_nuxt/JKt1cPGN.js +0 -6
  315. package/.output/public/_nuxt/L9t79GZl.js +0 -1
  316. package/.output/public/_nuxt/LUZpk28X.js +0 -1
  317. package/.output/public/_nuxt/M64VA-8k.js +0 -1
  318. package/.output/public/_nuxt/NleAzG8P.js +0 -1
  319. package/.output/public/_nuxt/P80f7IUj.js +0 -1
  320. package/.output/public/_nuxt/P9Jyl3kd.js +0 -1
  321. package/.output/public/_nuxt/PDBGRe-6.js +0 -1
  322. package/.output/public/_nuxt/Pmp26Uib.js +0 -1
  323. package/.output/public/_nuxt/PoHY5YXO.js +0 -1
  324. package/.output/public/_nuxt/QIJgUcNo.js +0 -1
  325. package/.output/public/_nuxt/QX45V2Sx.js +0 -1
  326. package/.output/public/_nuxt/RUaqLVwG.js +0 -1
  327. package/.output/public/_nuxt/SN78sQLf.js +0 -1
  328. package/.output/public/_nuxt/SpSV0q3Y.js +0 -1
  329. package/.output/public/_nuxt/Tw7wswEv.js +0 -6
  330. package/.output/public/_nuxt/WZprGpd_.js +0 -1
  331. package/.output/public/_nuxt/Wlg0E1_o.js +0 -1
  332. package/.output/public/_nuxt/WwEXBnAl.js +0 -1
  333. package/.output/public/_nuxt/Y7AfTJ_q.js +0 -1
  334. package/.output/public/_nuxt/YWi4-JPR.js +0 -6
  335. package/.output/public/_nuxt/Z9sDDOrt.js +0 -1
  336. package/.output/public/_nuxt/Zznr-cwX.js +0 -6
  337. package/.output/public/_nuxt/_ykCGR6B.js +0 -1
  338. package/.output/public/_nuxt/afimtvtX.js +0 -1
  339. package/.output/public/_nuxt/bN70gL4F.js +0 -1
  340. package/.output/public/_nuxt/bbDxRicf.js +0 -1
  341. package/.output/public/_nuxt/brDaU2vB.js +0 -1
  342. package/.output/public/_nuxt/builds/latest.json +0 -1
  343. package/.output/public/_nuxt/builds/meta/6e5861a0-b086-42b8-9991-6f277eb38f89.json +0 -1
  344. package/.output/public/_nuxt/cP9hzipi.js +0 -1
  345. package/.output/public/_nuxt/caUT6aIO.js +0 -1
  346. package/.output/public/_nuxt/cnxK7667.js +0 -1122
  347. package/.output/public/_nuxt/codicon.DCmgc-ay.ttf +0 -0
  348. package/.output/public/_nuxt/dUCx_-0o.js +0 -6
  349. package/.output/public/_nuxt/deUWdS0T.js +0 -6
  350. package/.output/public/_nuxt/diaQH6uK.js +0 -1
  351. package/.output/public/_nuxt/dwOrl1Do.js +0 -1
  352. package/.output/public/_nuxt/edge-router-BFNVMcBx.js +0 -4
  353. package/.output/public/_nuxt/editor.worker-B6Jl4jUd.js +0 -12
  354. package/.output/public/_nuxt/enPR0-Fz.js +0 -1
  355. package/.output/public/_nuxt/entry.BZOOQQmf.css +0 -5
  356. package/.output/public/_nuxt/error-404.D7tj2jQK.css +0 -1
  357. package/.output/public/_nuxt/error-500.TOCKLquH.css +0 -1
  358. package/.output/public/_nuxt/fuZLfV_i.js +0 -1
  359. package/.output/public/_nuxt/fve9TYiY.js +0 -1
  360. package/.output/public/_nuxt/gI3nN7Ut.js +0 -1
  361. package/.output/public/_nuxt/graph-layout-CVosnvhn.js +0 -1
  362. package/.output/public/_nuxt/graph-resolver-BB-_0wUc.js +0 -8
  363. package/.output/public/_nuxt/gsC4jtYg.js +0 -1
  364. package/.output/public/_nuxt/h0LN4FIn.js +0 -1
  365. package/.output/public/_nuxt/hIfYPPDs.js +0 -1
  366. package/.output/public/_nuxt/hegEt444.js +0 -1
  367. package/.output/public/_nuxt/i9-g7ZhI.js +0 -6
  368. package/.output/public/_nuxt/itr3s8OG.js +0 -1
  369. package/.output/public/_nuxt/kdhEWpvT.js +0 -1
  370. package/.output/public/_nuxt/leinZj1a.js +0 -1
  371. package/.output/public/_nuxt/lrsjGwJC.js +0 -1
  372. package/.output/public/_nuxt/materialdesignicons-webfont.B6OSyW2I.woff2 +0 -0
  373. package/.output/public/_nuxt/materialdesignicons-webfont.BpRar1d5.ttf +0 -0
  374. package/.output/public/_nuxt/materialdesignicons-webfont.Bvl3VxMs.woff +0 -0
  375. package/.output/public/_nuxt/materialdesignicons-webfont.TEmAk13K.eot +0 -0
  376. package/.output/public/_nuxt/mtNz0_Xw.js +0 -1
  377. package/.output/public/_nuxt/nf6ki56Z.js +0 -6
  378. package/.output/public/_nuxt/nsowKw4B.js +0 -1
  379. package/.output/public/_nuxt/os-I7NdE.js +0 -1
  380. package/.output/public/_nuxt/pnP8ivHi.js +0 -6
  381. package/.output/public/_nuxt/q-j0iyEw.js +0 -1
  382. package/.output/public/_nuxt/rUNN04Wq.js +0 -6
  383. package/.output/public/_nuxt/ryoHgIpY.js +0 -1
  384. package/.output/public/_nuxt/tGk8EFnU.js +0 -6
  385. package/.output/public/_nuxt/wef_wrfO.js +0 -1
  386. package/.output/public/_nuxt/y_XAX2KJ.js +0 -1
  387. package/.output/public/_nuxt/yaml.worker-B8S0iqeR.js +0 -411
  388. package/.output/public/_nuxt/zH8SnKTm.js +0 -1
  389. package/.output/public/favicon.ico +0 -0
  390. package/.output/public/libavoid.wasm +0 -0
  391. package/.output/public/robots.txt +0 -1
  392. package/.output/server/index.mjs +0 -19022
  393. package/.output/server/index.mjs.map +0 -1
  394. package/.output/server/node_modules/@babel/parser/lib/index.js +0 -14246
  395. package/.output/server/node_modules/@babel/parser/package.json +0 -50
  396. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/fetchRequestHandler.mjs +0 -74
  397. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +0 -1
  398. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/incomingMessageToRequest.mjs +0 -119
  399. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/index.mjs +0 -2
  400. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/nodeHTTPRequestHandler.mjs +0 -92
  401. package/.output/server/node_modules/@trpc/server/dist/adapters/node-http/writeResponse.mjs +0 -79
  402. package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +0 -521
  403. package/.output/server/node_modules/@trpc/server/dist/index.mjs +0 -12
  404. package/.output/server/node_modules/@trpc/server/dist/observable/observable.mjs +0 -175
  405. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/createProxy.mjs +0 -73
  406. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/TRPCError.mjs +0 -79
  407. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/formatter.mjs +0 -5
  408. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/error/getErrorShape.mjs +0 -29
  409. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/abortError.mjs +0 -10
  410. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentType.mjs +0 -229
  411. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/getHTTPStatusCode.mjs +0 -76
  412. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/parseConnectionParams.mjs +0 -39
  413. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/resolveResponse.mjs +0 -570
  414. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/initTRPC.mjs +0 -80
  415. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/middleware.mjs +0 -90
  416. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/parser.mjs +0 -52
  417. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedure.mjs +0 -7
  418. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/procedureBuilder.mjs +0 -198
  419. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rootConfig.mjs +0 -6
  420. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/router.mjs +0 -278
  421. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/codes.mjs +0 -54
  422. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/rpc/parseTRPCMessage.mjs +0 -61
  423. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/jsonl.mjs +0 -603
  424. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/sse.mjs +0 -369
  425. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/tracked.mjs +0 -25
  426. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/asyncIterable.mjs +0 -165
  427. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/createDeferred.mjs +0 -15
  428. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/disposable.mjs +0 -43
  429. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/mergeAsyncIterables.mjs +0 -239
  430. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/readableStreamFrom.mjs +0 -23
  431. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/timerResource.mjs +0 -23
  432. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/stream/utils/withPing.mjs +0 -127
  433. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/transformer.mjs +0 -101
  434. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import/utils.mjs +0 -83
  435. package/.output/server/node_modules/@trpc/server/dist/vendor/standard-schema-v1/error.mjs +0 -26
  436. package/.output/server/node_modules/@trpc/server/dist/vendor/unpromise/unpromise.mjs +0 -289
  437. package/.output/server/node_modules/@trpc/server/package.json +0 -156
  438. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6690
  439. package/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
  440. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -686
  441. package/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
  442. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1404
  443. package/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
  444. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1789
  445. package/.output/server/node_modules/@vue/reactivity/package.json +0 -55
  446. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6654
  447. package/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
  448. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1669
  449. package/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
  450. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -857
  451. package/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
  452. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -594
  453. package/.output/server/node_modules/@vue/shared/package.json +0 -47
  454. package/.output/server/node_modules/devalue/index.js +0 -3
  455. package/.output/server/node_modules/devalue/package.json +0 -34
  456. package/.output/server/node_modules/devalue/src/base64.js +0 -110
  457. package/.output/server/node_modules/devalue/src/constants.js +0 -6
  458. package/.output/server/node_modules/devalue/src/parse.js +0 -160
  459. package/.output/server/node_modules/devalue/src/stringify.js +0 -232
  460. package/.output/server/node_modules/devalue/src/uneval.js +0 -351
  461. package/.output/server/node_modules/devalue/src/utils.js +0 -113
  462. package/.output/server/node_modules/entities/lib/decode.js +0 -536
  463. package/.output/server/node_modules/entities/lib/decode_codepoint.js +0 -76
  464. package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  465. package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  466. package/.output/server/node_modules/entities/package.json +0 -90
  467. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
  468. package/.output/server/node_modules/estree-walker/package.json +0 -37
  469. package/.output/server/node_modules/hookable/dist/index.mjs +0 -290
  470. package/.output/server/node_modules/hookable/package.json +0 -49
  471. package/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
  472. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  473. package/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
  474. package/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
  475. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
  476. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
  477. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  478. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  479. package/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
  480. package/.output/server/node_modules/source-map-js/lib/util.js +0 -594
  481. package/.output/server/node_modules/source-map-js/package.json +0 -71
  482. package/.output/server/node_modules/source-map-js/source-map.js +0 -8
  483. package/.output/server/node_modules/ufo/dist/index.mjs +0 -630
  484. package/.output/server/node_modules/ufo/package.json +0 -47
  485. package/.output/server/node_modules/unhead/dist/plugins.mjs +0 -94
  486. package/.output/server/node_modules/unhead/dist/server.mjs +0 -220
  487. package/.output/server/node_modules/unhead/dist/shared/unhead.C13swrCa.mjs +0 -48
  488. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +0 -148
  489. package/.output/server/node_modules/unhead/dist/shared/unhead.Cp0iF6eN.mjs +0 -177
  490. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
  491. package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +0 -70
  492. package/.output/server/node_modules/unhead/dist/shared/unhead.DeCxexjU.mjs +0 -166
  493. package/.output/server/node_modules/unhead/dist/shared/unhead.Txd0XTIP.mjs +0 -172
  494. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
  495. package/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
  496. package/.output/server/node_modules/unhead/package.json +0 -101
  497. package/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
  498. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
  499. package/.output/server/node_modules/vue/index.js +0 -7
  500. package/.output/server/node_modules/vue/index.mjs +0 -1
  501. package/.output/server/node_modules/vue/package.json +0 -112
  502. package/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
  503. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -196
  504. package/.output/server/node_modules/vue-bundle-renderer/package.json +0 -50
  505. package/.output/server/node_modules/ws/lib/buffer-util.js +0 -131
  506. package/.output/server/node_modules/ws/lib/constants.js +0 -18
  507. package/.output/server/node_modules/ws/lib/event-target.js +0 -292
  508. package/.output/server/node_modules/ws/lib/extension.js +0 -203
  509. package/.output/server/node_modules/ws/lib/limiter.js +0 -55
  510. package/.output/server/node_modules/ws/lib/permessage-deflate.js +0 -514
  511. package/.output/server/node_modules/ws/lib/receiver.js +0 -706
  512. package/.output/server/node_modules/ws/lib/sender.js +0 -602
  513. package/.output/server/node_modules/ws/lib/stream.js +0 -161
  514. package/.output/server/node_modules/ws/lib/subprotocol.js +0 -62
  515. package/.output/server/node_modules/ws/lib/validation.js +0 -152
  516. package/.output/server/node_modules/ws/lib/websocket-server.js +0 -540
  517. package/.output/server/node_modules/ws/lib/websocket.js +0 -1388
  518. package/.output/server/node_modules/ws/package.json +0 -69
  519. package/.output/server/node_modules/ws/wrapper.mjs +0 -8
  520. package/.output/server/node_modules/zod/lib/index.mjs +0 -4405
  521. package/.output/server/node_modules/zod/package.json +0 -122
  522. package/.output/server/package.json +0 -1
@@ -1,411 +0,0 @@
1
- function Tg(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}class Mg{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Ii.isErrorNoTelemetry(t)?new Ii(t.message+`
2
-
3
- `+t.stack):new Error(t.message+`
4
-
5
- `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Og=new Mg;function Co(e){Rg(e)||Og.onUnexpectedError(e)}function kh(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:Ii.isErrorNoTelemetry(e)}}return e}const Jc="Canceled";function Rg(e){return e instanceof Pg?!0:e instanceof Error&&e.name===Jc&&e.message===Jc}class Pg extends Error{constructor(){super(Jc),this.name=this.message}}class Ii extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof Ii)return t;const n=new Ii;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class jn extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,jn.prototype)}}function Ig(e,t){const n=this;let r=!1,s;return function(){return r||(r=!0,s=e.apply(n,arguments)),s}}var hl;(function(e){function t(z){return z&&typeof z=="object"&&typeof z[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*s(z){yield z}e.single=s;function i(z){return t(z)?z:s(z)}e.wrap=i;function o(z){return z||n}e.from=o;function*l(z){for(let M=z.length-1;M>=0;M--)yield z[M]}e.reverse=l;function u(z){return!z||z[Symbol.iterator]().next().done===!0}e.isEmpty=u;function c(z){return z[Symbol.iterator]().next().value}e.first=c;function g(z,M){let T=0;for(const Y of z)if(M(Y,T++))return!0;return!1}e.some=g;function d(z,M){for(const T of z)if(M(T))return T}e.find=d;function*y(z,M){for(const T of z)M(T)&&(yield T)}e.filter=y;function*w(z,M){let T=0;for(const Y of z)yield M(Y,T++)}e.map=w;function*k(z,M){let T=0;for(const Y of z)yield*M(Y,T++)}e.flatMap=k;function*A(...z){for(const M of z)yield*M}e.concat=A;function E(z,M,T){let Y=T;for(const K of z)Y=M(Y,K);return Y}e.reduce=E;function*P(z,M,T=z.length){for(M<0&&(M+=z.length),T<0?T+=z.length:T>z.length&&(T=z.length);M<T;M++)yield z[M]}e.slice=P;function j(z,M=Number.POSITIVE_INFINITY){const T=[];if(M===0)return[T,z];const Y=z[Symbol.iterator]();for(let K=0;K<M;K++){const W=Y.next();if(W.done)return[T,e.empty()];T.push(W.value)}return[T,{[Symbol.iterator](){return Y}}]}e.consume=j;async function H(z){const M=[];for await(const T of z)M.push(T);return Promise.resolve(M)}e.asyncToArray=H})(hl||(hl={}));function B0(e){if(hl.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Bg(...e){return dl(()=>B0(e))}function dl(e){return{dispose:Ig(()=>{e()})}}class Uo{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{B0(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Uo.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}}class ml{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new Uo,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}}class Tt{static{this.Undefined=new Tt(void 0)}constructor(t){this.element=t,this.next=Tt.Undefined,this.prev=Tt.Undefined}}class $g{constructor(){this._first=Tt.Undefined,this._last=Tt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Tt.Undefined}clear(){let t=this._first;for(;t!==Tt.Undefined;){const n=t.next;t.prev=Tt.Undefined,t.next=Tt.Undefined,t=n}this._first=Tt.Undefined,this._last=Tt.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new Tt(t);if(this._first===Tt.Undefined)this._first=r,this._last=r;else if(n){const i=this._last;this._last=r,r.prev=i,i.next=r}else{const i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(r))}}shift(){if(this._first!==Tt.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Tt.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Tt.Undefined&&t.next!==Tt.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Tt.Undefined&&t.next===Tt.Undefined?(this._first=Tt.Undefined,this._last=Tt.Undefined):t.next===Tt.Undefined?(this._last=this._last.prev,this._last.next=Tt.Undefined):t.prev===Tt.Undefined&&(this._first=this._first.next,this._first.prev=Tt.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Tt.Undefined;)yield t.element,t=t.next}}const Vg=globalThis.performance&&typeof globalThis.performance.now=="function";class Bl{static create(t){return new Bl(t)}constructor(t){this._now=Vg&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var gl;(function(e){e.None=()=>ml.None;function t(ae,te){return y(ae,()=>{},0,void 0,!0,void 0,te)}e.defer=t;function n(ae){return(te,X=null,se)=>{let he=!1,Se;return Se=ae(_e=>{if(!he)return Se?Se.dispose():he=!0,te.call(X,_e)},null,se),he&&Se.dispose(),Se}}e.once=n;function r(ae,te){return e.once(e.filter(ae,te))}e.onceIf=r;function s(ae,te,X){return g((se,he=null,Se)=>ae(_e=>se.call(he,te(_e)),null,Se),X)}e.map=s;function i(ae,te,X){return g((se,he=null,Se)=>ae(_e=>{te(_e),se.call(he,_e)},null,Se),X)}e.forEach=i;function o(ae,te,X){return g((se,he=null,Se)=>ae(_e=>te(_e)&&se.call(he,_e),null,Se),X)}e.filter=o;function l(ae){return ae}e.signal=l;function u(...ae){return(te,X=null,se)=>{const he=Bg(...ae.map(Se=>Se(_e=>te.call(X,_e))));return d(he,se)}}e.any=u;function c(ae,te,X,se){let he=X;return s(ae,Se=>(he=te(he,Se),he),se)}e.reduce=c;function g(ae,te){let X;const se={onWillAddFirstListener(){X=ae(he.fire,he)},onDidRemoveLastListener(){X?.dispose()}},he=new Zn(se);return te?.add(he),he.event}function d(ae,te){return te instanceof Array?te.push(ae):te&&te.add(ae),ae}function y(ae,te,X=100,se=!1,he=!1,Se,_e){let Fe,$e,Ge,kt=0,at;const tn={leakWarningThreshold:Se,onWillAddFirstListener(){Fe=ae(Zr=>{kt++,$e=te($e,Zr),se&&!Ge&&(_t.fire($e),$e=void 0),at=()=>{const Qs=$e;$e=void 0,Ge=void 0,(!se||kt>1)&&_t.fire(Qs),kt=0},typeof X=="number"?(clearTimeout(Ge),Ge=setTimeout(at,X)):Ge===void 0&&(Ge=0,queueMicrotask(at))})},onWillRemoveListener(){he&&kt>0&&at?.()},onDidRemoveLastListener(){at=void 0,Fe.dispose()}},_t=new Zn(tn);return _e?.add(_t),_t.event}e.debounce=y;function w(ae,te=0,X){return e.debounce(ae,(se,he)=>se?(se.push(he),se):[he],te,void 0,!0,void 0,X)}e.accumulate=w;function k(ae,te=(se,he)=>se===he,X){let se=!0,he;return o(ae,Se=>{const _e=se||!te(Se,he);return se=!1,he=Se,_e},X)}e.latch=k;function A(ae,te,X){return[e.filter(ae,te,X),e.filter(ae,se=>!te(se),X)]}e.split=A;function E(ae,te=!1,X=[],se){let he=X.slice(),Se=ae($e=>{he?he.push($e):Fe.fire($e)});se&&se.add(Se);const _e=()=>{he?.forEach($e=>Fe.fire($e)),he=null},Fe=new Zn({onWillAddFirstListener(){Se||(Se=ae($e=>Fe.fire($e)),se&&se.add(Se))},onDidAddFirstListener(){he&&(te?setTimeout(_e):_e())},onDidRemoveLastListener(){Se&&Se.dispose(),Se=null}});return se&&se.add(Fe),Fe.event}e.buffer=E;function P(ae,te){return(se,he,Se)=>{const _e=te(new H);return ae(function(Fe){const $e=_e.evaluate(Fe);$e!==j&&se.call(he,$e)},void 0,Se)}}e.chain=P;const j=Symbol("HaltChainable");class H{constructor(){this.steps=[]}map(te){return this.steps.push(te),this}forEach(te){return this.steps.push(X=>(te(X),X)),this}filter(te){return this.steps.push(X=>te(X)?X:j),this}reduce(te,X){let se=X;return this.steps.push(he=>(se=te(se,he),se)),this}latch(te=(X,se)=>X===se){let X=!0,se;return this.steps.push(he=>{const Se=X||!te(he,se);return X=!1,se=he,Se?he:j}),this}evaluate(te){for(const X of this.steps)if(te=X(te),te===j)break;return te}}function z(ae,te,X=se=>se){const se=(...Fe)=>_e.fire(X(...Fe)),he=()=>ae.on(te,se),Se=()=>ae.removeListener(te,se),_e=new Zn({onWillAddFirstListener:he,onDidRemoveLastListener:Se});return _e.event}e.fromNodeEventEmitter=z;function M(ae,te,X=se=>se){const se=(...Fe)=>_e.fire(X(...Fe)),he=()=>ae.addEventListener(te,se),Se=()=>ae.removeEventListener(te,se),_e=new Zn({onWillAddFirstListener:he,onDidRemoveLastListener:Se});return _e.event}e.fromDOMEventEmitter=M;function T(ae){return new Promise(te=>n(ae)(te))}e.toPromise=T;function Y(ae){const te=new Zn;return ae.then(X=>{te.fire(X)},()=>{te.fire(void 0)}).finally(()=>{te.dispose()}),te.event}e.fromPromise=Y;function K(ae,te){return ae(X=>te.fire(X))}e.forward=K;function W(ae,te,X){return te(X),ae(se=>te(se))}e.runAndSubscribe=W;class re{constructor(te,X){this._observable=te,this._counter=0,this._hasChanged=!1;const se={onWillAddFirstListener:()=>{te.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{te.removeObserver(this)}};this.emitter=new Zn(se),X&&X.add(this.emitter)}beginUpdate(te){this._counter++}handlePossibleChange(te){}handleChange(te,X){this._hasChanged=!0}endUpdate(te){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ee(ae,te){return new re(ae,te).emitter.event}e.fromObservable=ee;function B(ae){return(te,X,se)=>{let he=0,Se=!1;const _e={beginUpdate(){he++},endUpdate(){he--,he===0&&(ae.reportChanges(),Se&&(Se=!1,te.call(X)))},handlePossibleChange(){},handleChange(){Se=!0}};ae.addObserver(_e),ae.reportChanges();const Fe={dispose(){ae.removeObserver(_e)}};return se instanceof Uo?se.add(Fe):Array.isArray(se)&&se.push(Fe),Fe}}e.fromObservableLight=B})(gl||(gl={}));class pl{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${pl._idPool++}`,pl.all.add(this)}start(t){this._stopWatch=new Bl,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}}let jg=-1;class sh{static{this._idPool=1}constructor(t,n,r=(sh._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[i,o]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${o}):`;console.warn(l),console.warn(i);const u=new Ug(l,i);this._errorHandler(u)}return()=>{const i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,s]of this._stacks)(!t||n<s)&&(t=[r,s],n=s);return t}}class ih{static create(){const t=new Error;return new ih(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
- `).slice(2).join(`
7
- `))}}class Ug extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class qg extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class Ec{constructor(t){this.value=t}}const Wg=2;class Zn{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new sh(t?.onListenerError??Co,this._options?.leakWarningThreshold??jg):void 0,this._perfMon=this._options?._profName?new pl(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const u=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new qg(`${l}. HINT: Stack shows most frequent listener (${u[1]}-times)`,u[0]);return(this._options?.onListenerError||Co)(c),ml.None}if(this._disposed)return ml.None;n&&(t=t.bind(n));const s=new Ec(t);let i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=ih.create(),i=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof Ec?(this._deliveryQueue??=new Hg,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;const o=dl(()=>{i?.(),this._removeListener(s)});return r instanceof Uo?r.add(o):Array.isArray(r)&&r.push(o),o},this._event}_removeListener(t){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,r=n.indexOf(t);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const s=this._deliveryQueue.current===this;if(this._size*Wg<=n.length){let i=0;for(let o=0;o<n.length;o++)n[o]?n[i++]=n[o]:s&&(this._deliveryQueue.end--,i<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=i}}_deliver(t,n){if(!t)return;const r=this._options?.onListenerError||Co;if(!r){t.value(n);return}try{t.value(n)}catch(s){r(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Ec)this._deliver(this._listeners,t);else{const n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class Hg{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Yg(){return globalThis._VSCODE_NLS_MESSAGES}function $0(){return globalThis._VSCODE_NLS_LANGUAGE}const zg=$0()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function _h(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,s)=>{const i=s[0],o=t[i];let l=r;return typeof o=="string"?l=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(l=String(o)),l}),zg&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function Pt(e,t,...n){return _h(typeof e=="number"?Gg(e,t):t,n)}function Gg(e,t){const n=Yg()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}const xi="en";let Qc=!1,Kc=!1,Ac=!1,V0=!1,oh=!1,Ra,Nc=xi,Fh=xi,Jg,qr;const zr=globalThis;let $n;typeof zr.vscode<"u"&&typeof zr.vscode.process<"u"?$n=zr.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&($n=process);const Qg=typeof $n?.versions?.electron=="string",Kg=Qg&&$n?.type==="renderer";if(typeof $n=="object"){Qc=$n.platform==="win32",Kc=$n.platform==="darwin",Ac=$n.platform==="linux",Ac&&$n.env.SNAP&&$n.env.SNAP_REVISION,$n.env.CI||$n.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ra=xi,Nc=xi;const e=$n.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);Ra=t.userLocale,Fh=t.osLocale,Nc=t.resolvedLanguage||xi,Jg=t.languagePack?.translationsConfigFile}catch{}V0=!0}else typeof navigator=="object"&&!Kg?(qr=navigator.userAgent,Qc=qr.indexOf("Windows")>=0,Kc=qr.indexOf("Macintosh")>=0,(qr.indexOf("Macintosh")>=0||qr.indexOf("iPad")>=0||qr.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Ac=qr.indexOf("Linux")>=0,qr?.indexOf("Mobi")>=0,oh=!0,Nc=$0()||xi,Ra=navigator.language.toLowerCase(),Fh=Ra):console.error("Unable to resolve platform.");const Ro=Qc,Xg=Kc,Zg=V0,ep=oh,tp=oh&&typeof zr.importScripts=="function",np=tp?zr.origin:void 0,kr=qr,rp=typeof zr.postMessage=="function"&&!zr.importScripts;(()=>{if(rp){const e=[];zr.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,s=e.length;r<s;r++){const i=e[r];if(i.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),i.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),zr.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const sp=!!(kr&&kr.indexOf("Chrome")>=0);kr&&kr.indexOf("Firefox")>=0;!sp&&kr&&kr.indexOf("Safari")>=0;kr&&kr.indexOf("Edg/")>=0;kr&&kr.indexOf("Android")>=0;function ip(e){return e}class op{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=ip):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class Th{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function ap(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function lp(e){return e.split(/\r\n|\r|\n/)}function up(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function cp(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function j0(e){return e>=65&&e<=90}function bl(e){return 55296<=e&&e<=56319}function Xc(e){return 56320<=e&&e<=57343}function U0(e,t){return(e-55296<<10)+(t-56320)+65536}function fp(e,t,n){const r=e.charCodeAt(n);if(bl(r)&&n+1<t){const s=e.charCodeAt(n+1);if(Xc(s))return U0(r,s)}return r}const hp=/^[\t\n\r\x20-\x7E]*$/;function dp(e){return hp.test(e)}class ys{static{this.ambiguousCharacterData=new Th(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new op({getCacheKey:JSON.stringify},t=>{function n(g){const d=new Map;for(let y=0;y<g.length;y+=2)d.set(g[y],g[y+1]);return d}function r(g,d){const y=new Map(g);for(const[w,k]of d)y.set(w,k);return y}function s(g,d){if(!g)return d;const y=new Map;for(const[w,k]of g)d.has(w)&&y.set(w,k);return y}const i=this.ambiguousCharacterData.value;let o=t.filter(g=>!g.startsWith("_")&&g in i);o.length===0&&(o=["_default"]);let l;for(const g of o){const d=n(i[g]);l=s(l,d)}const u=n(i._common),c=r(u,l);return new ys(c)})}static getInstance(t){return ys.cache.get(Array.from(t))}static{this._locales=new Th(()=>Object.keys(ys.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")))}static getLocales(){return ys._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class js{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(js.getRawData())),this._data}static isInvisibleCharacter(t){return js.getData().has(t)}static get codePoints(){return js.getData()}}var Mh={};let Ti;const xc=globalThis.vscode;if(typeof xc<"u"&&typeof xc.process<"u"){const e=xc.process;Ti={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Ti={get platform(){return process.platform},get arch(){return process.arch},get env(){return Mh},cwd(){return Mh.VSCODE_CWD||process.cwd()}}:Ti={get platform(){return Ro?"win32":Xg?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const yl=Ti.cwd,mp=Ti.env,gp=Ti.platform,pp=65,bp=97,yp=90,vp=122,Ds=46,rn=47,_n=92,ls=58,Dp=63;class q0 extends Error{constructor(t,n,r){let s;typeof n=="string"&&n.indexOf("not ")===0?(s="must not be",n=n.replace(/^not /,"")):s="must be";const i=t.indexOf(".")!==-1?"property":"argument";let o=`The "${t}" ${i} ${s} of type ${n}`;o+=`. Received type ${typeof r}`,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function wp(e,t){if(e===null||typeof e!="object")throw new q0(t,"Object",e)}function Ut(e,t){if(typeof e!="string")throw new q0(t,"string",e)}const Xr=gp==="win32";function rt(e){return e===rn||e===_n}function Zc(e){return e===rn}function us(e){return e>=pp&&e<=yp||e>=bp&&e<=vp}function vl(e,t,n,r){let s="",i=0,o=-1,l=0,u=0;for(let c=0;c<=e.length;++c){if(c<e.length)u=e.charCodeAt(c);else{if(r(u))break;u=rn}if(r(u)){if(!(o===c-1||l===1))if(l===2){if(s.length<2||i!==2||s.charCodeAt(s.length-1)!==Ds||s.charCodeAt(s.length-2)!==Ds){if(s.length>2){const g=s.lastIndexOf(n);g===-1?(s="",i=0):(s=s.slice(0,g),i=s.length-1-s.lastIndexOf(n)),o=c,l=0;continue}else if(s.length!==0){s="",i=0,o=c,l=0;continue}}t&&(s+=s.length>0?`${n}..`:"..",i=2)}else s.length>0?s+=`${n}${e.slice(o+1,c)}`:s=e.slice(o+1,c),i=c-o-1;o=c,l=0}else u===Ds&&l!==-1?++l:l=-1}return s}function Sp(e){return e?`${e[0]==="."?"":"."}${e}`:""}function W0(e,t){wp(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${Sp(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const fn={resolve(...e){let t="",n="",r=!1;for(let s=e.length-1;s>=-1;s--){let i;if(s>=0){if(i=e[s],Ut(i,`paths[${s}]`),i.length===0)continue}else t.length===0?i=yl():(i=mp[`=${t}`]||yl(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===_n)&&(i=`${t}\\`));const o=i.length;let l=0,u="",c=!1;const g=i.charCodeAt(0);if(o===1)rt(g)&&(l=1,c=!0);else if(rt(g))if(c=!0,rt(i.charCodeAt(1))){let d=2,y=d;for(;d<o&&!rt(i.charCodeAt(d));)d++;if(d<o&&d!==y){const w=i.slice(y,d);for(y=d;d<o&&rt(i.charCodeAt(d));)d++;if(d<o&&d!==y){for(y=d;d<o&&!rt(i.charCodeAt(d));)d++;(d===o||d!==y)&&(u=`\\\\${w}\\${i.slice(y,d)}`,l=d)}}}else l=1;else us(g)&&i.charCodeAt(1)===ls&&(u=i.slice(0,2),l=2,o>2&&rt(i.charCodeAt(2))&&(c=!0,l=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${i.slice(l)}\\${n}`,r=c,c&&t.length>0)break}return n=vl(n,!r,"\\",rt),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Ut(e,"path");const t=e.length;if(t===0)return".";let n=0,r,s=!1;const i=e.charCodeAt(0);if(t===1)return Zc(i)?"\\":e;if(rt(i))if(s=!0,rt(e.charCodeAt(1))){let l=2,u=l;for(;l<t&&!rt(e.charCodeAt(l));)l++;if(l<t&&l!==u){const c=e.slice(u,l);for(u=l;l<t&&rt(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&!rt(e.charCodeAt(l));)l++;if(l===t)return`\\\\${c}\\${e.slice(u)}\\`;l!==u&&(r=`\\\\${c}\\${e.slice(u,l)}`,n=l)}}}else n=1;else us(i)&&e.charCodeAt(1)===ls&&(r=e.slice(0,2),n=2,t>2&&rt(e.charCodeAt(2))&&(s=!0,n=3));let o=n<t?vl(e.slice(n),!s,"\\",rt):"";return o.length===0&&!s&&(o="."),o.length>0&&rt(e.charCodeAt(t-1))&&(o+="\\"),r===void 0?s?`\\${o}`:o:s?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){Ut(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return rt(n)||t>2&&us(n)&&e.charCodeAt(1)===ls&&rt(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i<e.length;++i){const o=e[i];Ut(o,"path"),o.length>0&&(t===void 0?t=n=o:t+=`\\${o}`)}if(t===void 0)return".";let r=!0,s=0;if(typeof n=="string"&&rt(n.charCodeAt(0))){++s;const i=n.length;i>1&&rt(n.charCodeAt(1))&&(++s,i>2&&(rt(n.charCodeAt(2))?++s:r=!1))}if(r){for(;s<t.length&&rt(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return fn.normalize(t)},relative(e,t){if(Ut(e,"from"),Ut(t,"to"),e===t)return"";const n=fn.resolve(e),r=fn.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===_n;)s++;let i=e.length;for(;i-1>s&&e.charCodeAt(i-1)===_n;)i--;const o=i-s;let l=0;for(;l<t.length&&t.charCodeAt(l)===_n;)l++;let u=t.length;for(;u-1>l&&t.charCodeAt(u-1)===_n;)u--;const c=u-l,g=o<c?o:c;let d=-1,y=0;for(;y<g;y++){const k=e.charCodeAt(s+y);if(k!==t.charCodeAt(l+y))break;k===_n&&(d=y)}if(y!==g){if(d===-1)return r}else{if(c>g){if(t.charCodeAt(l+y)===_n)return r.slice(l+y+1);if(y===2)return r.slice(l+y)}o>g&&(e.charCodeAt(s+y)===_n?d=y:y===2&&(d=3)),d===-1&&(d=0)}let w="";for(y=s+d+1;y<=i;++y)(y===i||e.charCodeAt(y)===_n)&&(w+=w.length===0?"..":"\\..");return l+=d,w.length>0?`${w}${r.slice(l,u)}`:(r.charCodeAt(l)===_n&&++l,r.slice(l,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=fn.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===_n){if(t.charCodeAt(1)===_n){const n=t.charCodeAt(2);if(n!==Dp&&n!==Ds)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(us(t.charCodeAt(0))&&t.charCodeAt(1)===ls&&t.charCodeAt(2)===_n)return`\\\\?\\${t}`;return e},dirname(e){Ut(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const s=e.charCodeAt(0);if(t===1)return rt(s)?e:".";if(rt(s)){if(n=r=1,rt(e.charCodeAt(1))){let l=2,u=l;for(;l<t&&!rt(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&rt(e.charCodeAt(l));)l++;if(l<t&&l!==u){for(u=l;l<t&&!rt(e.charCodeAt(l));)l++;if(l===t)return e;l!==u&&(n=r=l+1)}}}}else us(s)&&e.charCodeAt(1)===ls&&(n=t>2&&rt(e.charCodeAt(2))?3:2,r=n);let i=-1,o=!0;for(let l=t-1;l>=r;--l)if(rt(e.charCodeAt(l))){if(!o){i=l;break}}else o=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&Ut(t,"suffix"),Ut(e,"path");let n=0,r=-1,s=!0,i;if(e.length>=2&&us(e.charCodeAt(0))&&e.charCodeAt(1)===ls&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){const u=e.charCodeAt(i);if(rt(u)){if(!s){n=i+1;break}}else l===-1&&(s=!1,l=i+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=i):(o=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(rt(e.charCodeAt(i))){if(!s){n=i+1;break}}else r===-1&&(s=!1,r=i+1);return r===-1?"":e.slice(n,r)},extname(e){Ut(e,"path");let t=0,n=-1,r=0,s=-1,i=!0,o=0;e.length>=2&&e.charCodeAt(1)===ls&&us(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){const u=e.charCodeAt(l);if(rt(u)){if(!i){r=l+1;break}continue}s===-1&&(i=!1,s=l+1),u===Ds?n===-1?n=l:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||s===-1||o===0||o===1&&n===s-1&&n===r+1?"":e.slice(n,s)},format:W0.bind(null,"\\"),parse(e){Ut(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,s=e.charCodeAt(0);if(n===1)return rt(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(rt(s)){if(r=1,rt(e.charCodeAt(1))){let d=2,y=d;for(;d<n&&!rt(e.charCodeAt(d));)d++;if(d<n&&d!==y){for(y=d;d<n&&rt(e.charCodeAt(d));)d++;if(d<n&&d!==y){for(y=d;d<n&&!rt(e.charCodeAt(d));)d++;d===n?r=d:d!==y&&(r=d+1)}}}}else if(us(s)&&e.charCodeAt(1)===ls){if(n<=2)return t.root=t.dir=e,t;if(r=2,rt(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,o=r,l=-1,u=!0,c=e.length-1,g=0;for(;c>=r;--c){if(s=e.charCodeAt(c),rt(s)){if(!u){o=c+1;break}continue}l===-1&&(u=!1,l=c+1),s===Ds?i===-1?i=c:g!==1&&(g=1):i!==-1&&(g=-1)}return l!==-1&&(i===-1||g===0||g===1&&i===l-1&&i===o+1?t.base=t.name=e.slice(o,l):(t.name=e.slice(o,i),t.base=e.slice(o,l),t.ext=e.slice(i,l))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Ep=(()=>{if(Xr){const e=/\\/g;return()=>{const t=yl().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>yl()})(),hn={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:Ep();Ut(s,`paths[${r}]`),s.length!==0&&(t=`${s}/${t}`,n=s.charCodeAt(0)===rn)}return t=vl(t,!n,"/",Zc),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Ut(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===rn,n=e.charCodeAt(e.length-1)===rn;return e=vl(e,!t,"/",Zc),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return Ut(e,"path"),e.length>0&&e.charCodeAt(0)===rn},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];Ut(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":hn.normalize(t)},relative(e,t){if(Ut(e,"from"),Ut(t,"to"),e===t||(e=hn.resolve(e),t=hn.resolve(t),e===t))return"";const n=1,r=e.length,s=r-n,i=1,o=t.length-i,l=s<o?s:o;let u=-1,c=0;for(;c<l;c++){const d=e.charCodeAt(n+c);if(d!==t.charCodeAt(i+c))break;d===rn&&(u=c)}if(c===l)if(o>l){if(t.charCodeAt(i+c)===rn)return t.slice(i+c+1);if(c===0)return t.slice(i+c)}else s>l&&(e.charCodeAt(n+c)===rn?u=c:c===0&&(u=0));let g="";for(c=n+u+1;c<=r;++c)(c===r||e.charCodeAt(c)===rn)&&(g+=g.length===0?"..":"/..");return`${g}${t.slice(i+u)}`},toNamespacedPath(e){return e},dirname(e){if(Ut(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===rn;let n=-1,r=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===rn){if(!r){n=s;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&Ut(t,"ext"),Ut(e,"path");let n=0,r=-1,s=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const u=e.charCodeAt(i);if(u===rn){if(!s){n=i+1;break}}else l===-1&&(s=!1,l=i+1),o>=0&&(u===t.charCodeAt(o)?--o===-1&&(r=i):(o=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===rn){if(!s){n=i+1;break}}else r===-1&&(s=!1,r=i+1);return r===-1?"":e.slice(n,r)},extname(e){Ut(e,"path");let t=-1,n=0,r=-1,s=!0,i=0;for(let o=e.length-1;o>=0;--o){const l=e.charCodeAt(o);if(l===rn){if(!s){n=o+1;break}continue}r===-1&&(s=!1,r=o+1),l===Ds?t===-1?t=o:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||r===-1||i===0||i===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:W0.bind(null,"/"),parse(e){Ut(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===rn;let r;n?(t.root="/",r=1):r=0;let s=-1,i=0,o=-1,l=!0,u=e.length-1,c=0;for(;u>=r;--u){const g=e.charCodeAt(u);if(g===rn){if(!l){i=u+1;break}continue}o===-1&&(l=!1,o=u+1),g===Ds?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}if(o!==-1){const g=i===0&&n?1:i;s===-1||c===0||c===1&&s===o-1&&s===i+1?t.base=t.name=e.slice(g,o):(t.name=e.slice(g,s),t.base=e.slice(g,o),t.ext=e.slice(s,o))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};hn.win32=fn.win32=fn;hn.posix=fn.posix=hn;Xr?fn.normalize:hn.normalize;const Ap=Xr?fn.join:hn.join;Xr?fn.resolve:hn.resolve;Xr?fn.relative:hn.relative;Xr?fn.dirname:hn.dirname;Xr?fn.basename:hn.basename;Xr?fn.extname:hn.extname;Xr?fn.sep:hn.sep;const Np=/^\w[\w\d+.-]*$/,xp=/^\//,Lp=/^\/\//;function Cp(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Np.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!xp.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Lp.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function kp(e,t){return!e&&!t?"file":e}function _p(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==dr&&(t=dr+t):t=dr;break}return t}const Ft="",dr="/",Fp=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Lr=class Qa{static isUri(t){return t instanceof Qa?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,s,i,o=!1){typeof t=="object"?(this.scheme=t.scheme||Ft,this.authority=t.authority||Ft,this.path=t.path||Ft,this.query=t.query||Ft,this.fragment=t.fragment||Ft):(this.scheme=kp(t,o),this.authority=n||Ft,this.path=_p(this.scheme,r||Ft),this.query=s||Ft,this.fragment=i||Ft,Cp(this,o))}get fsPath(){return ef(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:s,query:i,fragment:o}=t;return n===void 0?n=this.scheme:n===null&&(n=Ft),r===void 0?r=this.authority:r===null&&(r=Ft),s===void 0?s=this.path:s===null&&(s=Ft),i===void 0?i=this.query:i===null&&(i=Ft),o===void 0?o=this.fragment:o===null&&(o=Ft),n===this.scheme&&r===this.authority&&s===this.path&&i===this.query&&o===this.fragment?this:new gi(n,r,s,i,o)}static parse(t,n=!1){const r=Fp.exec(t);return r?new gi(r[2]||Ft,Pa(r[4]||Ft),Pa(r[5]||Ft),Pa(r[7]||Ft),Pa(r[9]||Ft),n):new gi(Ft,Ft,Ft,Ft,Ft)}static file(t){let n=Ft;if(Ro&&(t=t.replace(/\\/g,dr)),t[0]===dr&&t[1]===dr){const r=t.indexOf(dr,2);r===-1?(n=t.substring(2),t=dr):(n=t.substring(2,r),t=t.substring(r)||dr)}return new gi("file",n,t,Ft,Ft)}static from(t,n){return new gi(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return Ro&&t.scheme==="file"?r=Qa.file(fn.join(ef(t,!0),...n)).path:r=hn.join(t.path,...n),t.with({path:r})}toString(t=!1){return tf(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Qa)return t;{const n=new gi(t);return n._formatted=t.external??null,n._fsPath=t._sep===H0?t.fsPath??null:null,n}}else return t}};const H0=Ro?1:void 0;class gi extends Lr{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ef(this,!1)),this._fsPath}toString(t=!1){return t?tf(this,!0):(this._formatted||(this._formatted=tf(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=H0),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const Y0={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Oh(e,t,n){let r,s=-1;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));const l=Y0[o];l!==void 0?(s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r+=l):s===-1&&(s=i)}}return s!==-1&&(r+=encodeURIComponent(e.substring(s))),r!==void 0?r:e}function Tp(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=Y0[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function ef(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Ro&&(n=n.replace(/\//g,"\\")),n}function tf(e,t){const n=t?Tp:Oh;let r="",{scheme:s,authority:i,path:o,query:l,fragment:u}=e;if(s&&(r+=s,r+=":"),(i||s==="file")&&(r+=dr,r+=dr),i){let c=i.indexOf("@");if(c!==-1){const g=i.substr(0,c);i=i.substr(c+1),c=g.lastIndexOf(":"),c===-1?r+=n(g,!1,!1):(r+=n(g.substr(0,c),!1,!1),r+=":",r+=n(g.substr(c+1),!1,!0)),r+="@"}i=i.toLowerCase(),c=i.lastIndexOf(":"),c===-1?r+=n(i,!1,!0):(r+=n(i.substr(0,c),!1,!0),r+=i.substr(c))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const c=o.charCodeAt(1);c>=65&&c<=90&&(o=`/${String.fromCharCode(c+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const c=o.charCodeAt(0);c>=65&&c<=90&&(o=`${String.fromCharCode(c+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),u&&(r+="#",r+=t?u:Oh(u,!1,!1)),r}function z0(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+z0(e.substr(3)):e}}const Rh=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Pa(e){return e.match(Rh)?e.replace(Rh,t=>z0(t)):e}var vs;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"})(vs||(vs={}));const Mp="tkn";class Op{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}get _remoteResourcesPath(){return hn.join(this._serverRootPath,vs.vscodeRemoteResource)}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(l){return Co(l),t}const n=t.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);const s=this._ports[n],i=this._connectionTokens[n];let o=`path=${encodeURIComponent(t.path)}`;return typeof i=="string"&&(o+=`&${Mp}=${encodeURIComponent(i)}`),Lr.from({scheme:ep?this._preferredWebSchema:vs.vscodeRemoteResource,authority:`${r}:${s}`,path:this._remoteResourcesPath,query:o})}}const Rp=new Op,Pp="vscode-app";class Dl{static{this.FALLBACK_AUTHORITY=Pp}asBrowserUri(t){const n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===vs.vscodeRemote?Rp.rewrite(t):t.scheme===vs.file&&(Zg||np===`${vs.vscodeFileResource}://${Dl.FALLBACK_AUTHORITY}`)?t.with({scheme:vs.vscodeFileResource,authority:t.authority||Dl.FALLBACK_AUTHORITY,query:null,fragment:null}):t}toUri(t,n){if(Lr.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const r=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(r))return Lr.joinPath(Lr.parse(r,!0),t);const s=Ap(r,t);return Lr.file(s)}return Lr.parse(n.toUrl(t))}}const G0=new Dl;var Ph;(function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";function r(i){let o;typeof i=="string"?o=new URL(i).searchParams:i instanceof URL?o=i.searchParams:Lr.isUri(i)&&(o=new URL(i.toString(!0)).searchParams);const l=o?.get(n);if(l)return t.get(l)}e.getHeadersFromQuery=r;function s(i,o,l){if(!globalThis.crossOriginIsolated)return;const u=o&&l?"3":l?"2":"1";i instanceof URLSearchParams?i.set(n,u):i[n]=u}e.addSearchParam=s})(Ph||(Ph={}));const Lc="default",Ip="$initialize";class Bp{constructor(t,n,r,s,i){this.vsWorker=t,this.req=n,this.channel=r,this.method=s,this.args=i,this.type=0}}class Ih{constructor(t,n,r,s){this.vsWorker=t,this.seq=n,this.res=r,this.err=s,this.type=1}}class $p{constructor(t,n,r,s,i){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=s,this.arg=i,this.type=2}}class Vp{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class jp{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Up{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){const s=String(++this._lastSentReq);return new Promise((i,o)=>{this._pendingReplies[s]={resolve:i,reject:o},this._send(new Bp(this._workerId,s,t,n,r))})}listen(t,n,r){let s=null;const i=new Zn({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,i),this._send(new $p(this._workerId,s,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new jp(this._workerId,s)),s=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const r={get:(s,i)=>(typeof i=="string"&&!s[i]&&(Q0(i)?s[i]=o=>this.listen(t,i,o):J0(i)?s[i]=this.listen(t,i,void 0):i.charCodeAt(0)===36&&(s[i]=async(...o)=>(await n?.(),this.sendMessage(t,i,o)))),s[i])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(s=>{this._send(new Ih(this._workerId,n,s,void 0))},s=>{s.detail instanceof Error&&(s.detail=kh(s.detail)),this._send(new Ih(this._workerId,n,void 0,kh(s)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(s=>{this._send(new Vp(this._workerId,n,s))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function J0(e){return e[0]==="o"&&e[1]==="n"&&j0(e.charCodeAt(2))}function Q0(e){return/^onDynamic/.test(e)&&j0(e.charCodeAt(9))}class qp{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Up({sendMessage:(r,s)=>{t(r,s)},handleMessage:(r,s,i)=>this._handleMessage(r,s,i),handleEvent:(r,s,i)=>this._handleEvent(r,s,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===Lc&&n===Ip)return this.initialize(r[0],r[1],r[2]);const s=t===Lc?this._requestHandler:this._localChannels.get(t);if(!s)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));if(typeof s[n]!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(s[n].apply(s,r))}catch(i){return Promise.reject(i)}}_handleEvent(t,n,r){const s=t===Lc?this._requestHandler:this._localChannels.get(t);if(!s)throw new Error(`Missing channel ${t} on worker thread`);if(Q0(n)){const i=s[n].call(s,r);if(typeof i!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return i}if(J0(n)){const i=s[n];if(typeof i!="function")throw new Error(`Missing event ${n} on request handler.`);return i}throw new Error(`Malformed event name ${n}`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t,n,r){if(this._protocol.setWorkerId(t),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}return n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),import(`${G0.asBrowserUri(`${r}.js`).toString(!0)}`).then(i=>{if(this._requestHandler=i.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}class ds{constructor(t,n,r,s){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Bh(e,t){return(t<<5)-t+e|0}function Wp(e,t){t=Bh(149417,t);for(let n=0,r=e.length;n<r;n++)t=Bh(e.charCodeAt(n),t);return t}function Cc(e,t,n=32){const r=n-t,s=~((1<<r)-1);return(e<<t|(s&e)>>>r)>>>0}function $h(e,t=0,n=e.byteLength,r=0){for(let s=0;s<n;s++)e[t+s]=r}function Hp(e,t,n="0"){for(;e.length<t;)e=n+e;return e}function vo(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join(""):Hp((e>>>0).toString(16),t/4)}class K0{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){const n=t.length;if(n===0)return;const r=this._buff;let s=this._buffLen,i=this._leftoverHighSurrogate,o,l;for(i!==0?(o=i,l=-1,i=0):(o=t.charCodeAt(0),l=0);;){let u=o;if(bl(o))if(l+1<n){const c=t.charCodeAt(l+1);Xc(c)?(l++,u=U0(o,c)):u=65533}else{i=o;break}else Xc(o)&&(u=65533);if(s=this._push(r,s,u),l++,l<n)o=t.charCodeAt(l);else break}this._buffLen=s,this._leftoverHighSurrogate=i}_push(t,n,r){return r<128?t[n++]=r:r<2048?(t[n++]=192|(r&1984)>>>6,t[n++]=128|(r&63)>>>0):r<65536?(t[n++]=224|(r&61440)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0):(t[n++]=240|(r&1835008)>>>18,t[n++]=128|(r&258048)>>>12,t[n++]=128|(r&4032)>>>6,t[n++]=128|(r&63)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),vo(this._h0)+vo(this._h1)+vo(this._h2)+vo(this._h3)+vo(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,$h(this._buff,this._buffLen),this._buffLen>56&&(this._step(),$h(this._buff));const t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){const t=K0._bigBlock32,n=this._buffDV;for(let d=0;d<64;d+=4)t.setUint32(d,n.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)t.setUint32(d,Cc(t.getUint32(d-12,!1)^t.getUint32(d-32,!1)^t.getUint32(d-56,!1)^t.getUint32(d-64,!1),1),!1);let r=this._h0,s=this._h1,i=this._h2,o=this._h3,l=this._h4,u,c,g;for(let d=0;d<80;d++)d<20?(u=s&i|~s&o,c=1518500249):d<40?(u=s^i^o,c=1859775393):d<60?(u=s&i|s&o|i&o,c=2400959708):(u=s^i^o,c=3395469782),g=Cc(r,5)+u+l+c+t.getUint32(d*4,!1)&4294967295,l=o,o=i,i=Cc(s,30),s=r,r=g;this._h0=this._h0+r&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+i&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+l&4294967295}}class Vh{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,s=t.length;r<s;r++)n[r]=t.charCodeAt(r);return n}}function Yp(e,t,n){return new ps(new Vh(e),new Vh(t)).ComputeDiff(n).changes}class pi{static Assert(t,n){if(!t)throw new Error(n)}}class bi{static Copy(t,n,r,s,i){for(let o=0;o<i;o++)r[s+o]=t[n+o]}static Copy2(t,n,r,s,i){for(let o=0;o<i;o++)r[s+o]=t[n+o]}}class jh{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new ds(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ps{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[s,i,o]=ps._getElements(t),[l,u,c]=ps._getElements(n);this._hasStrings=o&&c,this._originalStringElements=s,this._originalElementsOrHash=i,this._modifiedStringElements=l,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(ps._isStringArray(n)){const r=new Int32Array(n.length);for(let s=0,i=n.length;s<i;s++)r[s]=Wp(n[s],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=ps._getStrictElement(this._originalSequence,t),s=ps._getStrictElement(this._modifiedSequence,n);return r===s}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,s,i){const o=[!1];let l=this.ComputeDiffRecursive(t,n,r,s,o);return i&&(l=this.PrettifyChanges(l)),{quitEarly:o[0],changes:l}}ComputeDiffRecursive(t,n,r,s,i){for(i[0]=!1;t<=n&&r<=s&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&s>=r&&this.ElementsAreEqual(n,s);)n--,s--;if(t>n||r>s){let d;return r<=s?(pi.Assert(t===n+1,"originalStart should only be one more than originalEnd"),d=[new ds(t,0,r,s-r+1)]):t<=n?(pi.Assert(r===s+1,"modifiedStart should only be one more than modifiedEnd"),d=[new ds(t,n-t+1,r,0)]):(pi.Assert(t===n+1,"originalStart should only be one more than originalEnd"),pi.Assert(r===s+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const o=[0],l=[0],u=this.ComputeRecursionPoint(t,n,r,s,o,l,i),c=o[0],g=l[0];if(u!==null)return u;if(!i[0]){const d=this.ComputeDiffRecursive(t,c,r,g,i);let y=[];return i[0]?y=[new ds(c+1,n-(c+1)+1,g+1,s-(g+1)+1)]:y=this.ComputeDiffRecursive(c+1,n,g+1,s,i),this.ConcatenateChanges(d,y)}return[new ds(t,n-t+1,r,s-r+1)]}WALKTRACE(t,n,r,s,i,o,l,u,c,g,d,y,w,k,A,E,P,j){let H=null,z=null,M=new jh,T=n,Y=r,K=w[0]-E[0]-s,W=-1073741824,re=this.m_forwardHistory.length-1;do{const ee=K+t;ee===T||ee<Y&&c[ee-1]<c[ee+1]?(d=c[ee+1],k=d-K-s,d<W&&M.MarkNextChange(),W=d,M.AddModifiedElement(d+1,k),K=ee+1-t):(d=c[ee-1]+1,k=d-K-s,d<W&&M.MarkNextChange(),W=d-1,M.AddOriginalElement(d,k+1),K=ee-1-t),re>=0&&(c=this.m_forwardHistory[re],t=c[0],T=1,Y=c.length-1)}while(--re>=-1);if(H=M.getReverseChanges(),j[0]){let ee=w[0]+1,B=E[0]+1;if(H!==null&&H.length>0){const ae=H[H.length-1];ee=Math.max(ee,ae.getOriginalEnd()),B=Math.max(B,ae.getModifiedEnd())}z=[new ds(ee,y-ee+1,B,A-B+1)]}else{M=new jh,T=o,Y=l,K=w[0]-E[0]-u,W=1073741824,re=P?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ee=K+i;ee===T||ee<Y&&g[ee-1]>=g[ee+1]?(d=g[ee+1]-1,k=d-K-u,d>W&&M.MarkNextChange(),W=d+1,M.AddOriginalElement(d+1,k+1),K=ee+1-i):(d=g[ee-1],k=d-K-u,d>W&&M.MarkNextChange(),W=d,M.AddModifiedElement(d+1,k+1),K=ee-1-i),re>=0&&(g=this.m_reverseHistory[re],i=g[0],T=1,Y=g.length-1)}while(--re>=-1);z=M.getChanges()}return this.ConcatenateChanges(H,z)}ComputeRecursionPoint(t,n,r,s,i,o,l){let u=0,c=0,g=0,d=0,y=0,w=0;t--,r--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const k=n-t+(s-r),A=k+1,E=new Int32Array(A),P=new Int32Array(A),j=s-r,H=n-t,z=t-r,M=n-s,Y=(H-j)%2===0;E[j]=t,P[H]=n,l[0]=!1;for(let K=1;K<=k/2+1;K++){let W=0,re=0;g=this.ClipDiagonalBound(j-K,K,j,A),d=this.ClipDiagonalBound(j+K,K,j,A);for(let B=g;B<=d;B+=2){B===g||B<d&&E[B-1]<E[B+1]?u=E[B+1]:u=E[B-1]+1,c=u-(B-j)-z;const ae=u;for(;u<n&&c<s&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(E[B]=u,u+c>W+re&&(W=u,re=c),!Y&&Math.abs(B-H)<=K-1&&u>=P[B])return i[0]=u,o[0]=c,ae<=P[B]&&K<=1448?this.WALKTRACE(j,g,d,z,H,y,w,M,E,P,u,n,i,c,s,o,Y,l):null}const ee=(W-t+(re-r)-K)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(W,ee))return l[0]=!0,i[0]=W,o[0]=re,ee>0&&K<=1448?this.WALKTRACE(j,g,d,z,H,y,w,M,E,P,u,n,i,c,s,o,Y,l):(t++,r++,[new ds(t,n-t+1,r,s-r+1)]);y=this.ClipDiagonalBound(H-K,K,H,A),w=this.ClipDiagonalBound(H+K,K,H,A);for(let B=y;B<=w;B+=2){B===y||B<w&&P[B-1]>=P[B+1]?u=P[B+1]-1:u=P[B-1],c=u-(B-H)-M;const ae=u;for(;u>t&&c>r&&this.ElementsAreEqual(u,c);)u--,c--;if(P[B]=u,Y&&Math.abs(B-j)<=K&&u<=E[B])return i[0]=u,o[0]=c,ae>=E[B]&&K<=1448?this.WALKTRACE(j,g,d,z,H,y,w,M,E,P,u,n,i,c,s,o,Y,l):null}if(K<=1447){let B=new Int32Array(d-g+2);B[0]=j-g+1,bi.Copy2(E,g,B,1,d-g+1),this.m_forwardHistory.push(B),B=new Int32Array(w-y+2),B[0]=H-y+1,bi.Copy2(P,y,B,1,w-y+1),this.m_reverseHistory.push(B)}}return this.WALKTRACE(j,g,d,z,H,y,w,M,E,P,u,n,i,c,s,o,Y,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],s=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,i=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,o=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<s&&r.modifiedStart+r.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}const u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let s=0,i=0;if(n>0){const d=t[n-1];s=d.originalStart+d.originalLength,i=d.modifiedStart+d.modifiedLength}const o=r.originalLength>0,l=r.modifiedLength>0;let u=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let d=1;;d++){const y=r.originalStart-d,w=r.modifiedStart-d;if(y<s||w<i||o&&!this.OriginalElementsAreEqual(y,y+r.originalLength)||l&&!this.ModifiedElementsAreEqual(w,w+r.modifiedLength))break;const A=(y===s&&w===i?5:0)+this._boundaryScore(y,r.originalLength,w,r.modifiedLength);A>c&&(c=A,u=d)}r.originalStart-=u,r.modifiedStart-=u;const g=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],g)){t[n-1]=g[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const s=t[n-1],i=t[n],o=i.originalStart-s.originalStart-s.originalLength,l=s.originalStart,u=i.originalStart+i.originalLength,c=u-l,g=s.modifiedStart,d=i.modifiedStart+i.modifiedLength,y=d-g;if(o<5&&c<20&&y<20){const w=this._findBetterContiguousSequence(l,c,g,y,o);if(w){const[k,A]=w;(k!==s.originalStart+s.originalLength||A!==s.modifiedStart+s.modifiedLength)&&(s.originalLength=k-s.originalStart,s.modifiedLength=A-s.modifiedStart,i.originalStart=k+o,i.modifiedStart=A+o,i.originalLength=u-i.originalStart,i.modifiedLength=d-i.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,s,i){if(n<i||s<i)return null;const o=t+n-i+1,l=r+s-i+1;let u=0,c=0,g=0;for(let d=t;d<o;d++)for(let y=r;y<l;y++){const w=this._contiguousSequenceScore(d,y,i);w>0&&w>u&&(u=w,c=d,g=y)}return u>0?[c,g]:null}_contiguousSequenceScore(t,n,r){let s=0;for(let i=0;i<r;i++){if(!this.ElementsAreEqual(t+i,n+i))return 0;s+=this._originalStringElements[t+i].length}return s}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,s){const i=this._OriginalRegionIsBoundary(t,n)?1:0,o=this._ModifiedRegionIsBoundary(r,s)?1:0;return i+o}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const s=new Array(t.length+n.length-1);return bi.Copy(t,0,s,0,t.length-1),s[t.length-1]=r[0],bi.Copy(n,1,s,t.length,n.length-1),s}else{const s=new Array(t.length+n.length);return bi.Copy(t,0,s,0,t.length),bi.Copy(n,0,s,t.length,n.length),s}}ChangesOverlap(t,n,r){if(pi.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),pi.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const s=t.originalStart;let i=t.originalLength;const o=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new ds(s,i,o,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,s){if(t>=0&&t<s)return t;const i=r,o=s-r-1,l=n%2===0;if(t<0){const u=i%2===0;return l===u?0:1}else{const u=o%2===0;return l===u?s-1:s-2}}}let qt=class Rs{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new Rs(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return Rs.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return Rs.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return Rs.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,s=n.lineNumber|0;if(r===s){const i=t.column|0,o=n.column|0;return i-o}return r-s}clone(){return new Rs(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new Rs(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},bt=class zt{constructor(t,n,r,s){t>r||t===r&&n>s?(this.startLineNumber=r,this.startColumn=s,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=s)}isEmpty(){return zt.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return zt.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return zt.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return zt.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return zt.plusRange(this,t)}static plusRange(t,n){let r,s,i,o;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,s=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,s=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,s=t.startColumn),n.endLineNumber>t.endLineNumber?(i=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(i=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(i=t.endLineNumber,o=t.endColumn),new zt(r,s,i,o)}intersectRanges(t){return zt.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,s=t.startColumn,i=t.endLineNumber,o=t.endColumn;const l=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,g=n.endColumn;return r<l?(r=l,s=u):r===l&&(s=Math.max(s,u)),i>c?(i=c,o=g):i===c&&(o=Math.min(o,g)),r>i||r===i&&s>o?null:new zt(r,s,i,o)}equalsRange(t){return zt.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return zt.getEndPosition(this)}static getEndPosition(t){return new qt(t.endLineNumber,t.endColumn)}getStartPosition(){return zt.getStartPosition(this)}static getStartPosition(t){return new qt(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new zt(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new zt(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return zt.collapseToStart(this)}static collapseToStart(t){return new zt(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return zt.collapseToEnd(this)}static collapseToEnd(t){return new zt(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new zt(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new zt(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new zt(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const i=t.startLineNumber|0,o=n.startLineNumber|0;if(i===o){const l=t.startColumn|0,u=n.startColumn|0;if(l===u){const c=t.endLineNumber|0,g=n.endLineNumber|0;if(c===g){const d=t.endColumn|0,y=n.endColumn|0;return d-y}return c-g}return l-u}return i-o}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function Uh(e){return e<0?0:e>255?255:e|0}function yi(e){return e<0?0:e>4294967295?4294967295:e|0}class ah{constructor(t){const n=Uh(t);this._defaultValue=n,this._asciiMap=ah._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Uh(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class zp{constructor(t,n,r){const s=new Uint8Array(t*n);for(let i=0,o=t*n;i<o;i++)s[i]=r;this._data=s,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class Gp{constructor(t){let n=0,r=0;for(let i=0,o=t.length;i<o;i++){const[l,u,c]=t[i];u>n&&(n=u),l>r&&(r=l),c>r&&(r=c)}n++,r++;const s=new zp(r,n,0);for(let i=0,o=t.length;i<o;i++){const[l,u,c]=t[i];s.set(l,u,c)}this._states=s,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let kc=null;function Jp(){return kc===null&&(kc=new Gp([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),kc}let Do=null;function Qp(){if(Do===null){Do=new ah(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)Do.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)Do.set(t.charCodeAt(n),2)}return Do}class wl{static _createLink(t,n,r,s,i){let o=i-1;do{const l=n.charCodeAt(o);if(t.get(l)!==2)break;o--}while(o>s);if(s>0){const l=n.charCodeAt(s-1),u=n.charCodeAt(o);(l===40&&u===41||l===91&&u===93||l===123&&u===125)&&o--}return{range:{startLineNumber:r,startColumn:s+1,endLineNumber:r,endColumn:o+2},url:n.substring(s,o+1)}}static computeLinks(t,n=Jp()){const r=Qp(),s=[];for(let i=1,o=t.getLineCount();i<=o;i++){const l=t.getLineContent(i),u=l.length;let c=0,g=0,d=0,y=1,w=!1,k=!1,A=!1,E=!1;for(;c<u;){let P=!1;const j=l.charCodeAt(c);if(y===13){let H;switch(j){case 40:w=!0,H=0;break;case 41:H=w?0:1;break;case 91:A=!0,k=!0,H=0;break;case 93:A=!1,H=k?0:1;break;case 123:E=!0,H=0;break;case 125:H=E?0:1;break;case 39:case 34:case 96:d===j?H=1:d===39||d===34||d===96?H=0:H=1;break;case 42:H=d===42?1:0;break;case 124:H=d===124?1:0;break;case 32:H=A?0:1;break;default:H=r.get(j)}H===1&&(s.push(wl._createLink(r,l,i,g,c)),P=!0)}else if(y===12){let H;j===91?(k=!0,H=0):H=r.get(j),H===1?P=!0:y=13}else y=n.nextState(y,j),y===0&&(P=!0);P&&(y=1,w=!1,k=!1,E=!1,g=c+1,d=j),c++}y===13&&s.push(wl._createLink(r,l,i,g,u))}return s}}function Kp(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:wl.computeLinks(e)}class lh{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new lh}navigateValueSet(t,n,r,s,i){if(t&&n){const o=this.doNavigateValueSet(n,i);if(o)return{range:t,value:o}}if(r&&s){const o=this.doNavigateValueSet(s,i);if(o)return{range:r,value:o}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let s=Number(t);const i=parseFloat(t);return!isNaN(s)&&!isNaN(i)&&s===i?s===0&&!n?null:(s=Math.floor(s*r),s+=n?r:-r,String(s/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let s=null;for(let i=0,o=t.length;s===null&&i<o;i++)s=this.valueSetReplace(t[i],n,r);return s}valueSetReplace(t,n,r){let s=t.indexOf(n);return s>=0?(s+=r?1:-1,s<0?s=t.length-1:s%=t.length,t[s]):null}}const X0=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Sl;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Ka?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:gl.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:X0})})(Sl||(Sl={}));class Ka{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?X0:(this._emitter||(this._emitter=new Zn),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Xp{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ka),this._token}cancel(){this._token?this._token instanceof Ka&&this._token.cancel():this._token=Sl.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Ka&&this._token.dispose():this._token=Sl.None}}class uh{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const Xa=new uh,nf=new uh,rf=new uh,Zp=new Array(230),eb=Object.create(null),tb=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const s of t){const[i,o,l,u,c,g,d,y,w]=s;if(r[o]||(r[o]=!0,eb[l]=o,tb[l.toLowerCase()]=o),!n[u]){if(n[u]=!0,!c)throw new Error(`String representation missing for key code ${u} around scan code ${l}`);Xa.define(u,c),nf.define(u,y||c),rf.define(u,w||y||c)}g&&(Zp[g]=u)}})();var qh;(function(e){function t(l){return Xa.keyCodeToStr(l)}e.toString=t;function n(l){return Xa.strToKeyCode(l)}e.fromString=n;function r(l){return nf.keyCodeToStr(l)}e.toUserSettingsUS=r;function s(l){return rf.keyCodeToStr(l)}e.toUserSettingsGeneral=s;function i(l){return nf.strToKeyCode(l)||rf.strToKeyCode(l)}e.fromUserSettings=i;function o(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Xa.keyCodeToStr(l)}e.toElectronAccelerator=o})(qh||(qh={}));function nb(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class In extends bt{constructor(t,n,r,s){super(t,n,r,s),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return In.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new In(this.startLineNumber,this.startColumn,t,n):new In(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new qt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new qt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new In(t,n,this.endLineNumber,this.endColumn):new In(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new In(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new In(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new In(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new In(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,s=t.length;r<s;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,s,i){return i===0?new In(t,n,r,s):new In(r,s,t,n)}}function rb(e){return typeof e=="string"}const Wh=Object.create(null);function b(e,t){if(rb(t)){const n=Wh[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Wh[e]=t,{id:e}}const sb={add:b("add",6e4),plus:b("plus",6e4),gistNew:b("gist-new",6e4),repoCreate:b("repo-create",6e4),lightbulb:b("lightbulb",60001),lightBulb:b("light-bulb",60001),repo:b("repo",60002),repoDelete:b("repo-delete",60002),gistFork:b("gist-fork",60003),repoForked:b("repo-forked",60003),gitPullRequest:b("git-pull-request",60004),gitPullRequestAbandoned:b("git-pull-request-abandoned",60004),recordKeys:b("record-keys",60005),keyboard:b("keyboard",60005),tag:b("tag",60006),gitPullRequestLabel:b("git-pull-request-label",60006),tagAdd:b("tag-add",60006),tagRemove:b("tag-remove",60006),person:b("person",60007),personFollow:b("person-follow",60007),personOutline:b("person-outline",60007),personFilled:b("person-filled",60007),gitBranch:b("git-branch",60008),gitBranchCreate:b("git-branch-create",60008),gitBranchDelete:b("git-branch-delete",60008),sourceControl:b("source-control",60008),mirror:b("mirror",60009),mirrorPublic:b("mirror-public",60009),star:b("star",60010),starAdd:b("star-add",60010),starDelete:b("star-delete",60010),starEmpty:b("star-empty",60010),comment:b("comment",60011),commentAdd:b("comment-add",60011),alert:b("alert",60012),warning:b("warning",60012),search:b("search",60013),searchSave:b("search-save",60013),logOut:b("log-out",60014),signOut:b("sign-out",60014),logIn:b("log-in",60015),signIn:b("sign-in",60015),eye:b("eye",60016),eyeUnwatch:b("eye-unwatch",60016),eyeWatch:b("eye-watch",60016),circleFilled:b("circle-filled",60017),primitiveDot:b("primitive-dot",60017),closeDirty:b("close-dirty",60017),debugBreakpoint:b("debug-breakpoint",60017),debugBreakpointDisabled:b("debug-breakpoint-disabled",60017),debugHint:b("debug-hint",60017),terminalDecorationSuccess:b("terminal-decoration-success",60017),primitiveSquare:b("primitive-square",60018),edit:b("edit",60019),pencil:b("pencil",60019),info:b("info",60020),issueOpened:b("issue-opened",60020),gistPrivate:b("gist-private",60021),gitForkPrivate:b("git-fork-private",60021),lock:b("lock",60021),mirrorPrivate:b("mirror-private",60021),close:b("close",60022),removeClose:b("remove-close",60022),x:b("x",60022),repoSync:b("repo-sync",60023),sync:b("sync",60023),clone:b("clone",60024),desktopDownload:b("desktop-download",60024),beaker:b("beaker",60025),microscope:b("microscope",60025),vm:b("vm",60026),deviceDesktop:b("device-desktop",60026),file:b("file",60027),fileText:b("file-text",60027),more:b("more",60028),ellipsis:b("ellipsis",60028),kebabHorizontal:b("kebab-horizontal",60028),mailReply:b("mail-reply",60029),reply:b("reply",60029),organization:b("organization",60030),organizationFilled:b("organization-filled",60030),organizationOutline:b("organization-outline",60030),newFile:b("new-file",60031),fileAdd:b("file-add",60031),newFolder:b("new-folder",60032),fileDirectoryCreate:b("file-directory-create",60032),trash:b("trash",60033),trashcan:b("trashcan",60033),history:b("history",60034),clock:b("clock",60034),folder:b("folder",60035),fileDirectory:b("file-directory",60035),symbolFolder:b("symbol-folder",60035),logoGithub:b("logo-github",60036),markGithub:b("mark-github",60036),github:b("github",60036),terminal:b("terminal",60037),console:b("console",60037),repl:b("repl",60037),zap:b("zap",60038),symbolEvent:b("symbol-event",60038),error:b("error",60039),stop:b("stop",60039),variable:b("variable",60040),symbolVariable:b("symbol-variable",60040),array:b("array",60042),symbolArray:b("symbol-array",60042),symbolModule:b("symbol-module",60043),symbolPackage:b("symbol-package",60043),symbolNamespace:b("symbol-namespace",60043),symbolObject:b("symbol-object",60043),symbolMethod:b("symbol-method",60044),symbolFunction:b("symbol-function",60044),symbolConstructor:b("symbol-constructor",60044),symbolBoolean:b("symbol-boolean",60047),symbolNull:b("symbol-null",60047),symbolNumeric:b("symbol-numeric",60048),symbolNumber:b("symbol-number",60048),symbolStructure:b("symbol-structure",60049),symbolStruct:b("symbol-struct",60049),symbolParameter:b("symbol-parameter",60050),symbolTypeParameter:b("symbol-type-parameter",60050),symbolKey:b("symbol-key",60051),symbolText:b("symbol-text",60051),symbolReference:b("symbol-reference",60052),goToFile:b("go-to-file",60052),symbolEnum:b("symbol-enum",60053),symbolValue:b("symbol-value",60053),symbolRuler:b("symbol-ruler",60054),symbolUnit:b("symbol-unit",60054),activateBreakpoints:b("activate-breakpoints",60055),archive:b("archive",60056),arrowBoth:b("arrow-both",60057),arrowDown:b("arrow-down",60058),arrowLeft:b("arrow-left",60059),arrowRight:b("arrow-right",60060),arrowSmallDown:b("arrow-small-down",60061),arrowSmallLeft:b("arrow-small-left",60062),arrowSmallRight:b("arrow-small-right",60063),arrowSmallUp:b("arrow-small-up",60064),arrowUp:b("arrow-up",60065),bell:b("bell",60066),bold:b("bold",60067),book:b("book",60068),bookmark:b("bookmark",60069),debugBreakpointConditionalUnverified:b("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:b("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:b("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:b("debug-breakpoint-data-unverified",60072),debugBreakpointData:b("debug-breakpoint-data",60073),debugBreakpointDataDisabled:b("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:b("debug-breakpoint-log-unverified",60074),debugBreakpointLog:b("debug-breakpoint-log",60075),debugBreakpointLogDisabled:b("debug-breakpoint-log-disabled",60075),briefcase:b("briefcase",60076),broadcast:b("broadcast",60077),browser:b("browser",60078),bug:b("bug",60079),calendar:b("calendar",60080),caseSensitive:b("case-sensitive",60081),check:b("check",60082),checklist:b("checklist",60083),chevronDown:b("chevron-down",60084),chevronLeft:b("chevron-left",60085),chevronRight:b("chevron-right",60086),chevronUp:b("chevron-up",60087),chromeClose:b("chrome-close",60088),chromeMaximize:b("chrome-maximize",60089),chromeMinimize:b("chrome-minimize",60090),chromeRestore:b("chrome-restore",60091),circleOutline:b("circle-outline",60092),circle:b("circle",60092),debugBreakpointUnverified:b("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:b("terminal-decoration-incomplete",60092),circleSlash:b("circle-slash",60093),circuitBoard:b("circuit-board",60094),clearAll:b("clear-all",60095),clippy:b("clippy",60096),closeAll:b("close-all",60097),cloudDownload:b("cloud-download",60098),cloudUpload:b("cloud-upload",60099),code:b("code",60100),collapseAll:b("collapse-all",60101),colorMode:b("color-mode",60102),commentDiscussion:b("comment-discussion",60103),creditCard:b("credit-card",60105),dash:b("dash",60108),dashboard:b("dashboard",60109),database:b("database",60110),debugContinue:b("debug-continue",60111),debugDisconnect:b("debug-disconnect",60112),debugPause:b("debug-pause",60113),debugRestart:b("debug-restart",60114),debugStart:b("debug-start",60115),debugStepInto:b("debug-step-into",60116),debugStepOut:b("debug-step-out",60117),debugStepOver:b("debug-step-over",60118),debugStop:b("debug-stop",60119),debug:b("debug",60120),deviceCameraVideo:b("device-camera-video",60121),deviceCamera:b("device-camera",60122),deviceMobile:b("device-mobile",60123),diffAdded:b("diff-added",60124),diffIgnored:b("diff-ignored",60125),diffModified:b("diff-modified",60126),diffRemoved:b("diff-removed",60127),diffRenamed:b("diff-renamed",60128),diff:b("diff",60129),diffSidebyside:b("diff-sidebyside",60129),discard:b("discard",60130),editorLayout:b("editor-layout",60131),emptyWindow:b("empty-window",60132),exclude:b("exclude",60133),extensions:b("extensions",60134),eyeClosed:b("eye-closed",60135),fileBinary:b("file-binary",60136),fileCode:b("file-code",60137),fileMedia:b("file-media",60138),filePdf:b("file-pdf",60139),fileSubmodule:b("file-submodule",60140),fileSymlinkDirectory:b("file-symlink-directory",60141),fileSymlinkFile:b("file-symlink-file",60142),fileZip:b("file-zip",60143),files:b("files",60144),filter:b("filter",60145),flame:b("flame",60146),foldDown:b("fold-down",60147),foldUp:b("fold-up",60148),fold:b("fold",60149),folderActive:b("folder-active",60150),folderOpened:b("folder-opened",60151),gear:b("gear",60152),gift:b("gift",60153),gistSecret:b("gist-secret",60154),gist:b("gist",60155),gitCommit:b("git-commit",60156),gitCompare:b("git-compare",60157),compareChanges:b("compare-changes",60157),gitMerge:b("git-merge",60158),githubAction:b("github-action",60159),githubAlt:b("github-alt",60160),globe:b("globe",60161),grabber:b("grabber",60162),graph:b("graph",60163),gripper:b("gripper",60164),heart:b("heart",60165),home:b("home",60166),horizontalRule:b("horizontal-rule",60167),hubot:b("hubot",60168),inbox:b("inbox",60169),issueReopened:b("issue-reopened",60171),issues:b("issues",60172),italic:b("italic",60173),jersey:b("jersey",60174),json:b("json",60175),kebabVertical:b("kebab-vertical",60176),key:b("key",60177),law:b("law",60178),lightbulbAutofix:b("lightbulb-autofix",60179),linkExternal:b("link-external",60180),link:b("link",60181),listOrdered:b("list-ordered",60182),listUnordered:b("list-unordered",60183),liveShare:b("live-share",60184),loading:b("loading",60185),location:b("location",60186),mailRead:b("mail-read",60187),mail:b("mail",60188),markdown:b("markdown",60189),megaphone:b("megaphone",60190),mention:b("mention",60191),milestone:b("milestone",60192),gitPullRequestMilestone:b("git-pull-request-milestone",60192),mortarBoard:b("mortar-board",60193),move:b("move",60194),multipleWindows:b("multiple-windows",60195),mute:b("mute",60196),noNewline:b("no-newline",60197),note:b("note",60198),octoface:b("octoface",60199),openPreview:b("open-preview",60200),package:b("package",60201),paintcan:b("paintcan",60202),pin:b("pin",60203),play:b("play",60204),run:b("run",60204),plug:b("plug",60205),preserveCase:b("preserve-case",60206),preview:b("preview",60207),project:b("project",60208),pulse:b("pulse",60209),question:b("question",60210),quote:b("quote",60211),radioTower:b("radio-tower",60212),reactions:b("reactions",60213),references:b("references",60214),refresh:b("refresh",60215),regex:b("regex",60216),remoteExplorer:b("remote-explorer",60217),remote:b("remote",60218),remove:b("remove",60219),replaceAll:b("replace-all",60220),replace:b("replace",60221),repoClone:b("repo-clone",60222),repoForcePush:b("repo-force-push",60223),repoPull:b("repo-pull",60224),repoPush:b("repo-push",60225),report:b("report",60226),requestChanges:b("request-changes",60227),rocket:b("rocket",60228),rootFolderOpened:b("root-folder-opened",60229),rootFolder:b("root-folder",60230),rss:b("rss",60231),ruby:b("ruby",60232),saveAll:b("save-all",60233),saveAs:b("save-as",60234),save:b("save",60235),screenFull:b("screen-full",60236),screenNormal:b("screen-normal",60237),searchStop:b("search-stop",60238),server:b("server",60240),settingsGear:b("settings-gear",60241),settings:b("settings",60242),shield:b("shield",60243),smiley:b("smiley",60244),sortPrecedence:b("sort-precedence",60245),splitHorizontal:b("split-horizontal",60246),splitVertical:b("split-vertical",60247),squirrel:b("squirrel",60248),starFull:b("star-full",60249),starHalf:b("star-half",60250),symbolClass:b("symbol-class",60251),symbolColor:b("symbol-color",60252),symbolConstant:b("symbol-constant",60253),symbolEnumMember:b("symbol-enum-member",60254),symbolField:b("symbol-field",60255),symbolFile:b("symbol-file",60256),symbolInterface:b("symbol-interface",60257),symbolKeyword:b("symbol-keyword",60258),symbolMisc:b("symbol-misc",60259),symbolOperator:b("symbol-operator",60260),symbolProperty:b("symbol-property",60261),wrench:b("wrench",60261),wrenchSubaction:b("wrench-subaction",60261),symbolSnippet:b("symbol-snippet",60262),tasklist:b("tasklist",60263),telescope:b("telescope",60264),textSize:b("text-size",60265),threeBars:b("three-bars",60266),thumbsdown:b("thumbsdown",60267),thumbsup:b("thumbsup",60268),tools:b("tools",60269),triangleDown:b("triangle-down",60270),triangleLeft:b("triangle-left",60271),triangleRight:b("triangle-right",60272),triangleUp:b("triangle-up",60273),twitter:b("twitter",60274),unfold:b("unfold",60275),unlock:b("unlock",60276),unmute:b("unmute",60277),unverified:b("unverified",60278),verified:b("verified",60279),versions:b("versions",60280),vmActive:b("vm-active",60281),vmOutline:b("vm-outline",60282),vmRunning:b("vm-running",60283),watch:b("watch",60284),whitespace:b("whitespace",60285),wholeWord:b("whole-word",60286),window:b("window",60287),wordWrap:b("word-wrap",60288),zoomIn:b("zoom-in",60289),zoomOut:b("zoom-out",60290),listFilter:b("list-filter",60291),listFlat:b("list-flat",60292),listSelection:b("list-selection",60293),selection:b("selection",60293),listTree:b("list-tree",60294),debugBreakpointFunctionUnverified:b("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:b("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:b("debug-breakpoint-function-disabled",60296),debugStackframeActive:b("debug-stackframe-active",60297),circleSmallFilled:b("circle-small-filled",60298),debugStackframeDot:b("debug-stackframe-dot",60298),terminalDecorationMark:b("terminal-decoration-mark",60298),debugStackframe:b("debug-stackframe",60299),debugStackframeFocused:b("debug-stackframe-focused",60299),debugBreakpointUnsupported:b("debug-breakpoint-unsupported",60300),symbolString:b("symbol-string",60301),debugReverseContinue:b("debug-reverse-continue",60302),debugStepBack:b("debug-step-back",60303),debugRestartFrame:b("debug-restart-frame",60304),debugAlt:b("debug-alt",60305),callIncoming:b("call-incoming",60306),callOutgoing:b("call-outgoing",60307),menu:b("menu",60308),expandAll:b("expand-all",60309),feedback:b("feedback",60310),gitPullRequestReviewer:b("git-pull-request-reviewer",60310),groupByRefType:b("group-by-ref-type",60311),ungroupByRefType:b("ungroup-by-ref-type",60312),account:b("account",60313),gitPullRequestAssignee:b("git-pull-request-assignee",60313),bellDot:b("bell-dot",60314),debugConsole:b("debug-console",60315),library:b("library",60316),output:b("output",60317),runAll:b("run-all",60318),syncIgnored:b("sync-ignored",60319),pinned:b("pinned",60320),githubInverted:b("github-inverted",60321),serverProcess:b("server-process",60322),serverEnvironment:b("server-environment",60323),pass:b("pass",60324),issueClosed:b("issue-closed",60324),stopCircle:b("stop-circle",60325),playCircle:b("play-circle",60326),record:b("record",60327),debugAltSmall:b("debug-alt-small",60328),vmConnect:b("vm-connect",60329),cloud:b("cloud",60330),merge:b("merge",60331),export:b("export",60332),graphLeft:b("graph-left",60333),magnet:b("magnet",60334),notebook:b("notebook",60335),redo:b("redo",60336),checkAll:b("check-all",60337),pinnedDirty:b("pinned-dirty",60338),passFilled:b("pass-filled",60339),circleLargeFilled:b("circle-large-filled",60340),circleLarge:b("circle-large",60341),circleLargeOutline:b("circle-large-outline",60341),combine:b("combine",60342),gather:b("gather",60342),table:b("table",60343),variableGroup:b("variable-group",60344),typeHierarchy:b("type-hierarchy",60345),typeHierarchySub:b("type-hierarchy-sub",60346),typeHierarchySuper:b("type-hierarchy-super",60347),gitPullRequestCreate:b("git-pull-request-create",60348),runAbove:b("run-above",60349),runBelow:b("run-below",60350),notebookTemplate:b("notebook-template",60351),debugRerun:b("debug-rerun",60352),workspaceTrusted:b("workspace-trusted",60353),workspaceUntrusted:b("workspace-untrusted",60354),workspaceUnknown:b("workspace-unknown",60355),terminalCmd:b("terminal-cmd",60356),terminalDebian:b("terminal-debian",60357),terminalLinux:b("terminal-linux",60358),terminalPowershell:b("terminal-powershell",60359),terminalTmux:b("terminal-tmux",60360),terminalUbuntu:b("terminal-ubuntu",60361),terminalBash:b("terminal-bash",60362),arrowSwap:b("arrow-swap",60363),copy:b("copy",60364),personAdd:b("person-add",60365),filterFilled:b("filter-filled",60366),wand:b("wand",60367),debugLineByLine:b("debug-line-by-line",60368),inspect:b("inspect",60369),layers:b("layers",60370),layersDot:b("layers-dot",60371),layersActive:b("layers-active",60372),compass:b("compass",60373),compassDot:b("compass-dot",60374),compassActive:b("compass-active",60375),azure:b("azure",60376),issueDraft:b("issue-draft",60377),gitPullRequestClosed:b("git-pull-request-closed",60378),gitPullRequestDraft:b("git-pull-request-draft",60379),debugAll:b("debug-all",60380),debugCoverage:b("debug-coverage",60381),runErrors:b("run-errors",60382),folderLibrary:b("folder-library",60383),debugContinueSmall:b("debug-continue-small",60384),beakerStop:b("beaker-stop",60385),graphLine:b("graph-line",60386),graphScatter:b("graph-scatter",60387),pieChart:b("pie-chart",60388),bracket:b("bracket",60175),bracketDot:b("bracket-dot",60389),bracketError:b("bracket-error",60390),lockSmall:b("lock-small",60391),azureDevops:b("azure-devops",60392),verifiedFilled:b("verified-filled",60393),newline:b("newline",60394),layout:b("layout",60395),layoutActivitybarLeft:b("layout-activitybar-left",60396),layoutActivitybarRight:b("layout-activitybar-right",60397),layoutPanelLeft:b("layout-panel-left",60398),layoutPanelCenter:b("layout-panel-center",60399),layoutPanelJustify:b("layout-panel-justify",60400),layoutPanelRight:b("layout-panel-right",60401),layoutPanel:b("layout-panel",60402),layoutSidebarLeft:b("layout-sidebar-left",60403),layoutSidebarRight:b("layout-sidebar-right",60404),layoutStatusbar:b("layout-statusbar",60405),layoutMenubar:b("layout-menubar",60406),layoutCentered:b("layout-centered",60407),target:b("target",60408),indent:b("indent",60409),recordSmall:b("record-small",60410),errorSmall:b("error-small",60411),terminalDecorationError:b("terminal-decoration-error",60411),arrowCircleDown:b("arrow-circle-down",60412),arrowCircleLeft:b("arrow-circle-left",60413),arrowCircleRight:b("arrow-circle-right",60414),arrowCircleUp:b("arrow-circle-up",60415),layoutSidebarRightOff:b("layout-sidebar-right-off",60416),layoutPanelOff:b("layout-panel-off",60417),layoutSidebarLeftOff:b("layout-sidebar-left-off",60418),blank:b("blank",60419),heartFilled:b("heart-filled",60420),map:b("map",60421),mapHorizontal:b("map-horizontal",60421),foldHorizontal:b("fold-horizontal",60421),mapFilled:b("map-filled",60422),mapHorizontalFilled:b("map-horizontal-filled",60422),foldHorizontalFilled:b("fold-horizontal-filled",60422),circleSmall:b("circle-small",60423),bellSlash:b("bell-slash",60424),bellSlashDot:b("bell-slash-dot",60425),commentUnresolved:b("comment-unresolved",60426),gitPullRequestGoToChanges:b("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:b("git-pull-request-new-changes",60428),searchFuzzy:b("search-fuzzy",60429),commentDraft:b("comment-draft",60430),send:b("send",60431),sparkle:b("sparkle",60432),insert:b("insert",60433),mic:b("mic",60434),thumbsdownFilled:b("thumbsdown-filled",60435),thumbsupFilled:b("thumbsup-filled",60436),coffee:b("coffee",60437),snake:b("snake",60438),game:b("game",60439),vr:b("vr",60440),chip:b("chip",60441),piano:b("piano",60442),music:b("music",60443),micFilled:b("mic-filled",60444),repoFetch:b("repo-fetch",60445),copilot:b("copilot",60446),lightbulbSparkle:b("lightbulb-sparkle",60447),robot:b("robot",60448),sparkleFilled:b("sparkle-filled",60449),diffSingle:b("diff-single",60450),diffMultiple:b("diff-multiple",60451),surroundWith:b("surround-with",60452),share:b("share",60453),gitStash:b("git-stash",60454),gitStashApply:b("git-stash-apply",60455),gitStashPop:b("git-stash-pop",60456),vscode:b("vscode",60457),vscodeInsiders:b("vscode-insiders",60458),codeOss:b("code-oss",60459),runCoverage:b("run-coverage",60460),runAllCoverage:b("run-all-coverage",60461),coverage:b("coverage",60462),githubProject:b("github-project",60463),mapVertical:b("map-vertical",60464),foldVertical:b("fold-vertical",60464),mapVerticalFilled:b("map-vertical-filled",60465),foldVerticalFilled:b("fold-vertical-filled",60465),goToSearch:b("go-to-search",60466),percentage:b("percentage",60467),sortPercentage:b("sort-percentage",60467),attach:b("attach",60468)},ib={dialogError:b("dialog-error","error"),dialogWarning:b("dialog-warning","warning"),dialogInfo:b("dialog-info","info"),dialogClose:b("dialog-close","close"),treeItemExpanded:b("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:b("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:b("tree-filter-on-type-off","list-selection"),treeFilterClear:b("tree-filter-clear","close"),treeItemLoading:b("tree-item-loading","loading"),menuSelection:b("menu-selection","check"),menuSubmenu:b("menu-submenu","chevron-right"),menuBarMore:b("menubar-more","more"),scrollbarButtonLeft:b("scrollbar-button-left","triangle-left"),scrollbarButtonRight:b("scrollbar-button-right","triangle-right"),scrollbarButtonUp:b("scrollbar-button-up","triangle-up"),scrollbarButtonDown:b("scrollbar-button-down","triangle-down"),toolBarMore:b("toolbar-more","more"),quickInputBack:b("quick-input-back","arrow-left"),dropDownButton:b("drop-down-button",60084),symbolCustomColor:b("symbol-customcolor",60252),exportIcon:b("export",60332),workspaceUnspecified:b("workspace-unspecified",60355),newLine:b("newline",60394),thumbsDownFilled:b("thumbsdown-filled",60435),thumbsUpFilled:b("thumbsup-filled",60436),gitFetch:b("git-fetch",60445),lightbulbSparkleAutofix:b("lightbulb-sparkle-autofix",60447),debugBreakpointPending:b("debug-breakpoint-pending",60377)},We={...sb,...ib};class Z0{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Zn,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),dl(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();const r=new ob(this,t,n);return this._factories.set(t,r),dl(()=>{const s=this._factories.get(t);!s||s!==r||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class ob extends ml{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class ab{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Hh;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Hh||(Hh={}));var Yh;(function(e){const t=new Map;t.set(0,We.symbolMethod),t.set(1,We.symbolFunction),t.set(2,We.symbolConstructor),t.set(3,We.symbolField),t.set(4,We.symbolVariable),t.set(5,We.symbolClass),t.set(6,We.symbolStruct),t.set(7,We.symbolInterface),t.set(8,We.symbolModule),t.set(9,We.symbolProperty),t.set(10,We.symbolEvent),t.set(11,We.symbolOperator),t.set(12,We.symbolUnit),t.set(13,We.symbolValue),t.set(15,We.symbolEnum),t.set(14,We.symbolConstant),t.set(15,We.symbolEnum),t.set(16,We.symbolEnumMember),t.set(17,We.symbolKeyword),t.set(27,We.symbolSnippet),t.set(18,We.symbolText),t.set(19,We.symbolColor),t.set(20,We.symbolFile),t.set(21,We.symbolReference),t.set(22,We.symbolCustomColor),t.set(23,We.symbolFolder),t.set(24,We.symbolTypeParameter),t.set(25,We.account),t.set(26,We.issues);function n(i){let o=t.get(i);return o||(console.info("No codicon found for CompletionItemKind "+i),o=We.symbolProperty),o}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function s(i,o){let l=r.get(i);return typeof l>"u"&&!o&&(l=9),l}e.fromString=s})(Yh||(Yh={}));var zh;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(zh||(zh={}));var Gh;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Gh||(Gh={}));var Jh;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Jh||(Jh={}));var Qh;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Qh||(Qh={}));Pt("Array","array"),Pt("Boolean","boolean"),Pt("Class","class"),Pt("Constant","constant"),Pt("Constructor","constructor"),Pt("Enum","enumeration"),Pt("EnumMember","enumeration member"),Pt("Event","event"),Pt("Field","field"),Pt("File","file"),Pt("Function","function"),Pt("Interface","interface"),Pt("Key","key"),Pt("Method","method"),Pt("Module","module"),Pt("Namespace","namespace"),Pt("Null","null"),Pt("Number","number"),Pt("Object","object"),Pt("Operator","operator"),Pt("Package","package"),Pt("Property","property"),Pt("String","string"),Pt("Struct","struct"),Pt("TypeParameter","type parameter"),Pt("Variable","variable");var Kh;(function(e){const t=new Map;t.set(0,We.symbolFile),t.set(1,We.symbolModule),t.set(2,We.symbolNamespace),t.set(3,We.symbolPackage),t.set(4,We.symbolClass),t.set(5,We.symbolMethod),t.set(6,We.symbolProperty),t.set(7,We.symbolField),t.set(8,We.symbolConstructor),t.set(9,We.symbolEnum),t.set(10,We.symbolInterface),t.set(11,We.symbolFunction),t.set(12,We.symbolVariable),t.set(13,We.symbolConstant),t.set(14,We.symbolString),t.set(15,We.symbolNumber),t.set(16,We.symbolBoolean),t.set(17,We.symbolArray),t.set(18,We.symbolObject),t.set(19,We.symbolKey),t.set(20,We.symbolNull),t.set(21,We.symbolEnumMember),t.set(22,We.symbolStruct),t.set(23,We.symbolEvent),t.set(24,We.symbolOperator),t.set(25,We.symbolTypeParameter);function n(r){let s=t.get(r);return s||(console.info("No codicon found for SymbolKind "+r),s=We.symbolProperty),s}e.toIcon=n})(Kh||(Kh={}));let MD=class ms{static{this.Comment=new ms("comment")}static{this.Imports=new ms("imports")}static{this.Region=new ms("region")}static fromValue(t){switch(t){case"comment":return ms.Comment;case"imports":return ms.Imports;case"region":return ms.Region}return new ms(t)}constructor(t){this.value=t}};var Xh;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Xh||(Xh={}));var Zh;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Zh||(Zh={}));var ed;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(ed||(ed={}));var td;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(td||(td={}));new Z0;new Z0;var nd;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(nd||(nd={}));var rd;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(rd||(rd={}));var sd;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(sd||(sd={}));var id;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(id||(id={}));var od;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(od||(od={}));var ad;(function(e){e[e.Deprecated=1]="Deprecated"})(ad||(ad={}));var ld;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(ld||(ld={}));var ud;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(ud||(ud={}));var cd;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(cd||(cd={}));var fd;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(fd||(fd={}));var hd;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(hd||(hd={}));var dd;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(dd||(dd={}));var md;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(md||(md={}));var gd;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(gd||(gd={}));var pd;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(pd||(pd={}));var bd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(bd||(bd={}));var yd;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(yd||(yd={}));var vd;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(vd||(vd={}));var Dd;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Dd||(Dd={}));var wd;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(wd||(wd={}));var Sd;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Sd||(Sd={}));var Ed;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Ed||(Ed={}));var sf;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(sf||(sf={}));var of;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(of||(of={}));var af;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(af||(af={}));var Ad;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Ad||(Ad={}));var Nd;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(Nd||(Nd={}));var xd;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(xd||(xd={}));var Ld;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ld||(Ld={}));var Cd;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Cd||(Cd={}));var kd;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(kd||(kd={}));var _d;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(_d||(_d={}));var Fd;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(Fd||(Fd={}));var Td;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(Td||(Td={}));var Md;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(Md||(Md={}));var Od;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Od||(Od={}));var Rd;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Rd||(Rd={}));var Pd;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Pd||(Pd={}));var lf;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(lf||(lf={}));var Id;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(Id||(Id={}));var Bd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Bd||(Bd={}));var $d;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})($d||($d={}));var Vd;(function(e){e[e.Deprecated=1]="Deprecated"})(Vd||(Vd={}));var jd;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(jd||(jd={}));var Ud;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Ud||(Ud={}));var qd;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(qd||(qd={}));var Wd;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Wd||(Wd={}));class lb{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(t,n){return nb(t,n)}}function ub(){return{editor:void 0,languages:void 0,CancellationTokenSource:Xp,Emitter:Zn,KeyCode:sf,KeyMod:lb,Position:qt,Range:bt,Selection:In,SelectionDirection:lf,MarkerSeverity:of,MarkerTag:af,Uri:Lr,Token:ab}}class El{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(t){return t.getChannel(El.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(El.CHANNEL_NAME,n)}}var Hd;class cb{constructor(){this[Hd]="LinkedMap",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}has(t){return this._map.has(t)}get(t,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let s=this._map.get(t);if(s)s.value=n,r!==0&&this.touch(s,r);else{switch(s={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(t,s),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let s=this._head;for(;s;){if(n?t.bind(n)(s.value,s.key,this):t(s.value,s.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const t=this,n=this._state;let r=this._head;const s={[Symbol.iterator](){return s},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const i={value:r.key,done:!1};return r=r.next,i}else return{value:void 0,done:!0}}};return s}values(){const t=this,n=this._state;let r=this._head;const s={[Symbol.iterator](){return s},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const i={value:r.value,done:!1};return r=r.next,i}else return{value:void 0,done:!0}}};return s}entries(){const t=this,n=this._state;let r=this._head;const s={[Symbol.iterator](){return s},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const i={value:[r.key,r.value],done:!1};return r=r.next,i}else return{value:void 0,done:!0}}};return s}[(Hd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,s=t.previous;t===this._tail?(s.next=void 0,this._tail=s):(r.previous=s,s.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,s=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=s,s.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class fb extends cb{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class hb extends fb{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class db{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new hb(10);function mb(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Yd(e){const t=[];for(const n of mb(e))typeof e[n]=="function"&&t.push(n);return t}function gb(e,t){const n=s=>function(){const i=Array.prototype.slice.call(arguments,0);return t(s,i)},r={};for(const s of e)r[s]=n(s);return r}var zd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(zd||(zd={}));var Gd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Gd||(Gd={}));var Jd;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Jd||(Jd={}));function pb(e,t,n,r,s){if(r===0)return!0;const i=t.charCodeAt(r-1);if(e.get(i)!==0||i===13||i===10)return!0;if(s>0){const o=t.charCodeAt(r);if(e.get(o)!==0)return!0}return!1}function bb(e,t,n,r,s){if(r+s===n)return!0;const i=t.charCodeAt(r+s);if(e.get(i)!==0||i===13||i===10)return!0;if(s>0){const o=t.charCodeAt(r+s-1);if(e.get(o)!==0)return!0}return!1}function yb(e,t,n,r,s){return pb(e,t,n,r,s)&&bb(e,t,n,r,s)}class vb{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const s=r.index,i=r[0].length;if(s===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){fp(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=i,!this._wordSeparators||yb(this._wordSeparators,t,n,s,i))return r}while(r);return null}}function Db(e,t="Unreachable"){throw new Error(t)}function Al(e){if(!e()){debugger;e(),Co(new jn("Assertion Failed"))}}function em(e,t){let n=0;for(;n<e.length-1;){const r=e[n],s=e[n+1];if(!t(r,s))return!1;n++}return!0}const wb="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Sb(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of wb)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const tm=Sb();function nm(e){let t=tm;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const rm=new $g;rm.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ch(e,t,n,r,s){if(t=nm(t),s||(s=hl.first(rm)),n.length>s.maxLen){let c=e-s.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,e+s.maxLen/2),ch(e,t,n,r,s)}const i=Date.now(),o=e-1-r;let l=-1,u=null;for(let c=1;!(Date.now()-i>=s.timeBudget);c++){const g=o-s.windowSize*c;t.lastIndex=Math.max(0,g);const d=Eb(t,n,o,l);if(!d&&u||(u=d,g<=0))break;l=g}if(u){const c={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,c}return null}function Eb(e,t,n,r){let s;for(;s=e.exec(t);){const i=s.index||0;if(i<=n&&e.lastIndex>=n)return s;if(r>0&&i>r)return null}return null}class Ab{static computeUnicodeHighlights(t,n,r){const s=r?r.startLineNumber:1,i=r?r.endLineNumber:t.getLineCount(),o=new Qd(n),l=o.getCandidateCodePoints();let u;l==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${Nb(Array.from(l))}`,"g");const c=new vb(null,u),g=[];let d=!1,y,w=0,k=0,A=0;e:for(let E=s,P=i;E<=P;E++){const j=t.getLineContent(E),H=j.length;c.reset(0);do if(y=c.next(j),y){let z=y.index,M=y.index+y[0].length;if(z>0){const W=j.charCodeAt(z-1);bl(W)&&z--}if(M+1<H){const W=j.charCodeAt(M-1);bl(W)&&M++}const T=j.substring(z,M);let Y=ch(z+1,tm,j,0);Y&&Y.endColumn<=z+1&&(Y=null);const K=o.shouldHighlightNonBasicASCII(T,Y?Y.word:null);if(K!==0){if(K===3?w++:K===2?k++:K===1?A++:Db(),g.length>=1e3){d=!0;break e}g.push(new bt(E,z+1,E,M+1))}}while(y)}return{ranges:g,hasMore:d,ambiguousCharacterCount:w,invisibleCharacterCount:k,nonBasicAsciiCharacterCount:A}}static computeUnicodeHighlightReason(t,n){const r=new Qd(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=t.codePointAt(0),o=r.ambiguousCharacters.getPrimaryConfusable(i),l=ys.getLocales().filter(u=>!ys.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Nb(e,t){return`[${ap(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class Qd{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=ys.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of js.codePoints)Kd(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,i=!1;if(n)for(const o of n){const l=o.codePointAt(0),u=dp(o);s=s||u,!u&&!this.ambiguousCharacters.isAmbiguous(l)&&!js.isInvisibleCharacter(l)&&(i=!0)}return!s&&i?0:this.options.invisibleCharacters&&!Kd(t)&&js.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Kd(e){return e===" "||e===`
8
- `||e===" "}class Za{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class xb{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class ht{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let s=r;for(;s<n.length&&n[s].start<=t.endExclusive;)s++;if(r===s)n.splice(r,0,t);else{const i=Math.min(t.start,n[r].start),o=Math.max(t.endExclusive,n[s-1].endExclusive);n.splice(r,s-r,new ht(i,o))}}static tryCreate(t,n){if(!(t>n))return new ht(t,n)}static ofLength(t){return new ht(0,t)}static ofStartAndLength(t,n){return new ht(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new jn(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new ht(this.start+t,this.endExclusive+t)}deltaStart(t){return new ht(this.start+t,this.endExclusive)}deltaEnd(t){return new ht(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new ht(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new ht(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new jn(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new jn(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function Bi(e,t){const n=Po(e,t);return n===-1?void 0:e[n]}function Po(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const o=Math.floor((s+i)/2);t(e[o])?s=o+1:i=o}return s-1}function Lb(e,t){const n=uf(e,t);return n===e.length?void 0:e[n]}function uf(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const o=Math.floor((s+i)/2);t(e[o])?i=o:s=o+1}return s}class $l{static{this.assertInvariants=!1}constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if($l.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=Po(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}class tt{static fromRangeInclusive(t){return new tt(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Cr(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Cr(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new jn("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let s=1;s<t.length;s++)n=Math.min(n,t[s].startLineNumber),r=Math.max(r,t[s].endLineNumberExclusive);return new tt(n,r)}static ofLength(t,n){return new tt(t,t+n)}static deserialize(t){return new tt(t[0],t[1])}constructor(t,n){if(t>n)throw new jn(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new tt(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new tt(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new tt(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new tt(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new bt(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new bt(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new ht(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Cr{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=uf(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),r=Po(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const s=this._normalizedRanges[n];this._normalizedRanges[n]=s.join(t)}else{const s=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,s)}}contains(t){const n=Bi(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=Bi(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,s=0,i=null;for(;r<this._normalizedRanges.length||s<t._normalizedRanges.length;){let o=null;if(r<this._normalizedRanges.length&&s<t._normalizedRanges.length){const l=this._normalizedRanges[r],u=t._normalizedRanges[s];l.startLineNumber<u.startLineNumber?(o=l,r++):(o=u,s++)}else r<this._normalizedRanges.length?(o=this._normalizedRanges[r],r++):(o=t._normalizedRanges[s],s++);i===null?i=o:i.endLineNumberExclusive>=o.startLineNumber?i=new tt(i.startLineNumber,Math.max(i.endLineNumberExclusive,o.endLineNumberExclusive)):(n.push(i),i=o)}return i!==null&&n.push(i),new Cr(n)}subtractFrom(t){const n=uf(this._normalizedRanges,o=>o.endLineNumberExclusive>=t.startLineNumber),r=Po(this._normalizedRanges,o=>o.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new Cr([t]);const s=[];let i=t.startLineNumber;for(let o=n;o<r;o++){const l=this._normalizedRanges[o];l.startLineNumber>i&&s.push(new tt(i,l.startLineNumber)),i=l.endLineNumberExclusive}return i<t.endLineNumberExclusive&&s.push(new tt(i,t.endLineNumberExclusive)),new Cr(s)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,s=0;for(;r<this._normalizedRanges.length&&s<t._normalizedRanges.length;){const i=this._normalizedRanges[r],o=t._normalizedRanges[s],l=i.intersect(o);l&&!l.isEmpty&&n.push(l),i.endLineNumberExclusive<o.endLineNumberExclusive?r++:s++}return new Cr(n)}getWithDelta(t){return new Cr(this._normalizedRanges.map(n=>n.delta(t)))}}class Ai{static{this.zero=new Ai(0,0)}static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new Ai(0,n.column-t.column):new Ai(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return Ai.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(const s of t)s===`
9
- `?(n++,r=0):r++;return new Ai(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new bt(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new bt(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new qt(t.lineNumber,t.column+this.columnCount):new qt(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}class Cb{constructor(t,n){this.range=t,this.text=n}toSingleEditOperation(){return{range:this.range,text:this.text}}}class tr{static inverse(t,n,r){const s=[];let i=1,o=1;for(const u of t){const c=new tr(new tt(i,u.original.startLineNumber),new tt(o,u.modified.startLineNumber));c.modified.isEmpty||s.push(c),i=u.original.endLineNumberExclusive,o=u.modified.endLineNumberExclusive}const l=new tr(new tt(i,n+1),new tt(o,r+1));return l.modified.isEmpty||s.push(l),s}static clip(t,n,r){const s=[];for(const i of t){const o=i.original.intersect(n),l=i.modified.intersect(r);o&&!o.isEmpty&&l&&!l.isEmpty&&s.push(new tr(o,l))}return s}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new tr(this.modified,this.original)}join(t){return new tr(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new mr(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new jn("not a valid diff");return new mr(new bt(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new bt(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new mr(new bt(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new bt(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Xd(this.original.endLineNumberExclusive,t)&&Xd(this.modified.endLineNumberExclusive,n))return new mr(new bt(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new bt(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new mr(bt.fromPositions(new qt(this.original.startLineNumber,1),vi(new qt(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),bt.fromPositions(new qt(this.modified.startLineNumber,1),vi(new qt(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new mr(bt.fromPositions(vi(new qt(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),vi(new qt(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),bt.fromPositions(vi(new qt(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),vi(new qt(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new jn}}function vi(e,t){if(e.lineNumber<1)return new qt(1,1);if(e.lineNumber>t.length)return new qt(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new qt(e.lineNumber,n.length+1):e}function Xd(e,t){return e>=1&&e<=t.length}class Gr extends tr{static fromRangeMappings(t){const n=tt.join(t.map(s=>tt.fromRangeInclusive(s.originalRange))),r=tt.join(t.map(s=>tt.fromRangeInclusive(s.modifiedRange)));return new Gr(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new Gr(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new Gr(this.original,this.modified,[this.toRangeMapping()])}}class mr{static assertSorted(t){for(let n=1;n<t.length;n++){const r=t[n-1],s=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(s.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(s.modifiedRange.getStartPosition())))throw new jn("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new mr(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new Cb(this.originalRange,n)}}const kb=3;class _b{computeDiff(t,n,r){const i=new Mb(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const u of i.changes){let c;u.originalEndLineNumber===0?c=new tt(u.originalStartLineNumber+1,u.originalStartLineNumber+1):c=new tt(u.originalStartLineNumber,u.originalEndLineNumber+1);let g;u.modifiedEndLineNumber===0?g=new tt(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):g=new tt(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let d=new Gr(c,g,u.charChanges?.map(y=>new mr(new bt(y.originalStartLineNumber,y.originalStartColumn,y.originalEndLineNumber,y.originalEndColumn),new bt(y.modifiedStartLineNumber,y.modifiedStartColumn,y.modifiedEndLineNumber,y.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===d.modified.startLineNumber||l.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new Gr(l.original.join(d.original),l.modified.join(d.modified),l.innerChanges&&d.innerChanges?l.innerChanges.concat(d.innerChanges):void 0),o.pop()),o.push(d),l=d}return Al(()=>em(o,(u,c)=>c.original.startLineNumber-u.original.endLineNumberExclusive===c.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<c.original.startLineNumber&&u.modified.endLineNumberExclusive<c.modified.startLineNumber)),new Za(o,[],i.quitEarly)}}function sm(e,t,n,r){return new ps(e,t,n).ComputeDiff(r)}let Zd=class{constructor(t){const n=[],r=[];for(let s=0,i=t.length;s<i;s++)n[s]=cf(t[s],1),r[s]=ff(t[s],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const s=[],i=[],o=[];let l=0;for(let u=n;u<=r;u++){const c=this.lines[u],g=t?this._startColumns[u]:1,d=t?this._endColumns[u]:c.length+1;for(let y=g;y<d;y++)s[l]=c.charCodeAt(y-1),i[l]=u+1,o[l]=y,l++;!t&&u<r&&(s[l]=10,i[l]=u+1,o[l]=c.length+1,l++)}return new Fb(s,i,o)}};class Fb{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class Mi{constructor(t,n,r,s,i,o,l,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=s,this.modifiedStartLineNumber=i,this.modifiedStartColumn=o,this.modifiedEndLineNumber=l,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){const s=n.getStartLineNumber(t.originalStart),i=n.getStartColumn(t.originalStart),o=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),c=r.getStartColumn(t.modifiedStart),g=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new Mi(s,i,o,l,u,c,g,d)}}function Tb(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,s=e.length;r<s;r++){const i=e[r],o=i.originalStart-(n.originalStart+n.originalLength),l=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(o,l)<kb?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}class ko{constructor(t,n,r,s,i){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=s,this.charChanges=i}static createFromDiffResult(t,n,r,s,i,o,l){let u,c,g,d,y;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,c=0):(u=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(g=s.getStartLineNumber(n.modifiedStart)-1,d=0):(g=s.getStartLineNumber(n.modifiedStart),d=s.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),o&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const w=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),k=s.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(w.getElements().length>0&&k.getElements().length>0){let A=sm(w,k,i,!0).changes;l&&(A=Tb(A)),y=[];for(let E=0,P=A.length;E<P;E++)y.push(Mi.createFromDiffChange(A[E],w,k))}}return new ko(u,c,g,d,y)}}class Mb{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new Zd(t),this.modified=new Zd(n),this.continueLineDiff=e1(r.maxComputationTime),this.continueCharDiff=e1(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=sm(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let u=0,c=n.length;u<c;u++)l.push(ko.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}const s=[];let i=0,o=0;for(let l=-1,u=n.length;l<u;l++){const c=l+1<u?n[l+1]:null,g=c?c.originalStart:this.originalLines.length,d=c?c.modifiedStart:this.modifiedLines.length;for(;i<g&&o<d;){const y=this.originalLines[i],w=this.modifiedLines[o];if(y!==w){{let k=cf(y,1),A=cf(w,1);for(;k>1&&A>1;){const E=y.charCodeAt(k-2),P=w.charCodeAt(A-2);if(E!==P)break;k--,A--}(k>1||A>1)&&this._pushTrimWhitespaceCharChange(s,i+1,1,k,o+1,1,A)}{let k=ff(y,1),A=ff(w,1);const E=y.length+1,P=w.length+1;for(;k<E&&A<P;){const j=y.charCodeAt(k-1),H=y.charCodeAt(A-1);if(j!==H)break;k++,A++}(k<E||A<P)&&this._pushTrimWhitespaceCharChange(s,i+1,k,E,o+1,A,P)}}i++,o++}c&&(s.push(ko.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=c.originalLength,o+=c.modifiedLength)}return{quitEarly:r,changes:s}}_pushTrimWhitespaceCharChange(t,n,r,s,i,o,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,s,i,o,l))return;let u;this.shouldComputeCharChanges&&(u=[new Mi(n,r,n,s,i,o,i,l)]),t.push(new ko(n,n,i,i,u))}_mergeTrimWhitespaceCharChange(t,n,r,s,i,o,l){const u=t.length;if(u===0)return!1;const c=t[u-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new Mi(n,r,n,s,i,o,i,l)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===i?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new Mi(n,r,n,s,i,o,i,l)),!0):!1}}function cf(e,t){const n=up(e);return n===-1?t:n+1}function ff(e,t){const n=cp(e);return n===-1?t:n+2}function e1(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Ob(e,t,n=(r,s)=>r===s){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(!n(e[r],t[r]))return!1;return!0}function*Rb(e,t){let n,r;for(const s of e)r!==void 0&&t(r,s)?n.push(s):(n&&(yield n),n=[s]),r=s;n&&(yield n)}function Pb(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Ib(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Bb(e,t){for(const n of t)e.push(n)}var hf;(function(e){function t(i){return i<0}e.isLessThan=t;function n(i){return i<=0}e.isLessThanOrEqual=n;function r(i){return i>0}e.isGreaterThan=r;function s(i){return i===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(hf||(hf={}));function el(e,t){return(n,r)=>t(e(n),e(r))}const tl=(e,t)=>e-t;function $b(e){return(t,n)=>-e(t,n)}class nl{static{this.empty=new nl(t=>{})}constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new nl(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new nl(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(s=>((r||hf.isGreaterThan(t(s,n)))&&(r=!1,n=s),!0)),n}}class Jr{static trivial(t,n){return new Jr([new Vt(ht.ofLength(t.length),ht.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new Jr([new Vt(ht.ofLength(t.length),ht.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class Vt{static invert(t,n){const r=[];return Pb(t,(s,i)=>{r.push(Vt.fromOffsetPairs(s?s.getEndExclusives():pr.zero,i?i.getStarts():new pr(n,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new Vt(new ht(t.offset1,n.offset1),new ht(t.offset2,n.offset2))}static assertSorted(t){let n;for(const r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new jn("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new Vt(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new Vt(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new Vt(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new Vt(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new Vt(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new Vt(n,r)}getStarts(){return new pr(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new pr(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class pr{static{this.zero=new pr(0,0)}static{this.max=new pr(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new pr(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}}class qo{static{this.instance=new qo}isValid(){return!0}}class Vb{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new jn("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class _c{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function df(e){return e===32||e===9}class Io{static{this.chrKeys=new Map}static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let s=0;for(let i=t.startLineNumber-1;i<t.endLineNumberExclusive-1;i++){const o=n[i];for(let u=0;u<o.length;u++){s++;const c=o[u],g=Io.getKey(c);this.histogram[g]=(this.histogram[g]||0)+1}s++;const l=Io.getKey(`
10
- `);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=s}computeSimilarity(t){let n=0;const r=Math.max(this.histogram.length,t.histogram.length);for(let s=0;s<r;s++)n+=Math.abs((this.histogram[s]??0)-(t.histogram[s]??0));return 1-n/(this.totalCount+t.totalCount)}}class jb{compute(t,n,r=qo.instance,s){if(t.length===0||n.length===0)return Jr.trivial(t,n);const i=new _c(t.length,n.length),o=new _c(t.length,n.length),l=new _c(t.length,n.length);for(let k=0;k<t.length;k++)for(let A=0;A<n.length;A++){if(!r.isValid())return Jr.trivialTimedOut(t,n);const E=k===0?0:i.get(k-1,A),P=A===0?0:i.get(k,A-1);let j;t.getElement(k)===n.getElement(A)?(k===0||A===0?j=0:j=i.get(k-1,A-1),k>0&&A>0&&o.get(k-1,A-1)===3&&(j+=l.get(k-1,A-1)),j+=s?s(k,A):1):j=-1;const H=Math.max(E,P,j);if(H===j){const z=k>0&&A>0?l.get(k-1,A-1):0;l.set(k,A,z+1),o.set(k,A,3)}else H===E?(l.set(k,A,0),o.set(k,A,1)):H===P&&(l.set(k,A,0),o.set(k,A,2));i.set(k,A,H)}const u=[];let c=t.length,g=n.length;function d(k,A){(k+1!==c||A+1!==g)&&u.push(new Vt(new ht(k+1,c),new ht(A+1,g))),c=k,g=A}let y=t.length-1,w=n.length-1;for(;y>=0&&w>=0;)o.get(y,w)===3?(d(y,w),y--,w--):o.get(y,w)===1?y--:w--;return d(-1,-1),u.reverse(),new Jr(u,!1)}}class im{compute(t,n,r=qo.instance){if(t.length===0||n.length===0)return Jr.trivial(t,n);const s=t,i=n;function o(A,E){for(;A<s.length&&E<i.length&&s.getElement(A)===i.getElement(E);)A++,E++;return A}let l=0;const u=new Ub;u.set(0,o(0,0));const c=new qb;c.set(0,u.get(0)===0?null:new t1(null,0,0,u.get(0)));let g=0;e:for(;;){if(l++,!r.isValid())return Jr.trivialTimedOut(s,i);const A=-Math.min(l,i.length+l%2),E=Math.min(l,s.length+l%2);for(g=A;g<=E;g+=2){const P=g===E?-1:u.get(g+1),j=g===A?-1:u.get(g-1)+1,H=Math.min(Math.max(P,j),s.length),z=H-g;if(H>s.length||z>i.length)continue;const M=o(H,z);u.set(g,M);const T=H===P?c.get(g+1):c.get(g-1);if(c.set(g,M!==H?new t1(T,H,z,M-H):T),u.get(g)===s.length&&u.get(g)-g===i.length)break e}}let d=c.get(g);const y=[];let w=s.length,k=i.length;for(;;){const A=d?d.x+d.length:0,E=d?d.y+d.length:0;if((A!==w||E!==k)&&y.push(new Vt(new ht(A,w),new ht(E,k))),!d)break;w=d.x,k=d.y,d=d.prev}return y.reverse(),new Jr(y,!1)}}class t1{constructor(t,n,r,s){this.prev=t,this.x=n,this.y=r,this.length=s}}class Ub{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class qb{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class Nl{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let i=t[s-1],o=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(o=this.range.startColumn-1,i=i.substring(o)),this.lineStartOffsets.push(o);let l=0;if(!r){const c=i.trimStart();l=i.length-c.length,i=c.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const u=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-o-l,i.length):i.length;for(let c=0;c<u;c++)this.elements.push(i.charCodeAt(c));s<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new ht(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=r1(t>0?this.elements[t-1]:-1),r=r1(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let s=0;return n!==r&&(s+=10,n===0&&r===1&&(s+=1)),s+=n1(n),s+=n1(r),s}translateOffset(t,n="right"){const r=Po(this.firstElementOffsetByLineIdx,i=>i<=t),s=t-this.firstElementOffsetByLineIdx[r];return new qt(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+s+(s===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){const n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?bt.fromPositions(r,r):bt.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!Fc(this.elements[t]))return;let n=t;for(;n>0&&Fc(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&Fc(this.elements[r]);)r++;return new ht(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){const n=Bi(this.firstElementOffsetByLineIdx,s=>s<=t.start)??0,r=Lb(this.firstElementOffsetByLineIdx,s=>t.endExclusive<=s)??this.elements.length;return new ht(n,r)}}function Fc(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Wb={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function n1(e){return Wb[e]}function r1(e){return e===10?8:e===13?7:df(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Hb(e,t,n,r,s,i){let{moves:o,excludedChanges:l}=zb(e,t,n,i);if(!i.isValid())return[];const u=e.filter(g=>!l.has(g)),c=Gb(u,r,s,t,n,i);return Bb(o,c),o=Jb(o),o=o.filter(g=>{const d=g.original.toOffsetRange().slice(t).map(w=>w.trim());return d.join(`
11
- `).length>=15&&Yb(d,w=>w.length>=2)>=2}),o=Qb(e,o),o}function Yb(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function zb(e,t,n,r){const s=[],i=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new Io(u.original,t,u)),o=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new Io(u.modified,n,u))),l=new Set;for(const u of i){let c=-1,g;for(const d of o){const y=u.computeSimilarity(d);y>c&&(c=y,g=d)}if(c>.9&&g&&(o.delete(g),s.push(new tr(u.range,g.range)),l.add(u.source),l.add(g.source)),!r.isValid())return{moves:s,excludedChanges:l}}return{moves:s,excludedChanges:l}}function Gb(e,t,n,r,s,i){const o=[],l=new db;for(const y of e)for(let w=y.original.startLineNumber;w<y.original.endLineNumberExclusive-2;w++){const k=`${t[w-1]}:${t[w+1-1]}:${t[w+2-1]}`;l.add(k,{range:new tt(w,w+3)})}const u=[];e.sort(el(y=>y.modified.startLineNumber,tl));for(const y of e){let w=[];for(let k=y.modified.startLineNumber;k<y.modified.endLineNumberExclusive-2;k++){const A=`${n[k-1]}:${n[k+1-1]}:${n[k+2-1]}`,E=new tt(k,k+3),P=[];l.forEach(A,({range:j})=>{for(const z of w)if(z.originalLineRange.endLineNumberExclusive+1===j.endLineNumberExclusive&&z.modifiedLineRange.endLineNumberExclusive+1===E.endLineNumberExclusive){z.originalLineRange=new tt(z.originalLineRange.startLineNumber,j.endLineNumberExclusive),z.modifiedLineRange=new tt(z.modifiedLineRange.startLineNumber,E.endLineNumberExclusive),P.push(z);return}const H={modifiedLineRange:E,originalLineRange:j};u.push(H),P.push(H)}),w=P}if(!i.isValid())return[]}u.sort($b(el(y=>y.modifiedLineRange.length,tl)));const c=new Cr,g=new Cr;for(const y of u){const w=y.modifiedLineRange.startLineNumber-y.originalLineRange.startLineNumber,k=c.subtractFrom(y.modifiedLineRange),A=g.subtractFrom(y.originalLineRange).getWithDelta(w),E=k.getIntersection(A);for(const P of E.ranges){if(P.length<3)continue;const j=P,H=P.delta(-w);o.push(new tr(H,j)),c.addRange(j),g.addRange(H)}}o.sort(el(y=>y.original.startLineNumber,tl));const d=new $l(e);for(let y=0;y<o.length;y++){const w=o[y],k=d.findLastMonotonous(T=>T.original.startLineNumber<=w.original.startLineNumber),A=Bi(e,T=>T.modified.startLineNumber<=w.modified.startLineNumber),E=Math.max(w.original.startLineNumber-k.original.startLineNumber,w.modified.startLineNumber-A.modified.startLineNumber),P=d.findLastMonotonous(T=>T.original.startLineNumber<w.original.endLineNumberExclusive),j=Bi(e,T=>T.modified.startLineNumber<w.modified.endLineNumberExclusive),H=Math.max(P.original.endLineNumberExclusive-w.original.endLineNumberExclusive,j.modified.endLineNumberExclusive-w.modified.endLineNumberExclusive);let z;for(z=0;z<E;z++){const T=w.original.startLineNumber-z-1,Y=w.modified.startLineNumber-z-1;if(T>r.length||Y>s.length||c.contains(Y)||g.contains(T)||!s1(r[T-1],s[Y-1],i))break}z>0&&(g.addRange(new tt(w.original.startLineNumber-z,w.original.startLineNumber)),c.addRange(new tt(w.modified.startLineNumber-z,w.modified.startLineNumber)));let M;for(M=0;M<H;M++){const T=w.original.endLineNumberExclusive+M,Y=w.modified.endLineNumberExclusive+M;if(T>r.length||Y>s.length||c.contains(Y)||g.contains(T)||!s1(r[T-1],s[Y-1],i))break}M>0&&(g.addRange(new tt(w.original.endLineNumberExclusive,w.original.endLineNumberExclusive+M)),c.addRange(new tt(w.modified.endLineNumberExclusive,w.modified.endLineNumberExclusive+M))),(z>0||M>0)&&(o[y]=new tr(new tt(w.original.startLineNumber-z,w.original.endLineNumberExclusive+M),new tt(w.modified.startLineNumber-z,w.modified.endLineNumberExclusive+M)))}return o}function s1(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=new im().compute(new Nl([e],new bt(1,1,1,e.length),!1),new Nl([t],new bt(1,1,1,t.length),!1),n);let i=0;const o=Vt.invert(s.diffs,e.length);for(const g of o)g.seq1Range.forEach(d=>{df(e.charCodeAt(d))||i++});function l(g){let d=0;for(let y=0;y<e.length;y++)df(g.charCodeAt(y))||d++;return d}const u=l(e.length>t.length?e:t);return i/u>.6&&u>10}function Jb(e){if(e.length===0)return e;e.sort(el(n=>n.original.startLineNumber,tl));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],s=e[n],i=s.original.startLineNumber-r.original.endLineNumberExclusive,o=s.modified.startLineNumber-r.modified.endLineNumberExclusive;if(i>=0&&o>=0&&i+o<=2){t[t.length-1]=r.join(s);continue}t.push(s)}return t}function Qb(e,t){const n=new $l(e);return t=t.filter(r=>{const s=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new tr(new tt(1,1),new tt(1,1)),i=Bi(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return s!==i}),t}function i1(e,t,n){let r=n;return r=o1(e,t,r),r=o1(e,t,r),r=Kb(e,t,r),r}function o1(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const o=r[r.length-1];let l=n[i];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const u=l.seq1Range.start-o.seq1Range.endExclusive;let c;for(c=1;c<=u&&!(e.getElement(l.seq1Range.start-c)!==e.getElement(l.seq1Range.endExclusive-c)||t.getElement(l.seq2Range.start-c)!==t.getElement(l.seq2Range.endExclusive-c));c++);if(c--,c===u){r[r.length-1]=new Vt(new ht(o.seq1Range.start,l.seq1Range.endExclusive-u),new ht(o.seq2Range.start,l.seq2Range.endExclusive-u));continue}l=l.delta(-c)}r.push(l)}const s=[];for(let i=0;i<r.length-1;i++){const o=r[i+1];let l=r[i];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const u=o.seq1Range.start-l.seq1Range.endExclusive;let c;for(c=0;c<u&&!(!e.isStronglyEqual(l.seq1Range.start+c,l.seq1Range.endExclusive+c)||!t.isStronglyEqual(l.seq2Range.start+c,l.seq2Range.endExclusive+c));c++);if(c===u){r[i+1]=new Vt(new ht(l.seq1Range.start+u,o.seq1Range.endExclusive),new ht(l.seq2Range.start+u,o.seq2Range.endExclusive));continue}c>0&&(l=l.delta(c))}s.push(l)}return r.length>0&&s.push(r[r.length-1]),s}function Kb(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const s=r>0?n[r-1]:void 0,i=n[r],o=r+1<n.length?n[r+1]:void 0,l=new ht(s?s.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),u=new ht(s?s.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);i.seq1Range.isEmpty?n[r]=a1(i,e,t,l,u):i.seq2Range.isEmpty&&(n[r]=a1(i.swap(),t,e,u,l).swap())}return n}function a1(e,t,n,r,s){let o=1;for(;e.seq1Range.start-o>=r.start&&e.seq2Range.start-o>=s.start&&n.isStronglyEqual(e.seq2Range.start-o,e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let l=0;for(;e.seq1Range.start+l<r.endExclusive&&e.seq2Range.endExclusive+l<s.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(o===0&&l===0)return e;let u=0,c=-1;for(let g=-o;g<=l;g++){const d=e.seq2Range.start+g,y=e.seq2Range.endExclusive+g,w=e.seq1Range.start+g,k=t.getBoundaryScore(w)+n.getBoundaryScore(d)+n.getBoundaryScore(y);k>c&&(c=k,u=g)}return e.delta(u)}function Xb(e,t,n){const r=[];for(const s of n){const i=r[r.length-1];if(!i){r.push(s);continue}s.seq1Range.start-i.seq1Range.endExclusive<=2||s.seq2Range.start-i.seq2Range.endExclusive<=2?r[r.length-1]=new Vt(i.seq1Range.join(s.seq1Range),i.seq2Range.join(s.seq2Range)):r.push(s)}return r}function Zb(e,t,n){const r=Vt.invert(n,e.length),s=[];let i=new pr(0,0);function o(u,c){if(u.offset1<i.offset1||u.offset2<i.offset2)return;const g=e.findWordContaining(u.offset1),d=t.findWordContaining(u.offset2);if(!g||!d)return;let y=new Vt(g,d);const w=y.intersect(c);let k=w.seq1Range.length,A=w.seq2Range.length;for(;r.length>0;){const E=r[0];if(!(E.seq1Range.intersects(y.seq1Range)||E.seq2Range.intersects(y.seq2Range)))break;const j=e.findWordContaining(E.seq1Range.start),H=t.findWordContaining(E.seq2Range.start),z=new Vt(j,H),M=z.intersect(E);if(k+=M.seq1Range.length,A+=M.seq2Range.length,y=y.join(z),y.seq1Range.endExclusive>=E.seq1Range.endExclusive)r.shift();else break}k+A<(y.seq1Range.length+y.seq2Range.length)*2/3&&s.push(y),i=y.getEndExclusives()}for(;r.length>0;){const u=r.shift();u.seq1Range.isEmpty||(o(u.getStarts(),u),o(u.getEndExclusives().delta(-1),u))}return ey(n,s)}function ey(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],s=t[0];let i;r&&(!s||r.seq1Range.start<s.seq1Range.start)?i=e.shift():i=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}function ty(e,t,n){let r=n;if(r.length===0)return r;let s=0,i;do{i=!1;const l=[r[0]];for(let u=1;u<r.length;u++){let d=function(w,k){const A=new ht(g.seq1Range.endExclusive,c.seq1Range.start);return e.getText(A).replace(/\s/g,"").length<=4&&(w.seq1Range.length+w.seq2Range.length>5||k.seq1Range.length+k.seq2Range.length>5)};var o=d;const c=r[u],g=l[l.length-1];d(g,c)?(i=!0,l[l.length-1]=l[l.length-1].join(c)):l.push(c)}r=l}while(s++<10&&i);return r}function ny(e,t,n){let r=n;if(r.length===0)return r;let s=0,i;do{i=!1;const u=[r[0]];for(let c=1;c<r.length;c++){let y=function(k,A){const E=new ht(d.seq1Range.endExclusive,g.seq1Range.start);if(e.countLinesIn(E)>5||E.length>500)return!1;const j=e.getText(E).trim();if(j.length>20||j.split(/\r\n|\r|\n/).length>1)return!1;const H=e.countLinesIn(k.seq1Range),z=k.seq1Range.length,M=t.countLinesIn(k.seq2Range),T=k.seq2Range.length,Y=e.countLinesIn(A.seq1Range),K=A.seq1Range.length,W=t.countLinesIn(A.seq2Range),re=A.seq2Range.length,ee=2*40+50;function B(ae){return Math.min(ae,ee)}return Math.pow(Math.pow(B(H*40+z),1.5)+Math.pow(B(M*40+T),1.5),1.5)+Math.pow(Math.pow(B(Y*40+K),1.5)+Math.pow(B(W*40+re),1.5),1.5)>(ee**1.5)**1.5*1.3};var l=y;const g=r[c],d=u[u.length-1];y(d,g)?(i=!0,u[u.length-1]=u[u.length-1].join(g)):u.push(g)}r=u}while(s++<10&&i);const o=[];return Ib(r,(u,c,g)=>{let d=c;function y(j){return j.length>0&&j.trim().length<=3&&c.seq1Range.length+c.seq2Range.length>100}const w=e.extendToFullLines(c.seq1Range),k=e.getText(new ht(w.start,c.seq1Range.start));y(k)&&(d=d.deltaStart(-k.length));const A=e.getText(new ht(c.seq1Range.endExclusive,w.endExclusive));y(A)&&(d=d.deltaEnd(A.length));const E=Vt.fromOffsetPairs(u?u.getEndExclusives():pr.zero,g?g.getStarts():pr.max),P=d.intersect(E);o.length>0&&P.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(P):o.push(P)}),o}class l1{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:u1(this.lines[t-1]),r=t===this.lines.length?0:u1(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
12
- `)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function u1(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class ry{constructor(){this.dynamicProgrammingDiffing=new jb,this.myersDiffingAlgorithm=new im}computeDiff(t,n,r){if(t.length<=1&&Ob(t,n,(M,T)=>M===T))return new Za([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new Za([new Gr(new tt(1,t.length+1),new tt(1,n.length+1),[new mr(new bt(1,1,t.length,t[t.length-1].length+1),new bt(1,1,n.length,n[n.length-1].length+1))])],[],!1);const s=r.maxComputationTimeMs===0?qo.instance:new Vb(r.maxComputationTimeMs),i=!r.ignoreTrimWhitespace,o=new Map;function l(M){let T=o.get(M);return T===void 0&&(T=o.size,o.set(M,T)),T}const u=t.map(M=>l(M.trim())),c=n.map(M=>l(M.trim())),g=new l1(u,t),d=new l1(c,n),y=g.length+d.length<1700?this.dynamicProgrammingDiffing.compute(g,d,s,(M,T)=>t[M]===n[T]?n[T].length===0?.1:1+Math.log(1+n[T].length):.99):this.myersDiffingAlgorithm.compute(g,d,s);let w=y.diffs,k=y.hitTimeout;w=i1(g,d,w),w=ty(g,d,w);const A=[],E=M=>{if(i)for(let T=0;T<M;T++){const Y=P+T,K=j+T;if(t[Y]!==n[K]){const W=this.refineDiff(t,n,new Vt(new ht(Y,Y+1),new ht(K,K+1)),s,i);for(const re of W.mappings)A.push(re);W.hitTimeout&&(k=!0)}}};let P=0,j=0;for(const M of w){Al(()=>M.seq1Range.start-P===M.seq2Range.start-j);const T=M.seq1Range.start-P;E(T),P=M.seq1Range.endExclusive,j=M.seq2Range.endExclusive;const Y=this.refineDiff(t,n,M,s,i);Y.hitTimeout&&(k=!0);for(const K of Y.mappings)A.push(K)}E(t.length-P);const H=c1(A,t,n);let z=[];return r.computeMoves&&(z=this.computeMoves(H,t,n,u,c,s,i)),Al(()=>{function M(Y,K){if(Y.lineNumber<1||Y.lineNumber>K.length)return!1;const W=K[Y.lineNumber-1];return!(Y.column<1||Y.column>W.length+1)}function T(Y,K){return!(Y.startLineNumber<1||Y.startLineNumber>K.length+1||Y.endLineNumberExclusive<1||Y.endLineNumberExclusive>K.length+1)}for(const Y of H){if(!Y.innerChanges)return!1;for(const K of Y.innerChanges)if(!(M(K.modifiedRange.getStartPosition(),n)&&M(K.modifiedRange.getEndPosition(),n)&&M(K.originalRange.getStartPosition(),t)&&M(K.originalRange.getEndPosition(),t)))return!1;if(!T(Y.modified,n)||!T(Y.original,t))return!1}return!0}),new Za(H,z,k)}computeMoves(t,n,r,s,i,o,l){return Hb(t,n,r,s,i,o).map(g=>{const d=this.refineDiff(n,r,new Vt(g.original.toOffsetRange(),g.modified.toOffsetRange()),o,l),y=c1(d.mappings,n,r,!0);return new xb(g,y)})}refineDiff(t,n,r,s,i){const l=iy(r).toRangeMapping2(t,n),u=new Nl(t,l.originalRange,i),c=new Nl(n,l.modifiedRange,i),g=u.length+c.length<500?this.dynamicProgrammingDiffing.compute(u,c,s):this.myersDiffingAlgorithm.compute(u,c,s);let d=g.diffs;return d=i1(u,c,d),d=Zb(u,c,d),d=Xb(u,c,d),d=ny(u,c,d),{mappings:d.map(w=>new mr(u.translateRange(w.seq1Range),c.translateRange(w.seq2Range))),hitTimeout:g.hitTimeout}}}function c1(e,t,n,r=!1){const s=[];for(const i of Rb(e.map(o=>sy(o,t,n)),(o,l)=>o.original.overlapOrTouch(l.original)||o.modified.overlapOrTouch(l.modified))){const o=i[0],l=i[i.length-1];s.push(new Gr(o.original.join(l.original),o.modified.join(l.modified),i.map(u=>u.innerChanges[0])))}return Al(()=>!r&&s.length>0&&(s[0].modified.startLineNumber!==s[0].original.startLineNumber||n.length-s[s.length-1].modified.endLineNumberExclusive!==t.length-s[s.length-1].original.endLineNumberExclusive)?!1:em(s,(i,o)=>o.original.startLineNumber-i.original.endLineNumberExclusive===o.modified.startLineNumber-i.modified.endLineNumberExclusive&&i.original.endLineNumberExclusive<o.original.startLineNumber&&i.modified.endLineNumberExclusive<o.modified.startLineNumber)),s}function sy(e,t,n){let r=0,s=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(s=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(r=1);const i=new tt(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+s),o=new tt(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+s);return new Gr(i,o,[e])}function iy(e){return new tr(new tt(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new tt(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const f1={getLegacy:()=>new _b,getDefault:()=>new ry};function ws(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class en{constructor(t,n,r,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=ws(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class er{constructor(t,n,r,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ws(Math.max(Math.min(1,n),0),3),this.l=ws(Math.max(Math.min(1,r),0),3),this.a=ws(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,s=t.b/255,i=t.a,o=Math.max(n,r,s),l=Math.min(n,r,s);let u=0,c=0;const g=(l+o)/2,d=o-l;if(d>0){switch(c=Math.min(g<=.5?d/(2*g):d/(2-2*g),1),o){case n:u=(r-s)/d+(r<s?6:0);break;case r:u=(s-n)/d+2;break;case s:u=(n-r)/d+4;break}u*=60,u=Math.round(u)}return new er(u,c,g,i)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:s,a:i}=t;let o,l,u;if(r===0)o=l=u=s;else{const c=s<.5?s*(1+r):s+r-s*r,g=2*s-c;o=er._hue2rgb(g,c,n+1/3),l=er._hue2rgb(g,c,n),u=er._hue2rgb(g,c,n-1/3)}return new en(Math.round(o*255),Math.round(l*255),Math.round(u*255),i)}}class Li{constructor(t,n,r,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ws(Math.max(Math.min(1,n),0),3),this.v=ws(Math.max(Math.min(1,r),0),3),this.a=ws(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,s=t.b/255,i=Math.max(n,r,s),o=Math.min(n,r,s),l=i-o,u=i===0?0:l/i;let c;return l===0?c=0:i===n?c=((r-s)/l%6+6)%6:i===r?c=(s-n)/l+2:c=(n-r)/l+4,new Li(Math.round(c*60),u,i,t.a)}static toRGBA(t){const{h:n,s:r,v:s,a:i}=t,o=s*r,l=o*(1-Math.abs(n/60%2-1)),u=s-o;let[c,g,d]=[0,0,0];return n<60?(c=o,g=l):n<120?(c=l,g=o):n<180?(g=o,d=l):n<240?(g=l,d=o):n<300?(c=l,d=o):n<=360&&(c=o,d=l),c=Math.round((c+u)*255),g=Math.round((g+u)*255),d=Math.round((d+u)*255),new en(c,g,d,i)}}let xl=class Kt{static fromHex(t){return Kt.Format.CSS.parseHex(t)||Kt.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:er.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Li.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof en)this.rgba=t;else if(t instanceof er)this._hsla=t,this.rgba=er.toRGBA(t);else if(t instanceof Li)this._hsva=t,this.rgba=Li.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&en.equals(this.rgba,t.rgba)&&er.equals(this.hsla,t.hsla)&&Li.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Kt._relativeLuminanceForComponent(this.rgba.r),n=Kt._relativeLuminanceForComponent(this.rgba.g),r=Kt._relativeLuminanceForComponent(this.rgba.b),s=.2126*t+.7152*n+.0722*r;return ws(s,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new Kt(new er(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Kt(new er(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:s,a:i}=this.rgba;return new Kt(new en(n,r,s,i*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Kt(new en(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:s,a:i}=this.rgba;return new Kt(new en(t.rgba.r-i*(t.rgba.r-n),t.rgba.g-i*(t.rgba.g-r),t.rgba.b-i*(t.rgba.b-s),1))}toString(){return this._toString||(this._toString=Kt.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const s=t.getRelativeLuminance(),i=n.getRelativeLuminance();return r=r*(i-s)/i,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const s=t.getRelativeLuminance(),i=n.getRelativeLuminance();return r=r*(s-i)/s,t.darken(r)}static{this.white=new Kt(new en(255,255,255,1))}static{this.black=new Kt(new en(0,0,0,1))}static{this.red=new Kt(new en(255,0,0,1))}static{this.blue=new Kt(new en(0,0,255,1))}static{this.green=new Kt(new en(0,255,0,1))}static{this.cyan=new Kt(new en(0,255,255,1))}static{this.lightgrey=new Kt(new en(211,211,211,1))}static{this.transparent=new Kt(new en(0,0,0,0))}};(function(e){(function(t){(function(n){function r(w){return w.rgba.a===1?`rgb(${w.rgba.r}, ${w.rgba.g}, ${w.rgba.b})`:e.Format.CSS.formatRGBA(w)}n.formatRGB=r;function s(w){return`rgba(${w.rgba.r}, ${w.rgba.g}, ${w.rgba.b}, ${+w.rgba.a.toFixed(2)})`}n.formatRGBA=s;function i(w){return w.hsla.a===1?`hsl(${w.hsla.h}, ${(w.hsla.s*100).toFixed(2)}%, ${(w.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(w)}n.formatHSL=i;function o(w){return`hsla(${w.hsla.h}, ${(w.hsla.s*100).toFixed(2)}%, ${(w.hsla.l*100).toFixed(2)}%, ${w.hsla.a.toFixed(2)})`}n.formatHSLA=o;function l(w){const k=w.toString(16);return k.length!==2?"0"+k:k}function u(w){return`#${l(w.rgba.r)}${l(w.rgba.g)}${l(w.rgba.b)}`}n.formatHex=u;function c(w,k=!1){return k&&w.rgba.a===1?e.Format.CSS.formatHex(w):`#${l(w.rgba.r)}${l(w.rgba.g)}${l(w.rgba.b)}${l(Math.round(w.rgba.a*255))}`}n.formatHexA=c;function g(w){return w.isOpaque()?e.Format.CSS.formatHex(w):e.Format.CSS.formatRGBA(w)}n.format=g;function d(w){const k=w.length;if(k===0||w.charCodeAt(0)!==35)return null;if(k===7){const A=16*y(w.charCodeAt(1))+y(w.charCodeAt(2)),E=16*y(w.charCodeAt(3))+y(w.charCodeAt(4)),P=16*y(w.charCodeAt(5))+y(w.charCodeAt(6));return new e(new en(A,E,P,1))}if(k===9){const A=16*y(w.charCodeAt(1))+y(w.charCodeAt(2)),E=16*y(w.charCodeAt(3))+y(w.charCodeAt(4)),P=16*y(w.charCodeAt(5))+y(w.charCodeAt(6)),j=16*y(w.charCodeAt(7))+y(w.charCodeAt(8));return new e(new en(A,E,P,j/255))}if(k===4){const A=y(w.charCodeAt(1)),E=y(w.charCodeAt(2)),P=y(w.charCodeAt(3));return new e(new en(16*A+A,16*E+E,16*P+P))}if(k===5){const A=y(w.charCodeAt(1)),E=y(w.charCodeAt(2)),P=y(w.charCodeAt(3)),j=y(w.charCodeAt(4));return new e(new en(16*A+A,16*E+E,16*P+P,(16*j+j)/255))}return null}n.parseHex=d;function y(w){switch(w){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(xl||(xl={}));function om(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function fh(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function wo(e,t){const n=t.index,r=t[0].length;if(!n)return;const s=e.positionAt(n);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+r}}function oy(e,t){if(!e)return;const n=xl.Format.CSS.parseHex(t);if(n)return{range:e,color:fh(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function h1(e,t,n){if(!e||t.length!==1)return;const s=t[0].values(),i=om(s);return{range:e,color:fh(i[0],i[1],i[2],n?i[3]:1)}}function d1(e,t,n){if(!e||t.length!==1)return;const s=t[0].values(),i=om(s),o=new xl(new er(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:fh(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function So(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function ay(e){const t=[],r=So(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(const s of r){const i=s.filter(c=>c!==void 0),o=i[1],l=i[2];if(!l)continue;let u;if(o==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=h1(wo(e,s),So(l,c),!1)}else if(o==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=h1(wo(e,s),So(l,c),!0)}else if(o==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=d1(wo(e,s),So(l,c),!1)}else if(o==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=d1(wo(e,s),So(l,c),!0)}else o==="#"&&(u=oy(wo(e,s),o+l));u&&t.push(u)}return t}function ly(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:ay(e)}const m1=new RegExp("\\bMARK:\\s*(.*)$","d"),uy=/^-+|-+$/g;function cy(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=fy(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=hy(e);n=n.concat(r)}return n}function fy(e,t){const n=[],r=e.getLineCount();for(let s=1;s<=r;s++){const i=e.getLineContent(s),o=i.match(t.foldingRules.markers.start);if(o){const l={startLineNumber:s,startColumn:o[0].length+1,endLineNumber:s,endColumn:i.length+1};if(l.endColumn>l.startColumn){const u={range:l,...am(i.substring(o[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&n.push(u)}}}return n}function hy(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){const s=e.getLineContent(r);dy(s,r,t)}return t}function dy(e,t,n){m1.lastIndex=0;const r=m1.exec(e);if(r){const s=r.indices[1][0]+1,i=r.indices[1][1]+1,o={startLineNumber:t,startColumn:s,endLineNumber:t,endColumn:i};if(o.endColumn>o.startColumn){const l={range:o,...am(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function am(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(uy,""),{text:e,hasSeparatorLine:t}}var g1;(function(e){async function t(r){let s;const i=await Promise.all(r.map(o=>o.then(l=>l,l=>{s||(s=l)})));if(typeof s<"u")throw s;return i}e.settled=t;function n(r){return new Promise(async(s,i)=>{try{await r(s,i)}catch(o){i(o)}})}e.withAsyncBody=n})(g1||(g1={}));class Pn{static fromArray(t){return new Pn(n=>{n.emitMany(t)})}static fromPromise(t){return new Pn(async n=>{n.emitMany(await t)})}static fromPromises(t){return new Pn(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new Pn(async n=>{await Promise.all(t.map(async r=>{for await(const s of r)n.emitOne(s)}))})}static{this.EMPTY=Pn.fromArray([])}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new Zn,queueMicrotask(async()=>{const r={emitOne:s=>this.emitOne(s),emitMany:s=>this.emitMany(s),reject:s=>this.reject(s)};try{await Promise.resolve(t(r)),this.resolve()}catch(s){this.reject(s)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await gl.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new Pn(async r=>{for await(const s of t)r.emitOne(n(s))})}map(t){return Pn.map(this,t)}static filter(t,n){return new Pn(async r=>{for await(const s of t)n(s)&&r.emitOne(s)})}filter(t){return Pn.filter(this,t)}static coalesce(t){return Pn.filter(t,n=>!!n)}coalesce(){return Pn.coalesce(this)}static async toPromise(t){const n=[];for await(const r of t)n.push(r);return n}toPromise(){return Pn.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}}class my{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=yi(t);const r=this.values,s=this.prefixSum,i=n.length;return i===0?!1:(this.values=new Uint32Array(r.length+i),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+i),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=yi(t),n=yi(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=yi(t),n=yi(n);const r=this.values,s=this.prefixSum;if(t>=r.length)return!1;const i=r.length-t;return n>=i&&(n=i),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=yi(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,s=0,i=0,o=0;for(;n<=r;)if(s=n+(r-n)/2|0,i=this.prefixSum[s],o=i-this.values[s],t<o)r=s-1;else if(t>=i)n=s+1;else break;return new gy(s,t-o)}}class gy{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class py{constructor(t,n,r,s){this._uri=t,this._lines=n,this._eol=r,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new qt(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let s=0;s<n;s++)r[s]=this._lines[s].length+t;this._lineStarts=new my(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=lp(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const s=new Uint32Array(r.length-1);for(let i=1;i<r.length;i++)this._lines.splice(t.lineNumber+i-1,0,r[i]),s[i-1]=r[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,s)}}class by{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new yy(Lr.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class yy extends py{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const s=this._lines[r],i=this.offsetAt(new qt(r+1,1)),o=s.matchAll(t);for(const l of o)(l.index||l.index===0)&&(l.index=l.index+i),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=ch(t.column,nm(n),this._lines[t.lineNumber-1],0);return r?new bt(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let s=0,i="",o=0,l=[];return{*[Symbol.iterator](){for(;;)if(o<l.length){const u=i.substring(l[o].start,l[o].end);o+=1,yield u}else if(s<n.length)i=n[s],l=r(i,t),o=0,s+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],s=this._wordenize(r,n),i=[];for(const o of s)i.push({word:r.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return i}_wordenize(t,n){const r=[];let s;for(n.lastIndex=0;(s=n.exec(t))&&s[0].length!==0;)r.push({start:s.index,end:s.index+s[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,s=t.endLineNumber-1,i=[];i.push(this._lines[r].substring(t.startColumn-1));for(let o=r+1;o<s;o++)i.push(this._lines[o]);return i.push(this._lines[s].substring(0,t.endColumn-1)),i.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!qt.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,s=!1;if(n<1)n=1,r=1,s=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,s=!0;else{const i=this._lines[n-1].length+1;r<1?(r=1,s=!0):r>i&&(r=i,s=!0)}return s?{lineNumber:n,column:r}:t}}class vy{constructor(){this._workerTextModelSyncServer=new by}dispose(){}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){const s=this._getModel(t);return s?Ab.computeUnicodeHighlights(s,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const r=this._getModel(t);return r?cy(r,n):[]}async $computeDiff(t,n,r,s){const i=this._getModel(t),o=this._getModel(n);return!i||!o?null:rl.computeDiff(i,o,r,s)}static computeDiff(t,n,r,s){const i=s==="advanced"?f1.getDefault():f1.getLegacy(),o=t.getLinesContent(),l=n.getLinesContent(),u=i.computeDiff(o,l,r),c=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function g(d){return d.map(y=>[y.original.startLineNumber,y.original.endLineNumberExclusive,y.modified.startLineNumber,y.modified.endLineNumberExclusive,y.innerChanges?.map(w=>[w.originalRange.startLineNumber,w.originalRange.startColumn,w.originalRange.endLineNumber,w.originalRange.endColumn,w.modifiedRange.startLineNumber,w.modifiedRange.startColumn,w.modifiedRange.endLineNumber,w.modifiedRange.endColumn])])}return{identical:c,quitEarly:u.hitTimeout,changes:g(u.changes),moves:u.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,g(d.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),s=n.getLineCount();if(r!==s)return!1;for(let i=1;i<=r;i++){const o=t.getLineContent(i),l=n.getLineContent(i);if(o!==l)return!1}return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){const s=this._getModel(t);if(!s)return n;const i=[];let o;n=n.slice(0).sort((u,c)=>{if(u.range&&c.range)return bt.compareRangesUsingStarts(u.range,c.range);const g=u.range?0:1,d=c.range?0:1;return g-d});let l=0;for(let u=1;u<n.length;u++)bt.getEndPosition(n[l].range).equals(bt.getStartPosition(n[u].range))?(n[l].range=bt.fromPositions(bt.getStartPosition(n[l].range),bt.getEndPosition(n[u].range)),n[l].text+=n[u].text):(l++,n[l]=n[u]);n.length=l+1;for(let{range:u,text:c,eol:g}of n){if(typeof g=="number"&&(o=g),bt.isEmpty(u)&&!c)continue;const d=s.getValueInRange(u);if(c=c.replace(/\r\n|\n|\r/g,s.eol),d===c)continue;if(Math.max(c.length,d.length)>rl._diffLimit){i.push({range:u,text:c});continue}const y=Yp(d,c,r),w=s.offsetAt(bt.lift(u).getStartPosition());for(const k of y){const A=s.positionAt(w+k.originalStart),E=s.positionAt(w+k.originalStart+k.originalLength),P={text:c.substr(k.modifiedStart,k.modifiedLength),range:{startLineNumber:A.lineNumber,startColumn:A.column,endLineNumber:E.lineNumber,endColumn:E.column}};s.getValueInRange(P.range)!==P.text&&i.push(P)}}return typeof o=="number"&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async $computeLinks(t){const n=this._getModel(t);return n?Kp(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?ly(n):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,s){const i=new Bl,o=new RegExp(r,s),l=new Set;e:for(const u of t){const c=this._getModel(u);if(c){for(const g of c.words(o))if(!(g===n||!isNaN(Number(g)))&&(l.add(g),l.size>rl._suggestionsLimit))break e}}return{words:Array.from(l),duration:i.elapsed()}}async $computeWordRanges(t,n,r,s){const i=this._getModel(t);if(!i)return Object.create(null);const o=new RegExp(r,s),l=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){const c=i.getLineWords(u,o);for(const g of c){if(!isNaN(Number(g.word)))continue;let d=l[g.word];d||(d=[],l[g.word]=d),d.push({startLineNumber:u,startColumn:g.startColumn,endLineNumber:u,endColumn:g.endColumn})}}return l}async $navigateValueSet(t,n,r,s,i){const o=this._getModel(t);if(!o)return null;const l=new RegExp(s,i);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const u=o.getValueInRange(n),c=o.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!c)return null;const g=o.getValueInRange(c);return lh.INSTANCE.navigateValueSet(n,u,c,g,r)}}class rl extends vy{constructor(t,n){super(),this._host=t,this._foreignModuleFactory=n,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(t,n,r){const o={host:gb(r,(l,u)=>this._host.$fhr(l,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,n),Promise.resolve(Yd(this._foreignModule))):new Promise((l,u)=>{const c=g=>{this._foreignModule=g.create(o,n),l(Yd(this._foreignModule))};import(`${G0.asBrowserUri(`${t}.js`).toString(!0)}`).then(c).catch(u)})}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}typeof importScripts=="function"&&(globalThis.monaco=ub());let mf=!1;function lm(e){if(mf)return;mf=!0;const t=new qp(n=>{globalThis.postMessage(n)},n=>new rl(El.getChannel(n),e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{mf||lm(null)};function Dy(e){self.onmessage=()=>{lm((t,n)=>Object.create(e(t,n)))}}let p1=class gf{constructor(t,n,r,s){this._uri=t,this._languageId=n,this._version=r,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(const r of t)if(gf.isIncremental(r)){const s=cm(r.range),i=this.offsetAt(s.start),o=this.offsetAt(s.end);this._content=this._content.substring(0,i)+r.text+this._content.substring(o,this._content.length);const l=Math.max(s.start.line,0),u=Math.max(s.end.line,0);let c=this._lineOffsets;const g=b1(r.text,!1,i);if(u-l===g.length)for(let y=0,w=g.length;y<w;y++)c[y+l+1]=g[y];else g.length<1e4?c.splice(l+1,u-l,...g):this._lineOffsets=c=c.slice(0,l+1).concat(g,c.slice(u+1));const d=r.text.length-(o-i);if(d!==0)for(let y=l+1+g.length,w=c.length;y<w;y++)c[y]=c[y]+d}else if(gf.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=b1(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);const n=this.getLineOffsets();let r=0,s=n.length;if(s===0)return{line:0,character:t};for(;r<s;){const o=Math.floor((r+s)/2);n[o]>t?s=o:r=o+1}const i=r-1;return t=this.ensureBeforeEOL(t,n[i]),{line:i,character:t-n[i]}}offsetAt(t){const n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;const r=n[t.line];if(t.character<=0)return r;const s=t.line+1<n.length?n[t.line+1]:this._content.length,i=Math.min(r+t.character,s);return this.ensureBeforeEOL(i,r)}ensureBeforeEOL(t,n){for(;t>n&&um(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){const n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){const n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};var pf;(function(e){function t(s,i,o,l){return new p1(s,i,o,l)}e.create=t;function n(s,i,o){if(s instanceof p1)return s.update(i,o),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(s,i){const o=s.getText(),l=bf(i.map(wy),(g,d)=>{const y=g.range.start.line-d.range.start.line;return y===0?g.range.start.character-d.range.start.character:y});let u=0;const c=[];for(const g of l){const d=s.offsetAt(g.range.start);if(d<u)throw new Error("Overlapping edit");d>u&&c.push(o.substring(u,d)),g.newText.length&&c.push(g.newText),u=s.offsetAt(g.range.end)}return c.push(o.substr(u)),c.join("")}e.applyEdits=r})(pf||(pf={}));function bf(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),s=e.slice(n);bf(r,t),bf(s,t);let i=0,o=0,l=0;for(;i<r.length&&o<s.length;)t(r[i],s[o])<=0?e[l++]=r[i++]:e[l++]=s[o++];for(;i<r.length;)e[l++]=r[i++];for(;o<s.length;)e[l++]=s[o++];return e}function b1(e,t,n=0){const r=t?[n]:[];for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);um(i)&&(i===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,r.push(n+s+1))}return r}function um(e){return e===13||e===10}function cm(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function wy(e){const t=cm(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function Sy(e,t=!1){const n=e.length;let r=0,s="",i=0,o=16,l=0,u=0,c=0,g=0,d=0;function y(H,z){let M=0,T=0;for(;M<H;){let Y=e.charCodeAt(r);if(Y>=48&&Y<=57)T=T*16+Y-48;else if(Y>=65&&Y<=70)T=T*16+Y-65+10;else if(Y>=97&&Y<=102)T=T*16+Y-97+10;else break;r++,M++}return M<H&&(T=-1),T}function w(H){r=H,s="",i=0,o=16,d=0}function k(){let H=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Di(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Di(e.charCodeAt(r)))for(r++;r<e.length&&Di(e.charCodeAt(r));)r++;else return d=3,e.substring(H,r);let z=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Di(e.charCodeAt(r))){for(r++;r<e.length&&Di(e.charCodeAt(r));)r++;z=r}else d=3;return e.substring(H,z)}function A(){let H="",z=r;for(;;){if(r>=n){H+=e.substring(z,r),d=2;break}const M=e.charCodeAt(r);if(M===34){H+=e.substring(z,r),r++;break}if(M===92){if(H+=e.substring(z,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:H+='"';break;case 92:H+="\\";break;case 47:H+="/";break;case 98:H+="\b";break;case 102:H+="\f";break;case 110:H+=`
13
- `;break;case 114:H+="\r";break;case 116:H+=" ";break;case 117:const Y=y(4);Y>=0?H+=String.fromCharCode(Y):d=4;break;default:d=5}z=r;continue}if(M>=0&&M<=31)if(Eo(M)){H+=e.substring(z,r),d=2;break}else d=6;r++}return H}function E(){if(s="",d=0,i=r,u=l,g=c,r>=n)return i=n,o=17;let H=e.charCodeAt(r);if(Tc(H)){do r++,s+=String.fromCharCode(H),H=e.charCodeAt(r);while(Tc(H));return o=15}if(Eo(H))return r++,s+=String.fromCharCode(H),H===13&&e.charCodeAt(r)===10&&(r++,s+=`
14
- `),l++,c=r,o=14;switch(H){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,s=A(),o=10;case 47:const z=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Eo(e.charCodeAt(r));)r++;return s=e.substring(z,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;const M=n-1;let T=!1;for(;r<M;){const Y=e.charCodeAt(r);if(Y===42&&e.charCodeAt(r+1)===47){r+=2,T=!0;break}r++,Eo(Y)&&(Y===13&&e.charCodeAt(r)===10&&r++,l++,c=r)}return T||(r++,d=1),s=e.substring(z,r),o=13}return s+=String.fromCharCode(H),r++,o=16;case 45:if(s+=String.fromCharCode(H),r++,r===n||!Di(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=k(),o=11;default:for(;r<n&&P(H);)r++,H=e.charCodeAt(r);if(i!==r){switch(s=e.substring(i,r),s){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return s+=String.fromCharCode(H),r++,o=16}}function P(H){if(Tc(H)||Eo(H))return!1;switch(H){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function j(){let H;do H=E();while(H>=12&&H<=15);return H}return{setPosition:w,getPosition:()=>r,scan:t?j:E,getToken:()=>o,getTokenValue:()=>s,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-g,getTokenError:()=>d}}function Tc(e){return e===32||e===9}function Eo(e){return e===10||e===13}function Di(e){return e>=48&&e<=57}var y1;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(y1||(y1={}));new Array(20).fill(0).map((e,t)=>" ".repeat(t));const wi=200;new Array(wi).fill(0).map((e,t)=>`
15
- `+" ".repeat(t)),new Array(wi).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(wi).fill(0).map((e,t)=>`\r
16
- `+" ".repeat(t)),new Array(wi).fill(0).map((e,t)=>`
17
- `+" ".repeat(t)),new Array(wi).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(wi).fill(0).map((e,t)=>`\r
18
- `+" ".repeat(t));var Ll;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ll||(Ll={}));function Ey(e,t=[],n=Ll.DEFAULT){let r=null,s=[];const i=[];function o(u){Array.isArray(s)?s.push(u):r!==null&&(s[r]=u)}return Ay(e,{onObjectBegin:()=>{const u={};o(u),i.push(s),s=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{s=i.pop()},onArrayBegin:()=>{const u=[];o(u),i.push(s),s=u,r=null},onArrayEnd:()=>{s=i.pop()},onLiteralValue:o,onError:(u,c,g)=>{t.push({error:u,offset:c,length:g})}},n),s[0]}function yf(e){switch(e.type){case"array":return e.children.map(yf);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=yf(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Ay(e,t,n=Ll.DEFAULT){const r=Sy(e,!1),s=[];let i=0;function o(te){return te?()=>i===0&&te(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(te){return te?X=>i===0&&te(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(te){return te?X=>i===0&&te(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>s.slice()):()=>!0}function c(te){return te?()=>{i>0?i++:te(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>s.slice())===!1&&(i=1)}:()=>!0}function g(te){return te?()=>{i>0&&i--,i===0&&te(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const d=c(t.onObjectBegin),y=u(t.onObjectProperty),w=g(t.onObjectEnd),k=c(t.onArrayBegin),A=g(t.onArrayEnd),E=u(t.onLiteralValue),P=l(t.onSeparator),j=o(t.onComment),H=l(t.onError),z=n&&n.disallowComments,M=n&&n.allowTrailingComma;function T(){for(;;){const te=r.scan();switch(r.getTokenError()){case 4:Y(14);break;case 5:Y(15);break;case 3:Y(13);break;case 1:z||Y(11);break;case 2:Y(12);break;case 6:Y(16);break}switch(te){case 12:case 13:z?Y(10):j();break;case 16:Y(1);break;case 15:case 14:break;default:return te}}}function Y(te,X=[],se=[]){if(H(te),X.length+se.length>0){let he=r.getToken();for(;he!==17;){if(X.indexOf(he)!==-1){T();break}else if(se.indexOf(he)!==-1)break;he=T()}}}function K(te){const X=r.getTokenValue();return te?E(X):(y(X),s.push(X)),T(),!0}function W(){switch(r.getToken()){case 11:const te=r.getTokenValue();let X=Number(te);isNaN(X)&&(Y(2),X=0),E(X);break;case 7:E(null);break;case 8:E(!0);break;case 9:E(!1);break;default:return!1}return T(),!0}function re(){return r.getToken()!==10?(Y(3,[],[2,5]),!1):(K(!1),r.getToken()===6?(P(":"),T(),ae()||Y(4,[],[2,5])):Y(5,[],[2,5]),s.pop(),!0)}function ee(){d(),T();let te=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(te||Y(4,[],[]),P(","),T(),r.getToken()===2&&M)break}else te&&Y(6,[],[]);re()||Y(4,[],[2,5]),te=!0}return w(),r.getToken()!==2?Y(7,[2],[]):T(),!0}function B(){k(),T();let te=!0,X=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(X||Y(4,[],[]),P(","),T(),r.getToken()===4&&M)break}else X&&Y(6,[],[]);te?(s.push(0),te=!1):s[s.length-1]++,ae()||Y(4,[],[4,5]),X=!0}return A(),te||s.pop(),r.getToken()!==4?Y(8,[4],[]):T(),!0}function ae(){switch(r.getToken()){case 3:return B();case 1:return ee();case 10:return K(!0);default:return W()}}return T(),r.getToken()===17?n.allowEmptyContent?!0:(Y(4,[],[]),!1):ae()?(r.getToken()!==17&&Y(9,[],[]),!0):(Y(4,[],[]),!1)}var v1;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(v1||(v1={}));var D1;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(D1||(D1={}));const Ny=Ey,xy=yf;var w1;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(w1||(w1={}));var fm;(()=>{var e={975:ee=>{function B(X){if(typeof X!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(X))}function ae(X,se){for(var he,Se="",_e=0,Fe=-1,$e=0,Ge=0;Ge<=X.length;++Ge){if(Ge<X.length)he=X.charCodeAt(Ge);else{if(he===47)break;he=47}if(he===47){if(!(Fe===Ge-1||$e===1))if(Fe!==Ge-1&&$e===2){if(Se.length<2||_e!==2||Se.charCodeAt(Se.length-1)!==46||Se.charCodeAt(Se.length-2)!==46){if(Se.length>2){var kt=Se.lastIndexOf("/");if(kt!==Se.length-1){kt===-1?(Se="",_e=0):_e=(Se=Se.slice(0,kt)).length-1-Se.lastIndexOf("/"),Fe=Ge,$e=0;continue}}else if(Se.length===2||Se.length===1){Se="",_e=0,Fe=Ge,$e=0;continue}}se&&(Se.length>0?Se+="/..":Se="..",_e=2)}else Se.length>0?Se+="/"+X.slice(Fe+1,Ge):Se=X.slice(Fe+1,Ge),_e=Ge-Fe-1;Fe=Ge,$e=0}else he===46&&$e!==-1?++$e:$e=-1}return Se}var te={resolve:function(){for(var X,se="",he=!1,Se=arguments.length-1;Se>=-1&&!he;Se--){var _e;Se>=0?_e=arguments[Se]:(X===void 0&&(X=process.cwd()),_e=X),B(_e),_e.length!==0&&(se=_e+"/"+se,he=_e.charCodeAt(0)===47)}return se=ae(se,!he),he?se.length>0?"/"+se:"/":se.length>0?se:"."},normalize:function(X){if(B(X),X.length===0)return".";var se=X.charCodeAt(0)===47,he=X.charCodeAt(X.length-1)===47;return(X=ae(X,!se)).length!==0||se||(X="."),X.length>0&&he&&(X+="/"),se?"/"+X:X},isAbsolute:function(X){return B(X),X.length>0&&X.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var X,se=0;se<arguments.length;++se){var he=arguments[se];B(he),he.length>0&&(X===void 0?X=he:X+="/"+he)}return X===void 0?".":te.normalize(X)},relative:function(X,se){if(B(X),B(se),X===se||(X=te.resolve(X))===(se=te.resolve(se)))return"";for(var he=1;he<X.length&&X.charCodeAt(he)===47;++he);for(var Se=X.length,_e=Se-he,Fe=1;Fe<se.length&&se.charCodeAt(Fe)===47;++Fe);for(var $e=se.length-Fe,Ge=_e<$e?_e:$e,kt=-1,at=0;at<=Ge;++at){if(at===Ge){if($e>Ge){if(se.charCodeAt(Fe+at)===47)return se.slice(Fe+at+1);if(at===0)return se.slice(Fe+at)}else _e>Ge&&(X.charCodeAt(he+at)===47?kt=at:at===0&&(kt=0));break}var tn=X.charCodeAt(he+at);if(tn!==se.charCodeAt(Fe+at))break;tn===47&&(kt=at)}var _t="";for(at=he+kt+1;at<=Se;++at)at!==Se&&X.charCodeAt(at)!==47||(_t.length===0?_t+="..":_t+="/..");return _t.length>0?_t+se.slice(Fe+kt):(Fe+=kt,se.charCodeAt(Fe)===47&&++Fe,se.slice(Fe))},_makeLong:function(X){return X},dirname:function(X){if(B(X),X.length===0)return".";for(var se=X.charCodeAt(0),he=se===47,Se=-1,_e=!0,Fe=X.length-1;Fe>=1;--Fe)if((se=X.charCodeAt(Fe))===47){if(!_e){Se=Fe;break}}else _e=!1;return Se===-1?he?"/":".":he&&Se===1?"//":X.slice(0,Se)},basename:function(X,se){if(se!==void 0&&typeof se!="string")throw new TypeError('"ext" argument must be a string');B(X);var he,Se=0,_e=-1,Fe=!0;if(se!==void 0&&se.length>0&&se.length<=X.length){if(se.length===X.length&&se===X)return"";var $e=se.length-1,Ge=-1;for(he=X.length-1;he>=0;--he){var kt=X.charCodeAt(he);if(kt===47){if(!Fe){Se=he+1;break}}else Ge===-1&&(Fe=!1,Ge=he+1),$e>=0&&(kt===se.charCodeAt($e)?--$e==-1&&(_e=he):($e=-1,_e=Ge))}return Se===_e?_e=Ge:_e===-1&&(_e=X.length),X.slice(Se,_e)}for(he=X.length-1;he>=0;--he)if(X.charCodeAt(he)===47){if(!Fe){Se=he+1;break}}else _e===-1&&(Fe=!1,_e=he+1);return _e===-1?"":X.slice(Se,_e)},extname:function(X){B(X);for(var se=-1,he=0,Se=-1,_e=!0,Fe=0,$e=X.length-1;$e>=0;--$e){var Ge=X.charCodeAt($e);if(Ge!==47)Se===-1&&(_e=!1,Se=$e+1),Ge===46?se===-1?se=$e:Fe!==1&&(Fe=1):se!==-1&&(Fe=-1);else if(!_e){he=$e+1;break}}return se===-1||Se===-1||Fe===0||Fe===1&&se===Se-1&&se===he+1?"":X.slice(se,Se)},format:function(X){if(X===null||typeof X!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof X);return function(se,he){var Se=he.dir||he.root,_e=he.base||(he.name||"")+(he.ext||"");return Se?Se===he.root?Se+_e:Se+"/"+_e:_e}(0,X)},parse:function(X){B(X);var se={root:"",dir:"",base:"",ext:"",name:""};if(X.length===0)return se;var he,Se=X.charCodeAt(0),_e=Se===47;_e?(se.root="/",he=1):he=0;for(var Fe=-1,$e=0,Ge=-1,kt=!0,at=X.length-1,tn=0;at>=he;--at)if((Se=X.charCodeAt(at))!==47)Ge===-1&&(kt=!1,Ge=at+1),Se===46?Fe===-1?Fe=at:tn!==1&&(tn=1):Fe!==-1&&(tn=-1);else if(!kt){$e=at+1;break}return Fe===-1||Ge===-1||tn===0||tn===1&&Fe===Ge-1&&Fe===$e+1?Ge!==-1&&(se.base=se.name=$e===0&&_e?X.slice(1,Ge):X.slice($e,Ge)):($e===0&&_e?(se.name=X.slice(1,Fe),se.base=X.slice(1,Ge)):(se.name=X.slice($e,Fe),se.base=X.slice($e,Ge)),se.ext=X.slice(Fe,Ge)),$e>0?se.dir=X.slice(0,$e-1):_e&&(se.dir="/"),se},sep:"/",delimiter:":",win32:null,posix:null};te.posix=te,ee.exports=te}},t={};function n(ee){var B=t[ee];if(B!==void 0)return B.exports;var ae=t[ee]={exports:{}};return e[ee](ae,ae.exports,n),ae.exports}n.d=(ee,B)=>{for(var ae in B)n.o(B,ae)&&!n.o(ee,ae)&&Object.defineProperty(ee,ae,{enumerable:!0,get:B[ae]})},n.o=(ee,B)=>Object.prototype.hasOwnProperty.call(ee,B),n.r=ee=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ee,"__esModule",{value:!0})};var r={};let s;n.r(r),n.d(r,{URI:()=>y,Utils:()=>re}),typeof process=="object"?s=process.platform==="win32":typeof navigator=="object"&&(s=navigator.userAgent.indexOf("Windows")>=0);const i=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(ee,B){if(!ee.scheme&&B)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${ee.authority}", path: "${ee.path}", query: "${ee.query}", fragment: "${ee.fragment}"}`);if(ee.scheme&&!i.test(ee.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(ee.path){if(ee.authority){if(!o.test(ee.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(ee.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",g="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class y{static isUri(B){return B instanceof y||!!B&&typeof B.authority=="string"&&typeof B.fragment=="string"&&typeof B.path=="string"&&typeof B.query=="string"&&typeof B.scheme=="string"&&typeof B.fsPath=="string"&&typeof B.with=="function"&&typeof B.toString=="function"}scheme;authority;path;query;fragment;constructor(B,ae,te,X,se,he=!1){typeof B=="object"?(this.scheme=B.scheme||c,this.authority=B.authority||c,this.path=B.path||c,this.query=B.query||c,this.fragment=B.fragment||c):(this.scheme=function(Se,_e){return Se||_e?Se:"file"}(B,he),this.authority=ae||c,this.path=function(Se,_e){switch(Se){case"https":case"http":case"file":_e?_e[0]!==g&&(_e=g+_e):_e=g}return _e}(this.scheme,te||c),this.query=X||c,this.fragment=se||c,u(this,he))}get fsPath(){return j(this)}with(B){if(!B)return this;let{scheme:ae,authority:te,path:X,query:se,fragment:he}=B;return ae===void 0?ae=this.scheme:ae===null&&(ae=c),te===void 0?te=this.authority:te===null&&(te=c),X===void 0?X=this.path:X===null&&(X=c),se===void 0?se=this.query:se===null&&(se=c),he===void 0?he=this.fragment:he===null&&(he=c),ae===this.scheme&&te===this.authority&&X===this.path&&se===this.query&&he===this.fragment?this:new k(ae,te,X,se,he)}static parse(B,ae=!1){const te=d.exec(B);return te?new k(te[2]||c,T(te[4]||c),T(te[5]||c),T(te[7]||c),T(te[9]||c),ae):new k(c,c,c,c,c)}static file(B){let ae=c;if(s&&(B=B.replace(/\\/g,g)),B[0]===g&&B[1]===g){const te=B.indexOf(g,2);te===-1?(ae=B.substring(2),B=g):(ae=B.substring(2,te),B=B.substring(te)||g)}return new k("file",ae,B,c,c)}static from(B){const ae=new k(B.scheme,B.authority,B.path,B.query,B.fragment);return u(ae,!0),ae}toString(B=!1){return H(this,B)}toJSON(){return this}static revive(B){if(B){if(B instanceof y)return B;{const ae=new k(B);return ae._formatted=B.external,ae._fsPath=B._sep===w?B.fsPath:null,ae}}return B}}const w=s?1:void 0;class k extends y{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=j(this)),this._fsPath}toString(B=!1){return B?H(this,!0):(this._formatted||(this._formatted=H(this,!1)),this._formatted)}toJSON(){const B={$mid:1};return this._fsPath&&(B.fsPath=this._fsPath,B._sep=w),this._formatted&&(B.external=this._formatted),this.path&&(B.path=this.path),this.scheme&&(B.scheme=this.scheme),this.authority&&(B.authority=this.authority),this.query&&(B.query=this.query),this.fragment&&(B.fragment=this.fragment),B}}const A={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function E(ee,B,ae){let te,X=-1;for(let se=0;se<ee.length;se++){const he=ee.charCodeAt(se);if(he>=97&&he<=122||he>=65&&he<=90||he>=48&&he<=57||he===45||he===46||he===95||he===126||B&&he===47||ae&&he===91||ae&&he===93||ae&&he===58)X!==-1&&(te+=encodeURIComponent(ee.substring(X,se)),X=-1),te!==void 0&&(te+=ee.charAt(se));else{te===void 0&&(te=ee.substr(0,se));const Se=A[he];Se!==void 0?(X!==-1&&(te+=encodeURIComponent(ee.substring(X,se)),X=-1),te+=Se):X===-1&&(X=se)}}return X!==-1&&(te+=encodeURIComponent(ee.substring(X))),te!==void 0?te:ee}function P(ee){let B;for(let ae=0;ae<ee.length;ae++){const te=ee.charCodeAt(ae);te===35||te===63?(B===void 0&&(B=ee.substr(0,ae)),B+=A[te]):B!==void 0&&(B+=ee[ae])}return B!==void 0?B:ee}function j(ee,B){let ae;return ae=ee.authority&&ee.path.length>1&&ee.scheme==="file"?`//${ee.authority}${ee.path}`:ee.path.charCodeAt(0)===47&&(ee.path.charCodeAt(1)>=65&&ee.path.charCodeAt(1)<=90||ee.path.charCodeAt(1)>=97&&ee.path.charCodeAt(1)<=122)&&ee.path.charCodeAt(2)===58?ee.path[1].toLowerCase()+ee.path.substr(2):ee.path,s&&(ae=ae.replace(/\//g,"\\")),ae}function H(ee,B){const ae=B?P:E;let te="",{scheme:X,authority:se,path:he,query:Se,fragment:_e}=ee;if(X&&(te+=X,te+=":"),(se||X==="file")&&(te+=g,te+=g),se){let Fe=se.indexOf("@");if(Fe!==-1){const $e=se.substr(0,Fe);se=se.substr(Fe+1),Fe=$e.lastIndexOf(":"),Fe===-1?te+=ae($e,!1,!1):(te+=ae($e.substr(0,Fe),!1,!1),te+=":",te+=ae($e.substr(Fe+1),!1,!0)),te+="@"}se=se.toLowerCase(),Fe=se.lastIndexOf(":"),Fe===-1?te+=ae(se,!1,!0):(te+=ae(se.substr(0,Fe),!1,!0),te+=se.substr(Fe))}if(he){if(he.length>=3&&he.charCodeAt(0)===47&&he.charCodeAt(2)===58){const Fe=he.charCodeAt(1);Fe>=65&&Fe<=90&&(he=`/${String.fromCharCode(Fe+32)}:${he.substr(3)}`)}else if(he.length>=2&&he.charCodeAt(1)===58){const Fe=he.charCodeAt(0);Fe>=65&&Fe<=90&&(he=`${String.fromCharCode(Fe+32)}:${he.substr(2)}`)}te+=ae(he,!0,!1)}return Se&&(te+="?",te+=ae(Se,!1,!1)),_e&&(te+="#",te+=B?_e:E(_e,!1,!1)),te}function z(ee){try{return decodeURIComponent(ee)}catch{return ee.length>3?ee.substr(0,3)+z(ee.substr(3)):ee}}const M=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function T(ee){return ee.match(M)?ee.replace(M,B=>z(B)):ee}var Y=n(975);const K=Y.posix||Y,W="/";var re;(function(ee){ee.joinPath=function(B,...ae){return B.with({path:K.join(B.path,...ae)})},ee.resolvePath=function(B,...ae){let te=B.path,X=!1;te[0]!==W&&(te=W+te,X=!0);let se=K.resolve(te,...ae);return X&&se[0]===W&&!B.authority&&(se=se.substring(1)),B.with({path:se})},ee.dirname=function(B){if(B.path.length===0||B.path===W)return B;let ae=K.dirname(B.path);return ae.length===1&&ae.charCodeAt(0)===46&&(ae=""),B.with({path:ae})},ee.basename=function(B){return K.basename(B.path)},ee.extname=function(B){return K.extname(B.path)}})(re||(re={})),fm=r})();const{URI:Vn,Utils:RD}=fm;var S1;(function(e){function t(n){return typeof n=="string"}e.is=t})(S1||(S1={}));var vf;(function(e){function t(n){return typeof n=="string"}e.is=t})(vf||(vf={}));var E1;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(E1||(E1={}));var Cl;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Cl||(Cl={}));var sn;(function(e){function t(r,s){return r===Number.MAX_VALUE&&(r=Cl.MAX_VALUE),s===Number.MAX_VALUE&&(s=Cl.MAX_VALUE),{line:r,character:s}}e.create=t;function n(r){let s=r;return me.objectLiteral(s)&&me.uinteger(s.line)&&me.uinteger(s.character)}e.is=n})(sn||(sn={}));var ze;(function(e){function t(r,s,i,o){if(me.uinteger(r)&&me.uinteger(s)&&me.uinteger(i)&&me.uinteger(o))return{start:sn.create(r,s),end:sn.create(i,o)};if(sn.is(r)&&sn.is(s))return{start:r,end:s};throw new Error(`Range#create called with invalid arguments[${r}, ${s}, ${i}, ${o}]`)}e.create=t;function n(r){let s=r;return me.objectLiteral(s)&&sn.is(s.start)&&sn.is(s.end)}e.is=n})(ze||(ze={}));var $i;(function(e){function t(r,s){return{uri:r,range:s}}e.create=t;function n(r){let s=r;return me.objectLiteral(s)&&ze.is(s.range)&&(me.string(s.uri)||me.undefined(s.uri))}e.is=n})($i||($i={}));var Df;(function(e){function t(r,s,i,o){return{targetUri:r,targetRange:s,targetSelectionRange:i,originSelectionRange:o}}e.create=t;function n(r){let s=r;return me.objectLiteral(s)&&ze.is(s.targetRange)&&me.string(s.targetUri)&&ze.is(s.targetSelectionRange)&&(ze.is(s.originSelectionRange)||me.undefined(s.originSelectionRange))}e.is=n})(Df||(Df={}));var wf;(function(e){function t(r,s,i,o){return{red:r,green:s,blue:i,alpha:o}}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&me.numberRange(s.red,0,1)&&me.numberRange(s.green,0,1)&&me.numberRange(s.blue,0,1)&&me.numberRange(s.alpha,0,1)}e.is=n})(wf||(wf={}));var A1;(function(e){function t(r,s){return{range:r,color:s}}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&ze.is(s.range)&&wf.is(s.color)}e.is=n})(A1||(A1={}));var N1;(function(e){function t(r,s,i){return{label:r,textEdit:s,additionalTextEdits:i}}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&me.string(s.label)&&(me.undefined(s.textEdit)||$t.is(s))&&(me.undefined(s.additionalTextEdits)||me.typedArray(s.additionalTextEdits,$t.is))}e.is=n})(N1||(N1={}));var x1;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(x1||(x1={}));var Sf;(function(e){function t(r,s,i,o,l,u){const c={startLine:r,endLine:s};return me.defined(i)&&(c.startCharacter=i),me.defined(o)&&(c.endCharacter=o),me.defined(l)&&(c.kind=l),me.defined(u)&&(c.collapsedText=u),c}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&me.uinteger(s.startLine)&&me.uinteger(s.startLine)&&(me.undefined(s.startCharacter)||me.uinteger(s.startCharacter))&&(me.undefined(s.endCharacter)||me.uinteger(s.endCharacter))&&(me.undefined(s.kind)||me.string(s.kind))}e.is=n})(Sf||(Sf={}));var Ef;(function(e){function t(r,s){return{location:r,message:s}}e.create=t;function n(r){let s=r;return me.defined(s)&&$i.is(s.location)&&me.string(s.message)}e.is=n})(Ef||(Ef={}));var et;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(et||(et={}));var Af;(function(e){e.Unnecessary=1,e.Deprecated=2})(Af||(Af={}));var L1;(function(e){function t(n){const r=n;return me.objectLiteral(r)&&me.string(r.href)}e.is=t})(L1||(L1={}));var Un;(function(e){function t(r,s,i,o,l,u){let c={range:r,message:s};return me.defined(i)&&(c.severity=i),me.defined(o)&&(c.code=o),me.defined(l)&&(c.source=l),me.defined(u)&&(c.relatedInformation=u),c}e.create=t;function n(r){var s;let i=r;return me.defined(i)&&ze.is(i.range)&&me.string(i.message)&&(me.number(i.severity)||me.undefined(i.severity))&&(me.integer(i.code)||me.string(i.code)||me.undefined(i.code))&&(me.undefined(i.codeDescription)||me.string((s=i.codeDescription)===null||s===void 0?void 0:s.href))&&(me.string(i.source)||me.undefined(i.source))&&(me.undefined(i.relatedInformation)||me.typedArray(i.relatedInformation,Ef.is))}e.is=n})(Un||(Un={}));var qs;(function(e){function t(r,s,...i){let o={title:r,command:s};return me.defined(i)&&i.length>0&&(o.arguments=i),o}e.create=t;function n(r){let s=r;return me.defined(s)&&me.string(s.title)&&me.string(s.command)}e.is=n})(qs||(qs={}));var $t;(function(e){function t(i,o){return{range:i,newText:o}}e.replace=t;function n(i,o){return{range:{start:i,end:i},newText:o}}e.insert=n;function r(i){return{range:i,newText:""}}e.del=r;function s(i){const o=i;return me.objectLiteral(o)&&me.string(o.newText)&&ze.is(o.range)}e.is=s})($t||($t={}));var Nf;(function(e){function t(r,s,i){const o={label:r};return s!==void 0&&(o.needsConfirmation=s),i!==void 0&&(o.description=i),o}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&me.string(s.label)&&(me.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(me.string(s.description)||s.description===void 0)}e.is=n})(Nf||(Nf={}));var Vi;(function(e){function t(n){const r=n;return me.string(r)}e.is=t})(Vi||(Vi={}));var C1;(function(e){function t(i,o,l){return{range:i,newText:o,annotationId:l}}e.replace=t;function n(i,o,l){return{range:{start:i,end:i},newText:o,annotationId:l}}e.insert=n;function r(i,o){return{range:i,newText:"",annotationId:o}}e.del=r;function s(i){const o=i;return $t.is(o)&&(Nf.is(o.annotationId)||Vi.is(o.annotationId))}e.is=s})(C1||(C1={}));var xf;(function(e){function t(r,s){return{textDocument:r,edits:s}}e.create=t;function n(r){let s=r;return me.defined(s)&&Ff.is(s.textDocument)&&Array.isArray(s.edits)}e.is=n})(xf||(xf={}));var Lf;(function(e){function t(r,s,i){let o={kind:"create",uri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),i!==void 0&&(o.annotationId=i),o}e.create=t;function n(r){let s=r;return s&&s.kind==="create"&&me.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||me.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||me.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Vi.is(s.annotationId))}e.is=n})(Lf||(Lf={}));var Cf;(function(e){function t(r,s,i,o){let l={kind:"rename",oldUri:r,newUri:s};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(l.options=i),o!==void 0&&(l.annotationId=o),l}e.create=t;function n(r){let s=r;return s&&s.kind==="rename"&&me.string(s.oldUri)&&me.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||me.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||me.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Vi.is(s.annotationId))}e.is=n})(Cf||(Cf={}));var kf;(function(e){function t(r,s,i){let o={kind:"delete",uri:r};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(o.options=s),i!==void 0&&(o.annotationId=i),o}e.create=t;function n(r){let s=r;return s&&s.kind==="delete"&&me.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||me.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||me.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Vi.is(s.annotationId))}e.is=n})(kf||(kf={}));var _f;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(s=>me.string(s.kind)?Lf.is(s)||Cf.is(s)||kf.is(s):xf.is(s)))}e.is=t})(_f||(_f={}));var k1;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let s=r;return me.defined(s)&&me.string(s.uri)}e.is=n})(k1||(k1={}));var _1;(function(e){function t(r,s){return{uri:r,version:s}}e.create=t;function n(r){let s=r;return me.defined(s)&&me.string(s.uri)&&me.integer(s.version)}e.is=n})(_1||(_1={}));var Ff;(function(e){function t(r,s){return{uri:r,version:s}}e.create=t;function n(r){let s=r;return me.defined(s)&&me.string(s.uri)&&(s.version===null||me.integer(s.version))}e.is=n})(Ff||(Ff={}));var F1;(function(e){function t(r,s,i,o){return{uri:r,languageId:s,version:i,text:o}}e.create=t;function n(r){let s=r;return me.defined(s)&&me.string(s.uri)&&me.string(s.languageId)&&me.integer(s.version)&&me.string(s.text)}e.is=n})(F1||(F1={}));var Qr;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Qr||(Qr={}));var Bo;(function(e){function t(n){const r=n;return me.objectLiteral(n)&&Qr.is(r.kind)&&me.string(r.value)}e.is=t})(Bo||(Bo={}));var Bn;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Bn||(Bn={}));var an;(function(e){e.PlainText=1,e.Snippet=2})(an||(an={}));var T1;(function(e){e.Deprecated=1})(T1||(T1={}));var M1;(function(e){function t(r,s,i){return{newText:r,insert:s,replace:i}}e.create=t;function n(r){const s=r;return s&&me.string(s.newText)&&ze.is(s.insert)&&ze.is(s.replace)}e.is=n})(M1||(M1={}));var Tf;(function(e){e.asIs=1,e.adjustIndentation=2})(Tf||(Tf={}));var O1;(function(e){function t(n){const r=n;return r&&(me.string(r.detail)||r.detail===void 0)&&(me.string(r.description)||r.description===void 0)}e.is=t})(O1||(O1={}));var Mf;(function(e){function t(n){return{label:n}}e.create=t})(Mf||(Mf={}));var Of;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Of||(Of={}));var kl;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const s=r;return me.string(s)||me.objectLiteral(s)&&me.string(s.language)&&me.string(s.value)}e.is=n})(kl||(kl={}));var R1;(function(e){function t(n){let r=n;return!!r&&me.objectLiteral(r)&&(Bo.is(r.contents)||kl.is(r.contents)||me.typedArray(r.contents,kl.is))&&(n.range===void 0||ze.is(n.range))}e.is=t})(R1||(R1={}));var P1;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(P1||(P1={}));var I1;(function(e){function t(n,r,...s){let i={label:n};return me.defined(r)&&(i.documentation=r),me.defined(s)?i.parameters=s:i.parameters=[],i}e.create=t})(I1||(I1={}));var B1;(function(e){e.Text=1,e.Read=2,e.Write=3})(B1||(B1={}));var $1;(function(e){function t(n,r){let s={range:n};return me.number(r)&&(s.kind=r),s}e.create=t})($1||($1={}));var Nr;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Nr||(Nr={}));var V1;(function(e){e.Deprecated=1})(V1||(V1={}));var j1;(function(e){function t(n,r,s,i,o){let l={name:n,kind:r,location:{uri:i,range:s}};return o&&(l.containerName=o),l}e.create=t})(j1||(j1={}));var U1;(function(e){function t(n,r,s,i){return i!==void 0?{name:n,kind:r,location:{uri:s,range:i}}:{name:n,kind:r,location:{uri:s}}}e.create=t})(U1||(U1={}));var q1;(function(e){function t(r,s,i,o,l,u){let c={name:r,detail:s,kind:i,range:o,selectionRange:l};return u!==void 0&&(c.children=u),c}e.create=t;function n(r){let s=r;return s&&me.string(s.name)&&me.number(s.kind)&&ze.is(s.range)&&ze.is(s.selectionRange)&&(s.detail===void 0||me.string(s.detail))&&(s.deprecated===void 0||me.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=n})(q1||(q1={}));var Hr;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Hr||(Hr={}));var _l;(function(e){e.Invoked=1,e.Automatic=2})(_l||(_l={}));var W1;(function(e){function t(r,s,i){let o={diagnostics:r};return s!=null&&(o.only=s),i!=null&&(o.triggerKind=i),o}e.create=t;function n(r){let s=r;return me.defined(s)&&me.typedArray(s.diagnostics,Un.is)&&(s.only===void 0||me.typedArray(s.only,me.string))&&(s.triggerKind===void 0||s.triggerKind===_l.Invoked||s.triggerKind===_l.Automatic)}e.is=n})(W1||(W1={}));var xr;(function(e){function t(r,s,i){let o={title:r},l=!0;return typeof s=="string"?(l=!1,o.kind=s):qs.is(s)?o.command=s:o.edit=s,l&&i!==void 0&&(o.kind=i),o}e.create=t;function n(r){let s=r;return s&&me.string(s.title)&&(s.diagnostics===void 0||me.typedArray(s.diagnostics,Un.is))&&(s.kind===void 0||me.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||qs.is(s.command))&&(s.isPreferred===void 0||me.boolean(s.isPreferred))&&(s.edit===void 0||_f.is(s.edit))}e.is=n})(xr||(xr={}));var Rf;(function(e){function t(r,s){let i={range:r};return me.defined(s)&&(i.data=s),i}e.create=t;function n(r){let s=r;return me.defined(s)&&ze.is(s.range)&&(me.undefined(s.command)||qs.is(s.command))}e.is=n})(Rf||(Rf={}));var H1;(function(e){function t(r,s){return{tabSize:r,insertSpaces:s}}e.create=t;function n(r){let s=r;return me.defined(s)&&me.uinteger(s.tabSize)&&me.boolean(s.insertSpaces)}e.is=n})(H1||(H1={}));var Y1;(function(e){function t(r,s,i){return{range:r,target:s,data:i}}e.create=t;function n(r){let s=r;return me.defined(s)&&ze.is(s.range)&&(me.undefined(s.target)||me.string(s.target))}e.is=n})(Y1||(Y1={}));var Fl;(function(e){function t(r,s){return{range:r,parent:s}}e.create=t;function n(r){let s=r;return me.objectLiteral(s)&&ze.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=n})(Fl||(Fl={}));var z1;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(z1||(z1={}));var G1;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(G1||(G1={}));var J1;(function(e){function t(n){const r=n;return me.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(J1||(J1={}));var Q1;(function(e){function t(r,s){return{range:r,text:s}}e.create=t;function n(r){const s=r;return s!=null&&ze.is(s.range)&&me.string(s.text)}e.is=n})(Q1||(Q1={}));var K1;(function(e){function t(r,s,i){return{range:r,variableName:s,caseSensitiveLookup:i}}e.create=t;function n(r){const s=r;return s!=null&&ze.is(s.range)&&me.boolean(s.caseSensitiveLookup)&&(me.string(s.variableName)||s.variableName===void 0)}e.is=n})(K1||(K1={}));var X1;(function(e){function t(r,s){return{range:r,expression:s}}e.create=t;function n(r){const s=r;return s!=null&&ze.is(s.range)&&(me.string(s.expression)||s.expression===void 0)}e.is=n})(X1||(X1={}));var Z1;(function(e){function t(r,s){return{frameId:r,stoppedLocation:s}}e.create=t;function n(r){const s=r;return me.defined(s)&&ze.is(r.stoppedLocation)}e.is=n})(Z1||(Z1={}));var Pf;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Pf||(Pf={}));var If;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&(s.tooltip===void 0||me.string(s.tooltip)||Bo.is(s.tooltip))&&(s.location===void 0||$i.is(s.location))&&(s.command===void 0||qs.is(s.command))}e.is=n})(If||(If={}));var e0;(function(e){function t(r,s,i){const o={position:r,label:s};return i!==void 0&&(o.kind=i),o}e.create=t;function n(r){const s=r;return me.objectLiteral(s)&&sn.is(s.position)&&(me.string(s.label)||me.typedArray(s.label,If.is))&&(s.kind===void 0||Pf.is(s.kind))&&s.textEdits===void 0||me.typedArray(s.textEdits,$t.is)&&(s.tooltip===void 0||me.string(s.tooltip)||Bo.is(s.tooltip))&&(s.paddingLeft===void 0||me.boolean(s.paddingLeft))&&(s.paddingRight===void 0||me.boolean(s.paddingRight))}e.is=n})(e0||(e0={}));var t0;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(t0||(t0={}));var n0;(function(e){function t(n,r,s,i){return{insertText:n,filterText:r,range:s,command:i}}e.create=t})(n0||(n0={}));var r0;(function(e){function t(n){return{items:n}}e.create=t})(r0||(r0={}));var s0;(function(e){e.Invoked=0,e.Automatic=1})(s0||(s0={}));var i0;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(i0||(i0={}));var o0;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(o0||(o0={}));var a0;(function(e){function t(n){const r=n;return me.objectLiteral(r)&&vf.is(r.uri)&&me.string(r.name)}e.is=t})(a0||(a0={}));var l0;(function(e){function t(i,o,l,u){return new Ly(i,o,l,u)}e.create=t;function n(i){let o=i;return!!(me.defined(o)&&me.string(o.uri)&&(me.undefined(o.languageId)||me.string(o.languageId))&&me.uinteger(o.lineCount)&&me.func(o.getText)&&me.func(o.positionAt)&&me.func(o.offsetAt))}e.is=n;function r(i,o){let l=i.getText(),u=s(o,(g,d)=>{let y=g.range.start.line-d.range.start.line;return y===0?g.range.start.character-d.range.start.character:y}),c=l.length;for(let g=u.length-1;g>=0;g--){let d=u[g],y=i.offsetAt(d.range.start),w=i.offsetAt(d.range.end);if(w<=c)l=l.substring(0,y)+d.newText+l.substring(w,l.length);else throw new Error("Overlapping edit");c=y}return l}e.applyEdits=r;function s(i,o){if(i.length<=1)return i;const l=i.length/2|0,u=i.slice(0,l),c=i.slice(l);s(u,o),s(c,o);let g=0,d=0,y=0;for(;g<u.length&&d<c.length;)o(u[g],c[d])<=0?i[y++]=u[g++]:i[y++]=c[d++];for(;g<u.length;)i[y++]=u[g++];for(;d<c.length;)i[y++]=c[d++];return i}})(l0||(l0={}));class Ly{constructor(t,n,r,s){this._uri=t,this._languageId=n,this._version=r,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let s=0;s<n.length;s++){r&&(t.push(s),r=!1);let i=n.charAt(s);r=i==="\r"||i===`
19
- `,i==="\r"&&s+1<n.length&&n.charAt(s+1)===`
20
- `&&s++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,s=n.length;if(s===0)return sn.create(0,t);for(;r<s;){let o=Math.floor((r+s)/2);n[o]>t?s=o:r=o+1}let i=r-1;return sn.create(i,t-n[i])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],s=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,s),r)}get lineCount(){return this.getLineOffsets().length}}var me;(function(e){const t=Object.prototype.toString;function n(w){return typeof w<"u"}e.defined=n;function r(w){return typeof w>"u"}e.undefined=r;function s(w){return w===!0||w===!1}e.boolean=s;function i(w){return t.call(w)==="[object String]"}e.string=i;function o(w){return t.call(w)==="[object Number]"}e.number=o;function l(w,k,A){return t.call(w)==="[object Number]"&&k<=w&&w<=A}e.numberRange=l;function u(w){return t.call(w)==="[object Number]"&&-2147483648<=w&&w<=2147483647}e.integer=u;function c(w){return t.call(w)==="[object Number]"&&0<=w&&w<=2147483647}e.uinteger=c;function g(w){return t.call(w)==="[object Function]"}e.func=g;function d(w){return w!==null&&typeof w=="object"}e.objectLiteral=d;function y(w,k){return Array.isArray(w)&&w.every(k)}e.typedArray=y})(me||(me={}));const hh=Symbol.for("yaml.alias"),Bf=Symbol.for("yaml.document"),Ss=Symbol.for("yaml.map"),hm=Symbol.for("yaml.pair"),_r=Symbol.for("yaml.scalar"),Wi=Symbol.for("yaml.seq"),sr=Symbol.for("yaml.node.type"),Fr=e=>!!e&&typeof e=="object"&&e[sr]===hh,Hi=e=>!!e&&typeof e=="object"&&e[sr]===Bf,Jt=e=>!!e&&typeof e=="object"&&e[sr]===Ss,Nt=e=>!!e&&typeof e=="object"&&e[sr]===hm,Xe=e=>!!e&&typeof e=="object"&&e[sr]===_r,Gt=e=>!!e&&typeof e=="object"&&e[sr]===Wi;function Wt(e){if(e&&typeof e=="object")switch(e[sr]){case Ss:case Wi:return!0}return!1}function St(e){if(e&&typeof e=="object")switch(e[sr]){case hh:case Ss:case _r:case Wi:return!0}return!1}const Cy=e=>(Xe(e)||Wt(e))&&!!e.anchor,Ps=Symbol("break visit"),ky=Symbol("skip children"),_o=Symbol("remove node");function It(e,t){const n=_y(t);Hi(e)?Ci(null,e.contents,n,Object.freeze([e]))===_o&&(e.contents=null):Ci(null,e,n,Object.freeze([]))}It.BREAK=Ps;It.SKIP=ky;It.REMOVE=_o;function Ci(e,t,n,r){const s=Fy(e,t,n,r);if(St(s)||Nt(s))return Ty(e,r,s),Ci(e,s,n,r);if(typeof s!="symbol"){if(Wt(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const o=Ci(i,t.items[i],n,r);if(typeof o=="number")i=o-1;else{if(o===Ps)return Ps;o===_o&&(t.items.splice(i,1),i-=1)}}}else if(Nt(t)){r=Object.freeze(r.concat(t));const i=Ci("key",t.key,n,r);if(i===Ps)return Ps;i===_o&&(t.key=null);const o=Ci("value",t.value,n,r);if(o===Ps)return Ps;o===_o&&(t.value=null)}}return s}function _y(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Fy(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(Jt(t))return n.Map?.(e,t,r);if(Gt(t))return n.Seq?.(e,t,r);if(Nt(t))return n.Pair?.(e,t,r);if(Xe(t))return n.Scalar?.(e,t,r);if(Fr(t))return n.Alias?.(e,t,r)}function Ty(e,t,n){const r=t[t.length-1];if(Wt(r))r.items[e]=n;else if(Nt(r))e==="key"?r.key=n:r.value=n;else if(Hi(r))r.contents=n;else{const s=Fr(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const My={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Oy=e=>e.replace(/[!,[\]{}]/g,t=>My[t]);class vn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},vn.defaultYaml,t),this.tags=Object.assign({},vn.defaultTags,n)}clone(){const t=new vn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new vn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:vn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},vn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:vn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},vn.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,o]=r;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,o),!1}}default:return n(0,`Unknown directive ${s}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,s]=t.match(/^(.*!)([^!]*)$/s);s||n(`The ${t} tag has no suffix`);const i=this.tags[r];if(i)try{return i+decodeURIComponent(s)}catch(o){return n(String(o)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Oy(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(t&&r.length>0&&St(t.contents)){const i={};It(t.contents,(o,l)=>{St(l)&&l.tag&&(i[l.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of r)i==="!!"&&o==="tag:yaml.org,2002:"||(!t||s.some(l=>l.startsWith(o)))&&n.push(`%TAG ${i} ${o}`);return n.join(`
21
- `)}}vn.defaultYaml={explicit:!1,version:"1.2"};vn.defaultTags={"!!":"tag:yaml.org,2002:"};function dm(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function mm(e){const t=new Set;return It(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function gm(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ry(e,t){const n=[],r=new Map;let s=null;return{onAnchor:i=>{n.push(i),s||(s=mm(e));const o=gm(t,s);return s.add(o),o},setAnchors:()=>{for(const i of n){const o=r.get(i);if(typeof o=="object"&&o.anchor&&(Xe(o.node)||Wt(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=i,l}}},sourceObjects:r}}function ki(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,i=r.length;s<i;++s){const o=r[s],l=ki(e,r,String(s),o);l===void 0?delete r[s]:l!==o&&(r[s]=l)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const i=r.get(s),o=ki(e,r,s,i);o===void 0?r.delete(s):o!==i&&r.set(s,o)}else if(r instanceof Set)for(const s of Array.from(r)){const i=ki(e,r,s,s);i===void 0?r.delete(s):i!==s&&(r.delete(s),r.add(i))}else for(const[s,i]of Object.entries(r)){const o=ki(e,r,s,i);o===void 0?delete r[s]:o!==i&&(r[s]=o)}return e.call(t,n,r)}function rr(e,t,n){if(Array.isArray(e))return e.map((r,s)=>rr(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!Cy(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return typeof e=="bigint"&&!n?.keep?Number(e):e}class dh{constructor(t){Object.defineProperty(this,sr,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!Hi(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=rr(this,"",o);if(typeof s=="function")for(const{count:u,res:c}of o.anchors.values())s(c,u);return typeof i=="function"?ki(i,{"":l},"",l):l}}class mh extends dh{constructor(t){super(hh),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return It(t,{Node:(r,s)=>{if(s===this)return It.BREAK;s.anchor===this.source&&(n=s)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:i}=n,o=this.resolve(s);if(!o){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let l=r.get(o);if(l||(rr(o,null,n),l=r.get(o)),!l||l.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(i>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=sl(s,o,r)),l.count*l.aliasCount>i)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return l.res}toString(t,n,r){const s=`*${this.source}`;if(t){if(dm(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${s} `}return s}}function sl(e,t,n){if(Fr(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(Wt(t)){let r=0;for(const s of t.items){const i=sl(e,s,n);i>r&&(r=i)}return r}else if(Nt(t)){const r=sl(e,t.key,n),s=sl(e,t.value,n);return Math.max(r,s)}return 1}const pm=e=>!e||typeof e!="function"&&typeof e!="object";class Ze extends dh{constructor(t){super(_r),this.value=t}toJSON(t,n){return n?.keep?this.value:rr(this.value,t,n)}toString(){return String(this.value)}}Ze.BLOCK_FOLDED="BLOCK_FOLDED";Ze.BLOCK_LITERAL="BLOCK_LITERAL";Ze.PLAIN="PLAIN";Ze.QUOTE_DOUBLE="QUOTE_DOUBLE";Ze.QUOTE_SINGLE="QUOTE_SINGLE";const Py="tag:yaml.org,2002:";function Iy(e,t,n){if(t){const r=n.filter(i=>i.tag===t),s=r.find(i=>!i.format)??r[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find(r=>r.identify?.(e)&&!r.format)}function $o(e,t,n){if(Hi(e)&&(e=e.contents),St(e))return e;if(Nt(e)){const d=n.schema[Ss].createNode?.(n.schema,null,n);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:s,onTagObj:i,schema:o,sourceObjects:l}=n;let u;if(r&&e&&typeof e=="object"){if(u=l.get(e),u)return u.anchor||(u.anchor=s(e)),new mh(u.anchor);u={anchor:null,node:null},l.set(e,u)}t?.startsWith("!!")&&(t=Py+t.slice(2));let c=Iy(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new Ze(e);return u&&(u.node=d),d}c=e instanceof Map?o[Ss]:Symbol.iterator in Object(e)?o[Wi]:o[Ss]}i&&(i(c),delete n.onTagObj);const g=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new Ze(e);return t?g.tag=t:c.default||(g.tag=c.tag),u&&(u.node=g),g}function Tl(e,t,n){let r=n;for(let s=t.length-1;s>=0;--s){const i=t[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=r,r=o}else r=new Map([[i,r]])}return $o(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const xo=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class bm extends dh{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>St(r)||Nt(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(xo(t))this.add(n);else{const[r,...s]=t,i=this.get(r,!0);if(Wt(i))i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Tl(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const s=this.get(n,!0);if(Wt(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...s]=t,i=this.get(r,!0);return s.length===0?!n&&Xe(i)?i.value:i:Wt(i)?i.getIn(s,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Nt(n))return!1;const r=n.value;return r==null||t&&Xe(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const s=this.get(n,!0);return Wt(s)?s.hasIn(r):!1}setIn(t,n){const[r,...s]=t;if(s.length===0)this.set(r,n);else{const i=this.get(r,!0);if(Wt(i))i.setIn(s,n);else if(i===void 0&&this.schema)this.set(r,Tl(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}const By=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Yr(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const $s=(e,t,n)=>e.endsWith(`
22
- `)?Yr(n,t):n.includes(`
23
- `)?`
24
- `+Yr(n,t):(e.endsWith(" ")?"":" ")+n,ym="flow",$f="block",il="quoted";function Vl(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:l}={}){if(!s||s<0)return e;s<i&&(i=0);const u=Math.max(1+i,1+s-t.length);if(e.length<=u)return e;const c=[],g={};let d=s-t.length;typeof r=="number"&&(r>s-Math.max(2,i)?c.push(0):d=s-r);let y,w,k=!1,A=-1,E=-1,P=-1;n===$f&&(A=u0(e,A,t.length),A!==-1&&(d=A+u));for(let H;H=e[A+=1];){if(n===il&&H==="\\"){switch(E=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}P=A}if(H===`
25
- `)n===$f&&(A=u0(e,A,t.length)),d=A+t.length+u,y=void 0;else{if(H===" "&&w&&w!==" "&&w!==`
26
- `&&w!==" "){const z=e[A+1];z&&z!==" "&&z!==`
27
- `&&z!==" "&&(y=A)}if(A>=d)if(y)c.push(y),d=y+u,y=void 0;else if(n===il){for(;w===" "||w===" ";)w=H,H=e[A+=1],k=!0;const z=A>P+1?A-2:E-1;if(g[z])return e;c.push(z),g[z]=!0,d=z+u,y=void 0}else k=!0}w=H}if(k&&l&&l(),c.length===0)return e;o&&o();let j=e.slice(0,c[0]);for(let H=0;H<c.length;++H){const z=c[H],M=c[H+1]||e.length;z===0?j=`
28
- ${t}${e.slice(0,M)}`:(n===il&&g[z]&&(j+=`${e[z]}\\`),j+=`
29
- ${t}${e.slice(z+1,M)}`)}return j}function u0(e,t,n){let r=t,s=t+1,i=e[s];for(;i===" "||i===" ";)if(t<s+n)i=e[++t];else{do i=e[++t];while(i&&i!==`
30
- `);r=t,s=t+1,i=e[s]}return r}const jl=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Ul=e=>/^(%|---|\.\.\.)/m.test(e);function $y(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let i=0,o=0;i<s;++i)if(e[i]===`
31
- `){if(i-o>r)return!0;if(o=i+1,s-o<=r)return!1}return!0}function Fo(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Ul(e)?" ":"");let o="",l=0;for(let u=0,c=n[u];c;c=n[++u])if(c===" "&&n[u+1]==="\\"&&n[u+2]==="n"&&(o+=n.slice(l,u)+"\\ ",u+=1,l=u,c="\\"),c==="\\")switch(n[u+1]){case"u":{o+=n.slice(l,u);const g=n.substr(u+2,4);switch(g){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:g.substr(0,2)==="00"?o+="\\x"+g.substr(2):o+=n.substr(u,6)}u+=5,l=u+1}break;case"n":if(r||n[u+2]==='"'||n.length<s)u+=1;else{for(o+=n.slice(l,u)+`
32
-
33
- `;n[u+2]==="\\"&&n[u+3]==="n"&&n[u+4]!=='"';)o+=`
34
- `,u+=2;o+=i,n[u+2]===" "&&(o+="\\"),u+=1,l=u+1}break;default:u+=1}return o=l?o+n.slice(l):n,r?o:Vl(o,i,il,jl(t,!1))}function Vf(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
35
- `)||/[ \t]\n|\n[ \t]/.test(e))return Fo(e,t);const n=t.indent||(Ul(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
36
- ${n}`)+"'";return t.implicitKey?r:Vl(r,n,ym,jl(t,!1))}function _i(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Fo;else{const s=e.includes('"'),i=e.includes("'");s&&!i?r=Vf:i&&!s?r=Fo:r=n?Vf:Fo}return r(e,t)}let jf;try{jf=new RegExp(`(^|(?<!
37
- ))
38
- +(?!
39
- |$)`,"g")}catch{jf=/\n+(?!\n|$)/g}function ol({comment:e,type:t,value:n},r,s,i){const{blockQuote:o,commentString:l,lineWidth:u}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return _i(n,r);const c=r.indent||(r.forceBlockIndent||Ul(n)?" ":""),g=o==="literal"?!0:o==="folded"||t===Ze.BLOCK_FOLDED?!1:t===Ze.BLOCK_LITERAL?!0:!$y(n,u,c.length);if(!n)return g?`|
40
- `:`>
41
- `;let d,y;for(y=n.length;y>0;--y){const M=n[y-1];if(M!==`
42
- `&&M!==" "&&M!==" ")break}let w=n.substring(y);const k=w.indexOf(`
43
- `);k===-1?d="-":n===w||k!==w.length-1?(d="+",i&&i()):d="",w&&(n=n.slice(0,-w.length),w[w.length-1]===`
44
- `&&(w=w.slice(0,-1)),w=w.replace(jf,`$&${c}`));let A=!1,E,P=-1;for(E=0;E<n.length;++E){const M=n[E];if(M===" ")A=!0;else if(M===`
45
- `)P=E;else break}let j=n.substring(0,P<E?P+1:E);j&&(n=n.substring(j.length),j=j.replace(/\n+/g,`$&${c}`));let z=(A?c?"2":"1":"")+d;if(e&&(z+=" "+l(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!g){const M=n.replace(/\n+/g,`
46
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let T=!1;const Y=jl(r,!0);o!=="folded"&&t!==Ze.BLOCK_FOLDED&&(Y.onOverflow=()=>{T=!0});const K=Vl(`${j}${M}${w}`,c,$f,Y);if(!T)return`>${z}
47
- ${c}${K}`}return n=n.replace(/\n+/g,`$&${c}`),`|${z}
48
- ${c}${j}${n}${w}`}function Vy(e,t,n,r){const{type:s,value:i}=e,{actualString:o,implicitKey:l,indent:u,indentStep:c,inFlow:g}=t;if(l&&i.includes(`
49
- `)||g&&/[[\]{},]/.test(i))return _i(i,t);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return l||g||!i.includes(`
50
- `)?_i(i,t):ol(e,t,n,r);if(!l&&!g&&s!==Ze.PLAIN&&i.includes(`
51
- `))return ol(e,t,n,r);if(Ul(i)){if(u==="")return t.forceBlockIndent=!0,ol(e,t,n,r);if(l&&u===c)return _i(i,t)}const d=i.replace(/\n+/g,`$&
52
- ${u}`);if(o){const y=A=>A.default&&A.tag!=="tag:yaml.org,2002:str"&&A.test?.test(d),{compat:w,tags:k}=t.doc.schema;if(k.some(y)||w?.some(y))return _i(i,t)}return l?d:Vl(d,u,ym,jl(t,!1))}function gh(e,t,n,r){const{implicitKey:s,inFlow:i}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==Ze.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=Ze.QUOTE_DOUBLE);const u=g=>{switch(g){case Ze.BLOCK_FOLDED:case Ze.BLOCK_LITERAL:return s||i?_i(o.value,t):ol(o,t,n,r);case Ze.QUOTE_DOUBLE:return Fo(o.value,t);case Ze.QUOTE_SINGLE:return Vf(o.value,t);case Ze.PLAIN:return Vy(o,t,n,r);default:return null}};let c=u(l);if(c===null){const{defaultKeyType:g,defaultStringType:d}=t.options,y=s&&g||d;if(c=u(y),c===null)throw new Error(`Unsupported default string type ${y}`)}return c}function vm(e,t){const n=Object.assign({blockQuote:!0,commentString:By,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function jy(e,t){if(t.tag){const s=e.filter(i=>i.tag===t.tag);if(s.length>0)return s.find(i=>i.format===t.format)??s[0]}let n,r;if(Xe(t)){r=t.value;let s=e.filter(i=>i.identify?.(r));if(s.length>1){const i=s.filter(o=>o.test);i.length>0&&(s=i)}n=s.find(i=>i.format===t.format)??s.find(i=>!i.format)}else r=t,n=e.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){const s=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function Uy(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],i=(Xe(e)||Wt(e))&&e.anchor;i&&dm(i)&&(n.add(i),s.push(`&${i}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&s.push(r.directives.tagString(o)),s.join(" ")}function ji(e,t,n,r){if(Nt(e))return e.toString(t,n,r);if(Fr(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s;const i=St(e)?e:t.doc.createNode(e,{onTagObj:u=>s=u});s||(s=jy(t.doc.schema.tags,i));const o=Uy(i,s,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const l=typeof s.stringify=="function"?s.stringify(i,t,n,r):Xe(i)?gh(i,t,n,r):i.toString(t,n,r);return o?Xe(i)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
53
- ${t.indent}${l}`:l}function qy({key:e,value:t},n,r,s){const{allNullValues:i,doc:o,indent:l,indentStep:u,options:{commentString:c,indentSeq:g,simpleKeys:d}}=n;let y=St(e)&&e.comment||null;if(d){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(Wt(e)||!St(e)&&typeof e=="object"){const Y="With simple keys, collection cannot be used as a key value";throw new Error(Y)}}let w=!d&&(!e||y&&t==null&&!n.inFlow||Wt(e)||(Xe(e)?e.type===Ze.BLOCK_FOLDED||e.type===Ze.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!w&&(d||!i),indent:l+u});let k=!1,A=!1,E=ji(e,n,()=>k=!0,()=>A=!0);if(!w&&!n.inFlow&&E.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(n.inFlow){if(i||t==null)return k&&r&&r(),E===""?"?":w?`? ${E}`:E}else if(i&&!d||t==null&&w)return E=`? ${E}`,y&&!k?E+=$s(E,n.indent,c(y)):A&&s&&s(),E;k&&(y=null),w?(y&&(E+=$s(E,n.indent,c(y))),E=`? ${E}
54
- ${l}:`):(E=`${E}:`,y&&(E+=$s(E,n.indent,c(y))));let P,j,H;St(t)?(P=!!t.spaceBefore,j=t.commentBefore,H=t.comment):(P=!1,j=null,H=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!w&&!y&&Xe(t)&&(n.indentAtStart=E.length+1),A=!1,!g&&u.length>=2&&!n.inFlow&&!w&&Gt(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let z=!1;const M=ji(t,n,()=>z=!0,()=>A=!0);let T=" ";if(y||P||j){if(T=P?`
55
- `:"",j){const Y=c(j);T+=`
56
- ${Yr(Y,n.indent)}`}M===""&&!n.inFlow?T===`
57
- `&&(T=`
58
-
59
- `):T+=`
60
- ${n.indent}`}else if(!w&&Wt(t)){const Y=M[0],K=M.indexOf(`
61
- `),W=K!==-1,re=n.inFlow??t.flow??t.items.length===0;if(W||!re){let ee=!1;if(W&&(Y==="&"||Y==="!")){let B=M.indexOf(" ");Y==="&"&&B!==-1&&B<K&&M[B+1]==="!"&&(B=M.indexOf(" ",B+1)),(B===-1||K<B)&&(ee=!0)}ee||(T=`
62
- ${n.indent}`)}}else(M===""||M[0]===`
63
- `)&&(T="");return E+=T+M,n.inFlow?z&&r&&r():H&&!z?E+=$s(E,n.indent,c(H)):A&&s&&s(),E}function Dm(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const Ia="<<",Kr={identify:e=>e===Ia||typeof e=="symbol"&&e.description===Ia,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ze(Symbol(Ia)),{addToJSMap:wm}),stringify:()=>Ia},Wy=(e,t)=>(Kr.identify(t)||Xe(t)&&(!t.type||t.type===Ze.PLAIN)&&Kr.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Kr.tag&&n.default);function wm(e,t,n){if(n=e&&Fr(n)?n.resolve(e.doc):n,Gt(n))for(const r of n.items)Mc(e,t,r);else if(Array.isArray(n))for(const r of n)Mc(e,t,r);else Mc(e,t,n)}function Mc(e,t,n){const r=e&&Fr(n)?n.resolve(e.doc):n;if(!Jt(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[i,o]of s)t instanceof Map?t.has(i)||t.set(i,o):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function Sm(e,t,{key:n,value:r}){if(St(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Wy(e,n))wm(e,t,r);else{const s=rr(n,"",e);if(t instanceof Map)t.set(s,rr(r,s,e));else if(t instanceof Set)t.add(s);else{const i=Hy(n,s,e),o=rr(r,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}function Hy(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(St(e)&&n?.doc){const r=vm(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),Dm(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}function ph(e,t,n){const r=$o(e,void 0,n),s=$o(t,void 0,n);return new Dn(r,s)}class Dn{constructor(t,n=null){Object.defineProperty(this,sr,{value:hm}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return St(n)&&(n=n.clone(t)),St(r)&&(r=r.clone(t)),new Dn(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return Sm(n,r,this)}toString(t,n,r){return t?.doc?qy(this,t,n,r):JSON.stringify(this)}}function Em(e,t,n){return(t.inFlow??e.flow?zy:Yy)(e,t,n)}function Yy({comment:e,items:t},n,{blockItemPrefix:r,flowChars:s,itemIndent:i,onChompKeep:o,onComment:l}){const{indent:u,options:{commentString:c}}=n,g=Object.assign({},n,{indent:i,type:null});let d=!1;const y=[];for(let k=0;k<t.length;++k){const A=t[k];let E=null;if(St(A))!d&&A.spaceBefore&&y.push(""),Ml(n,y,A.commentBefore,d),A.comment&&(E=A.comment);else if(Nt(A)){const j=St(A.key)?A.key:null;j&&(!d&&j.spaceBefore&&y.push(""),Ml(n,y,j.commentBefore,d))}d=!1;let P=ji(A,g,()=>E=null,()=>d=!0);E&&(P+=$s(P,i,c(E))),d&&E&&(d=!1),y.push(r+P)}let w;if(y.length===0)w=s.start+s.end;else{w=y[0];for(let k=1;k<y.length;++k){const A=y[k];w+=A?`
64
- ${u}${A}`:`
65
- `}}return e?(w+=`
66
- `+Yr(c(e),u),l&&l()):d&&o&&o(),w}function zy({items:e},t,{flowChars:n,itemIndent:r}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:l}}=t;r+=i;const u=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,g=0;const d=[];for(let k=0;k<e.length;++k){const A=e[k];let E=null;if(St(A))A.spaceBefore&&d.push(""),Ml(t,d,A.commentBefore,!1),A.comment&&(E=A.comment);else if(Nt(A)){const j=St(A.key)?A.key:null;j&&(j.spaceBefore&&d.push(""),Ml(t,d,j.commentBefore,!1),j.comment&&(c=!0));const H=St(A.value)?A.value:null;H?(H.comment&&(E=H.comment),H.commentBefore&&(c=!0)):A.value==null&&j?.comment&&(E=j.comment)}E&&(c=!0);let P=ji(A,u,()=>E=null);k<e.length-1&&(P+=","),E&&(P+=$s(P,r,l(E))),!c&&(d.length>g||P.includes(`
67
- `))&&(c=!0),d.push(P),g=d.length}const{start:y,end:w}=n;if(d.length===0)return y+w;if(!c){const k=d.reduce((A,E)=>A+E.length+2,2);c=t.options.lineWidth>0&&k>t.options.lineWidth}if(c){let k=y;for(const A of d)k+=A?`
68
- ${i}${s}${A}`:`
69
- `;return`${k}
70
- ${s}${w}`}else return`${y}${o}${d.join(" ")}${o}${w}`}function Ml({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const i=Yr(t(r),e);n.push(i.trimStart())}}function Vs(e,t){const n=Xe(t)?t.value:t;for(const r of e)if(Nt(r)&&(r.key===t||r.key===n||Xe(r.key)&&r.key.value===n))return r}class nr extends bm{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ss,t),this.items=[]}static from(t,n,r){const{keepUndefined:s,replacer:i}=r,o=new this(t),l=(u,c)=>{if(typeof i=="function")c=i.call(n,u,c);else if(Array.isArray(i)&&!i.includes(u))return;(c!==void 0||s)&&o.items.push(ph(u,c,r))};if(n instanceof Map)for(const[u,c]of n)l(u,c);else if(n&&typeof n=="object")for(const u of Object.keys(n))l(u,n[u]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){let r;Nt(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Dn(t,t?.value):r=new Dn(t.key,t.value);const s=Vs(this.items,r.key),i=this.schema?.sortMapEntries;if(s){if(!n)throw new Error(`Key ${r.key} already set`);Xe(s.value)&&pm(r.value)?s.value.value=r.value:s.value=r.value}else if(i){const o=this.items.findIndex(l=>i(r,l)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(t){const n=Vs(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const s=Vs(this.items,t)?.value;return(!n&&Xe(s)?s.value:s)??void 0}has(t){return!!Vs(this.items,t)}set(t,n){this.add(new Dn(t,n),!0)}toJSON(t,n,r){const s=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(s);for(const i of this.items)Sm(n,s,i);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!Nt(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Em(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Yi={collection:"map",default:!0,nodeClass:nr,tag:"tag:yaml.org,2002:map",resolve(e,t){return Jt(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>nr.from(e,t,n)};class Ws extends bm{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Wi,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Ba(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Ba(t);if(typeof r!="number")return;const s=this.items[r];return!n&&Xe(s)?s.value:s}has(t){const n=Ba(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Ba(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];Xe(s)&&pm(n)?s.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let s=0;for(const i of this.items)r.push(rr(i,String(s++),n));return r}toString(t,n,r){return t?Em(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let l of n){if(typeof s=="function"){const u=n instanceof Set?l:String(o++);l=s.call(n,u,l)}i.items.push($o(l,void 0,r))}}return i}}function Ba(e){let t=Xe(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const zi={collection:"seq",default:!0,nodeClass:Ws,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Gt(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Ws.from(e,t,n)},ql={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),gh(e,t,n,r)}},Wl={identify:e=>e==null,createNode:()=>new Ze(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ze(null),stringify:({source:e},t)=>typeof e=="string"&&Wl.test.test(e)?e:t.options.nullStr},bh={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ze(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&bh.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function yr({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const s=typeof r=="number"?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let l=t-(i.length-o-1);for(;l-- >0;)i+="0"}return i}const Am={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:yr},Nm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():yr(e)}},xm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ze(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:yr},Hl=e=>typeof e=="bigint"||Number.isInteger(e),yh=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Lm(e,t,n){const{value:r}=e;return Hl(r)&&r>=0?n+r.toString(t):yr(e)}const Cm={identify:e=>Hl(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>yh(e,2,8,n),stringify:e=>Lm(e,8,"0o")},km={identify:Hl,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>yh(e,0,10,n),stringify:yr},_m={identify:e=>Hl(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>yh(e,2,16,n),stringify:e=>Lm(e,16,"0x")},Gy=[Yi,zi,ql,Wl,bh,Cm,km,_m,Am,Nm,xm];function c0(e){return typeof e=="bigint"||Number.isInteger(e)}const $a=({value:e})=>JSON.stringify(e),Jy=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:$a},{identify:e=>e==null,createNode:()=>new Ze(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:$a},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:$a},{identify:c0,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>c0(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:$a}],Qy={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Ky=[Yi,zi].concat(Jy,Qy),vh={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let s=0;s<n.length;++s)r[s]=n.charCodeAt(s);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,s,i){if(!n)return"";const o=n;let l;if(typeof btoa=="function"){let u="";for(let c=0;c<o.length;++c)u+=String.fromCharCode(o[c]);l=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Ze.BLOCK_LITERAL),t!==Ze.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(l.length/u),g=new Array(c);for(let d=0,y=0;d<c;++d,y+=u)g[d]=l.substr(y,u);l=g.join(t===Ze.BLOCK_LITERAL?`
71
- `:" ")}return gh({comment:e,type:t,value:l},r,s,i)}};function Fm(e,t){if(Gt(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Nt(r)){if(Jt(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const s=r.items[0]||new Dn(new Ze(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
72
- ${s.key.commentBefore}`:r.commentBefore),r.comment){const i=s.value??s.key;i.comment=i.comment?`${r.comment}
73
- ${i.comment}`:r.comment}r=s}e.items[n]=Nt(r)?r:new Dn(r)}}else t("Expected a sequence for this tag");return e}function Tm(e,t,n){const{replacer:r}=n,s=new Ws(e);s.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(i++),o));let l,u;if(Array.isArray(o))if(o.length===2)l=o[0],u=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],u=o[l];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else l=o;s.items.push(ph(l,u,n))}return s}const Dh={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Fm,createNode:Tm};class Oi extends Ws{constructor(){super(),this.add=nr.prototype.add.bind(this),this.delete=nr.prototype.delete.bind(this),this.get=nr.prototype.get.bind(this),this.has=nr.prototype.has.bind(this),this.set=nr.prototype.set.bind(this),this.tag=Oi.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const s of this.items){let i,o;if(Nt(s)?(i=rr(s.key,"",n),o=rr(s.value,i,n)):i=rr(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}static from(t,n,r){const s=Tm(t,n,r),i=new this;return i.items=s.items,i}}Oi.tag="tag:yaml.org,2002:omap";const wh={collection:"seq",identify:e=>e instanceof Map,nodeClass:Oi,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Fm(e,t),r=[];for(const{key:s}of n.items)Xe(s)&&(r.includes(s.value)?t(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new Oi,n)},createNode:(e,t,n)=>Oi.from(e,t,n)};function Mm({value:e,source:t},n){return t&&(e?Om:Rm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Om={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ze(!0),stringify:Mm},Rm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ze(!1),stringify:Mm},Xy={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:yr},Zy={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():yr(e)}},e2={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ze(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:yr},Wo=e=>typeof e=="bigint"||Number.isInteger(e);function Yl(e,t,n,{intAsBigInt:r}){const s=e[0];if((s==="-"||s==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const o=BigInt(e);return s==="-"?BigInt(-1)*o:o}const i=parseInt(e,n);return s==="-"?-1*i:i}function Sh(e,t,n){const{value:r}=e;if(Wo(r)){const s=r.toString(t);return r<0?"-"+n+s.substr(1):n+s}return yr(e)}const t2={identify:Wo,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Yl(e,2,2,n),stringify:e=>Sh(e,2,"0b")},n2={identify:Wo,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Yl(e,1,8,n),stringify:e=>Sh(e,8,"0")},r2={identify:Wo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Yl(e,0,10,n),stringify:yr},s2={identify:Wo,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Yl(e,2,16,n),stringify:e=>Sh(e,16,"0x")};class Ri extends nr{constructor(t){super(t),this.tag=Ri.tag}add(t){let n;Nt(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Dn(t.key,null):n=new Dn(t,null),Vs(this.items,n.key)||this.items.push(n)}get(t,n){const r=Vs(this.items,t);return!n&&Nt(r)?Xe(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Vs(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Dn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof s=="function"&&(o=s.call(n,o,o)),i.items.push(ph(o,null,r));return i}}Ri.tag="tag:yaml.org,2002:set";const Eh={collection:"map",identify:e=>e instanceof Set,nodeClass:Ri,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Ri.from(e,t,n),resolve(e,t){if(Jt(e)){if(e.hasAllNullValues(!0))return Object.assign(new Ri,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ah(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,s=o=>t?BigInt(o):Number(o),i=r.replace(/_/g,"").split(":").reduce((o,l)=>o*s(60)+s(l),s(0));return n==="-"?s(-1)*i:i}function Pm(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return yr(e);let r="";t<0&&(r="-",t*=n(-1));const s=n(60),i=[t%s];return t<60?i.unshift(0):(t=(t-i[0])/s,i.unshift(t%s),t>=60&&(t=(t-i[0])/s,i.unshift(t))),r+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Im={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Ah(e,n),stringify:Pm},Bm={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Ah(e,!1),stringify:Pm},zl={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(zl.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,s,i,o,l]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,s,i||0,o||0,l||0,u);const g=t[8];if(g&&g!=="Z"){let d=Ah(g,!1);Math.abs(d)<30&&(d*=60),c-=6e4*d}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},f0=[Yi,zi,ql,Wl,Om,Rm,t2,n2,r2,s2,Xy,Zy,e2,vh,Kr,wh,Dh,Eh,Im,Bm,zl],h0=new Map([["core",Gy],["failsafe",[Yi,zi,ql]],["json",Ky],["yaml11",f0],["yaml-1.1",f0]]),d0={binary:vh,bool:bh,float:xm,floatExp:Nm,floatNaN:Am,floatTime:Bm,int:km,intHex:_m,intOct:Cm,intTime:Im,map:Yi,merge:Kr,null:Wl,omap:wh,pairs:Dh,seq:zi,set:Eh,timestamp:zl},i2={"tag:yaml.org,2002:binary":vh,"tag:yaml.org,2002:merge":Kr,"tag:yaml.org,2002:omap":wh,"tag:yaml.org,2002:pairs":Dh,"tag:yaml.org,2002:set":Eh,"tag:yaml.org,2002:timestamp":zl};function Oc(e,t,n){const r=h0.get(t);if(r&&!e)return n&&!r.includes(Kr)?r.concat(Kr):r.slice();let s=r;if(!s)if(Array.isArray(e))s=[];else{const i=Array.from(h0.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(const i of e)s=s.concat(i);else typeof e=="function"&&(s=e(s.slice()));return n&&(s=s.concat(Kr)),s.reduce((i,o)=>{const l=typeof o=="string"?d0[o]:o;if(!l){const u=JSON.stringify(o),c=Object.keys(d0).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${u}; use one of ${c}`)}return i.includes(l)||i.push(l),i},[])}const o2=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Nh{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(t)?Oc(t,"compat"):t?Oc(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?i2:{},this.tags=Oc(n,this.name,r),this.toStringOptions=l??null,Object.defineProperty(this,Ss,{value:Yi}),Object.defineProperty(this,_r,{value:ql}),Object.defineProperty(this,Wi,{value:zi}),this.sortMapEntries=typeof o=="function"?o:o===!0?o2:null}clone(){const t=Object.create(Nh.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function a2(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const s=vm(e,t),{commentString:i}=s.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=i(e.commentBefore);n.unshift(Yr(u,""))}let o=!1,l=null;if(e.contents){if(St(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const g=i(e.contents.commentBefore);n.push(Yr(g,""))}s.forceBlockIndent=!!e.comment,l=e.contents.comment}const u=l?void 0:()=>o=!0;let c=ji(e.contents,s,()=>l=null,u);l&&(c+=$s(c,"",i(l))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(ji(e.contents,s));if(e.directives?.docEnd)if(e.comment){const u=i(e.comment);u.includes(`
74
- `)?(n.push("..."),n.push(Yr(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&o&&(u=u.replace(/^\n+/,"")),u&&((!o||l)&&n[n.length-1]!==""&&n.push(""),n.push(Yr(i(u),"")))}return n.join(`
75
- `)+`
76
- `}class Ho{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,sr,{value:Bf});let s=null;typeof n=="function"||Array.isArray(n)?s=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:o}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new vn({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,s,r)}clone(){const t=Object.create(Ho.prototype,{[sr]:{value:Bf}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=St(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Si(this.contents)&&this.contents.add(t)}addIn(t,n){Si(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=mm(this);t.anchor=!n||r.has(n)?gm(n||"a",r):n}return new mh(t.anchor)}createNode(t,n,r){let s;if(typeof n=="function")t=n.call({"":t},"",t),s=n;else if(Array.isArray(n)){const E=j=>typeof j=="number"||j instanceof String||j instanceof Number,P=n.filter(E).map(String);P.length>0&&(n=n.concat(P)),s=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:l,keepUndefined:u,onTagObj:c,tag:g}=r??{},{onAnchor:d,setAnchors:y,sourceObjects:w}=Ry(this,o||"a"),k={aliasDuplicateObjects:i??!0,keepUndefined:u??!1,onAnchor:d,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:w},A=$o(t,g,k);return l&&Wt(A)&&(A.flow=!0),y(),A}createPair(t,n,r={}){const s=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Dn(s,i)}delete(t){return Si(this.contents)?this.contents.delete(t):!1}deleteIn(t){return xo(t)?this.contents==null?!1:(this.contents=null,!0):Si(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Wt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return xo(t)?!n&&Xe(this.contents)?this.contents.value:this.contents:Wt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Wt(this.contents)?this.contents.has(t):!1}hasIn(t){return xo(t)?this.contents!==void 0:Wt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Tl(this.schema,[t],n):Si(this.contents)&&this.contents.set(t,n)}setIn(t,n){xo(t)?this.contents=n:this.contents==null?this.contents=Tl(this.schema,Array.from(t),n):Si(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new vn({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new vn({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const s=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Nh(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:o}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},u=rr(this.contents,n??"",l);if(typeof i=="function")for(const{count:c,res:g}of l.anchors.values())i(g,c);return typeof o=="function"?ki(o,{"":u},"",u):u}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return a2(this,t)}}function Si(e){if(Wt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class $m extends Error{constructor(t,n,r,s){super(),this.name=t,this.code=r,this.message=s,this.pos=n}}class Lo extends $m{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class l2 extends $m{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const m0=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const l=Math.min(i-39,o.length-79);o="…"+o.substring(l),i-=l-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,i))){let l=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`…
77
- `),o=l+o}if(/[^ ]/.test(o)){let l=1;const u=n.linePos[1];u&&u.line===r&&u.col>s&&(l=Math.max(1,Math.min(u.col-s,80-i)));const c=" ".repeat(i)+"^".repeat(l);n.message+=`:
78
-
79
- ${o}
80
- ${c}
81
- `}};function Ui(e,{flow:t,indicator:n,next:r,offset:s,onError:i,parentIndent:o,startOnNewline:l}){let u=!1,c=l,g=l,d="",y="",w=!1,k=!1,A=null,E=null,P=null,j=null,H=null,z=null,M=null;for(const K of e)switch(k&&(K.type!=="space"&&K.type!=="newline"&&K.type!=="comma"&&i(K.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),k=!1),A&&(c&&K.type!=="comment"&&K.type!=="newline"&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),K.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&K.source.includes(" ")&&(A=K),g=!0;break;case"comment":{g||i(K,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const W=K.source.substring(1)||" ";d?d+=y+W:d=W,y="",c=!1;break}case"newline":c?d?d+=K.source:(!z||n!=="seq-item-ind")&&(u=!0):y+=K.source,c=!0,w=!0,(E||P)&&(j=K),g=!0;break;case"anchor":E&&i(K,"MULTIPLE_ANCHORS","A node can have at most one anchor"),K.source.endsWith(":")&&i(K.offset+K.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),E=K,M===null&&(M=K.offset),c=!1,g=!1,k=!0;break;case"tag":{P&&i(K,"MULTIPLE_TAGS","A node can have at most one tag"),P=K,M===null&&(M=K.offset),c=!1,g=!1,k=!0;break}case n:(E||P)&&i(K,"BAD_PROP_ORDER",`Anchors and tags must be after the ${K.source} indicator`),z&&i(K,"UNEXPECTED_TOKEN",`Unexpected ${K.source} in ${t??"collection"}`),z=K,c=n==="seq-item-ind"||n==="explicit-key-ind",g=!1;break;case"comma":if(t){H&&i(K,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),H=K,c=!1,g=!1;break}default:i(K,"UNEXPECTED_TOKEN",`Unexpected ${K.type} token`),c=!1,g=!1}const T=e[e.length-1],Y=T?T.offset+T.source.length:s;return k&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A&&(c&&A.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:H,found:z,spaceBefore:u,comment:d,hasNewline:w,anchor:E,tag:P,newlineAfterProp:j,end:Y,start:M??Y}}function Vo(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
82
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Vo(t.key)||Vo(t.value))return!0}return!1;default:return!0}}function Uf(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Vo(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Vm(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const s=typeof r=="function"?r:(i,o)=>i===o||Xe(i)&&Xe(o)&&i.value===o.value;return t.some(i=>s(i.key,n))}const g0="All mapping items must start at the same column";function u2({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=i?.nodeClass??nr,l=new o(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,c=null;for(const g of r.items){const{start:d,key:y,sep:w,value:k}=g,A=Ui(d,{indicator:"explicit-key-ind",next:y??w?.[0],offset:u,onError:s,parentIndent:r.indent,startOnNewline:!0}),E=!A.found;if(E){if(y&&(y.type==="block-seq"?s(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==r.indent&&s(u,"BAD_INDENT",g0)),!A.anchor&&!A.tag&&!w){c=A.end,A.comment&&(l.comment?l.comment+=`
83
- `+A.comment:l.comment=A.comment);continue}(A.newlineAfterProp||Vo(y))&&s(y??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else A.found?.indent!==r.indent&&s(u,"BAD_INDENT",g0);n.atKey=!0;const P=A.end,j=y?e(n,y,A,s):t(n,P,d,null,A,s);n.schema.compat&&Uf(r.indent,y,s),n.atKey=!1,Vm(n,l.items,j)&&s(P,"DUPLICATE_KEY","Map keys must be unique");const H=Ui(w??[],{indicator:"map-value-ind",next:k,offset:j.range[2],onError:s,parentIndent:r.indent,startOnNewline:!y||y.type==="block-scalar"});if(u=H.end,H.found){E&&(k?.type==="block-map"&&!H.hasNewline&&s(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&A.start<H.found.offset-1024&&s(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const z=k?e(n,k,H,s):t(n,u,w,null,H,s);n.schema.compat&&Uf(r.indent,k,s),u=z.range[2];const M=new Dn(j,z);n.options.keepSourceTokens&&(M.srcToken=g),l.items.push(M)}else{E&&s(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),H.comment&&(j.comment?j.comment+=`
84
- `+H.comment:j.comment=H.comment);const z=new Dn(j);n.options.keepSourceTokens&&(z.srcToken=g),l.items.push(z)}}return c&&c<u&&s(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,u,c??u],l}function c2({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=i?.nodeClass??Ws,l=new o(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let u=r.offset,c=null;for(const{start:g,value:d}of r.items){const y=Ui(g,{indicator:"seq-item-ind",next:d,offset:u,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||d)d&&d.type==="block-seq"?s(y.end,"BAD_INDENT","All sequence items must start at the same column"):s(u,"MISSING_CHAR","Sequence item without - indicator");else{c=y.end,y.comment&&(l.comment=y.comment);continue}const w=d?e(n,d,y,s):t(n,y.end,g,null,y,s);n.schema.compat&&Uf(r.indent,d,s),u=w.range[2],l.items.push(w)}return l.range=[r.offset,u,c??u],l}function Yo(e,t,n,r){let s="";if(e){let i=!1,o="";for(const l of e){const{source:u,type:c}=l;switch(c){case"space":i=!0;break;case"comment":{n&&!i&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const g=u.substring(1)||" ";s?s+=o+g:s=g,o="";break}case"newline":s&&(o+=u),i=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=u.length}}return{comment:s,offset:t}}const Rc="Block collections are not allowed within flow collections",Pc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function f2({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=r.start.source==="{",l=o?"flow map":"flow sequence",u=i?.nodeClass??(o?nr:Ws),c=new u(n.schema);c.flow=!0;const g=n.atRoot;g&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=r.offset+r.start.source.length;for(let E=0;E<r.items.length;++E){const P=r.items[E],{start:j,key:H,sep:z,value:M}=P,T=Ui(j,{flow:l,indicator:"explicit-key-ind",next:H??z?.[0],offset:d,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!z&&!M){E===0&&T.comma?s(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):E<r.items.length-1&&s(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),T.comment&&(c.comment?c.comment+=`
85
- `+T.comment:c.comment=T.comment),d=T.end;continue}!o&&n.options.strict&&Vo(H)&&s(H,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(E===0)T.comma&&s(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(T.comma||s(T.start,"MISSING_CHAR",`Missing , between ${l} items`),T.comment){let Y="";e:for(const K of j)switch(K.type){case"comma":case"space":break;case"comment":Y=K.source.substring(1);break e;default:break e}if(Y){let K=c.items[c.items.length-1];Nt(K)&&(K=K.value??K.key),K.comment?K.comment+=`
86
- `+Y:K.comment=Y,T.comment=T.comment.substring(Y.length+1)}}if(!o&&!z&&!T.found){const Y=M?e(n,M,T,s):t(n,T.end,z,null,T,s);c.items.push(Y),d=Y.range[2],Pc(M)&&s(Y.range,"BLOCK_IN_FLOW",Rc)}else{n.atKey=!0;const Y=T.end,K=H?e(n,H,T,s):t(n,Y,j,null,T,s);Pc(H)&&s(K.range,"BLOCK_IN_FLOW",Rc),n.atKey=!1;const W=Ui(z??[],{flow:l,indicator:"map-value-ind",next:M,offset:K.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(W.found){if(!o&&!T.found&&n.options.strict){if(z)for(const B of z){if(B===W.found)break;if(B.type==="newline"){s(B,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}T.start<W.found.offset-1024&&s(W.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else M&&("source"in M&&M.source&&M.source[0]===":"?s(M,"MISSING_CHAR",`Missing space after : in ${l}`):s(W.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const re=M?e(n,M,W,s):W.found?t(n,W.end,z,null,W,s):null;re?Pc(M)&&s(re.range,"BLOCK_IN_FLOW",Rc):W.comment&&(K.comment?K.comment+=`
87
- `+W.comment:K.comment=W.comment);const ee=new Dn(K,re);if(n.options.keepSourceTokens&&(ee.srcToken=P),o){const B=c;Vm(n,B.items,K)&&s(Y,"DUPLICATE_KEY","Map keys must be unique"),B.items.push(ee)}else{const B=new nr(n.schema);B.flow=!0,B.items.push(ee);const ae=(re??K).range;B.range=[K.range[0],ae[1],ae[2]],c.items.push(B)}d=re?re.range[2]:W.end}}const y=o?"}":"]",[w,...k]=r.end;let A=d;if(w&&w.source===y)A=w.offset+w.source.length;else{const E=l[0].toUpperCase()+l.substring(1),P=g?`${E} must end with a ${y}`:`${E} in block collection must be sufficiently indented and end with a ${y}`;s(d,g?"MISSING_CHAR":"BAD_INDENT",P),w&&w.source.length!==1&&k.unshift(w)}if(k.length>0){const E=Yo(k,A,n.options.strict,s);E.comment&&(c.comment?c.comment+=`
88
- `+E.comment:c.comment=E.comment),c.range=[r.offset,A,E.offset]}else c.range=[r.offset,A,A];return c}function Ic(e,t,n,r,s,i){const o=n.type==="block-map"?u2(e,t,n,r,i):n.type==="block-seq"?c2(e,t,n,r,i):f2(e,t,n,r,i),l=o.constructor;return s==="!"||s===l.tagName?(o.tag=l.tagName,o):(s&&(o.tag=s),o)}function h2(e,t,n,r,s){const i=r.tag,o=i?t.directives.tagName(i.source,y=>s(i,"TAG_RESOLVE_FAILED",y)):null;if(n.type==="block-seq"){const{anchor:y,newlineAfterProp:w}=r,k=y&&i?y.offset>i.offset?y:i:y??i;k&&(!w||w.offset<k.offset)&&s(k,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===nr.tagName&&l==="map"||o===Ws.tagName&&l==="seq")return Ic(e,t,n,s,o);let u=t.schema.tags.find(y=>y.tag===o&&y.collection===l);if(!u){const y=t.schema.knownTags[o];if(y&&y.collection===l)t.schema.tags.push(Object.assign({},y,{default:!1})),u=y;else return y?s(i,"BAD_COLLECTION_TYPE",`${y.tag} used for ${l} collection, but expects ${y.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Ic(e,t,n,s,o)}const c=Ic(e,t,n,s,o,u),g=u.resolve?.(c,y=>s(i,"TAG_RESOLVE_FAILED",y),t.options)??c,d=St(g)?g:new Ze(g);return d.range=c.range,d.tag=o,u?.format&&(d.format=u.format),d}function d2(e,t,n){const r=t.offset,s=m2(t,e.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const i=s.mode===">"?Ze.BLOCK_FOLDED:Ze.BLOCK_LITERAL,o=t.source?g2(t.source):[];let l=o.length;for(let A=o.length-1;A>=0;--A){const E=o[A][1];if(E===""||E==="\r")l=A;else break}if(l===0){const A=s.chomp==="+"&&o.length>0?`
89
- `.repeat(Math.max(1,o.length-1)):"";let E=r+s.length;return t.source&&(E+=t.source.length),{value:A,type:i,comment:s.comment,range:[r,E,E]}}let u=t.indent+s.indent,c=t.offset+s.length,g=0;for(let A=0;A<l;++A){const[E,P]=o[A];if(P===""||P==="\r")s.indent===0&&E.length>u&&(u=E.length);else{E.length<u&&n(c+E.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(u=E.length),g=A,u===0&&!e.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=E.length+P.length+1}for(let A=o.length-1;A>=l;--A)o[A][0].length>u&&(l=A+1);let d="",y="",w=!1;for(let A=0;A<g;++A)d+=o[A][0].slice(u)+`
90
- `;for(let A=g;A<l;++A){let[E,P]=o[A];c+=E.length+P.length+1;const j=P[P.length-1]==="\r";if(j&&(P=P.slice(0,-1)),P&&E.length<u){const z=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(c-P.length-(j?2:1),"BAD_INDENT",z),E=""}i===Ze.BLOCK_LITERAL?(d+=y+E.slice(u)+P,y=`
91
- `):E.length>u||P[0]===" "?(y===" "?y=`
92
- `:!w&&y===`
93
- `&&(y=`
94
-
95
- `),d+=y+E.slice(u)+P,y=`
96
- `,w=!0):P===""?y===`
97
- `?d+=`
98
- `:y=`
99
- `:(d+=y+P,y=" ",w=!1)}switch(s.chomp){case"-":break;case"+":for(let A=l;A<o.length;++A)d+=`
100
- `+o[A][0].slice(u);d[d.length-1]!==`
101
- `&&(d+=`
102
- `);break;default:d+=`
103
- `}const k=r+s.length+t.source.length;return{value:d,type:i,comment:s.comment,range:[r,k,k]}}function m2({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let o=0,l="",u=-1;for(let y=1;y<s.length;++y){const w=s[y];if(!l&&(w==="-"||w==="+"))l=w;else{const k=Number(w);!o&&k?o=k:u===-1&&(u=e+y)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let c=!1,g="",d=s.length;for(let y=1;y<t.length;++y){const w=t[y];switch(w.type){case"space":c=!0;case"newline":d+=w.source.length;break;case"comment":n&&!c&&r(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=w.source.length,g=w.source.substring(1);break;case"error":r(w,"UNEXPECTED_TOKEN",w.message),d+=w.source.length;break;default:{const k=`Unexpected token in block scalar header: ${w.type}`;r(w,"UNEXPECTED_TOKEN",k);const A=w.source;A&&typeof A=="string"&&(d+=A.length)}}}return{mode:i,indent:o,chomp:l,comment:g,length:d}}function g2(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)i.push([t[o],t[o+1]]);return i}function p2(e,t,n){const{offset:r,type:s,source:i,end:o}=e;let l,u;const c=(y,w,k)=>n(r+y,w,k);switch(s){case"scalar":l=Ze.PLAIN,u=b2(i,c);break;case"single-quoted-scalar":l=Ze.QUOTE_SINGLE,u=y2(i,c);break;case"double-quoted-scalar":l=Ze.QUOTE_DOUBLE,u=v2(i,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const g=r+i.length,d=Yo(o,g,t,n);return{value:u,type:l,comment:d.comment,range:[r,g,d.offset]}}function b2(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),jm(e)}function y2(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),jm(e.slice(1,-1)).replace(/''/g,"'")}function jm(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
104
- `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
105
- `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let s=r[1],i=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?i===`
106
- `?s+=i:i=`
107
- `:(s+=i+r[1],i=" "),o=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,r=l.exec(e),s+i+(r?.[1]??"")}function v2(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if(!(s==="\r"&&e[r+1]===`
108
- `))if(s===`
109
- `){const{fold:i,offset:o}=D2(e,r);n+=i,r=o}else if(s==="\\"){let i=e[++r];const o=w2[i];if(o)n+=o;else if(i===`
110
- `)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
111
- `)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const l={x:2,u:4,U:8}[i];n+=S2(e,r+1,l,t),r+=l}else{const l=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(s===" "||s===" "){const i=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
112
- `&&!(o==="\r"&&e[r+2]===`
113
- `)&&(n+=r>i?e.slice(i,r+1):s)}else n+=s}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function D2(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
114
- `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
115
- `);)r===`
116
- `&&(n+=`
117
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const w2={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
118
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function S2(e,t,n,r){const s=e.substr(t,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(o)){const l=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(o)}function Um(e,t,n,r){const{value:s,type:i,comment:o,range:l}=t.type==="block-scalar"?d2(e,t,r):p2(t,e.options.strict,r),u=n?e.directives.tagName(n.source,d=>r(n,"TAG_RESOLVE_FAILED",d)):null;let c;e.options.stringKeys&&e.atKey?c=e.schema[_r]:u?c=E2(e.schema,s,u,n,r):t.type==="scalar"?c=A2(e,s,t,r):c=e.schema[_r];let g;try{const d=c.resolve(s,y=>r(n??t,"TAG_RESOLVE_FAILED",y),e.options);g=Xe(d)?d:new Ze(d)}catch(d){const y=d instanceof Error?d.message:String(d);r(n??t,"TAG_RESOLVE_FAILED",y),g=new Ze(s)}return g.range=l,g.source=s,i&&(g.type=i),u&&(g.tag=u),c.format&&(g.format=c.format),o&&(g.comment=o),g}function E2(e,t,n,r,s){if(n==="!")return e[_r];const i=[];for(const l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)i.push(l);else return l;for(const l of i)if(l.test?.test(t))return l;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[_r])}function A2({atKey:e,directives:t,schema:n},r,s,i){const o=n.tags.find(l=>(l.default===!0||e&&l.default==="key")&&l.test?.test(r))||n[_r];if(n.compat){const l=n.compat.find(u=>u.default&&u.test?.test(r))??n[_r];if(o.tag!==l.tag){const u=t.tagString(o.tag),c=t.tagString(l.tag),g=`Value may be parsed as either ${u} or ${c}`;i(s,"TAG_RESOLVE_FAILED",g,!0)}}return o}function N2(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let s=t[r];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++r];s?.type==="space";)e+=s.source.length,s=t[++r];break}}return e}const x2={composeNode:qm,composeEmptyNode:xh};function qm(e,t,n,r){const s=e.atKey,{spaceBefore:i,comment:o,anchor:l,tag:u}=n;let c,g=!0;switch(t.type){case"alias":c=L2(e,t,r),(l||u)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Um(e,t,u,r),l&&(c.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=h2(x2,e,t,n,r),l&&(c.anchor=l.source.substring(1));break;default:{const d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",d),c=xh(e,t.offset,void 0,null,n,r),g=!1}}return l&&c.anchor===""&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!Xe(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(c.spaceBefore=!0),o&&(t.type==="scalar"&&t.source===""?c.comment=o:c.commentBefore=o),e.options.keepSourceTokens&&g&&(c.srcToken=t),c}function xh(e,t,n,r,{spaceBefore:s,comment:i,anchor:o,tag:l,end:u},c){const g={type:"scalar",offset:N2(t,n,r),indent:-1,source:""},d=Um(e,g,l,c);return o&&(d.anchor=o.source.substring(1),d.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(d.spaceBefore=!0),i&&(d.comment=i,d.range[2]=u),d}function L2({options:e},{offset:t,source:n,end:r},s){const i=new mh(n.substring(1));i.source===""&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,l=Yo(r,o,e.strict,s);return i.range=[t,o,l.offset],l.comment&&(i.comment=l.comment),i}function C2(e,t,{offset:n,start:r,value:s,end:i},o){const l=Object.assign({_directives:t},e),u=new Ho(void 0,l),c={atKey:!1,atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},g=Ui(r,{indicator:"doc-start",next:s??i?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});g.found&&(u.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!g.hasNewline&&o(g.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=s?qm(c,s,g,o):xh(c,g.end,r,null,g,o);const d=u.contents.range[2],y=Yo(i,d,!1,o);return y.comment&&(u.comment=y.comment),u.range=[n,d,y.offset],u}function Ao(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function p0(e){let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":r?`
119
-
120
- `:`
121
- `)+(i.substring(1)||" "),n=!0,r=!1;break;case"%":e[s+1]?.[0]!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Wm{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,s,i)=>{const o=Ao(n);i?this.warnings.push(new l2(o,r,s)):this.errors.push(new Lo(o,r,s))},this.directives=new vn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:s}=p0(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
122
- ${r}`:r;else if(s||t.directives.docStart||!i)t.commentBefore=r;else if(Wt(i)&&!i.flow&&i.items.length>0){let o=i.items[0];Nt(o)&&(o=o.key);const l=o.commentBefore;o.commentBefore=l?`${r}
123
- ${l}`:r}else{const o=i.commentBefore;i.commentBefore=o?`${r}
124
- ${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:p0(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const s of t)yield*this.next(s);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,s)=>{const i=Ao(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=C2(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Lo(Ao(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Lo(Ao(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Yo(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
125
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Lo(Ao(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),s=new Ho(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,n,n],this.decorate(s,!1),yield s}}}const Hm=e=>"type"in e?Ol(e):al(e);function Ol(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Ol(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=al(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=al(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=al(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function al({start:e,key:t,sep:n,value:r}){let s="";for(const i of e)s+=i.source;if(t&&(s+=Ol(t)),n)for(const i of n)s+=i.source;return r&&(s+=Ol(r)),s}const qf=Symbol("break visit"),k2=Symbol("skip children"),Ym=Symbol("remove item");function Hs(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),zm(Object.freeze([]),e,t)}Hs.BREAK=qf;Hs.SKIP=k2;Hs.REMOVE=Ym;Hs.itemAtPath=(e,t)=>{let n=e;for(const[r,s]of t){const i=n?.[r];if(i&&"items"in i)n=i.items[s];else return}return n};Hs.parentCollection=(e,t)=>{const n=Hs.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],s=n?.[r];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function zm(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const s of["key","value"]){const i=t[s];if(i&&"items"in i){for(let o=0;o<i.items.length;++o){const l=zm(Object.freeze(e.concat([[s,o]])),i.items[o],n);if(typeof l=="number")o=l-1;else{if(l===qf)return qf;l===Ym&&(i.items.splice(o,1),o-=1)}}typeof r=="function"&&s==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const Gm="\uFEFF",Jm="",Qm="",Wf="",_2=e=>!!e&&"items"in e,Bc=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function F2(e){switch(e){case Gm:return"byte-order-mark";case Jm:return"doc-mode";case Qm:return"flow-error-end";case Wf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
126
- `:case`\r
127
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function hr(e){switch(e){case void 0:case" ":case`
128
- `:case"\r":case" ":return!0;default:return!1}}const b0=new Set("0123456789ABCDEFabcdef"),T2=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Va=new Set(",[]{}"),M2=new Set(` ,[]{}
129
- \r `),$c=e=>!e||M2.has(e);class O2{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
130
- `?!0:n==="\r"?this.buffer[t+1]===`
131
- `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const s=this.buffer[r+t+1];if(s===`
132
- `||!s&&!this.atEnd)return t+r+1}return n===`
133
- `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&hr(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
134
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Gm&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const i=t[r-1];if(i===" "||i===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const s=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Jm,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&hr(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!hr(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&hr(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil($c),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&hr(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield Qm,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil($c),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||hr(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let s=r.indexOf(`
135
- `,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=r.indexOf(`
136
- `,i)}s!==-1&&(n=s-(r[s-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>hr(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
137
- `:t=i,n=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
138
- `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
139
- `,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
140
- `;)r=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)do{let i=t-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const l=i;for(;o===" ";)o=this.buffer[--i];if(o===`
141
- `&&i>=this.pos&&i+1+n>l)t=i;else break}while(!0);return yield Wf,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){const i=this.buffer[r+1];if(hr(i)||t&&Va.has(i))break;n=r}else if(hr(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
142
- `?(r+=1,s=`
143
- `,i=this.buffer[r+1]):n=r),i==="#"||t&&Va.has(i))break;if(s===`
144
- `){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&Va.has(s))break;n=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield Wf,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil($c))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(hr(n)||t&&Va.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!hr(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(T2.has(n))n=this.buffer[++t];else if(n==="%"&&b0.has(this.buffer[t+1])&&b0.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
145
- `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
146
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Km{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const s=this.lineStarts[n-1];return{line:n,col:t-s+1}}}}function gs(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function y0(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Xm(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ja(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Ei(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function v0(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!gs(t.start,"explicit-key-ind")&&!gs(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Xm(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Hf{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new O2,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=F2(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&v0(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const s=r.items[r.items.length-1];if(s.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=n;else{Object.assign(s,{key:n,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=r.items[r.items.length-1];s.value?r.items.push({start:[],value:n}):s.value=n;break}case"flow-collection":{const s=r.items[r.items.length-1];!s||s.value?r.items.push({start:[],key:n,sep:[]}):s.sep?s.value=n:Object.assign(s,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const s=n.items[n.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&y0(s.start)===-1&&(n.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=s.start:r.items.push({start:s.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{y0(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=ja(this.peek(2)),r=Ei(n);let s;t.end?(s=t.end,s.push(this.sourceToken),delete t.end):s=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
147
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
148
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,s=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(s&&n.sep&&!n.value){const o=[];for(let l=0;l<n.sep.length;++l){const u=n.sep[l];switch(u.type){case"newline":o.push(l);break;case"space":break;case"comment":u.indent>t.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(i=n.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":s||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):s||n.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(gs(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Xm(n.key)&&!gs(n.sep,"newline")){const o=Ei(n.start),l=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:l,sep:u}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(gs(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const o=Ei(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||s?t.items.push({start:i,key:null,sep:[this.sourceToken]}):gs(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);s||n.value?(t.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(o):(Object.assign(n,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(t);if(o){if(o.type==="block-seq"){if(!n.explicitKey&&n.sep&&!gs(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:i});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||gs(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:s,sep:[]}):n.sep?this.stack.push(s):Object.assign(n,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const s=ja(r),i=Ei(s);v0(t);const o=t.end.splice(1,t.end.length);o.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
149
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
150
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=ja(t),r=Ei(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=ja(t),r=Ei(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function R2(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Km||null,prettyErrors:t}}function P2(e,t={}){const{lineCounter:n,prettyErrors:r}=R2(t),s=new Hf(n?.addNewLine),i=new Wm(t);let o=null;for(const l of i.compose(s.parse(e),!0,e.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new Lo(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(m0(e,n)),o.warnings.forEach(m0(e,n))),o}function I2(e,t,n){let r;const s=P2(e,n);if(!s)return null;if(s.warnings.forEach(i=>Dm(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}function B2(e,t,n){let r=null;if(Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const s=Math.round(n);n=s<1?void 0:s>8?{indent:8}:{indent:s}}if(e===void 0){const{keepUndefined:s}=n??t??{};if(!s)return}return Hi(e)&&!r?e.toString(n):new Ho(e,r,n).toString(n)}function $2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc,D0;function V2(){if(D0)return Vc;D0=1;function e(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function t(s,i){for(var o="",l=0,u=-1,c=0,g,d=0;d<=s.length;++d){if(d<s.length)g=s.charCodeAt(d);else{if(g===47)break;g=47}if(g===47){if(!(u===d-1||c===1))if(u!==d-1&&c===2){if(o.length<2||l!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var y=o.lastIndexOf("/");if(y!==o.length-1){y===-1?(o="",l=0):(o=o.slice(0,y),l=o.length-1-o.lastIndexOf("/")),u=d,c=0;continue}}else if(o.length===2||o.length===1){o="",l=0,u=d,c=0;continue}}i&&(o.length>0?o+="/..":o="..",l=2)}else o.length>0?o+="/"+s.slice(u+1,d):o=s.slice(u+1,d),l=d-u-1;u=d,c=0}else g===46&&c!==-1?++c:c=-1}return o}function n(s,i){var o=i.dir||i.root,l=i.base||(i.name||"")+(i.ext||"");return o?o===i.root?o+l:o+s+l:l}var r={resolve:function(){for(var i="",o=!1,l,u=arguments.length-1;u>=-1&&!o;u--){var c;u>=0?c=arguments[u]:(l===void 0&&(l=process.cwd()),c=l),e(c),c.length!==0&&(i=c+"/"+i,o=c.charCodeAt(0)===47)}return i=t(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var o=i.charCodeAt(0)===47,l=i.charCodeAt(i.length-1)===47;return i=t(i,!o),i.length===0&&!o&&(i="."),i.length>0&&l&&(i+="/"),o?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,o=0;o<arguments.length;++o){var l=arguments[o];e(l),l.length>0&&(i===void 0?i=l:i+="/"+l)}return i===void 0?".":r.normalize(i)},relative:function(i,o){if(e(i),e(o),i===o||(i=r.resolve(i),o=r.resolve(o),i===o))return"";for(var l=1;l<i.length&&i.charCodeAt(l)===47;++l);for(var u=i.length,c=u-l,g=1;g<o.length&&o.charCodeAt(g)===47;++g);for(var d=o.length,y=d-g,w=c<y?c:y,k=-1,A=0;A<=w;++A){if(A===w){if(y>w){if(o.charCodeAt(g+A)===47)return o.slice(g+A+1);if(A===0)return o.slice(g+A)}else c>w&&(i.charCodeAt(l+A)===47?k=A:A===0&&(k=0));break}var E=i.charCodeAt(l+A),P=o.charCodeAt(g+A);if(E!==P)break;E===47&&(k=A)}var j="";for(A=l+k+1;A<=u;++A)(A===u||i.charCodeAt(A)===47)&&(j.length===0?j+="..":j+="/..");return j.length>0?j+o.slice(g+k):(g+=k,o.charCodeAt(g)===47&&++g,o.slice(g))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var o=i.charCodeAt(0),l=o===47,u=-1,c=!0,g=i.length-1;g>=1;--g)if(o=i.charCodeAt(g),o===47){if(!c){u=g;break}}else c=!1;return u===-1?l?"/":".":l&&u===1?"//":i.slice(0,u)},basename:function(i,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');e(i);var l=0,u=-1,c=!0,g;if(o!==void 0&&o.length>0&&o.length<=i.length){if(o.length===i.length&&o===i)return"";var d=o.length-1,y=-1;for(g=i.length-1;g>=0;--g){var w=i.charCodeAt(g);if(w===47){if(!c){l=g+1;break}}else y===-1&&(c=!1,y=g+1),d>=0&&(w===o.charCodeAt(d)?--d===-1&&(u=g):(d=-1,u=y))}return l===u?u=y:u===-1&&(u=i.length),i.slice(l,u)}else{for(g=i.length-1;g>=0;--g)if(i.charCodeAt(g)===47){if(!c){l=g+1;break}}else u===-1&&(c=!1,u=g+1);return u===-1?"":i.slice(l,u)}},extname:function(i){e(i);for(var o=-1,l=0,u=-1,c=!0,g=0,d=i.length-1;d>=0;--d){var y=i.charCodeAt(d);if(y===47){if(!c){l=d+1;break}continue}u===-1&&(c=!1,u=d+1),y===46?o===-1?o=d:g!==1&&(g=1):o!==-1&&(g=-1)}return o===-1||u===-1||g===0||g===1&&o===u-1&&o===l+1?"":i.slice(o,u)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){e(i);var o={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return o;var l=i.charCodeAt(0),u=l===47,c;u?(o.root="/",c=1):c=0;for(var g=-1,d=0,y=-1,w=!0,k=i.length-1,A=0;k>=c;--k){if(l=i.charCodeAt(k),l===47){if(!w){d=k+1;break}continue}y===-1&&(w=!1,y=k+1),l===46?g===-1?g=k:A!==1&&(A=1):g!==-1&&(A=-1)}return g===-1||y===-1||A===0||A===1&&g===y-1&&g===d+1?y!==-1&&(d===0&&u?o.base=o.name=i.slice(1,y):o.base=o.name=i.slice(d,y)):(d===0&&u?(o.name=i.slice(1,g),o.base=i.slice(1,y)):(o.name=i.slice(d,g),o.base=i.slice(d,y)),o.ext=i.slice(g,y)),d>0?o.dir=i.slice(0,d-1):u&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Vc=r,Vc}var Us=V2(),jc={exports:{}},w0;function j2(){return w0||(w0=1,function(e,t){(function(n){function r(){var s=n();return s.default||s}e.exports=r()})(function(){var n=Object.create,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=a=>{throw TypeError(a)},c=(a,f)=>()=>(f||a((f={exports:{}}).exports,f),f.exports),g=(a,f)=>{for(var p in f)r(a,p,{get:f[p],enumerable:!0})},d=(a,f,p,D)=>{if(f&&typeof f=="object"||typeof f=="function")for(let x of i(f))!l.call(a,x)&&x!==p&&r(a,x,{get:()=>f[x],enumerable:!(D=s(f,x))||D.enumerable});return a},y=(a,f,p)=>(p=a!=null?n(o(a)):{},d(r(p,"default",{value:a,enumerable:!0}),a)),w=a=>d(r({},"__esModule",{value:!0}),a),k=(a,f,p)=>f.has(a)||u("Cannot "+p),A=(a,f,p)=>f.has(a)?u("Cannot add the same private member more than once"):f instanceof WeakSet?f.add(a):f.set(a,p),E=(a,f,p)=>(k(a,f,"access private method"),p),P=c((a,f)=>{var p=new Proxy(String,{get:()=>p});f.exports=p}),j=c(a=>{Object.defineProperty(a,"__esModule",{value:!0});function f(){return new Proxy({},{get:()=>N=>N})}var p=/\r\n|[\n\r\u2028\u2029]/;function D(N,V,Z){let ne=Object.assign({column:0,line:-1},N.start),fe=Object.assign({},ne,N.end),{linesAbove:pe=2,linesBelow:Ce=3}=Z||{},ye=ne.line,xe=ne.column,Ee=fe.line,Me=fe.column,Ve=Math.max(ye-(pe+1),0),ct=Math.min(V.length,Ee+Ce);ye===-1&&(Ve=0),Ee===-1&&(ct=V.length);let xt=Ee-ye,Qe={};if(xt)for(let ot=0;ot<=xt;ot++){let Dt=ot+ye;if(!xe)Qe[Dt]=!0;else if(ot===0){let Zt=V[Dt-1].length;Qe[Dt]=[xe,Zt-xe+1]}else if(ot===xt)Qe[Dt]=[0,Me];else{let Zt=V[Dt-ot].length;Qe[Dt]=[0,Zt]}}else xe===Me?xe?Qe[ye]=[xe,0]:Qe[ye]=!0:Qe[ye]=[xe,Me-xe];return{start:Ve,end:ct,markerLines:Qe}}function x(N,V,Z={}){let ne=f(),fe=N.split(p),{start:pe,end:Ce,markerLines:ye}=D(V,fe,Z),xe=V.start&&typeof V.start.column=="number",Ee=String(Ce).length,Me=N.split(p,Ce).slice(pe,Ce).map((Ve,ct)=>{let xt=pe+1+ct,Qe=` ${` ${xt}`.slice(-Ee)} |`,ot=ye[xt],Dt=!ye[xt+1];if(ot){let Zt="";if(Array.isArray(ot)){let pn=Ve.slice(0,Math.max(ot[0]-1,0)).replace(/[^\t]/g," "),Ar=ot[1]||1;Zt=[`
151
- `,ne.gutter(Qe.replace(/\d/g," "))," ",pn,ne.marker("^").repeat(Ar)].join(""),Dt&&Z.message&&(Zt+=" "+ne.message(Z.message))}return[ne.marker(">"),ne.gutter(Qe),Ve.length>0?` ${Ve}`:"",Zt].join("")}else return` ${ne.gutter(Qe)}${Ve.length>0?` ${Ve}`:""}`}).join(`
152
- `);return Z.message&&!xe&&(Me=`${" ".repeat(Ee+1)}${Z.message}
153
- ${Me}`),Me}a.codeFrameColumns=x}),H={};g(H,{__debug:()=>_g,check:()=>Cg,doc:()=>Ma,format:()=>Ch,formatWithCursor:()=>Lh,getSupportInfo:()=>kg,util:()=>Oa,version:()=>bc});var z=(a,f,p,D)=>{if(!(a&&f==null))return f.replaceAll?f.replaceAll(p,D):p.global?f.replace(p,D):f.split(p).join(D)},M=z;function T(){}T.prototype={diff:function(a,f){var p,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=D.callback;typeof D=="function"&&(x=D,D={});var N=this;function V(Qe){return Qe=N.postProcess(Qe,D),x?(setTimeout(function(){x(Qe)},0),!0):Qe}a=this.castInput(a,D),f=this.castInput(f,D),a=this.removeEmpty(this.tokenize(a,D)),f=this.removeEmpty(this.tokenize(f,D));var Z=f.length,ne=a.length,fe=1,pe=Z+ne;D.maxEditLength!=null&&(pe=Math.min(pe,D.maxEditLength));var Ce=(p=D.timeout)!==null&&p!==void 0?p:1/0,ye=Date.now()+Ce,xe=[{oldPos:-1,lastComponent:void 0}],Ee=this.extractCommon(xe[0],f,a,0,D);if(xe[0].oldPos+1>=ne&&Ee+1>=Z)return V(Y(N,xe[0].lastComponent,f,a,N.useLongestToken));var Me=-1/0,Ve=1/0;function ct(){for(var Qe=Math.max(Me,-fe);Qe<=Math.min(Ve,fe);Qe+=2){var ot=void 0,Dt=xe[Qe-1],Zt=xe[Qe+1];Dt&&(xe[Qe-1]=void 0);var pn=!1;if(Zt){var Ar=Zt.oldPos-Qe;pn=Zt&&0<=Ar&&Ar<Z}var mi=Dt&&Dt.oldPos+1<ne;if(!pn&&!mi){xe[Qe]=void 0;continue}if(!mi||pn&&Dt.oldPos<Zt.oldPos?ot=N.addToPath(Zt,!0,!1,0,D):ot=N.addToPath(Dt,!1,!0,1,D),Ee=N.extractCommon(ot,f,a,Qe,D),ot.oldPos+1>=ne&&Ee+1>=Z)return V(Y(N,ot.lastComponent,f,a,N.useLongestToken));xe[Qe]=ot,ot.oldPos+1>=ne&&(Ve=Math.min(Ve,Qe-1)),Ee+1>=Z&&(Me=Math.max(Me,Qe+1))}fe++}if(x)(function Qe(){setTimeout(function(){if(fe>pe||Date.now()>ye)return x();ct()||Qe()},0)})();else for(;fe<=pe&&Date.now()<=ye;){var xt=ct();if(xt)return xt}},addToPath:function(a,f,p,D,x){var N=a.lastComponent;return N&&!x.oneChangePerToken&&N.added===f&&N.removed===p?{oldPos:a.oldPos+D,lastComponent:{count:N.count+1,added:f,removed:p,previousComponent:N.previousComponent}}:{oldPos:a.oldPos+D,lastComponent:{count:1,added:f,removed:p,previousComponent:N}}},extractCommon:function(a,f,p,D,x){for(var N=f.length,V=p.length,Z=a.oldPos,ne=Z-D,fe=0;ne+1<N&&Z+1<V&&this.equals(p[Z+1],f[ne+1],x);)ne++,Z++,fe++,x.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return fe&&!x.oneChangePerToken&&(a.lastComponent={count:fe,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=Z,ne},equals:function(a,f,p){return p.comparator?p.comparator(a,f):a===f||p.ignoreCase&&a.toLowerCase()===f.toLowerCase()},removeEmpty:function(a){for(var f=[],p=0;p<a.length;p++)a[p]&&f.push(a[p]);return f},castInput:function(a){return a},tokenize:function(a){return Array.from(a)},join:function(a){return a.join("")},postProcess:function(a){return a}};function Y(a,f,p,D,x){for(var N=[],V;f;)N.push(f),V=f.previousComponent,delete f.previousComponent,f=V;N.reverse();for(var Z=0,ne=N.length,fe=0,pe=0;Z<ne;Z++){var Ce=N[Z];if(Ce.removed)Ce.value=a.join(D.slice(pe,pe+Ce.count)),pe+=Ce.count;else{if(!Ce.added&&x){var ye=p.slice(fe,fe+Ce.count);ye=ye.map(function(xe,Ee){var Me=D[pe+Ee];return Me.length>xe.length?Me:xe}),Ce.value=a.join(ye)}else Ce.value=a.join(p.slice(fe,fe+Ce.count));fe+=Ce.count,Ce.added||(pe+=Ce.count)}}return N}function K(a,f){var p;for(p=0;p<a.length&&p<f.length;p++)if(a[p]!=f[p])return a.slice(0,p);return a.slice(0,p)}function W(a,f){var p;if(!a||!f||a[a.length-1]!=f[f.length-1])return"";for(p=0;p<a.length&&p<f.length;p++)if(a[a.length-(p+1)]!=f[f.length-(p+1)])return a.slice(-p);return a.slice(-p)}function re(a,f,p){if(a.slice(0,f.length)!=f)throw Error("string ".concat(JSON.stringify(a)," doesn't start with prefix ").concat(JSON.stringify(f),"; this is a bug"));return p+a.slice(f.length)}function ee(a,f,p){if(!f)return a+p;if(a.slice(-f.length)!=f)throw Error("string ".concat(JSON.stringify(a)," doesn't end with suffix ").concat(JSON.stringify(f),"; this is a bug"));return a.slice(0,-f.length)+p}function B(a,f){return re(a,f,"")}function ae(a,f){return ee(a,f,"")}function te(a,f){return f.slice(0,X(a,f))}function X(a,f){var p=0;a.length>f.length&&(p=a.length-f.length);var D=f.length;a.length<f.length&&(D=a.length);var x=Array(D),N=0;x[0]=0;for(var V=1;V<D;V++){for(f[V]==f[N]?x[V]=x[N]:x[V]=N;N>0&&f[V]!=f[N];)N=x[N];f[V]==f[N]&&N++}N=0;for(var Z=p;Z<a.length;Z++){for(;N>0&&a[Z]!=f[N];)N=x[N];a[Z]==f[N]&&N++}return N}var se="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",he=new RegExp("[".concat(se,"]+|\\s+|[^").concat(se,"]"),"ug"),Se=new T;Se.equals=function(a,f,p){return p.ignoreCase&&(a=a.toLowerCase(),f=f.toLowerCase()),a.trim()===f.trim()},Se.tokenize=function(a){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p;if(f.intlSegmenter){if(f.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');p=Array.from(f.intlSegmenter.segment(a),function(N){return N.segment})}else p=a.match(he)||[];var D=[],x=null;return p.forEach(function(N){/\s/.test(N)?x==null?D.push(N):D.push(D.pop()+N):/\s/.test(x)?D[D.length-1]==x?D.push(D.pop()+N):D.push(x+N):D.push(N),x=N}),D},Se.join=function(a){return a.map(function(f,p){return p==0?f:f.replace(/^\s+/,"")}).join("")},Se.postProcess=function(a,f){if(!a||f.oneChangePerToken)return a;var p=null,D=null,x=null;return a.forEach(function(N){N.added?D=N:N.removed?x=N:((D||x)&&_e(p,x,D,N),p=N,D=null,x=null)}),(D||x)&&_e(p,x,D,null),a};function _e(a,f,p,D){if(f&&p){var x=f.value.match(/^\s*/)[0],N=f.value.match(/\s*$/)[0],V=p.value.match(/^\s*/)[0],Z=p.value.match(/\s*$/)[0];if(a){var ne=K(x,V);a.value=ee(a.value,V,ne),f.value=B(f.value,ne),p.value=B(p.value,ne)}if(D){var fe=W(N,Z);D.value=re(D.value,Z,fe),f.value=ae(f.value,fe),p.value=ae(p.value,fe)}}else if(p)a&&(p.value=p.value.replace(/^\s*/,"")),D&&(D.value=D.value.replace(/^\s*/,""));else if(a&&D){var pe=D.value.match(/^\s*/)[0],Ce=f.value.match(/^\s*/)[0],ye=f.value.match(/\s*$/)[0],xe=K(pe,Ce);f.value=B(f.value,xe);var Ee=W(B(pe,xe),ye);f.value=ae(f.value,Ee),D.value=re(D.value,pe,Ee),a.value=ee(a.value,pe,pe.slice(0,pe.length-Ee.length))}else if(D){var Me=D.value.match(/^\s*/)[0],Ve=f.value.match(/\s*$/)[0],ct=te(Ve,Me);f.value=ae(f.value,ct)}else if(a){var xt=a.value.match(/\s*$/)[0],Qe=f.value.match(/^\s*/)[0],ot=te(xt,Qe);f.value=B(f.value,ot)}}var Fe=new T;Fe.tokenize=function(a){var f=new RegExp("(\\r?\\n)|[".concat(se,"]+|[^\\S\\n\\r]+|[^").concat(se,"]"),"ug");return a.match(f)||[]};var $e=new T;$e.tokenize=function(a,f){f.stripTrailingCr&&(a=a.replace(/\r\n/g,`
154
- `));var p=[],D=a.split(/(\n|\r\n)/);D[D.length-1]||D.pop();for(var x=0;x<D.length;x++){var N=D[x];x%2&&!f.newlineIsToken?p[p.length-1]+=N:p.push(N)}return p},$e.equals=function(a,f,p){return p.ignoreWhitespace?((!p.newlineIsToken||!a.includes(`
155
- `))&&(a=a.trim()),(!p.newlineIsToken||!f.includes(`
156
- `))&&(f=f.trim())):p.ignoreNewlineAtEof&&!p.newlineIsToken&&(a.endsWith(`
157
- `)&&(a=a.slice(0,-1)),f.endsWith(`
158
- `)&&(f=f.slice(0,-1))),T.prototype.equals.call(this,a,f,p)};var Ge=new T;Ge.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var kt=new T;kt.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function at(a){"@babel/helpers - typeof";return at=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},at(a)}var tn=new T;tn.useLongestToken=!0,tn.tokenize=$e.tokenize,tn.castInput=function(a,f){var p=f.undefinedReplacement,D=f.stringifyReplacer,x=D===void 0?function(N,V){return typeof V>"u"?p:V}:D;return typeof a=="string"?a:JSON.stringify(_t(a,null,null,x),x," ")},tn.equals=function(a,f,p){return T.prototype.equals.call(tn,a.replace(/,([\r\n])/g,"$1"),f.replace(/,([\r\n])/g,"$1"),p)};function _t(a,f,p,D,x){f=f||[],p=p||[],D&&(a=D(x,a));var N;for(N=0;N<f.length;N+=1)if(f[N]===a)return p[N];var V;if(Object.prototype.toString.call(a)==="[object Array]"){for(f.push(a),V=new Array(a.length),p.push(V),N=0;N<a.length;N+=1)V[N]=_t(a[N],f,p,D,x);return f.pop(),p.pop(),V}if(a&&a.toJSON&&(a=a.toJSON()),at(a)==="object"&&a!==null){f.push(a),V={},p.push(V);var Z=[],ne;for(ne in a)Object.prototype.hasOwnProperty.call(a,ne)&&Z.push(ne);for(Z.sort(),N=0;N<Z.length;N+=1)ne=Z[N],V[ne]=_t(a[ne],f,p,D,ne);f.pop(),p.pop()}else V=a;return V}var Zr=new T;Zr.tokenize=function(a){return a.slice()},Zr.join=Zr.removeEmpty=function(a){return a};function Qs(a,f,p){return Zr.diff(a,f,p)}function Kl(a){let f=a.indexOf("\r");return f!==-1?a.charAt(f+1)===`
159
- `?"crlf":"cr":"lf"}function Ji(a){switch(a){case"cr":return"\r";case"crlf":return`\r
160
- `;default:return`
161
- `}}function zo(a,f){let p;switch(f){case`
162
- `:p=/\n/gu;break;case"\r":p=/\r/gu;break;case`\r
163
- `:p=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(f)}.`)}let D=a.match(p);return D?D.length:0}function Xl(a){return M(!1,a,/\r\n?/gu,`
164
- `)}var Tr="string",ir="array",Mr="cursor",or="indent",wn="align",Sn="trim",on="group",qn="fill",dn="if-break",Wn="indent-if-break",Hn="line-suffix",Mn="line-suffix-boundary",Xt="line",En="label",An="break-parent",Go=new Set([Mr,or,wn,Sn,on,qn,dn,Wn,Hn,Mn,Xt,En,An]),Es=(a,f,p)=>{if(!(a&&f==null))return Array.isArray(f)||typeof f=="string"?f[p<0?f.length+p:p]:f.at(p)},Ht=Es;function mt(a){if(typeof a=="string")return Tr;if(Array.isArray(a))return ir;if(!a)return;let{type:f}=a;if(Go.has(f))return f}var ar=mt,ln=a=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(a);function Zl(a){let f=a===null?"null":typeof a;if(f!=="string"&&f!=="object")return`Unexpected doc '${f}',
165
- Expected it to be 'string' or 'object'.`;if(ar(a))throw new Error("doc is valid.");let p=Object.prototype.toString.call(a);if(p!=="[object Object]")return`Unexpected doc '${p}'.`;let D=ln([...Go].map(x=>`'${x}'`));return`Unexpected doc.type '${a.type}'.
166
- Expected it to be ${D}.`}var Jo=class extends Error{name="InvalidDocError";constructor(a){super(Zl(a)),this.doc=a}},es=Jo,Qi={};function eu(a,f,p,D){let x=[a];for(;x.length>0;){let N=x.pop();if(N===Qi){p(x.pop());continue}p&&x.push(N,Qi);let V=ar(N);if(!V)throw new es(N);if(f?.(N)!==!1)switch(V){case ir:case qn:{let Z=V===ir?N:N.parts;for(let ne=Z.length,fe=ne-1;fe>=0;--fe)x.push(Z[fe]);break}case dn:x.push(N.flatContents,N.breakContents);break;case on:if(D&&N.expandedStates)for(let Z=N.expandedStates.length,ne=Z-1;ne>=0;--ne)x.push(N.expandedStates[ne]);else x.push(N.contents);break;case wn:case or:case Wn:case En:case Hn:x.push(N.contents);break;case Tr:case Mr:case Sn:case Mn:case Xt:case An:break;default:throw new es(N)}}}var Ki=eu;function Ks(a,f){if(typeof a=="string")return f(a);let p=new Map;return D(a);function D(N){if(p.has(N))return p.get(N);let V=x(N);return p.set(N,V),V}function x(N){switch(ar(N)){case ir:return f(N.map(D));case qn:return f({...N,parts:N.parts.map(D)});case dn:return f({...N,breakContents:D(N.breakContents),flatContents:D(N.flatContents)});case on:{let{expandedStates:V,contents:Z}=N;return V?(V=V.map(D),Z=V[0]):Z=D(Z),f({...N,contents:Z,expandedStates:V})}case wn:case or:case Wn:case En:case Hn:return f({...N,contents:D(N.contents)});case Tr:case Mr:case Sn:case Mn:case Xt:case An:return f(N);default:throw new es(N)}}}function Xi(a,f,p){let D=p,x=!1;function N(V){if(x)return!1;let Z=f(V);Z!==void 0&&(x=!0,D=Z)}return Ki(a,N),D}function Qo(a){if(a.type===on&&a.break||a.type===Xt&&a.hard||a.type===An)return!0}function tu(a){return Xi(a,Qo,!1)}function ts(a){if(a.length>0){let f=Ht(!1,a,-1);!f.expandedStates&&!f.break&&(f.break="propagated")}return null}function As(a){let f=new Set,p=[];function D(N){if(N.type===An&&ts(p),N.type===on){if(p.push(N),f.has(N))return!1;f.add(N)}}function x(N){N.type===on&&p.pop().break&&ts(p)}Ki(a,D,x,!0)}function nu(a){return a.type===Xt&&!a.hard?a.soft?"":" ":a.type===dn?a.flatContents:a}function ru(a){return Ks(a,nu)}function Ko(a){for(a=[...a];a.length>=2&&Ht(!1,a,-2).type===Xt&&Ht(!1,a,-1).type===An;)a.length-=2;if(a.length>0){let f=Ns(Ht(!1,a,-1));a[a.length-1]=f}return a}function Ns(a){switch(ar(a)){case or:case Wn:case on:case Hn:case En:{let f=Ns(a.contents);return{...a,contents:f}}case dn:return{...a,breakContents:Ns(a.breakContents),flatContents:Ns(a.flatContents)};case qn:return{...a,parts:Ko(a.parts)};case ir:return Ko(a);case Tr:return a.replace(/[\n\r]*$/u,"");case wn:case Mr:case Sn:case Mn:case Xt:case An:break;default:throw new es(a)}return a}function Xo(a){return Ns(iu(a))}function su(a){switch(ar(a)){case qn:if(a.parts.every(f=>f===""))return"";break;case on:if(!a.contents&&!a.id&&!a.break&&!a.expandedStates)return"";if(a.contents.type===on&&a.contents.id===a.id&&a.contents.break===a.break&&a.contents.expandedStates===a.expandedStates)return a.contents;break;case wn:case or:case Wn:case Hn:if(!a.contents)return"";break;case dn:if(!a.flatContents&&!a.breakContents)return"";break;case ir:{let f=[];for(let p of a){if(!p)continue;let[D,...x]=Array.isArray(p)?p:[p];typeof D=="string"&&typeof Ht(!1,f,-1)=="string"?f[f.length-1]+=D:f.push(D),f.push(...x)}return f.length===0?"":f.length===1?f[0]:f}case Tr:case Mr:case Sn:case Mn:case Xt:case En:case An:break;default:throw new es(a)}return a}function iu(a){return Ks(a,f=>su(f))}function ou(a,f=ra){return Ks(a,p=>typeof p=="string"?ni(f,p.split(`
167
- `)):p)}function Xs(a){if(a.type===Xt)return!0}function au(a){return Xi(a,Xs,!1)}function Zs(a,f){return a.type===En?{...a,contents:f(a.contents)}:f(a)}var lu=()=>{},uu=lu;function ei(a){return{type:or,contents:a}}function Yn(a,f){return{type:wn,contents:f,n:a}}function zn(a,f={}){return uu(f.expandedStates),{type:on,id:f.id,contents:a,break:!!f.shouldBreak,expandedStates:f.expandedStates}}function Zo(a){return Yn(Number.NEGATIVE_INFINITY,a)}function xs(a){return Yn({type:"root"},a)}function cu(a){return Yn(-1,a)}function ea(a,f){return zn(a[0],{...f,expandedStates:a})}function Zi(a){return{type:qn,parts:a}}function ta(a,f="",p={}){return{type:dn,breakContents:a,flatContents:f,groupId:p.groupId}}function fu(a,f){return{type:Wn,contents:a,groupId:f.groupId,negate:f.negate}}function ns(a){return{type:Hn,contents:a}}var hu={type:Mn},On={type:An},rs={type:Sn},ti={type:Xt,hard:!0},Nn={type:Xt,hard:!0,literal:!0},xn={type:Xt},na={type:Xt,soft:!0},Or=[ti,On],ra=[Nn,On],lr={type:Mr};function ni(a,f){let p=[];for(let D=0;D<f.length;D++)D!==0&&p.push(a),p.push(f[D]);return p}function eo(a,f,p){let D=a;if(f>0){for(let x=0;x<Math.floor(f/p);++x)D=ei(D);D=Yn(f%p,D),D=Yn(Number.NEGATIVE_INFINITY,D)}return D}function sa(a,f){return a?{type:En,label:a,contents:f}:f}function jt(a){var f;if(!a)return"";if(Array.isArray(a)){let p=[];for(let D of a)if(Array.isArray(D))p.push(...jt(D));else{let x=jt(D);x!==""&&p.push(x)}return p}return a.type===dn?{...a,breakContents:jt(a.breakContents),flatContents:jt(a.flatContents)}:a.type===on?{...a,contents:jt(a.contents),expandedStates:(f=a.expandedStates)==null?void 0:f.map(jt)}:a.type===qn?{type:"fill",parts:a.parts.map(jt)}:a.contents?{...a,contents:jt(a.contents)}:a}function du(a){let f=Object.create(null),p=new Set;return D(jt(a));function D(N,V,Z){var ne,fe;if(typeof N=="string")return JSON.stringify(N);if(Array.isArray(N)){let pe=N.map(D).filter(Boolean);return pe.length===1?pe[0]:`[${pe.join(", ")}]`}if(N.type===Xt){let pe=((ne=Z?.[V+1])==null?void 0:ne.type)===An;return N.literal?pe?"literalline":"literallineWithoutBreakParent":N.hard?pe?"hardline":"hardlineWithoutBreakParent":N.soft?"softline":"line"}if(N.type===An)return((fe=Z?.[V-1])==null?void 0:fe.type)===Xt&&Z[V-1].hard?void 0:"breakParent";if(N.type===Sn)return"trim";if(N.type===or)return"indent("+D(N.contents)+")";if(N.type===wn)return N.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+D(N.contents)+")":N.n<0?"dedent("+D(N.contents)+")":N.n.type==="root"?"markAsRoot("+D(N.contents)+")":"align("+JSON.stringify(N.n)+", "+D(N.contents)+")";if(N.type===dn)return"ifBreak("+D(N.breakContents)+(N.flatContents?", "+D(N.flatContents):"")+(N.groupId?(N.flatContents?"":', ""')+`, { groupId: ${x(N.groupId)} }`:"")+")";if(N.type===Wn){let pe=[];N.negate&&pe.push("negate: true"),N.groupId&&pe.push(`groupId: ${x(N.groupId)}`);let Ce=pe.length>0?`, { ${pe.join(", ")} }`:"";return`indentIfBreak(${D(N.contents)}${Ce})`}if(N.type===on){let pe=[];N.break&&N.break!=="propagated"&&pe.push("shouldBreak: true"),N.id&&pe.push(`id: ${x(N.id)}`);let Ce=pe.length>0?`, { ${pe.join(", ")} }`:"";return N.expandedStates?`conditionalGroup([${N.expandedStates.map(ye=>D(ye)).join(",")}]${Ce})`:`group(${D(N.contents)}${Ce})`}if(N.type===qn)return`fill([${N.parts.map(pe=>D(pe)).join(", ")}])`;if(N.type===Hn)return"lineSuffix("+D(N.contents)+")";if(N.type===Mn)return"lineSuffixBoundary";if(N.type===En)return`label(${JSON.stringify(N.label)}, ${D(N.contents)})`;throw new Error("Unknown doc type "+N.type)}function x(N){if(typeof N!="symbol")return JSON.stringify(String(N));if(N in f)return f[N];let V=N.description||"symbol";for(let Z=0;;Z++){let ne=V+(Z>0?` #${Z}`:"");if(!p.has(ne))return p.add(ne),f[N]=`Symbol.for(${JSON.stringify(ne)})`}}}var mu=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function ia(a){return a===12288||a>=65281&&a<=65376||a>=65504&&a<=65510}function gu(a){return a>=4352&&a<=4447||a===8986||a===8987||a===9001||a===9002||a>=9193&&a<=9196||a===9200||a===9203||a===9725||a===9726||a===9748||a===9749||a>=9776&&a<=9783||a>=9800&&a<=9811||a===9855||a>=9866&&a<=9871||a===9875||a===9889||a===9898||a===9899||a===9917||a===9918||a===9924||a===9925||a===9934||a===9940||a===9962||a===9970||a===9971||a===9973||a===9978||a===9981||a===9989||a===9994||a===9995||a===10024||a===10060||a===10062||a>=10067&&a<=10069||a===10071||a>=10133&&a<=10135||a===10160||a===10175||a===11035||a===11036||a===11088||a===11093||a>=11904&&a<=11929||a>=11931&&a<=12019||a>=12032&&a<=12245||a>=12272&&a<=12287||a>=12289&&a<=12350||a>=12353&&a<=12438||a>=12441&&a<=12543||a>=12549&&a<=12591||a>=12593&&a<=12686||a>=12688&&a<=12773||a>=12783&&a<=12830||a>=12832&&a<=12871||a>=12880&&a<=42124||a>=42128&&a<=42182||a>=43360&&a<=43388||a>=44032&&a<=55203||a>=63744&&a<=64255||a>=65040&&a<=65049||a>=65072&&a<=65106||a>=65108&&a<=65126||a>=65128&&a<=65131||a>=94176&&a<=94180||a===94192||a===94193||a>=94208&&a<=100343||a>=100352&&a<=101589||a>=101631&&a<=101640||a>=110576&&a<=110579||a>=110581&&a<=110587||a===110589||a===110590||a>=110592&&a<=110882||a===110898||a>=110928&&a<=110930||a===110933||a>=110948&&a<=110951||a>=110960&&a<=111355||a>=119552&&a<=119638||a>=119648&&a<=119670||a===126980||a===127183||a===127374||a>=127377&&a<=127386||a>=127488&&a<=127490||a>=127504&&a<=127547||a>=127552&&a<=127560||a===127568||a===127569||a>=127584&&a<=127589||a>=127744&&a<=127776||a>=127789&&a<=127797||a>=127799&&a<=127868||a>=127870&&a<=127891||a>=127904&&a<=127946||a>=127951&&a<=127955||a>=127968&&a<=127984||a===127988||a>=127992&&a<=128062||a===128064||a>=128066&&a<=128252||a>=128255&&a<=128317||a>=128331&&a<=128334||a>=128336&&a<=128359||a===128378||a===128405||a===128406||a===128420||a>=128507&&a<=128591||a>=128640&&a<=128709||a===128716||a>=128720&&a<=128722||a>=128725&&a<=128727||a>=128732&&a<=128735||a===128747||a===128748||a>=128756&&a<=128764||a>=128992&&a<=129003||a===129008||a>=129292&&a<=129338||a>=129340&&a<=129349||a>=129351&&a<=129535||a>=129648&&a<=129660||a>=129664&&a<=129673||a>=129679&&a<=129734||a>=129742&&a<=129756||a>=129759&&a<=129769||a>=129776&&a<=129784||a>=131072&&a<=196605||a>=196608&&a<=262141}var pu=a=>!(ia(a)||gu(a)),to=/[^\x20-\x7F]/u;function bu(a){if(!a)return 0;if(!to.test(a))return a.length;a=a.replace(mu()," ");let f=0;for(let p of a){let D=p.codePointAt(0);D<=31||D>=127&&D<=159||D>=768&&D<=879||(f+=pu(D)?1:2)}return f}var no=bu,un=Symbol("MODE_BREAK"),Gn=Symbol("MODE_FLAT"),ss=Symbol("cursor"),ro=Symbol("DOC_FILL_PRINTED_LENGTH");function oa(){return{value:"",length:0,queue:[]}}function yu(a,f){return ri(a,{type:"indent"},f)}function vu(a,f,p){return f===Number.NEGATIVE_INFINITY?a.root||oa():f<0?ri(a,{type:"dedent"},p):f?f.type==="root"?{...a,root:a}:ri(a,{type:typeof f=="string"?"stringAlign":"numberAlign",n:f},p):a}function ri(a,f,p){let D=f.type==="dedent"?a.queue.slice(0,-1):[...a.queue,f],x="",N=0,V=0,Z=0;for(let Ee of D)switch(Ee.type){case"indent":pe(),p.useTabs?ne(1):fe(p.tabWidth);break;case"stringAlign":pe(),x+=Ee.n,N+=Ee.n.length;break;case"numberAlign":V+=1,Z+=Ee.n;break;default:throw new Error(`Unexpected type '${Ee.type}'`)}return ye(),{...a,value:x,length:N,queue:D};function ne(Ee){x+=" ".repeat(Ee),N+=p.tabWidth*Ee}function fe(Ee){x+=" ".repeat(Ee),N+=Ee}function pe(){p.useTabs?Ce():ye()}function Ce(){V>0&&ne(V),xe()}function ye(){Z>0&&fe(Z),xe()}function xe(){V=0,Z=0}}function so(a){let f=0,p=0,D=a.length;e:for(;D--;){let x=a[D];if(x===ss){p++;continue}for(let N=x.length-1;N>=0;N--){let V=x[N];if(V===" "||V===" ")f++;else{a[D]=x.slice(0,N+1);break e}}}if(f>0||p>0)for(a.length=D+1;p-- >0;)a.push(ss);return f}function vr(a,f,p,D,x,N){if(p===Number.POSITIVE_INFINITY)return!0;let V=f.length,Z=[a],ne=[];for(;p>=0;){if(Z.length===0){if(V===0)return!0;Z.push(f[--V]);continue}let{mode:fe,doc:pe}=Z.pop(),Ce=ar(pe);switch(Ce){case Tr:ne.push(pe),p-=no(pe);break;case ir:case qn:{let ye=Ce===ir?pe:pe.parts,xe=pe[ro]??0;for(let Ee=ye.length-1;Ee>=xe;Ee--)Z.push({mode:fe,doc:ye[Ee]});break}case or:case wn:case Wn:case En:Z.push({mode:fe,doc:pe.contents});break;case Sn:p+=so(ne);break;case on:{if(N&&pe.break)return!1;let ye=pe.break?un:fe,xe=pe.expandedStates&&ye===un?Ht(!1,pe.expandedStates,-1):pe.contents;Z.push({mode:ye,doc:xe});break}case dn:{let ye=(pe.groupId?x[pe.groupId]||Gn:fe)===un?pe.breakContents:pe.flatContents;ye&&Z.push({mode:fe,doc:ye});break}case Xt:if(fe===un||pe.hard)return!0;pe.soft||(ne.push(" "),p--);break;case Hn:D=!0;break;case Mn:if(D)return!1;break}}return!1}function Ls(a,f){let p={},D=f.printWidth,x=Ji(f.endOfLine),N=0,V=[{ind:oa(),mode:un,doc:a}],Z=[],ne=!1,fe=[],pe=0;for(As(a);V.length>0;){let{ind:ye,mode:xe,doc:Ee}=V.pop();switch(ar(Ee)){case Tr:{let Me=x!==`
168
- `?M(!1,Ee,`
169
- `,x):Ee;Z.push(Me),V.length>0&&(N+=no(Me));break}case ir:for(let Me=Ee.length-1;Me>=0;Me--)V.push({ind:ye,mode:xe,doc:Ee[Me]});break;case Mr:if(pe>=2)throw new Error("There are too many 'cursor' in doc.");Z.push(ss),pe++;break;case or:V.push({ind:yu(ye,f),mode:xe,doc:Ee.contents});break;case wn:V.push({ind:vu(ye,Ee.n,f),mode:xe,doc:Ee.contents});break;case Sn:N-=so(Z);break;case on:switch(xe){case Gn:if(!ne){V.push({ind:ye,mode:Ee.break?un:Gn,doc:Ee.contents});break}case un:{ne=!1;let Me={ind:ye,mode:Gn,doc:Ee.contents},Ve=D-N,ct=fe.length>0;if(!Ee.break&&vr(Me,V,Ve,ct,p))V.push(Me);else if(Ee.expandedStates){let xt=Ht(!1,Ee.expandedStates,-1);if(Ee.break){V.push({ind:ye,mode:un,doc:xt});break}else for(let Qe=1;Qe<Ee.expandedStates.length+1;Qe++)if(Qe>=Ee.expandedStates.length){V.push({ind:ye,mode:un,doc:xt});break}else{let ot=Ee.expandedStates[Qe],Dt={ind:ye,mode:Gn,doc:ot};if(vr(Dt,V,Ve,ct,p)){V.push(Dt);break}}}else V.push({ind:ye,mode:un,doc:Ee.contents});break}}Ee.id&&(p[Ee.id]=Ht(!1,V,-1).mode);break;case qn:{let Me=D-N,Ve=Ee[ro]??0,{parts:ct}=Ee,xt=ct.length-Ve;if(xt===0)break;let Qe=ct[Ve+0],ot=ct[Ve+1],Dt={ind:ye,mode:Gn,doc:Qe},Zt={ind:ye,mode:un,doc:Qe},pn=vr(Dt,[],Me,fe.length>0,p,!0);if(xt===1){pn?V.push(Dt):V.push(Zt);break}let Ar={ind:ye,mode:Gn,doc:ot},mi={ind:ye,mode:un,doc:ot};if(xt===2){pn?V.push(Ar,Dt):V.push(mi,Zt);break}let Fg=ct[Ve+2],Sc={ind:ye,mode:xe,doc:{...Ee,[ro]:Ve+2}};vr({ind:ye,mode:Gn,doc:[Qe,ot,Fg]},[],Me,fe.length>0,p,!0)?V.push(Sc,Ar,Dt):pn?V.push(Sc,mi,Dt):V.push(Sc,mi,Zt);break}case dn:case Wn:{let Me=Ee.groupId?p[Ee.groupId]:xe;if(Me===un){let Ve=Ee.type===dn?Ee.breakContents:Ee.negate?Ee.contents:ei(Ee.contents);Ve&&V.push({ind:ye,mode:xe,doc:Ve})}if(Me===Gn){let Ve=Ee.type===dn?Ee.flatContents:Ee.negate?ei(Ee.contents):Ee.contents;Ve&&V.push({ind:ye,mode:xe,doc:Ve})}break}case Hn:fe.push({ind:ye,mode:xe,doc:Ee.contents});break;case Mn:fe.length>0&&V.push({ind:ye,mode:xe,doc:ti});break;case Xt:switch(xe){case Gn:if(Ee.hard)ne=!0;else{Ee.soft||(Z.push(" "),N+=1);break}case un:if(fe.length>0){V.push({ind:ye,mode:xe,doc:Ee},...fe.reverse()),fe.length=0;break}Ee.literal?ye.root?(Z.push(x,ye.root.value),N=ye.root.length):(Z.push(x),N=0):(N-=so(Z),Z.push(x+ye.value),N=ye.length);break}break;case En:V.push({ind:ye,mode:xe,doc:Ee.contents});break;case An:break;default:throw new es(Ee)}V.length===0&&fe.length>0&&(V.push(...fe.reverse()),fe.length=0)}let Ce=Z.indexOf(ss);if(Ce!==-1){let ye=Z.indexOf(ss,Ce+1);if(ye===-1)return{formatted:Z.filter(Ve=>Ve!==ss).join("")};let xe=Z.slice(0,Ce).join(""),Ee=Z.slice(Ce+1,ye).join(""),Me=Z.slice(ye+1).join("");return{formatted:xe+Ee+Me,cursorNodeStart:xe.length,cursorNodeText:Ee}}return{formatted:Z.join("")}}function Du(a,f,p=0){let D=0;for(let x=p;x<a.length;++x)a[x]===" "?D=D+f-D%f:D++;return D}var io=Du,Rr,Cs,si,wu=class{constructor(a){A(this,Rr),this.stack=[a]}get key(){let{stack:a,siblings:f}=this;return Ht(!1,a,f===null?-2:-4)??null}get index(){return this.siblings===null?null:Ht(!1,this.stack,-2)}get node(){return Ht(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:a}=this,f=Ht(!1,a,-3);return Array.isArray(f)?f:null}get next(){let{siblings:a}=this;return a===null?null:a[this.index+1]}get previous(){let{siblings:a}=this;return a===null?null:a[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:a,index:f}=this;return a!==null&&f===a.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...E(this,Rr,si).call(this)]}getName(){let{stack:a}=this,{length:f}=a;return f>1?Ht(!1,a,-2):null}getValue(){return Ht(!1,this.stack,-1)}getNode(a=0){let f=E(this,Rr,Cs).call(this,a);return f===-1?null:this.stack[f]}getParentNode(a=0){return this.getNode(a+1)}call(a,...f){let{stack:p}=this,{length:D}=p,x=Ht(!1,p,-1);for(let N of f)x=x[N],p.push(N,x);try{return a(this)}finally{p.length=D}}callParent(a,f=0){let p=E(this,Rr,Cs).call(this,f+1),D=this.stack.splice(p+1);try{return a(this)}finally{this.stack.push(...D)}}each(a,...f){let{stack:p}=this,{length:D}=p,x=Ht(!1,p,-1);for(let N of f)x=x[N],p.push(N,x);try{for(let N=0;N<x.length;++N)p.push(N,x[N]),a(this,N,x),p.length-=2}finally{p.length=D}}map(a,...f){let p=[];return this.each((D,x,N)=>{p[x]=a(D,x,N)},...f),p}match(...a){let f=this.stack.length-1,p=null,D=this.stack[f--];for(let x of a){if(D===void 0)return!1;let N=null;if(typeof p=="number"&&(N=p,p=this.stack[f--],D=this.stack[f--]),x&&!x(D,p,N))return!1;p=this.stack[f--],D=this.stack[f--]}return!0}findAncestor(a){for(let f of E(this,Rr,si).call(this))if(a(f))return f}hasAncestor(a){for(let f of E(this,Rr,si).call(this))if(a(f))return!0;return!1}};Rr=new WeakSet,Cs=function(a){let{stack:f}=this;for(let p=f.length-1;p>=0;p-=2)if(!Array.isArray(f[p])&&--a<0)return p;return-1},si=function*(){let{stack:a}=this;for(let f=a.length-3;f>=0;f-=2){let p=a[f];Array.isArray(p)||(yield p)}};var aa=wu,ks=new Proxy(()=>{},{get:()=>ks}),ii=ks;function Su(a){return a!==null&&typeof a=="object"}var mn=Su;function*Pr(a,f){let{getVisitorKeys:p,filter:D=()=>!0}=f,x=N=>mn(N)&&D(N);for(let N of p(a)){let V=a[N];if(Array.isArray(V))for(let Z of V)x(Z)&&(yield Z);else x(V)&&(yield V)}}function*Eu(a,f){let p=[a];for(let D=0;D<p.length;D++){let x=p[D];for(let N of Pr(x,f))yield N,p.push(N)}}function Au(a,f){return Pr(a,f).next().done}function is(a){return(f,p,D)=>{let x=!!(D!=null&&D.backwards);if(p===!1)return!1;let{length:N}=f,V=p;for(;V>=0&&V<N;){let Z=f.charAt(V);if(a instanceof RegExp){if(!a.test(Z))return V}else if(!a.includes(Z))return V;x?V--:V++}return V===-1||V===N?V:!1}}var Nu=is(/\s/u),Dr=is(" "),oo=is(",; "),Bt=is(/[^\n\r]/u);function xu(a,f,p){let D=!!(p!=null&&p.backwards);if(f===!1)return!1;let x=a.charAt(f);if(D){if(a.charAt(f-1)==="\r"&&x===`
170
- `)return f-2;if(x===`
171
- `||x==="\r"||x==="\u2028"||x==="\u2029")return f-1}else{if(x==="\r"&&a.charAt(f+1)===`
172
- `)return f+2;if(x===`
173
- `||x==="\r"||x==="\u2028"||x==="\u2029")return f+1}return f}var Jn=xu;function os(a,f,p={}){let D=Dr(a,p.backwards?f-1:f,p),x=Jn(a,D,p);return D!==x}var Rn=os;function Ir(a){return Array.isArray(a)&&a.length>0}var Lu=Ir,la=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Cu=a=>Object.keys(a).filter(f=>!la.has(f));function ku(a){return a?f=>a(f,la):Cu}var ur=ku;function _u(a){let f=a.type||a.kind||"(unknown type)",p=String(a.name||a.id&&(typeof a.id=="object"?a.id.name:a.id)||a.key&&(typeof a.key=="object"?a.key.name:a.key)||a.value&&(typeof a.value=="object"?"":String(a.value))||a.operator||"");return p.length>20&&(p=p.slice(0,19)+"…"),f+(p?" "+p:"")}function _s(a,f){(a.comments??(a.comments=[])).push(f),f.printed=!1,f.nodeDescription=_u(a)}function as(a,f){f.leading=!0,f.trailing=!1,_s(a,f)}function Br(a,f,p){f.leading=!1,f.trailing=!1,p&&(f.marker=p),_s(a,f)}function $r(a,f){f.leading=!1,f.trailing=!0,_s(a,f)}var Fs=new WeakMap;function oi(a,f){if(Fs.has(a))return Fs.get(a);let{printer:{getCommentChildNodes:p,canAttachComment:D,getVisitorKeys:x},locStart:N,locEnd:V}=f;if(!D)return[];let Z=(p?.(a,f)??[...Pr(a,{getVisitorKeys:ur(x)})]).flatMap(ne=>D(ne)?[ne]:oi(ne,f));return Z.sort((ne,fe)=>N(ne)-N(fe)||V(ne)-V(fe)),Fs.set(a,Z),Z}function ua(a,f,p,D){let{locStart:x,locEnd:N}=p,V=x(f),Z=N(f),ne=oi(a,p),fe,pe,Ce=0,ye=ne.length;for(;Ce<ye;){let xe=Ce+ye>>1,Ee=ne[xe],Me=x(Ee),Ve=N(Ee);if(Me<=V&&Z<=Ve)return ua(Ee,f,p,Ee);if(Ve<=V){fe=Ee,Ce=xe+1;continue}if(Z<=Me){pe=Ee,ye=xe;continue}throw new Error("Comment location overlaps with node location")}if(D?.type==="TemplateLiteral"){let{quasis:xe}=D,Ee=uo(xe,f,p);fe&&uo(xe,fe,p)!==Ee&&(fe=null),pe&&uo(xe,pe,p)!==Ee&&(pe=null)}return{enclosingNode:D,precedingNode:fe,followingNode:pe}}var ao=()=>!1;function Fu(a,f){let{comments:p}=a;if(delete a.comments,!Lu(p)||!f.printer.canAttachComment)return;let D=[],{locStart:x,locEnd:N,printer:{experimentalFeatures:{avoidAstMutation:V=!1}={},handleComments:Z={}},originalText:ne}=f,{ownLine:fe=ao,endOfLine:pe=ao,remaining:Ce=ao}=Z,ye=p.map((xe,Ee)=>({...ua(a,xe,f),comment:xe,text:ne,options:f,ast:a,isLastComment:p.length-1===Ee}));for(let[xe,Ee]of ye.entries()){let{comment:Me,precedingNode:Ve,enclosingNode:ct,followingNode:xt,text:Qe,options:ot,ast:Dt,isLastComment:Zt}=Ee;if(ot.parser==="json"||ot.parser==="json5"||ot.parser==="jsonc"||ot.parser==="__js_expression"||ot.parser==="__ts_expression"||ot.parser==="__vue_expression"||ot.parser==="__vue_ts_expression"){if(x(Me)-x(Dt)<=0){as(Dt,Me);continue}if(N(Me)-N(Dt)>=0){$r(Dt,Me);continue}}let pn;if(V?pn=[Ee]:(Me.enclosingNode=ct,Me.precedingNode=Ve,Me.followingNode=xt,pn=[Me,Qe,ot,Dt,Zt]),Tu(Qe,ot,ye,xe))Me.placement="ownLine",fe(...pn)||(xt?as(xt,Me):Ve?$r(Ve,Me):Br(ct||Dt,Me));else if(lo(Qe,ot,ye,xe))Me.placement="endOfLine",pe(...pn)||(Ve?$r(Ve,Me):xt?as(xt,Me):Br(ct||Dt,Me));else if(Me.placement="remaining",!Ce(...pn))if(Ve&&xt){let Ar=D.length;Ar>0&&D[Ar-1].followingNode!==xt&&fa(D,ot),D.push(Ee)}else Ve?$r(Ve,Me):xt?as(xt,Me):Br(ct||Dt,Me)}if(fa(D,f),!V)for(let xe of p)delete xe.precedingNode,delete xe.enclosingNode,delete xe.followingNode}var ca=a=>!/[\S\n\u2028\u2029]/u.test(a);function Tu(a,f,p,D){let{comment:x,precedingNode:N}=p[D],{locStart:V,locEnd:Z}=f,ne=V(x);if(N)for(let fe=D-1;fe>=0;fe--){let{comment:pe,precedingNode:Ce}=p[fe];if(Ce!==N||!ca(a.slice(Z(pe),ne)))break;ne=V(pe)}return Rn(a,ne,{backwards:!0})}function lo(a,f,p,D){let{comment:x,followingNode:N}=p[D],{locStart:V,locEnd:Z}=f,ne=Z(x);if(N)for(let fe=D+1;fe<p.length;fe++){let{comment:pe,followingNode:Ce}=p[fe];if(Ce!==N||!ca(a.slice(ne,V(pe))))break;ne=Z(pe)}return Rn(a,ne)}function fa(a,f){var p,D;let x=a.length;if(x===0)return;let{precedingNode:N,followingNode:V}=a[0],Z=f.locStart(V),ne;for(ne=x;ne>0;--ne){let{comment:fe,precedingNode:pe,followingNode:Ce}=a[ne-1];ii.strictEqual(pe,N),ii.strictEqual(Ce,V);let ye=f.originalText.slice(f.locEnd(fe),Z);if(((D=(p=f.printer).isGap)==null?void 0:D.call(p,ye,f))??/^[\s(]*$/u.test(ye))Z=f.locStart(fe);else break}for(let[fe,{comment:pe}]of a.entries())fe<ne?$r(N,pe):as(V,pe);for(let fe of[N,V])fe.comments&&fe.comments.length>1&&fe.comments.sort((pe,Ce)=>f.locStart(pe)-f.locStart(Ce));a.length=0}function uo(a,f,p){let D=p.locStart(f)-1;for(let x=1;x<a.length;++x)if(D<p.locStart(a[x]))return x-1;return 0}function Vr(a,f){let p=f-1;p=Dr(a,p,{backwards:!0}),p=Jn(a,p,{backwards:!0}),p=Dr(a,p,{backwards:!0});let D=Jn(a,p,{backwards:!0});return p!==D}var ai=Vr;function wr(a,f){let p=a.node;return p.printed=!0,f.printer.printComment(a,f)}function Mu(a,f){var p;let D=a.node,x=[wr(a,f)],{printer:N,originalText:V,locStart:Z,locEnd:ne}=f;if((p=N.isBlockComment)!=null&&p.call(N,D)){let pe=Rn(V,ne(D))?Rn(V,Z(D),{backwards:!0})?Or:xn:" ";x.push(pe)}else x.push(Or);let fe=Jn(V,Dr(V,ne(D)));return fe!==!1&&Rn(V,fe)&&x.push(Or),x}function Sr(a,f,p){var D;let x=a.node,N=wr(a,f),{printer:V,originalText:Z,locStart:ne}=f,fe=(D=V.isBlockComment)==null?void 0:D.call(V,x);if(p!=null&&p.hasLineSuffix&&!(p!=null&&p.isBlock)||Rn(Z,ne(x),{backwards:!0})){let pe=ai(Z,ne(x));return{doc:ns([Or,pe?Or:"",N]),isBlock:fe,hasLineSuffix:!0}}return!fe||p!=null&&p.hasLineSuffix?{doc:[ns([" ",N]),On],isBlock:fe,hasLineSuffix:!0}:{doc:[" ",N],isBlock:fe,hasLineSuffix:!1}}function ha(a,f){let p=a.node;if(!p)return{};let D=f[Symbol.for("printedComments")];if((p.comments||[]).filter(Z=>!D.has(Z)).length===0)return{leading:"",trailing:""};let x=[],N=[],V;return a.each(()=>{let Z=a.node;if(D!=null&&D.has(Z))return;let{leading:ne,trailing:fe}=Z;ne?x.push(Mu(a,f)):fe&&(V=Sr(a,f,V),N.push(V.doc))},"comments"),{leading:x,trailing:N}}function Ou(a,f,p){let{leading:D,trailing:x}=ha(a,p);return!D&&!x?f:Zs(f,N=>[D,N,x])}function Ru(a){let{[Symbol.for("comments")]:f,[Symbol.for("printedComments")]:p}=a;for(let D of f){if(!D.printed&&!p.has(D))throw new Error('Comment "'+D.value.trim()+'" was not printed. Please report this error!');delete D.printed}}var da=class extends Error{name="ConfigError"},ma=class extends Error{name="UndefinedParserError"},Pu={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
174
- (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:a=>typeof a=="string"||typeof a=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:a=>typeof a=="string"||typeof a=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
175
- The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
176
- The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
177
- in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ga({plugins:a=[],showDeprecated:f=!1}={}){let p=a.flatMap(x=>x.languages??[]),D=[];for(let x of Bu(Object.assign({},...a.map(({options:N})=>N),Pu)))!f&&x.deprecated||(Array.isArray(x.choices)&&(f||(x.choices=x.choices.filter(N=>!N.deprecated)),x.name==="parser"&&(x.choices=[...x.choices,...Iu(x.choices,p,a)])),x.pluginDefaults=Object.fromEntries(a.filter(N=>{var V;return((V=N.defaultOptions)==null?void 0:V[x.name])!==void 0}).map(N=>[N.name,N.defaultOptions[x.name]])),D.push(x));return{languages:p,options:D}}function*Iu(a,f,p){let D=new Set(a.map(x=>x.value));for(let x of f)if(x.parsers){for(let N of x.parsers)if(!D.has(N)){D.add(N);let V=p.find(ne=>ne.parsers&&Object.prototype.hasOwnProperty.call(ne.parsers,N)),Z=x.name;V!=null&&V.name&&(Z+=` (plugin: ${V.name})`),yield{value:N,description:Z}}}}function Bu(a){let f=[];for(let[p,D]of Object.entries(a)){let x={name:p,...D};Array.isArray(x.default)&&(x.default=Ht(!1,x.default,-1).value),f.push(x)}return f}var pa=a=>String(a).split(/[/\\]/u).pop();function ba(a,f){if(!f)return;let p=pa(f).toLowerCase();return a.find(({filenames:D})=>D?.some(x=>x.toLowerCase()===p))??a.find(({extensions:D})=>D?.some(x=>p.endsWith(x)))}function ya(a,f){if(f)return a.find(({name:p})=>p.toLowerCase()===f)??a.find(({aliases:p})=>p?.includes(f))??a.find(({extensions:p})=>p?.includes(`.${f}`))}function li(a,f){let p=a.plugins.flatMap(x=>x.languages??[]),D=ya(p,f.language)??ba(p,f.physicalFile)??ba(p,f.file)??(f.physicalFile,void 0);return D?.parsers[0]}var va=li,jr={key:a=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(a)?a:JSON.stringify(a),value(a){if(a===null||typeof a!="object")return JSON.stringify(a);if(Array.isArray(a))return`[${a.map(p=>jr.value(p)).join(", ")}]`;let f=Object.keys(a);return f.length===0?"{}":`{ ${f.map(p=>`${jr.key(p)}: ${jr.value(a[p])}`).join(", ")} }`},pair:({key:a,value:f})=>jr.value({[a]:f})},co=y(P()),Da=(a,f,{descriptor:p})=>{let D=[`${co.default.yellow(typeof a=="string"?p.key(a):p.pair(a))} is deprecated`];return f&&D.push(`we now treat it as ${co.default.blue(typeof f=="string"?p.key(f):p.pair(f))}`),D.join("; ")+"."},Ur=y(P()),ui=Symbol.for("vnopts.VALUE_NOT_EXIST"),ci=Symbol.for("vnopts.VALUE_UNCHANGED"),wa=" ".repeat(2),$u=(a,f,p)=>{let{text:D,list:x}=p.normalizeExpectedResult(p.schemas[a].expected(p)),N=[];return D&&N.push(Sa(a,f,D,p.descriptor)),x&&N.push([Sa(a,f,x.title,p.descriptor)].concat(x.values.map(V=>Ea(V,p.loggerPrintWidth))).join(`
178
- `)),Aa(N,p.loggerPrintWidth)};function Sa(a,f,p,D){return[`Invalid ${Ur.default.red(D.key(a))} value.`,`Expected ${Ur.default.blue(p)},`,`but received ${f===ui?Ur.default.gray("nothing"):Ur.default.red(D.value(f))}.`].join(" ")}function Ea({text:a,list:f},p){let D=[];return a&&D.push(`- ${Ur.default.blue(a)}`),f&&D.push([`- ${Ur.default.blue(f.title)}:`].concat(f.values.map(x=>Ea(x,p-wa.length).replace(/^|\n/g,`$&${wa}`))).join(`
179
- `)),Aa(D,p)}function Aa(a,f){if(a.length===1)return a[0];let[p,D]=a,[x,N]=a.map(V=>V.split(`
180
- `,1)[0].length);return x>f&&x>N?D:p}var Na=y(P()),fo=[],xa=[];function Vu(a,f){if(a===f)return 0;let p=a;a.length>f.length&&(a=f,f=p);let D=a.length,x=f.length;for(;D>0&&a.charCodeAt(~-D)===f.charCodeAt(~-x);)D--,x--;let N=0;for(;N<D&&a.charCodeAt(N)===f.charCodeAt(N);)N++;if(D-=N,x-=N,D===0)return x;let V,Z,ne,fe,pe=0,Ce=0;for(;pe<D;)xa[pe]=a.charCodeAt(N+pe),fo[pe]=++pe;for(;Ce<x;)for(V=f.charCodeAt(N+Ce),ne=Ce++,Z=Ce,pe=0;pe<D;pe++)fe=V===xa[pe]?ne:ne+1,ne=fo[pe],Z=fo[pe]=ne>Z?fe>Z?Z+1:fe:fe>ne?ne+1:fe;return Z}var La=(a,f,{descriptor:p,logger:D,schemas:x})=>{let N=[`Ignored unknown option ${Na.default.yellow(p.pair({key:a,value:f}))}.`],V=Object.keys(x).sort().find(Z=>Vu(a,Z)<3);V&&N.push(`Did you mean ${Na.default.blue(p.key(V))}?`),D.warn(N.join(" "))},ju=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Uu(a,f){let p=new a(f),D=Object.create(p);for(let x of ju)x in f&&(D[x]=qu(f[x],p,cr.prototype[x].length));return D}var cr=class{static create(a){return Uu(this,a)}constructor(a){this.name=a.name}default(a){}expected(a){return"nothing"}validate(a,f){return!1}deprecated(a,f){return!1}forward(a,f){}redirect(a,f){}overlap(a,f,p){return a}preprocess(a,f){return a}postprocess(a,f){return ci}};function qu(a,f,p){return typeof a=="function"?(...D)=>a(...D.slice(0,p-1),f,...D.slice(p-1)):()=>a}var Wu=class extends cr{constructor(a){super(a),this._sourceName=a.sourceName}expected(a){return a.schemas[this._sourceName].expected(a)}validate(a,f){return f.schemas[this._sourceName].validate(a,f)}redirect(a,f){return this._sourceName}},Hu=class extends cr{expected(){return"anything"}validate(){return!0}},Yu=class extends cr{constructor({valueSchema:a,name:f=a.name,...p}){super({...p,name:f}),this._valueSchema=a}expected(a){let{text:f,list:p}=a.normalizeExpectedResult(this._valueSchema.expected(a));return{text:f&&`an array of ${f}`,list:p&&{title:"an array of the following values",values:[{list:p}]}}}validate(a,f){if(!Array.isArray(a))return!1;let p=[];for(let D of a){let x=f.normalizeValidateResult(this._valueSchema.validate(D,f),D);x!==!0&&p.push(x.value)}return p.length===0?!0:{value:p}}deprecated(a,f){let p=[];for(let D of a){let x=f.normalizeDeprecatedResult(this._valueSchema.deprecated(D,f),D);x!==!1&&p.push(...x.map(({value:N})=>({value:[N]})))}return p}forward(a,f){let p=[];for(let D of a){let x=f.normalizeForwardResult(this._valueSchema.forward(D,f),D);p.push(...x.map(Ca))}return p}redirect(a,f){let p=[],D=[];for(let x of a){let N=f.normalizeRedirectResult(this._valueSchema.redirect(x,f),x);"remain"in N&&p.push(N.remain),D.push(...N.redirect.map(Ca))}return p.length===0?{redirect:D}:{redirect:D,remain:p}}overlap(a,f){return a.concat(f)}};function Ca({from:a,to:f}){return{from:[a],to:f}}var zu=class extends cr{expected(){return"true or false"}validate(a){return typeof a=="boolean"}};function Gu(a,f){let p=Object.create(null);for(let D of a){let x=D[f];if(p[x])throw new Error(`Duplicate ${f} ${JSON.stringify(x)}`);p[x]=D}return p}function Ju(a,f){let p=new Map;for(let D of a){let x=D[f];if(p.has(x))throw new Error(`Duplicate ${f} ${JSON.stringify(x)}`);p.set(x,D)}return p}function Qu(){let a=Object.create(null);return f=>{let p=JSON.stringify(f);return a[p]?!0:(a[p]=!0,!1)}}function Ku(a,f){let p=[],D=[];for(let x of a)f(x)?p.push(x):D.push(x);return[p,D]}function Xu(a){return a===Math.floor(a)}function Zu(a,f){if(a===f)return 0;let p=typeof a,D=typeof f,x=["undefined","object","boolean","number","string"];return p!==D?x.indexOf(p)-x.indexOf(D):p!=="string"?Number(a)-Number(f):a.localeCompare(f)}function ec(a){return(...f)=>{let p=a(...f);return typeof p=="string"?new Error(p):p}}function fi(a){return a===void 0?{}:a}function ka(a){if(typeof a=="string")return{text:a};let{text:f,list:p}=a;return tc((f||p)!==void 0,"Unexpected `expected` result, there should be at least one field."),p?{text:f,list:{title:p.title,values:p.values.map(ka)}}:{text:f}}function _a(a,f){return a===!0?!0:a===!1?{value:f}:a}function ho(a,f,p=!1){return a===!1?!1:a===!0?p?!0:[{value:f}]:"value"in a?[a]:a.length===0?!1:a}function mo(a,f){return typeof a=="string"||"key"in a?{from:f,to:a}:"from"in a?{from:a.from,to:a.to}:{from:f,to:a.to}}function hi(a,f){return a===void 0?[]:Array.isArray(a)?a.map(p=>mo(p,f)):[mo(a,f)]}function Fa(a,f){let p=hi(typeof a=="object"&&"redirect"in a?a.redirect:a,f);return p.length===0?{remain:f,redirect:p}:typeof a=="object"&&"remain"in a?{remain:a.remain,redirect:p}:{redirect:p}}function tc(a,f){if(!a)throw new Error(f)}var nc=class extends cr{constructor(a){super(a),this._choices=Ju(a.choices.map(f=>f&&typeof f=="object"?f:{value:f}),"value")}expected({descriptor:a}){let f=Array.from(this._choices.keys()).map(x=>this._choices.get(x)).filter(({hidden:x})=>!x).map(x=>x.value).sort(Zu).map(a.value),p=f.slice(0,-2),D=f.slice(-2);return{text:p.concat(D.join(" or ")).join(", "),list:{title:"one of the following values",values:f}}}validate(a){return this._choices.has(a)}deprecated(a){let f=this._choices.get(a);return f&&f.deprecated?{value:a}:!1}forward(a){let f=this._choices.get(a);return f?f.forward:void 0}redirect(a){let f=this._choices.get(a);return f?f.redirect:void 0}},rc=class extends cr{expected(){return"a number"}validate(a,f){return typeof a=="number"}},sc=class extends rc{expected(){return"an integer"}validate(a,f){return f.normalizeValidateResult(super.validate(a,f),a)===!0&&Xu(a)}},Ta=class extends cr{expected(){return"a string"}validate(a){return typeof a=="string"}},ic=jr,Ln=La,oc=$u,ac=Da,lc=class{constructor(a,f){let{logger:p=console,loggerPrintWidth:D=80,descriptor:x=ic,unknown:N=Ln,invalid:V=oc,deprecated:Z=ac,missing:ne=()=>!1,required:fe=()=>!1,preprocess:pe=ye=>ye,postprocess:Ce=()=>ci}=f||{};this._utils={descriptor:x,logger:p||{warn:()=>{}},loggerPrintWidth:D,schemas:Gu(a,"name"),normalizeDefaultResult:fi,normalizeExpectedResult:ka,normalizeDeprecatedResult:ho,normalizeForwardResult:hi,normalizeRedirectResult:Fa,normalizeValidateResult:_a},this._unknownHandler=N,this._invalidHandler=ec(V),this._deprecatedHandler=Z,this._identifyMissing=(ye,xe)=>!(ye in xe)||ne(ye,xe),this._identifyRequired=fe,this._preprocess=pe,this._postprocess=Ce,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Qu()}normalize(a){let f={},p=[this._preprocess(a,this._utils)],D=()=>{for(;p.length!==0;){let x=p.shift(),N=this._applyNormalization(x,f);p.push(...N)}};D();for(let x of Object.keys(this._utils.schemas)){let N=this._utils.schemas[x];if(!(x in f)){let V=fi(N.default(this._utils));"value"in V&&p.push({[x]:V.value})}}D();for(let x of Object.keys(this._utils.schemas)){if(!(x in f))continue;let N=this._utils.schemas[x],V=f[x],Z=N.postprocess(V,this._utils);Z!==ci&&(this._applyValidation(Z,x,N),f[x]=Z)}return this._applyPostprocess(f),this._applyRequiredCheck(f),f}_applyNormalization(a,f){let p=[],{knownKeys:D,unknownKeys:x}=this._partitionOptionKeys(a);for(let N of D){let V=this._utils.schemas[N],Z=V.preprocess(a[N],this._utils);this._applyValidation(Z,N,V);let ne=({from:Ce,to:ye})=>{p.push(typeof ye=="string"?{[ye]:Ce}:{[ye.key]:ye.value})},fe=({value:Ce,redirectTo:ye})=>{let xe=ho(V.deprecated(Ce,this._utils),Z,!0);if(xe!==!1)if(xe===!0)this._hasDeprecationWarned(N)||this._utils.logger.warn(this._deprecatedHandler(N,ye,this._utils));else for(let{value:Ee}of xe){let Me={key:N,value:Ee};if(!this._hasDeprecationWarned(Me)){let Ve=typeof ye=="string"?{key:ye,value:Ee}:ye;this._utils.logger.warn(this._deprecatedHandler(Me,Ve,this._utils))}}};hi(V.forward(Z,this._utils),Z).forEach(ne);let pe=Fa(V.redirect(Z,this._utils),Z);if(pe.redirect.forEach(ne),"remain"in pe){let Ce=pe.remain;f[N]=N in f?V.overlap(f[N],Ce,this._utils):Ce,fe({value:Ce})}for(let{from:Ce,to:ye}of pe.redirect)fe({value:Ce,redirectTo:ye})}for(let N of x){let V=a[N];this._applyUnknownHandler(N,V,f,(Z,ne)=>{p.push({[Z]:ne})})}return p}_applyRequiredCheck(a){for(let f of Object.keys(this._utils.schemas))if(this._identifyMissing(f,a)&&this._identifyRequired(f))throw this._invalidHandler(f,ui,this._utils)}_partitionOptionKeys(a){let[f,p]=Ku(Object.keys(a).filter(D=>!this._identifyMissing(D,a)),D=>D in this._utils.schemas);return{knownKeys:f,unknownKeys:p}}_applyValidation(a,f,p){let D=_a(p.validate(a,this._utils),a);if(D!==!0)throw this._invalidHandler(f,D.value,this._utils)}_applyUnknownHandler(a,f,p,D){let x=this._unknownHandler(a,f,this._utils);if(x)for(let N of Object.keys(x)){if(this._identifyMissing(N,x))continue;let V=x[N];N in this._utils.schemas?D(N,V):p[N]=V}}_applyPostprocess(a){let f=this._postprocess(a,this._utils);if(f!==ci){if(f.delete)for(let p of f.delete)delete a[p];if(f.override){let{knownKeys:p,unknownKeys:D}=this._partitionOptionKeys(f.override);for(let x of p){let N=f.override[x];this._applyValidation(N,x,this._utils.schemas[x]),a[x]=N}for(let x of D){let N=f.override[x];this._applyUnknownHandler(x,N,a,(V,Z)=>{let ne=this._utils.schemas[V];this._applyValidation(Z,V,ne),a[V]=Z})}}}}},go;function uc(a,f,{logger:p=!1,isCLI:D=!1,passThrough:x=!1,FlagSchema:N,descriptor:V}={}){if(D){if(!N)throw new Error("'FlagSchema' option is required.");if(!V)throw new Error("'descriptor' option is required.")}else V=jr;let Z=x?Array.isArray(x)?(ye,xe)=>x.includes(ye)?{[ye]:xe}:void 0:(ye,xe)=>({[ye]:xe}):(ye,xe,Ee)=>{let{_:Me,...Ve}=Ee.schemas;return La(ye,xe,{...Ee,schemas:Ve})},ne=cc(f,{isCLI:D,FlagSchema:N}),fe=new lc(ne,{logger:p,unknown:Z,descriptor:V}),pe=p!==!1;pe&&go&&(fe._hasDeprecationWarned=go);let Ce=fe.normalize(a);return pe&&(go=fe._hasDeprecationWarned),Ce}function cc(a,{isCLI:f,FlagSchema:p}){let D=[];f&&D.push(Hu.create({name:"_"}));for(let x of a)D.push(fc(x,{isCLI:f,optionInfos:a,FlagSchema:p})),x.alias&&f&&D.push(Wu.create({name:x.alias,sourceName:x.name}));return D}function fc(a,{isCLI:f,optionInfos:p,FlagSchema:D}){let{name:x}=a,N={name:x},V,Z={};switch(a.type){case"int":V=sc,f&&(N.preprocess=Number);break;case"string":V=Ta;break;case"choice":V=nc,N.choices=a.choices.map(ne=>ne!=null&&ne.redirect?{...ne,redirect:{to:{key:a.name,value:ne.redirect}}}:ne);break;case"boolean":V=zu;break;case"flag":V=D,N.flags=p.flatMap(ne=>[ne.alias,ne.description&&ne.name,ne.oppositeDescription&&`no-${ne.name}`].filter(Boolean));break;case"path":V=Ta;break;default:throw new Error(`Unexpected type ${a.type}`)}if(a.exception?N.validate=(ne,fe,pe)=>a.exception(ne)||fe.validate(ne,pe):N.validate=(ne,fe,pe)=>ne===void 0||fe.validate(ne,pe),a.redirect&&(Z.redirect=ne=>ne?{to:typeof a.redirect=="string"?a.redirect:{key:a.redirect.option,value:a.redirect.value}}:void 0),a.deprecated&&(Z.deprecated=!0),f&&!a.array){let ne=N.preprocess||(fe=>fe);N.preprocess=(fe,pe,Ce)=>pe.preprocess(ne(Array.isArray(fe)?Ht(!1,fe,-1):fe),Ce)}return a.array?Yu.create({...f?{preprocess:ne=>Array.isArray(ne)?ne:[ne]}:{},...Z,valueSchema:V.create(N)}):V.create({...N,...Z})}var hc=uc,dc=(a,f,p)=>{if(!(a&&f==null)){if(f.findLast)return f.findLast(p);for(let D=f.length-1;D>=0;D--){let x=f[D];if(p(x,D,f))return x}}},m=dc;function h(a,f){if(!f)throw new Error("parserName is required.");let p=m(!1,a,x=>x.parsers&&Object.prototype.hasOwnProperty.call(x.parsers,f));if(p)return p;let D=`Couldn't resolve parser "${f}".`;throw D+=" Plugins must be explicitly added to the standalone bundle.",new da(D)}function v(a,f){if(!f)throw new Error("astFormat is required.");let p=m(!1,a,x=>x.printers&&Object.prototype.hasOwnProperty.call(x.printers,f));if(p)return p;let D=`Couldn't find plugin for AST format "${f}".`;throw D+=" Plugins must be explicitly added to the standalone bundle.",new da(D)}function O({plugins:a,parser:f}){let p=h(a,f);return Q(p,f)}function Q(a,f){let p=a.parsers[f];return typeof p=="function"?p():p}function le(a,f){let p=a.printers[f];return typeof p=="function"?p():p}var ce={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function we(a,f={}){var p;let D={...a};if(!D.parser)if(D.filepath){if(D.parser=va(D,{physicalFile:D.filepath}),!D.parser)throw new ma(`No parser could be inferred for file "${D.filepath}".`)}else throw new ma("No parser and no file path given, couldn't infer a parser.");let x=ga({plugins:a.plugins,showDeprecated:!0}).options,N={...ce,...Object.fromEntries(x.filter(ye=>ye.default!==void 0).map(ye=>[ye.name,ye.default]))},V=h(D.plugins,D.parser),Z=await Q(V,D.parser);D.astFormat=Z.astFormat,D.locEnd=Z.locEnd,D.locStart=Z.locStart;let ne=(p=V.printers)!=null&&p[Z.astFormat]?V:v(D.plugins,Z.astFormat),fe=await le(ne,Z.astFormat);D.printer=fe;let pe=ne.defaultOptions?Object.fromEntries(Object.entries(ne.defaultOptions).filter(([,ye])=>ye!==void 0)):{},Ce={...N,...pe};for(let[ye,xe]of Object.entries(Ce))(D[ye]===null||D[ye]===void 0)&&(D[ye]=xe);return D.parser==="json"&&(D.trailingComma="none"),hc(D,x,{passThrough:Object.keys(ce),...f})}var De=we,Te=y(j());async function Oe(a,f){let p=await O(f),D=p.preprocess?p.preprocess(a,f):a;f.originalText=D;let x;try{x=await p.parse(D,f,f)}catch(N){it(N,a)}return{text:D,ast:x}}function it(a,f){let{loc:p}=a;if(p){let D=(0,Te.codeFrameColumns)(f,p,{highlightCode:!0});throw a.message+=`
181
- `+D,a.codeFrame=D,a}throw a}var yt=Oe;async function Ye(a,f,p,D,x){let{embeddedLanguageFormatting:N,printer:{embed:V,hasPrettierIgnore:Z=()=>!1,getVisitorKeys:ne}}=p;if(!V||N!=="auto")return;if(V.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let fe=ur(V.getVisitorKeys??ne),pe=[];xe();let Ce=a.stack;for(let{print:Ee,node:Me,pathStack:Ve}of pe)try{a.stack=Ve;let ct=await Ee(ye,f,a,p);ct&&x.set(Me,ct)}catch(ct){if(globalThis.PRETTIER_DEBUG)throw ct}a.stack=Ce;function ye(Ee,Me){return gt(Ee,Me,p,D)}function xe(){let{node:Ee}=a;if(Ee===null||typeof Ee!="object"||Z(a))return;for(let Ve of fe(Ee))Array.isArray(Ee[Ve])?a.each(xe,Ve):a.call(xe,Ve);let Me=V(a,p);if(Me){if(typeof Me=="function"){pe.push({print:Me,node:Ee,pathStack:[...a.stack]});return}x.set(Ee,Me)}}}async function gt(a,f,p,D){let x=await De({...p,...f,parentParser:p.parser,originalText:a},{passThrough:!0}),{ast:N}=await yt(a,x),V=await D(N,x);return Xo(V)}function nt(a,f){let{originalText:p,[Symbol.for("comments")]:D,locStart:x,locEnd:N,[Symbol.for("printedComments")]:V}=f,{node:Z}=a,ne=x(Z),fe=N(Z);for(let pe of D)x(pe)>=ne&&N(pe)<=fe&&V.add(pe);return p.slice(ne,fe)}var dt=nt;async function Mt(a,f){({ast:a}=await R(a,f));let p=new Map,D=new aa(a),x=new Map;await Ye(D,V,f,Mt,x);let N=await Ae(D,f,V,void 0,x);if(Ru(f),f.nodeAfterCursor&&!f.nodeBeforeCursor)return[lr,N];if(f.nodeBeforeCursor&&!f.nodeAfterCursor)return[N,lr];return N;function V(ne,fe){return ne===void 0||ne===D?Z(fe):Array.isArray(ne)?D.call(()=>Z(fe),...ne):D.call(()=>Z(fe),ne)}function Z(ne){let fe=D.node;if(fe==null)return"";let pe=fe&&typeof fe=="object"&&ne===void 0;if(pe&&p.has(fe))return p.get(fe);let Ce=Ae(D,f,V,ne,x);return pe&&p.set(fe,Ce),Ce}}function Ae(a,f,p,D,x){var N;let{node:V}=a,{printer:Z}=f,ne;switch((N=Z.hasPrettierIgnore)!=null&&N.call(Z,a)?ne=dt(a,f):x.has(V)?ne=x.get(V):ne=Z.print(a,f,p,D),V){case f.cursorNode:ne=Zs(ne,fe=>[lr,fe,lr]);break;case f.nodeBeforeCursor:ne=Zs(ne,fe=>[fe,lr]);break;case f.nodeAfterCursor:ne=Zs(ne,fe=>[lr,fe]);break}return Z.printComment&&(!Z.willPrintOwnComments||!Z.willPrintOwnComments(a,f))&&(ne=Ou(a,ne,f)),ne}async function R(a,f){let p=a.comments??[];f[Symbol.for("comments")]=p,f[Symbol.for("tokens")]=a.tokens??[],f[Symbol.for("printedComments")]=new Set,Fu(a,f);let{printer:{preprocess:D}}=f;return a=D?await D(a,f):a,{ast:a,comments:p}}function L(a,f){let{cursorOffset:p,locStart:D,locEnd:x}=f,N=ur(f.printer.getVisitorKeys),V=xe=>D(xe)<=p&&x(xe)>=p,Z=a,ne=[a];for(let xe of Eu(a,{getVisitorKeys:N,filter:V}))ne.push(xe),Z=xe;if(Au(Z,{getVisitorKeys:N}))return{cursorNode:Z};let fe,pe,Ce=-1,ye=Number.POSITIVE_INFINITY;for(;ne.length>0&&(fe===void 0||pe===void 0);){Z=ne.pop();let xe=fe!==void 0,Ee=pe!==void 0;for(let Me of Pr(Z,{getVisitorKeys:N})){if(!xe){let Ve=x(Me);Ve<=p&&Ve>Ce&&(fe=Me,Ce=Ve)}if(!Ee){let Ve=D(Me);Ve>=p&&Ve<ye&&(pe=Me,ye=Ve)}}}return{nodeBeforeCursor:fe,nodeAfterCursor:pe}}var S=L;function C(a,f){let{printer:{massageAstNode:p,getVisitorKeys:D}}=f;if(!p)return a;let x=ur(D),N=p.ignoredProperties??new Set;return V(a);function V(Z,ne){if(!(Z!==null&&typeof Z=="object"))return Z;if(Array.isArray(Z))return Z.map(ye=>V(ye,ne)).filter(Boolean);let fe={},pe=new Set(x(Z));for(let ye in Z)!Object.prototype.hasOwnProperty.call(Z,ye)||N.has(ye)||(pe.has(ye)?fe[ye]=V(Z[ye],Z):fe[ye]=Z[ye]);let Ce=p(Z,fe,ne);if(Ce!==null)return Ce??fe}}var _=C,U=(a,f,p)=>{if(!(a&&f==null)){if(f.findLastIndex)return f.findLastIndex(p);for(let D=f.length-1;D>=0;D--){let x=f[D];if(p(x,D,f))return D}return-1}},I=U,G=({parser:a})=>a==="json"||a==="json5"||a==="jsonc"||a==="json-stringify";function oe(a,f){let p=[a.node,...a.parentNodes],D=new Set([f.node,...f.parentNodes]);return p.find(x=>je.has(x.type)&&D.has(x))}function ge(a){let f=I(!1,a,p=>p.type!=="Program"&&p.type!=="File");return f===-1?a:a.slice(0,f+1)}function Le(a,f,{locStart:p,locEnd:D}){let x=a.node,N=f.node;if(x===N)return{startNode:x,endNode:N};let V=p(a.node);for(let ne of ge(f.parentNodes))if(p(ne)>=V)N=ne;else break;let Z=D(f.node);for(let ne of ge(a.parentNodes)){if(D(ne)<=Z)x=ne;else break;if(x===N)break}return{startNode:x,endNode:N}}function Ie(a,f,p,D,x=[],N){let{locStart:V,locEnd:Z}=p,ne=V(a),fe=Z(a);if(!(f>fe||f<ne||N==="rangeEnd"&&f===ne||N==="rangeStart"&&f===fe)){for(let pe of oi(a,p)){let Ce=Ie(pe,f,p,D,[a,...x],N);if(Ce)return Ce}if(!D||D(a,x[0]))return{node:a,parentNodes:x}}}function qe(a,f){return f!=="DeclareExportDeclaration"&&a!=="TypeParameterDeclaration"&&(a==="Directive"||a==="TypeAlias"||a==="TSExportAssignment"||a.startsWith("Declare")||a.startsWith("TSDeclare")||a.endsWith("Statement")||a.endsWith("Declaration"))}var je=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),Je=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function Ot(a,f,p){if(!f)return!1;switch(a.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return qe(f.type,p?.type);case"json":case"json5":case"jsonc":case"json-stringify":return je.has(f.type);case"graphql":return Je.has(f.kind);case"vue":return f.tag!=="root"}return!1}function Cn(a,f,p){let{rangeStart:D,rangeEnd:x,locStart:N,locEnd:V}=f;ii.ok(x>D);let Z=a.slice(D,x).search(/\S/u),ne=Z===-1;if(!ne)for(D+=Z;x>D&&!/\S/u.test(a[x-1]);--x);let fe=Ie(p,D,f,(xe,Ee)=>Ot(f,xe,Ee),[],"rangeStart"),pe=ne?fe:Ie(p,x,f,xe=>Ot(f,xe),[],"rangeEnd");if(!fe||!pe)return{rangeStart:0,rangeEnd:0};let Ce,ye;if(G(f)){let xe=oe(fe,pe);Ce=xe,ye=xe}else({startNode:Ce,endNode:ye}=Le(fe,pe,f));return{rangeStart:Math.min(N(Ce),N(ye)),rangeEnd:Math.max(V(Ce),V(ye))}}var kn="\uFEFF",de=Symbol("cursor");async function Re(a,f,p=0){if(!a||a.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:D,text:x}=await yt(a,f);f.cursorOffset>=0&&(f={...f,...S(D,f)});let N=await Mt(D,f);p>0&&(N=eo([Or,N],p,f.tabWidth));let V=Ls(N,f);if(p>0){let ne=V.formatted.trim();V.cursorNodeStart!==void 0&&(V.cursorNodeStart-=V.formatted.indexOf(ne),V.cursorNodeStart<0&&(V.cursorNodeStart=0,V.cursorNodeText=V.cursorNodeText.trimStart()),V.cursorNodeStart+V.cursorNodeText.length>ne.length&&(V.cursorNodeText=V.cursorNodeText.trimEnd())),V.formatted=ne+Ji(f.endOfLine)}let Z=f[Symbol.for("comments")];if(f.cursorOffset>=0){let ne,fe,pe,Ce;if((f.cursorNode||f.nodeBeforeCursor||f.nodeAfterCursor)&&V.cursorNodeText)if(pe=V.cursorNodeStart,Ce=V.cursorNodeText,f.cursorNode)ne=f.locStart(f.cursorNode),fe=x.slice(ne,f.locEnd(f.cursorNode));else{if(!f.nodeBeforeCursor&&!f.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");ne=f.nodeBeforeCursor?f.locEnd(f.nodeBeforeCursor):0;let ct=f.nodeAfterCursor?f.locStart(f.nodeAfterCursor):x.length;fe=x.slice(ne,ct)}else ne=0,fe=x,pe=0,Ce=V.formatted;let ye=f.cursorOffset-ne;if(fe===Ce)return{formatted:V.formatted,cursorOffset:pe+ye,comments:Z};let xe=fe.split("");xe.splice(ye,0,de);let Ee=Ce.split(""),Me=Qs(xe,Ee),Ve=pe;for(let ct of Me)if(ct.removed){if(ct.value.includes(de))break}else Ve+=ct.count;return{formatted:V.formatted,cursorOffset:Ve,comments:Z}}return{formatted:V.formatted,cursorOffset:-1,comments:Z}}async function Ue(a,f){let{ast:p,text:D}=await yt(a,f),{rangeStart:x,rangeEnd:N}=Cn(D,f,p),V=D.slice(x,N),Z=Math.min(x,D.lastIndexOf(`
182
- `,x)+1),ne=D.slice(Z,x).match(/^\s*/u)[0],fe=io(ne,f.tabWidth),pe=await Re(V,{...f,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:f.cursorOffset>x&&f.cursorOffset<=N?f.cursorOffset-x:-1,endOfLine:"lf"},fe),Ce=pe.formatted.trimEnd(),{cursorOffset:ye}=f;ye>N?ye+=Ce.length-V.length:pe.cursorOffset>=0&&(ye=pe.cursorOffset+x);let xe=D.slice(0,x)+Ce+D.slice(N);if(f.endOfLine!=="lf"){let Ee=Ji(f.endOfLine);ye>=0&&Ee===`\r
183
- `&&(ye+=zo(xe.slice(0,ye),`
184
- `)),xe=M(!1,xe,`
185
- `,Ee)}return{formatted:xe,cursorOffset:ye,comments:pe.comments}}function Be(a,f,p){return typeof f!="number"||Number.isNaN(f)||f<0||f>a.length?p:f}function Ke(a,f){let{cursorOffset:p,rangeStart:D,rangeEnd:x}=f;return p=Be(a,p,-1),D=Be(a,D,0),x=Be(a,x,a.length),{...f,cursorOffset:p,rangeStart:D,rangeEnd:x}}function lt(a,f){let{cursorOffset:p,rangeStart:D,rangeEnd:x,endOfLine:N}=Ke(a,f),V=a.charAt(0)===kn;if(V&&(a=a.slice(1),p--,D--,x--),N==="auto"&&(N=Kl(a)),a.includes("\r")){let Z=ne=>zo(a.slice(0,Math.max(ne,0)),`\r
186
- `);p-=Z(p),D-=Z(D),x-=Z(x),a=Xl(a)}return{hasBOM:V,text:a,options:Ke(a,{...f,cursorOffset:p,rangeStart:D,rangeEnd:x,endOfLine:N})}}async function gn(a,f){let p=await O(f);return!p.hasPragma||p.hasPragma(a)}async function Qn(a,f){let{hasBOM:p,text:D,options:x}=lt(a,await De(f));if(x.rangeStart>=x.rangeEnd&&D!==""||x.requirePragma&&!await gn(D,x))return{formatted:a,cursorOffset:f.cursorOffset,comments:[]};let N;return x.rangeStart>0||x.rangeEnd<D.length?N=await Ue(D,x):(!x.requirePragma&&x.insertPragma&&x.printer.insertPragma&&!await gn(D,x)&&(D=x.printer.insertPragma(D)),N=await Re(D,x)),p&&(N.formatted=kn+N.formatted,N.cursorOffset>=0&&N.cursorOffset++),N}async function fr(a,f,p){let{text:D,options:x}=lt(a,await De(f)),N=await yt(D,x);return p&&(p.preprocessForPrint&&(N.ast=await R(N.ast,x)),p.massage&&(N.ast=_(N.ast,x))),N}async function Kn(a,f){f=await De(f);let p=await Mt(a,f);return Ls(p,f)}async function Ts(a,f){let p=du(a),{formatted:D}=await Qn(p,{...f,parser:"__js_expression"});return D}async function di(a,f){f=await De(f);let{ast:p}=await yt(a,f);return Mt(p,f)}async function mc(a,f){return Ls(a,await De(f))}var Ma={};g(Ma,{builders:()=>gc,printer:()=>pc,utils:()=>Er});var gc={join:ni,line:xn,softline:na,hardline:Or,literalline:ra,group:zn,conditionalGroup:ea,fill:Zi,lineSuffix:ns,lineSuffixBoundary:hu,cursor:lr,breakParent:On,ifBreak:ta,trim:rs,indent:ei,indentIfBreak:fu,align:Yn,addAlignmentToDoc:eo,markAsRoot:xs,dedentToRoot:Zo,dedent:cu,hardlineWithoutBreakParent:ti,literallineWithoutBreakParent:Nn,label:sa,concat:a=>a},pc={printDocToString:Ls},Er={willBreak:tu,traverseDoc:Ki,findInDoc:Xi,mapDoc:Ks,removeLines:ru,stripTrailingHardline:Xo,replaceEndOfLine:ou,canBreak:au},bc="3.5.3",Oa={};g(Oa,{addDanglingComment:()=>Br,addLeadingComment:()=>as,addTrailingComment:()=>$r,getAlignmentSize:()=>io,getIndentSize:()=>J,getMaxContinuousCount:()=>be,getNextNonSpaceNonCommentCharacter:()=>Ne,getNextNonSpaceNonCommentCharacterIndex:()=>vt,getPreferredQuote:()=>Lt,getStringWidth:()=>no,hasNewline:()=>Rn,hasNewlineInRange:()=>Ct,hasSpaces:()=>wt,isNextLineEmpty:()=>Lg,isNextLineEmptyAfterIndex:()=>F,isPreviousLineEmpty:()=>wc,makeString:()=>pt,skip:()=>is,skipEverythingButNewLine:()=>Bt,skipInlineComment:()=>po,skipNewline:()=>Jn,skipSpaces:()=>Dr,skipToLineEnd:()=>oo,skipTrailingComment:()=>bo,skipWhitespace:()=>Nu});function yc(a,f){if(f===!1)return!1;if(a.charAt(f)==="/"&&a.charAt(f+1)==="*"){for(let p=f+2;p<a.length;++p)if(a.charAt(p)==="*"&&a.charAt(p+1)==="/")return p+2}return f}var po=yc;function vc(a,f){return f===!1?!1:a.charAt(f)==="/"&&a.charAt(f+1)==="/"?Bt(a,f):f}var bo=vc;function Dc(a,f){let p=null,D=f;for(;D!==p;)p=D,D=Dr(a,D),D=po(a,D),D=bo(a,D),D=Jn(a,D);return D}var yo=Dc;function $(a,f){let p=null,D=f;for(;D!==p;)p=D,D=oo(a,D),D=po(a,D),D=Dr(a,D);return D=bo(a,D),D=Jn(a,D),D!==!1&&Rn(a,D)}var F=$;function q(a,f){let p=a.lastIndexOf(`
187
- `);return p===-1?0:io(a.slice(p+1).match(/^[\t ]*/u)[0],f)}var J=q;function ie(a){if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ue(a,f){let p=a.match(new RegExp(`(${ie(f)})+`,"gu"));return p===null?0:p.reduce((D,x)=>Math.max(D,x.length/f.length),0)}var be=ue;function ve(a,f){let p=yo(a,f);return p===!1?"":a.charAt(p)}var Ne=ve,ke="'",Pe='"';function He(a,f){let p=f===!0||f===ke?ke:Pe,D=p===ke?Pe:ke,x=0,N=0;for(let V of a)V===p?x++:V===D&&N++;return x>N?D:p}var Lt=He;function st(a,f,p){for(let D=f;D<p;++D)if(a.charAt(D)===`
188
- `)return!0;return!1}var Ct=st;function ut(a,f,p={}){return Dr(a,p.backwards?f-1:f,p)!==f}var wt=ut;function Qt(a,f,p){let D=f==='"'?"'":'"',x=M(!1,a,/\\(.)|(["'])/gsu,(N,V,Z)=>V===D?V:Z===f?"\\"+Z:Z||(p&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(V)?V:"\\"+V));return f+x+f}var pt=Qt;function Rt(a,f,p){return yo(a,p(f))}function vt(a,f){return arguments.length===2||typeof f=="number"?yo(a,f):Rt(...arguments)}function cn(a,f,p){return ai(a,p(f))}function wc(a,f){return arguments.length===2||typeof f=="number"?ai(a,f):cn(...arguments)}function xg(a,f,p){return F(a,p(f))}function Lg(a,f){return arguments.length===2||typeof f=="number"?F(a,f):xg(...arguments)}function Ms(a,f=1){return async(...p)=>{let D=p[f]??{},x=D.plugins??[];return p[f]={...D,plugins:Array.isArray(x)?x:Object.values(x)},a(...p)}}var Lh=Ms(Qn);async function Ch(a,f){let{formatted:p}=await Lh(a,{...f,cursorOffset:-1});return p}async function Cg(a,f){return await Ch(a,f)===a}var kg=Ms(ga,0),_g={parse:Ms(fr),formatAST:Ms(Kn),formatDoc:Ms(Ts),printToDoc:Ms(di),printDocToString:Ms(mc)};return w(H)})}(jc)),jc.exports}var U2=j2(),Uc={exports:{}},S0;function q2(){return S0||(S0=1,function(e,t){(function(n){function r(){var s=n();return s.default||s}e.exports=r()})(function(){var n=Object.create,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(m,h)=>()=>(h||m((h={exports:{}}).exports,h),h.exports),c=(m,h)=>{for(var v in h)r(m,v,{get:h[v],enumerable:!0})},g=(m,h,v,O)=>{if(h&&typeof h=="object"||typeof h=="function")for(let Q of i(h))!l.call(m,Q)&&Q!==v&&r(m,Q,{get:()=>h[Q],enumerable:!(O=s(h,Q))||O.enumerable});return m},d=(m,h,v)=>(v=m!=null?n(o(m)):{},g(r(v,"default",{value:m,enumerable:!0}),m)),y=m=>g(r({},"__esModule",{value:!0}),m),w=u(m=>{var h={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},v={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},O="tag:yaml.org,2002:",Q={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function le(R){let L=[0],S=R.indexOf(`
189
- `);for(;S!==-1;)S+=1,L.push(S),S=R.indexOf(`
190
- `,S);return L}function ce(R){let L,S;return typeof R=="string"?(L=le(R),S=R):(Array.isArray(R)&&(R=R[0]),R&&R.context&&(R.lineStarts||(R.lineStarts=le(R.context.src)),L=R.lineStarts,S=R.context.src)),{lineStarts:L,src:S}}function we(R,L){if(typeof R!="number"||R<0)return null;let{lineStarts:S,src:C}=ce(L);if(!S||!C||R>C.length)return null;for(let U=0;U<S.length;++U){let I=S[U];if(R<I)return{line:U,col:R-S[U-1]+1};if(R===I)return{line:U+1,col:1}}let _=S.length;return{line:_,col:R-S[_-1]+1}}function De(R,L){let{lineStarts:S,src:C}=ce(L);if(!S||!(R>=1)||R>S.length)return null;let _=S[R-1],U=S[R];for(;U&&U>_&&C[U-1]===`
191
- `;)--U;return C.slice(_,U)}function Te({start:R,end:L},S,C=80){let _=De(R.line,S);if(!_)return null;let{col:U}=R;if(_.length>C)if(U<=C-10)_=_.substr(0,C-1)+"…";else{let Le=Math.round(C/2);_.length>U+Le&&(_=_.substr(0,U+Le-1)+"…"),U-=_.length-C,_="…"+_.substr(1-C)}let I=1,G="";L&&(L.line===R.line&&U+(L.col-R.col)<=C+1?I=L.col-R.col:(I=Math.min(_.length+1,C)-U,G="…"));let oe=U>1?" ".repeat(U-1):"",ge="^".repeat(I);return`${_}
192
- ${oe}${ge}${G}`}var Oe=class Zm{static copy(L){return new Zm(L.start,L.end)}constructor(L,S){this.start=L,this.end=S||L}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(L,S){let{start:C,end:_}=this;if(L.length===0||_<=L[0])return this.origStart=C,this.origEnd=_,S;let U=S;for(;U<L.length&&!(L[U]>C);)++U;this.origStart=C+U;let I=U;for(;U<L.length&&!(L[U]>=_);)++U;return this.origEnd=_+U,I}},it=class Wr{static addStringTerminator(L,S,C){if(C[C.length-1]===`
193
- `)return C;let _=Wr.endOfWhiteSpace(L,S);return _>=L.length||L[_]===`
194
- `?C+`
195
- `:C}static atDocumentBoundary(L,S,C){let _=L[S];if(!_)return!0;let U=L[S-1];if(U&&U!==`
196
- `)return!1;if(C){if(_!==C)return!1}else if(_!==h.DIRECTIVES_END&&_!==h.DOCUMENT_END)return!1;let I=L[S+1],G=L[S+2];if(I!==_||G!==_)return!1;let oe=L[S+3];return!oe||oe===`
197
- `||oe===" "||oe===" "}static endOfIdentifier(L,S){let C=L[S],_=C==="<",U=_?[`
198
- `," "," ",">"]:[`
199
- `," "," ","[","]","{","}",","];for(;C&&U.indexOf(C)===-1;)C=L[S+=1];return _&&C===">"&&(S+=1),S}static endOfIndent(L,S){let C=L[S];for(;C===" ";)C=L[S+=1];return S}static endOfLine(L,S){let C=L[S];for(;C&&C!==`
200
- `;)C=L[S+=1];return S}static endOfWhiteSpace(L,S){let C=L[S];for(;C===" "||C===" ";)C=L[S+=1];return S}static startOfLine(L,S){let C=L[S-1];if(C===`
201
- `)return S;for(;C&&C!==`
202
- `;)C=L[S-=1];return S+1}static endOfBlockIndent(L,S,C){let _=Wr.endOfIndent(L,C);if(_>C+S)return _;{let U=Wr.endOfWhiteSpace(L,_),I=L[U];if(!I||I===`
203
- `)return U}return null}static atBlank(L,S,C){let _=L[S];return _===`
204
- `||_===" "||_===" "||C&&!_}static nextNodeIsIndented(L,S,C){return!L||S<0?!1:S>0?!0:C&&L==="-"}static normalizeOffset(L,S){let C=L[S];return C?C!==`
205
- `&&L[S-1]===`
206
- `?S-1:Wr.endOfWhiteSpace(L,S):S}static foldNewline(L,S,C){let _=0,U=!1,I="",G=L[S+1];for(;G===" "||G===" "||G===`
207
- `;){switch(G){case`
208
- `:_=0,S+=1,I+=`
209
- `;break;case" ":_<=C&&(U=!0),S=Wr.endOfWhiteSpace(L,S+2)-1;break;case" ":_+=1,S+=1;break}G=L[S+1]}return I||(I=" "),G&&_<=C&&(U=!0),{fold:I,offset:S,error:U}}constructor(L,S,C){Object.defineProperty(this,"context",{value:C||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=S||[],this.type=L,this.value=null}getPropValue(L,S,C){if(!this.context)return null;let{src:_}=this.context,U=this.props[L];return U&&_[U.start]===S?_.slice(U.start+(C?1:0),U.end):null}get anchor(){for(let L=0;L<this.props.length;++L){let S=this.getPropValue(L,h.ANCHOR,!0);if(S!=null)return S}return null}get comment(){let L=[];for(let S=0;S<this.props.length;++S){let C=this.getPropValue(S,h.COMMENT,!0);C!=null&&L.push(C)}return L.length>0?L.join(`
210
- `):null}commentHasRequiredWhitespace(L){let{src:S}=this.context;if(this.header&&L===this.header.end||!this.valueRange)return!1;let{end:C}=this.valueRange;return L!==C||Wr.atBlank(S,C-1)}get hasComment(){if(this.context){let{src:L}=this.context;for(let S=0;S<this.props.length;++S)if(L[this.props[S].start]===h.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:L}=this.context;for(let S=0;S<this.props.length;++S)if(L[this.props[S].start]!==h.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[v.FLOW_MAP,v.FLOW_SEQ,v.QUOTE_DOUBLE,v.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let L=we(this.range.start,this.context.root);if(!L)return;let S=we(this.range.end,this.context.root);return{start:L,end:S}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:L,end:S}=this.valueRange;return this.context.src.slice(L,S)}get tag(){for(let L=0;L<this.props.length;++L){let S=this.getPropValue(L,h.TAG,!1);if(S!=null){if(S[1]==="<")return{verbatim:S.slice(2,-1)};{let[C,_,U]=S.match(/^(.*!)([^!]*)$/);return{handle:_,suffix:U}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:L,end:S}=this.valueRange,{src:C}=this.context;for(let _=L;_<S;++_)if(C[_]===`
211
- `)return!0;return!1}parseComment(L){let{src:S}=this.context;if(S[L]===h.COMMENT){let C=Wr.endOfLine(S,L+1),_=new Oe(L,C);return this.props.push(_),C}return L}setOrigRanges(L,S){return this.range&&(S=this.range.setOrigRange(L,S)),this.valueRange&&this.valueRange.setOrigRange(L,S),this.props.forEach(C=>C.setOrigRange(L,S)),S}toString(){let{context:{src:L},range:S,value:C}=this;if(C!=null)return C;let _=L.slice(S.start,S.end);return Wr.addStringTerminator(L,S.end,_)}},yt=class extends Error{constructor(R,L,S){if(!S||!(L instanceof it))throw new Error(`Invalid arguments for new ${R}`);super(),this.name=R,this.message=S,this.source=L}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let R=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Oe(this.offset,this.offset+1);let L=R&&we(this.offset,R);if(L){let S={line:L.line,col:L.col+1};this.linePos={start:L,end:S}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:L,col:S}=this.linePos.start;this.message+=` at line ${L}, column ${S}`;let C=R&&Te(this.linePos,R);C&&(this.message+=`:
212
-
213
- ${C}
214
- `)}delete this.source}},Ye=class extends yt{constructor(R,L){super("YAMLReferenceError",R,L)}},gt=class extends yt{constructor(R,L){super("YAMLSemanticError",R,L)}},nt=class extends yt{constructor(R,L){super("YAMLSyntaxError",R,L)}},dt=class extends yt{constructor(R,L){super("YAMLWarning",R,L)}};function Mt(R,L,S){return L in R?Object.defineProperty(R,L,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[L]=S,R}var Ae=class Yf extends it{static endOfLine(L,S,C){let _=L[S],U=S;for(;_&&_!==`
215
- `&&!(C&&(_==="["||_==="]"||_==="{"||_==="}"||_===","));){let I=L[U+1];if(_===":"&&(!I||I===`
216
- `||I===" "||I===" "||C&&I===",")||(_===" "||_===" ")&&I==="#")break;U+=1,_=I}return U}get strValue(){if(!this.valueRange||!this.context)return null;let{start:L,end:S}=this.valueRange,{src:C}=this.context,_=C[S-1];for(;L<S&&(_===`
217
- `||_===" "||_===" ");)_=C[--S-1];let U="";for(let G=L;G<S;++G){let oe=C[G];if(oe===`
218
- `){let{fold:ge,offset:Le}=it.foldNewline(C,G,-1);U+=ge,G=Le}else if(oe===" "||oe===" "){let ge=G,Le=C[G+1];for(;G<S&&(Le===" "||Le===" ");)G+=1,Le=C[G+1];Le!==`
219
- `&&(U+=G>ge?C.slice(ge,G+1):oe)}else U+=oe}let I=C[L];switch(I){case" ":{let G="Plain value cannot start with a tab character";return{errors:[new gt(this,G)],str:U}}case"@":case"`":{let G=`Plain value cannot start with reserved character ${I}`;return{errors:[new gt(this,G)],str:U}}default:return U}}parseBlockValue(L){let{indent:S,inFlow:C,src:_}=this.context,U=L,I=L;for(let G=_[U];G===`
220
- `&&!it.atDocumentBoundary(_,U+1);G=_[U]){let oe=it.endOfBlockIndent(_,S,U+1);if(oe===null||_[oe]==="#")break;_[oe]===`
221
- `?U=oe:(I=Yf.endOfLine(_,oe,C),U=I)}return this.valueRange.isEmpty()&&(this.valueRange.start=L),this.valueRange.end=I,I}parse(L,S){this.context=L;let{inFlow:C,src:_}=L,U=S,I=_[U];return I&&I!=="#"&&I!==`
222
- `&&(U=Yf.endOfLine(_,S,C)),this.valueRange=new Oe(S,U),U=it.endOfWhiteSpace(_,U),U=this.parseComment(U),(!this.hasComment||this.valueRange.isEmpty())&&(U=this.parseBlockValue(U)),U}};m.Char=h,m.Node=it,m.PlainValue=Ae,m.Range=Oe,m.Type=v,m.YAMLError=yt,m.YAMLReferenceError=Ye,m.YAMLSemanticError=gt,m.YAMLSyntaxError=nt,m.YAMLWarning=dt,m._defineProperty=Mt,m.defaultTagPrefix=O,m.defaultTags=Q}),k=u(m=>{var h=w(),v=class extends h.Node{constructor(){super(h.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(Ae,R){return this.context=Ae,this.range=new h.Range(R,R+1),R+1}},O=class extends h.Node{constructor(Ae,R){super(Ae,R),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(Ae,R){this.context=Ae;let{parseNode:L,src:S}=Ae,{atLineStart:C,lineStart:_}=Ae;!C&&this.type===h.Type.SEQ_ITEM&&(this.error=new h.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let U=C?R-_:Ae.indent,I=h.Node.endOfWhiteSpace(S,R+1),G=S[I],oe=G==="#",ge=[],Le=null;for(;G===`
223
- `||G==="#";){if(G==="#"){let qe=h.Node.endOfLine(S,I+1);ge.push(new h.Range(I,qe)),I=qe}else{C=!0,_=I+1;let qe=h.Node.endOfWhiteSpace(S,_);S[qe]===`
224
- `&&ge.length===0&&(Le=new v,_=Le.parse({src:S},_)),I=h.Node.endOfIndent(S,_)}G=S[I]}if(h.Node.nextNodeIsIndented(G,I-(_+U),this.type!==h.Type.SEQ_ITEM)?this.node=L({atLineStart:C,inCollection:!1,indent:U,lineStart:_,parent:this},I):G&&_>R+1&&(I=_-1),this.node){if(Le){let qe=Ae.parent.items||Ae.parent.contents;qe&&qe.push(Le)}ge.length&&Array.prototype.push.apply(this.props,ge),I=this.node.range.end}else if(oe){let qe=ge[0];this.props.push(qe),I=qe.end}else I=h.Node.endOfLine(S,R+1);let Ie=this.node?this.node.valueRange.end:I;return this.valueRange=new h.Range(R,Ie),I}setOrigRanges(Ae,R){return R=super.setOrigRanges(Ae,R),this.node?this.node.setOrigRanges(Ae,R):R}toString(){let{context:{src:Ae},node:R,range:L,value:S}=this;if(S!=null)return S;let C=R?Ae.slice(L.start,R.range.start)+String(R):Ae.slice(L.start,L.end);return h.Node.addStringTerminator(Ae,L.end,C)}},Q=class extends h.Node{constructor(){super(h.Type.COMMENT)}parse(Ae,R){this.context=Ae;let L=this.parseComment(R);return this.range=new h.Range(R,L),L}};function le(Ae){let R=Ae;for(;R instanceof O;)R=R.node;if(!(R instanceof ce))return null;let L=R.items.length,S=-1;for(let U=L-1;U>=0;--U){let I=R.items[U];if(I.type===h.Type.COMMENT){let{indent:G,lineStart:oe}=I.context;if(G>0&&I.range.start>=oe+G)break;S=U}else if(I.type===h.Type.BLANK_LINE)S=U;else break}if(S===-1)return null;let C=R.items.splice(S,L-S),_=C[0].range.start;for(;R.range.end=_,R.valueRange&&R.valueRange.end>_&&(R.valueRange.end=_),R!==Ae;)R=R.context.parent;return C}var ce=class zf extends h.Node{static nextContentHasIndent(R,L,S){let C=h.Node.endOfLine(R,L)+1;L=h.Node.endOfWhiteSpace(R,C);let _=R[L];return _?L>=C+S?!0:_!=="#"&&_!==`
225
- `?!1:zf.nextContentHasIndent(R,L,S):!1}constructor(R){super(R.type===h.Type.SEQ_ITEM?h.Type.SEQ:h.Type.MAP);for(let S=R.props.length-1;S>=0;--S)if(R.props[S].start<R.context.lineStart){this.props=R.props.slice(0,S+1),R.props=R.props.slice(S+1);let C=R.props[0]||R.valueRange;R.range.start=C.start;break}this.items=[R];let L=le(R);L&&Array.prototype.push.apply(this.items,L)}get includesTrailingLines(){return this.items.length>0}parse(R,L){this.context=R;let{parseNode:S,src:C}=R,_=h.Node.startOfLine(C,L),U=this.items[0];U.context.parent=this,this.valueRange=h.Range.copy(U.valueRange);let I=U.range.start-U.context.lineStart,G=L;G=h.Node.normalizeOffset(C,G);let oe=C[G],ge=h.Node.endOfWhiteSpace(C,_)===G,Le=!1;for(;oe;){for(;oe===`
226
- `||oe==="#";){if(ge&&oe===`
227
- `&&!Le){let je=new v;if(G=je.parse({src:C},G),this.valueRange.end=G,G>=C.length){oe=null;break}this.items.push(je),G-=1}else if(oe==="#"){if(G<_+I&&!zf.nextContentHasIndent(C,G,I))return G;let je=new Q;if(G=je.parse({indent:I,lineStart:_,src:C},G),this.items.push(je),this.valueRange.end=G,G>=C.length){oe=null;break}}if(_=G+1,G=h.Node.endOfIndent(C,_),h.Node.atBlank(C,G)){let je=h.Node.endOfWhiteSpace(C,G),Je=C[je];(!Je||Je===`
228
- `||Je==="#")&&(G=je)}oe=C[G],ge=!0}if(!oe)break;if(G!==_+I&&(ge||oe!==":")){if(G<_+I){_>L&&(G=_);break}else if(!this.error){let je="All collection items must start at the same column";this.error=new h.YAMLSyntaxError(this,je)}}if(U.type===h.Type.SEQ_ITEM){if(oe!=="-"){_>L&&(G=_);break}}else if(oe==="-"&&!this.error){let je=C[G+1];if(!je||je===`
229
- `||je===" "||je===" "){let Je="A collection cannot be both a mapping and a sequence";this.error=new h.YAMLSyntaxError(this,Je)}}let Ie=S({atLineStart:ge,inCollection:!0,indent:I,lineStart:_,parent:this},G);if(!Ie)return G;if(this.items.push(Ie),this.valueRange.end=Ie.valueRange.end,G=h.Node.normalizeOffset(C,Ie.range.end),oe=C[G],ge=!1,Le=Ie.includesTrailingLines,oe){let je=G-1,Je=C[je];for(;Je===" "||Je===" ";)Je=C[--je];Je===`
230
- `&&(_=je+1,ge=!0)}let qe=le(Ie);qe&&Array.prototype.push.apply(this.items,qe)}return G}setOrigRanges(R,L){return L=super.setOrigRanges(R,L),this.items.forEach(S=>{L=S.setOrigRanges(R,L)}),L}toString(){let{context:{src:R},items:L,range:S,value:C}=this;if(C!=null)return C;let _=R.slice(S.start,L[0].range.start)+String(L[0]);for(let U=1;U<L.length;++U){let I=L[U],{atLineStart:G,indent:oe}=I.context;if(G)for(let ge=0;ge<oe;++ge)_+=" ";_+=String(I)}return h.Node.addStringTerminator(R,S.end,_)}},we=class extends h.Node{constructor(){super(h.Type.DIRECTIVE),this.name=null}get parameters(){let Ae=this.rawValue;return Ae?Ae.trim().split(/[ \t]+/):[]}parseName(Ae){let{src:R}=this.context,L=Ae,S=R[L];for(;S&&S!==`
231
- `&&S!==" "&&S!==" ";)S=R[L+=1];return this.name=R.slice(Ae,L),L}parseParameters(Ae){let{src:R}=this.context,L=Ae,S=R[L];for(;S&&S!==`
232
- `&&S!=="#";)S=R[L+=1];return this.valueRange=new h.Range(Ae,L),L}parse(Ae,R){this.context=Ae;let L=this.parseName(R+1);return L=this.parseParameters(L),L=this.parseComment(L),this.range=new h.Range(R,L),L}},De=class Gf extends h.Node{static startCommentOrEndBlankLine(R,L){let S=h.Node.endOfWhiteSpace(R,L),C=R[S];return C==="#"||C===`
233
- `?S:L}constructor(){super(h.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(R){let{src:L}=this.context;this.directives=[];let S=!0,C=!1,_=R;for(;!h.Node.atDocumentBoundary(L,_,h.Char.DIRECTIVES_END);)switch(_=Gf.startCommentOrEndBlankLine(L,_),L[_]){case`
234
- `:if(S){let U=new v;_=U.parse({src:L},_),_<L.length&&this.directives.push(U)}else _+=1,S=!0;break;case"#":{let U=new Q;_=U.parse({src:L},_),this.directives.push(U),S=!1}break;case"%":{let U=new we;_=U.parse({parent:this,src:L},_),this.directives.push(U),C=!0,S=!1}break;default:return C?this.error=new h.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),_}return L[_]?(this.directivesEndMarker=new h.Range(_,_+3),_+3):(C?this.error=new h.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),_)}parseContents(R){let{parseNode:L,src:S}=this.context;this.contents||(this.contents=[]);let C=R;for(;S[C-1]==="-";)C-=1;let _=h.Node.endOfWhiteSpace(S,R),U=C===R;for(this.valueRange=new h.Range(_);!h.Node.atDocumentBoundary(S,_,h.Char.DOCUMENT_END);){switch(S[_]){case`
235
- `:if(U){let I=new v;_=I.parse({src:S},_),_<S.length&&this.contents.push(I)}else _+=1,U=!0;C=_;break;case"#":{let I=new Q;_=I.parse({src:S},_),this.contents.push(I),U=!1}break;default:{let I=h.Node.endOfIndent(S,_),G=L({atLineStart:U,indent:-1,inFlow:!1,inCollection:!1,lineStart:C,parent:this},I);if(!G)return this.valueRange.end=I;this.contents.push(G),_=G.range.end,U=!1;let oe=le(G);oe&&Array.prototype.push.apply(this.contents,oe)}}_=Gf.startCommentOrEndBlankLine(S,_)}if(this.valueRange.end=_,S[_]&&(this.documentEndMarker=new h.Range(_,_+3),_+=3,S[_])){if(_=h.Node.endOfWhiteSpace(S,_),S[_]==="#"){let I=new Q;_=I.parse({src:S},_),this.contents.push(I)}switch(S[_]){case`
236
- `:_+=1;break;case void 0:break;default:this.error=new h.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return _}parse(R,L){R.root=this,this.context=R;let{src:S}=R,C=S.charCodeAt(L)===65279?L+1:L;return C=this.parseDirectives(C),C=this.parseContents(C),C}setOrigRanges(R,L){return L=super.setOrigRanges(R,L),this.directives.forEach(S=>{L=S.setOrigRanges(R,L)}),this.directivesEndMarker&&(L=this.directivesEndMarker.setOrigRange(R,L)),this.contents.forEach(S=>{L=S.setOrigRanges(R,L)}),this.documentEndMarker&&(L=this.documentEndMarker.setOrigRange(R,L)),L}toString(){let{contents:R,directives:L,value:S}=this;if(S!=null)return S;let C=L.join("");return R.length>0&&((L.length>0||R[0].type===h.Type.COMMENT)&&(C+=`---
237
- `),C+=R.join("")),C[C.length-1]!==`
238
- `&&(C+=`
239
- `),C}},Te=class extends h.Node{parse(Ae,R){this.context=Ae;let{src:L}=Ae,S=h.Node.endOfIdentifier(L,R+1);return this.valueRange=new h.Range(R+1,S),S=h.Node.endOfWhiteSpace(L,S),S=this.parseComment(S),S}},Oe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},it=class extends h.Node{constructor(Ae,R){super(Ae,R),this.blockIndent=null,this.chomping=Oe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===Oe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:Ae,end:R}=this.valueRange,{indent:L,src:S}=this.context;if(this.valueRange.isEmpty())return"";let C=null,_=S[R-1];for(;_===`
240
- `||_===" "||_===" ";){if(R-=1,R<=Ae){if(this.chomping===Oe.KEEP)break;return""}_===`
241
- `&&(C=R),_=S[R-1]}let U=R+1;C&&(this.chomping===Oe.KEEP?(U=C,R=this.valueRange.end):R=C);let I=L+this.blockIndent,G=this.type===h.Type.BLOCK_FOLDED,oe=!0,ge="",Le="",Ie=!1;for(let qe=Ae;qe<R;++qe){for(let Je=0;Je<I&&S[qe]===" ";++Je)qe+=1;let je=S[qe];if(je===`
242
- `)Le===`
243
- `?ge+=`
244
- `:Le=`
245
- `;else{let Je=h.Node.endOfLine(S,qe),Ot=S.slice(qe,Je);qe=Je,G&&(je===" "||je===" ")&&qe<U?(Le===" "?Le=`
246
- `:!Ie&&!oe&&Le===`
247
- `&&(Le=`
248
-
249
- `),ge+=Le+Ot,Le=Je<R&&S[Je]||"",Ie=!0):(ge+=Le+Ot,Le=G&&qe<U?" ":`
250
- `,Ie=!1),oe&&Ot!==""&&(oe=!1)}}return this.chomping===Oe.STRIP?ge:ge+`
251
- `}parseBlockHeader(Ae){let{src:R}=this.context,L=Ae+1,S="";for(;;){let C=R[L];switch(C){case"-":this.chomping=Oe.STRIP;break;case"+":this.chomping=Oe.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":S+=C;break;default:return this.blockIndent=Number(S)||null,this.header=new h.Range(Ae,L),L}L+=1}}parseBlockValue(Ae){let{indent:R,src:L}=this.context,S=!!this.blockIndent,C=Ae,_=Ae,U=1;for(let I=L[C];I===`
252
- `&&(C+=1,!h.Node.atDocumentBoundary(L,C));I=L[C]){let G=h.Node.endOfBlockIndent(L,R,C);if(G===null)break;let oe=L[G],ge=G-(C+R);if(this.blockIndent){if(oe&&oe!==`
253
- `&&ge<this.blockIndent){if(L[G]==="#")break;if(!this.error){let Le=`Block scalars must not be less indented than their ${S?"explicit indentation indicator":"first line"}`;this.error=new h.YAMLSemanticError(this,Le)}}}else if(L[G]!==`
254
- `){if(ge<U){let Le="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new h.YAMLSemanticError(this,Le)}this.blockIndent=ge}else ge>U&&(U=ge);L[G]===`
255
- `?C=G:C=_=h.Node.endOfLine(L,G)}return this.chomping!==Oe.KEEP&&(C=L[_]?_+1:_),this.valueRange=new h.Range(Ae+1,C),C}parse(Ae,R){this.context=Ae;let{src:L}=Ae,S=this.parseBlockHeader(R);return S=h.Node.endOfWhiteSpace(L,S),S=this.parseComment(S),S=this.parseBlockValue(S),S}setOrigRanges(Ae,R){return R=super.setOrigRanges(Ae,R),this.header?this.header.setOrigRange(Ae,R):R}},yt=class extends h.Node{constructor(Ae,R){super(Ae,R),this.items=null}prevNodeIsJsonLike(Ae=this.items.length){let R=this.items[Ae-1];return!!R&&(R.jsonLike||R.type===h.Type.COMMENT&&this.prevNodeIsJsonLike(Ae-1))}parse(Ae,R){this.context=Ae;let{parseNode:L,src:S}=Ae,{indent:C,lineStart:_}=Ae,U=S[R];this.items=[{char:U,offset:R}];let I=h.Node.endOfWhiteSpace(S,R+1);for(U=S[I];U&&U!=="]"&&U!=="}";){switch(U){case`
256
- `:{_=I+1;let G=h.Node.endOfWhiteSpace(S,_);if(S[G]===`
257
- `){let oe=new v;_=oe.parse({src:S},_),this.items.push(oe)}if(I=h.Node.endOfIndent(S,_),I<=_+C&&(U=S[I],I<_+C||U!=="]"&&U!=="}")){let oe="Insufficient indentation in flow collection";this.error=new h.YAMLSemanticError(this,oe)}}break;case",":this.items.push({char:U,offset:I}),I+=1;break;case"#":{let G=new Q;I=G.parse({src:S},I),this.items.push(G)}break;case"?":case":":{let G=S[I+1];if(G===`
258
- `||G===" "||G===" "||G===","||U===":"&&this.prevNodeIsJsonLike()){this.items.push({char:U,offset:I}),I+=1;break}}default:{let G=L({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:_,parent:this},I);if(!G)return this.valueRange=new h.Range(R,I),I;this.items.push(G),I=h.Node.normalizeOffset(S,G.range.end)}}I=h.Node.endOfWhiteSpace(S,I),U=S[I]}return this.valueRange=new h.Range(R,I+1),U&&(this.items.push({char:U,offset:I}),I=h.Node.endOfWhiteSpace(S,I+1),I=this.parseComment(I)),I}setOrigRanges(Ae,R){return R=super.setOrigRanges(Ae,R),this.items.forEach(L=>{if(L instanceof h.Node)R=L.setOrigRanges(Ae,R);else if(Ae.length===0)L.origOffset=L.offset;else{let S=R;for(;S<Ae.length&&!(Ae[S]>L.offset);)++S;L.origOffset=L.offset+S,R=S}}),R}toString(){let{context:{src:Ae},items:R,range:L,value:S}=this;if(S!=null)return S;let C=R.filter(I=>I instanceof h.Node),_="",U=L.start;return C.forEach(I=>{let G=Ae.slice(U,I.range.start);U=I.range.end,_+=G+String(I),_[_.length-1]===`
259
- `&&Ae[U-1]!==`
260
- `&&Ae[U]===`
261
- `&&(U+=1)}),_+=Ae.slice(U,L.end),h.Node.addStringTerminator(Ae,L.end,_)}},Ye=class eg extends h.Node{static endOfQuote(R,L){let S=R[L];for(;S&&S!=='"';)L+=S==="\\"?2:1,S=R[L];return L+1}get strValue(){if(!this.valueRange||!this.context)return null;let R=[],{start:L,end:S}=this.valueRange,{indent:C,src:_}=this.context;_[S-1]!=='"'&&R.push(new h.YAMLSyntaxError(this,'Missing closing "quote'));let U="";for(let I=L+1;I<S-1;++I){let G=_[I];if(G===`
262
- `){h.Node.atDocumentBoundary(_,I+1)&&R.push(new h.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:oe,offset:ge,error:Le}=h.Node.foldNewline(_,I,C);U+=oe,I=ge,Le&&R.push(new h.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(G==="\\")switch(I+=1,_[I]){case"0":U+="\0";break;case"a":U+="\x07";break;case"b":U+="\b";break;case"e":U+="\x1B";break;case"f":U+="\f";break;case"n":U+=`
263
- `;break;case"r":U+="\r";break;case"t":U+=" ";break;case"v":U+="\v";break;case"N":U+="…";break;case"_":U+=" ";break;case"L":U+="\u2028";break;case"P":U+="\u2029";break;case" ":U+=" ";break;case'"':U+='"';break;case"/":U+="/";break;case"\\":U+="\\";break;case" ":U+=" ";break;case"x":U+=this.parseCharCode(I+1,2,R),I+=2;break;case"u":U+=this.parseCharCode(I+1,4,R),I+=4;break;case"U":U+=this.parseCharCode(I+1,8,R),I+=8;break;case`
264
- `:for(;_[I+1]===" "||_[I+1]===" ";)I+=1;break;default:R.push(new h.YAMLSyntaxError(this,`Invalid escape sequence ${_.substr(I-1,2)}`)),U+="\\"+_[I]}else if(G===" "||G===" "){let oe=I,ge=_[I+1];for(;ge===" "||ge===" ";)I+=1,ge=_[I+1];ge!==`
265
- `&&(U+=I>oe?_.slice(oe,I+1):G)}else U+=G}return R.length>0?{errors:R,str:U}:U}parseCharCode(R,L,S){let{src:C}=this.context,_=C.substr(R,L),U=_.length===L&&/^[0-9a-fA-F]+$/.test(_)?parseInt(_,16):NaN;return isNaN(U)?(S.push(new h.YAMLSyntaxError(this,`Invalid escape sequence ${C.substr(R-2,L+2)}`)),C.substr(R-2,L+2)):String.fromCodePoint(U)}parse(R,L){this.context=R;let{src:S}=R,C=eg.endOfQuote(S,L+1);return this.valueRange=new h.Range(L,C),C=h.Node.endOfWhiteSpace(S,C),C=this.parseComment(C),C}},gt=class tg extends h.Node{static endOfQuote(R,L){let S=R[L];for(;S;)if(S==="'"){if(R[L+1]!=="'")break;S=R[L+=2]}else S=R[L+=1];return L+1}get strValue(){if(!this.valueRange||!this.context)return null;let R=[],{start:L,end:S}=this.valueRange,{indent:C,src:_}=this.context;_[S-1]!=="'"&&R.push(new h.YAMLSyntaxError(this,"Missing closing 'quote"));let U="";for(let I=L+1;I<S-1;++I){let G=_[I];if(G===`
266
- `){h.Node.atDocumentBoundary(_,I+1)&&R.push(new h.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:oe,offset:ge,error:Le}=h.Node.foldNewline(_,I,C);U+=oe,I=ge,Le&&R.push(new h.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(G==="'")U+=G,I+=1,_[I]!=="'"&&R.push(new h.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(G===" "||G===" "){let oe=I,ge=_[I+1];for(;ge===" "||ge===" ";)I+=1,ge=_[I+1];ge!==`
267
- `&&(U+=I>oe?_.slice(oe,I+1):G)}else U+=G}return R.length>0?{errors:R,str:U}:U}parse(R,L){this.context=R;let{src:S}=R,C=tg.endOfQuote(S,L+1);return this.valueRange=new h.Range(L,C),C=h.Node.endOfWhiteSpace(S,C),C=this.parseComment(C),C}};function nt(Ae,R){switch(Ae){case h.Type.ALIAS:return new Te(Ae,R);case h.Type.BLOCK_FOLDED:case h.Type.BLOCK_LITERAL:return new it(Ae,R);case h.Type.FLOW_MAP:case h.Type.FLOW_SEQ:return new yt(Ae,R);case h.Type.MAP_KEY:case h.Type.MAP_VALUE:case h.Type.SEQ_ITEM:return new O(Ae,R);case h.Type.COMMENT:case h.Type.PLAIN:return new h.PlainValue(Ae,R);case h.Type.QUOTE_DOUBLE:return new Ye(Ae,R);case h.Type.QUOTE_SINGLE:return new gt(Ae,R);default:return null}}var dt=class ll{static parseType(R,L,S){switch(R[L]){case"*":return h.Type.ALIAS;case">":return h.Type.BLOCK_FOLDED;case"|":return h.Type.BLOCK_LITERAL;case"{":return h.Type.FLOW_MAP;case"[":return h.Type.FLOW_SEQ;case"?":return!S&&h.Node.atBlank(R,L+1,!0)?h.Type.MAP_KEY:h.Type.PLAIN;case":":return!S&&h.Node.atBlank(R,L+1,!0)?h.Type.MAP_VALUE:h.Type.PLAIN;case"-":return!S&&h.Node.atBlank(R,L+1,!0)?h.Type.SEQ_ITEM:h.Type.PLAIN;case'"':return h.Type.QUOTE_DOUBLE;case"'":return h.Type.QUOTE_SINGLE;default:return h.Type.PLAIN}}constructor(R={},{atLineStart:L,inCollection:S,inFlow:C,indent:_,lineStart:U,parent:I}={}){h._defineProperty(this,"parseNode",(G,oe)=>{if(h.Node.atDocumentBoundary(this.src,oe))return null;let ge=new ll(this,G),{props:Le,type:Ie,valueStart:qe}=ge.parseProps(oe),je=nt(Ie,Le),Je=je.parse(ge,qe);if(je.range=new h.Range(oe,Je),Je<=oe&&(je.error=new Error("Node#parse consumed no characters"),je.error.parseEnd=Je,je.error.source=je,je.range.end=oe+1),ge.nodeStartsCollection(je)){!je.error&&!ge.atLineStart&&ge.parent.type===h.Type.DOCUMENT&&(je.error=new h.YAMLSyntaxError(je,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let Ot=new ce(je);return Je=Ot.parse(new ll(ge),Je),Ot.range=new h.Range(oe,Je),Ot}return je}),this.atLineStart=L??(R.atLineStart||!1),this.inCollection=S??(R.inCollection||!1),this.inFlow=C??(R.inFlow||!1),this.indent=_??R.indent,this.lineStart=U??R.lineStart,this.parent=I??(R.parent||{}),this.root=R.root,this.src=R.src}nodeStartsCollection(R){let{inCollection:L,inFlow:S,src:C}=this;if(L||S)return!1;if(R instanceof O)return!0;let _=R.range.end;return C[_]===`
268
- `||C[_-1]===`
269
- `?!1:(_=h.Node.endOfWhiteSpace(C,_),C[_]===":")}parseProps(R){let{inFlow:L,parent:S,src:C}=this,_=[],U=!1;R=this.atLineStart?h.Node.endOfIndent(C,R):h.Node.endOfWhiteSpace(C,R);let I=C[R];for(;I===h.Char.ANCHOR||I===h.Char.COMMENT||I===h.Char.TAG||I===`
270
- `;){if(I===`
271
- `){let oe=R,ge;do ge=oe+1,oe=h.Node.endOfIndent(C,ge);while(C[oe]===`
272
- `);let Le=oe-(ge+this.indent),Ie=S.type===h.Type.SEQ_ITEM&&S.context.atLineStart;if(C[oe]!=="#"&&!h.Node.nextNodeIsIndented(C[oe],Le,!Ie))break;this.atLineStart=!0,this.lineStart=ge,U=!1,R=oe}else if(I===h.Char.COMMENT){let oe=h.Node.endOfLine(C,R+1);_.push(new h.Range(R,oe)),R=oe}else{let oe=h.Node.endOfIdentifier(C,R+1);I===h.Char.TAG&&C[oe]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(C.slice(R+1,oe+13))&&(oe=h.Node.endOfIdentifier(C,oe+5)),_.push(new h.Range(R,oe)),U=!0,R=h.Node.endOfWhiteSpace(C,oe)}I=C[R]}U&&I===":"&&h.Node.atBlank(C,R+1,!0)&&(R-=1);let G=ll.parseType(C,R,L);return{props:_,type:G,valueStart:R}}};function Mt(Ae){let R=[];Ae.indexOf("\r")!==-1&&(Ae=Ae.replace(/\r\n?/g,(C,_)=>(C.length>1&&R.push(_),`
273
- `)));let L=[],S=0;do{let C=new De,_=new dt({src:Ae});S=C.parse(_,S),L.push(C)}while(S<Ae.length);return L.setOrigRanges=()=>{if(R.length===0)return!1;for(let _=1;_<R.length;++_)R[_]-=_;let C=0;for(let _=0;_<L.length;++_)C=L[_].setOrigRanges(R,C);return R.splice(0,R.length),!0},L.toString=()=>L.join(`...
274
- `),L}m.parse=Mt}),A=u(m=>{var h=w();function v($,F,q){return q?`#${q.replace(/[\s\S]^/gm,`$&${F}#`)}
275
- ${F}${$}`:$}function O($,F,q){return q?q.indexOf(`
276
- `)===-1?`${$} #${q}`:`${$}
277
- `+q.replace(/^/gm,`${F||""}#`):$}var Q=class{};function le($,F,q){if(Array.isArray($))return $.map((J,ie)=>le(J,String(ie),q));if($&&typeof $.toJSON=="function"){let J=q&&q.anchors&&q.anchors.get($);J&&(q.onCreate=ue=>{J.res=ue,delete q.onCreate});let ie=$.toJSON(F,q);return J&&q.onCreate&&q.onCreate(ie),ie}return(!q||!q.keep)&&typeof $=="bigint"?Number($):$}var ce=class extends Q{constructor($){super(),this.value=$}toJSON($,F){return F&&F.keep?this.value:le(this.value,$,F)}toString(){return String(this.value)}};function we($,F,q){let J=q;for(let ie=F.length-1;ie>=0;--ie){let ue=F[ie];if(Number.isInteger(ue)&&ue>=0){let be=[];be[ue]=J,J=be}else{let be={};Object.defineProperty(be,ue,{value:J,writable:!0,enumerable:!0,configurable:!0}),J=be}}return $.createNode(J,!1)}var De=$=>$==null||typeof $=="object"&&$[Symbol.iterator]().next().done,Te=class Is extends Q{constructor(F){super(),h._defineProperty(this,"items",[]),this.schema=F}addIn(F,q){if(De(F))this.add(q);else{let[J,...ie]=F,ue=this.get(J,!0);if(ue instanceof Is)ue.addIn(ie,q);else if(ue===void 0&&this.schema)this.set(J,we(this.schema,ie,q));else throw new Error(`Expected YAML collection at ${J}. Remaining path: ${ie}`)}}deleteIn([F,...q]){if(q.length===0)return this.delete(F);let J=this.get(F,!0);if(J instanceof Is)return J.deleteIn(q);throw new Error(`Expected YAML collection at ${F}. Remaining path: ${q}`)}getIn([F,...q],J){let ie=this.get(F,!0);return q.length===0?!J&&ie instanceof ce?ie.value:ie:ie instanceof Is?ie.getIn(q,J):void 0}hasAllNullValues(){return this.items.every(F=>{if(!F||F.type!=="PAIR")return!1;let q=F.value;return q==null||q instanceof ce&&q.value==null&&!q.commentBefore&&!q.comment&&!q.tag})}hasIn([F,...q]){if(q.length===0)return this.has(F);let J=this.get(F,!0);return J instanceof Is?J.hasIn(q):!1}setIn([F,...q],J){if(q.length===0)this.set(F,J);else{let ie=this.get(F,!0);if(ie instanceof Is)ie.setIn(q,J);else if(ie===void 0&&this.schema)this.set(F,we(this.schema,q,J));else throw new Error(`Expected YAML collection at ${F}. Remaining path: ${q}`)}}toJSON(){return null}toString(F,{blockItem:q,flowChars:J,isMap:ie,itemIndent:ue},be,ve){let{indent:Ne,indentStep:ke,stringify:Pe}=F,He=this.type===h.Type.FLOW_MAP||this.type===h.Type.FLOW_SEQ||F.inFlow;He&&(ue+=ke);let Lt=ie&&this.hasAllNullValues();F=Object.assign({},F,{allNullValues:Lt,indent:ue,inFlow:He,type:null});let st=!1,Ct=!1,ut=this.items.reduce((Qt,pt,Rt)=>{let vt;pt&&(!st&&pt.spaceBefore&&Qt.push({type:"comment",str:""}),pt.commentBefore&&pt.commentBefore.match(/^.*$/gm).forEach(wc=>{Qt.push({type:"comment",str:`#${wc}`})}),pt.comment&&(vt=pt.comment),He&&(!st&&pt.spaceBefore||pt.commentBefore||pt.comment||pt.key&&(pt.key.commentBefore||pt.key.comment)||pt.value&&(pt.value.commentBefore||pt.value.comment))&&(Ct=!0)),st=!1;let cn=Pe(pt,F,()=>vt=null,()=>st=!0);return He&&!Ct&&cn.includes(`
278
- `)&&(Ct=!0),He&&Rt<this.items.length-1&&(cn+=","),cn=O(cn,ue,vt),st&&(vt||He)&&(st=!1),Qt.push({type:"item",str:cn}),Qt},[]),wt;if(ut.length===0)wt=J.start+J.end;else if(He){let{start:Qt,end:pt}=J,Rt=ut.map(vt=>vt.str);if(Ct||Rt.reduce((vt,cn)=>vt+cn.length+2,2)>Is.maxFlowStringSingleLineLength){wt=Qt;for(let vt of Rt)wt+=vt?`
279
- ${ke}${Ne}${vt}`:`
280
- `;wt+=`
281
- ${Ne}${pt}`}else wt=`${Qt} ${Rt.join(" ")} ${pt}`}else{let Qt=ut.map(q);wt=Qt.shift();for(let pt of Qt)wt+=pt?`
282
- ${Ne}${pt}`:`
283
- `}return this.comment?(wt+=`
284
- `+this.comment.replace(/^/gm,`${Ne}#`),be&&be()):st&&ve&&ve(),wt}};h._defineProperty(Te,"maxFlowStringSingleLineLength",60);function Oe($){let F=$ instanceof ce?$.value:$;return F&&typeof F=="string"&&(F=Number(F)),Number.isInteger(F)&&F>=0?F:null}var it=class extends Te{add($){this.items.push($)}delete($){let F=Oe($);return typeof F!="number"?!1:this.items.splice(F,1).length>0}get($,F){let q=Oe($);if(typeof q!="number")return;let J=this.items[q];return!F&&J instanceof ce?J.value:J}has($){let F=Oe($);return typeof F=="number"&&F<this.items.length}set($,F){let q=Oe($);if(typeof q!="number")throw new Error(`Expected a valid index, not ${$}.`);this.items[q]=F}toJSON($,F){let q=[];F&&F.onCreate&&F.onCreate(q);let J=0;for(let ie of this.items)q.push(le(ie,String(J++),F));return q}toString($,F,q){return $?super.toString($,{blockItem:J=>J.type==="comment"?J.str:`- ${J.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:($.indent||"")+" "},F,q):JSON.stringify(this)}},yt=($,F,q)=>F===null?"":typeof F!="object"?String(F):$ instanceof Q&&q&&q.doc?$.toString({anchors:Object.create(null),doc:q.doc,indent:"",indentStep:q.indentStep,inFlow:!0,inStringifyKey:!0,stringify:q.stringify}):JSON.stringify(F),Ye=class ng extends Q{constructor(F,q=null){super(),this.key=F,this.value=q,this.type=ng.Type.PAIR}get commentBefore(){return this.key instanceof Q?this.key.commentBefore:void 0}set commentBefore(F){if(this.key==null&&(this.key=new ce(null)),this.key instanceof Q)this.key.commentBefore=F;else{let q="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(q)}}addToJSMap(F,q){let J=le(this.key,"",F);if(q instanceof Map){let ie=le(this.value,J,F);q.set(J,ie)}else if(q instanceof Set)q.add(J);else{let ie=yt(this.key,J,F),ue=le(this.value,ie,F);ie in q?Object.defineProperty(q,ie,{value:ue,writable:!0,enumerable:!0,configurable:!0}):q[ie]=ue}return q}toJSON(F,q){let J=q&&q.mapAsMap?new Map:{};return this.addToJSMap(q,J)}toString(F,q,J){if(!F||!F.doc)return JSON.stringify(this);let{indent:ie,indentSeq:ue,simpleKeys:be}=F.doc.options,{key:ve,value:Ne}=this,ke=ve instanceof Q&&ve.comment;if(be){if(ke)throw new Error("With simple keys, key nodes cannot have comments");if(ve instanceof Te){let cn="With simple keys, collection cannot be used as a key value";throw new Error(cn)}}let Pe=!be&&(!ve||ke||(ve instanceof Q?ve instanceof Te||ve.type===h.Type.BLOCK_FOLDED||ve.type===h.Type.BLOCK_LITERAL:typeof ve=="object")),{doc:He,indent:Lt,indentStep:st,stringify:Ct}=F;F=Object.assign({},F,{implicitKey:!Pe,indent:Lt+st});let ut=!1,wt=Ct(ve,F,()=>ke=null,()=>ut=!0);if(wt=O(wt,F.indent,ke),!Pe&&wt.length>1024){if(be)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");Pe=!0}if(F.allNullValues&&!be)return this.comment?(wt=O(wt,F.indent,this.comment),q&&q()):ut&&!ke&&J&&J(),F.inFlow&&!Pe?wt:`? ${wt}`;wt=Pe?`? ${wt}
285
- ${Lt}:`:`${wt}:`,this.comment&&(wt=O(wt,F.indent,this.comment),q&&q());let Qt="",pt=null;if(Ne instanceof Q){if(Ne.spaceBefore&&(Qt=`
286
- `),Ne.commentBefore){let cn=Ne.commentBefore.replace(/^/gm,`${F.indent}#`);Qt+=`
287
- ${cn}`}pt=Ne.comment}else Ne&&typeof Ne=="object"&&(Ne=He.schema.createNode(Ne,!0));F.implicitKey=!1,!Pe&&!this.comment&&Ne instanceof ce&&(F.indentAtStart=wt.length+1),ut=!1,!ue&&ie>=2&&!F.inFlow&&!Pe&&Ne instanceof it&&Ne.type!==h.Type.FLOW_SEQ&&!Ne.tag&&!He.anchors.getName(Ne)&&(F.indent=F.indent.substr(2));let Rt=Ct(Ne,F,()=>pt=null,()=>ut=!0),vt=" ";return Qt||this.comment?vt=`${Qt}
288
- ${F.indent}`:!Pe&&Ne instanceof Te?(!(Rt[0]==="["||Rt[0]==="{")||Rt.includes(`
289
- `))&&(vt=`
290
- ${F.indent}`):Rt[0]===`
291
- `&&(vt=""),ut&&!pt&&J&&J(),O(wt+vt+Rt,F.indent,pt)}};h._defineProperty(Ye,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var gt=($,F)=>{if($ instanceof nt){let q=F.get($.source);return q.count*q.aliasCount}else if($ instanceof Te){let q=0;for(let J of $.items){let ie=gt(J,F);ie>q&&(q=ie)}return q}else if($ instanceof Ye){let q=gt($.key,F),J=gt($.value,F);return Math.max(q,J)}return 1},nt=class rg extends Q{static stringify({range:F,source:q},{anchors:J,doc:ie,implicitKey:ue,inStringifyKey:be}){let ve=Object.keys(J).find(ke=>J[ke]===q);if(!ve&&be&&(ve=ie.anchors.getName(q)||ie.anchors.newName()),ve)return`*${ve}${ue?" ":""}`;let Ne=ie.anchors.getName(q)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${Ne} [${F}]`)}constructor(F){super(),this.source=F,this.type=h.Type.ALIAS}set tag(F){throw new Error("Alias nodes cannot have tags")}toJSON(F,q){if(!q)return le(this.source,F,q);let{anchors:J,maxAliasCount:ie}=q,ue=J.get(this.source);if(!ue||ue.res===void 0){let be="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new h.YAMLReferenceError(this.cstNode,be):new ReferenceError(be)}if(ie>=0&&(ue.count+=1,ue.aliasCount===0&&(ue.aliasCount=gt(this.source,J)),ue.count*ue.aliasCount>ie)){let be="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new h.YAMLReferenceError(this.cstNode,be):new ReferenceError(be)}return ue.res}toString(F){return rg.stringify(this,F)}};h._defineProperty(nt,"default",!0);function dt($,F){let q=F instanceof ce?F.value:F;for(let J of $)if(J instanceof Ye&&(J.key===F||J.key===q||J.key&&J.key.value===q))return J}var Mt=class extends Te{add($,F){$?$ instanceof Ye||($=new Ye($.key||$,$.value)):$=new Ye($);let q=dt(this.items,$.key),J=this.schema&&this.schema.sortMapEntries;if(q)if(F)q.value=$.value;else throw new Error(`Key ${$.key} already set`);else if(J){let ie=this.items.findIndex(ue=>J($,ue)<0);ie===-1?this.items.push($):this.items.splice(ie,0,$)}else this.items.push($)}delete($){let F=dt(this.items,$);return F?this.items.splice(this.items.indexOf(F),1).length>0:!1}get($,F){let q=dt(this.items,$),J=q&&q.value;return!F&&J instanceof ce?J.value:J}has($){return!!dt(this.items,$)}set($,F){this.add(new Ye($,F),!0)}toJSON($,F,q){let J=q?new q:F&&F.mapAsMap?new Map:{};F&&F.onCreate&&F.onCreate(J);for(let ie of this.items)ie.addToJSMap(F,J);return J}toString($,F,q){if(!$)return JSON.stringify(this);for(let J of this.items)if(!(J instanceof Ye))throw new Error(`Map items must all be pairs; found ${JSON.stringify(J)} instead`);return super.toString($,{blockItem:J=>J.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:$.indent||""},F,q)}},Ae="<<",R=class extends Ye{constructor($){if($ instanceof Ye){let F=$.value;F instanceof it||(F=new it,F.items.push($.value),F.range=$.value.range),super($.key,F),this.range=$.range}else super(new ce(Ae),new it);this.type=Ye.Type.MERGE_PAIR}addToJSMap($,F){for(let{source:q}of this.value.items){if(!(q instanceof Mt))throw new Error("Merge sources must be maps");let J=q.toJSON(null,$,Map);for(let[ie,ue]of J)F instanceof Map?F.has(ie)||F.set(ie,ue):F instanceof Set?F.add(ie):Object.prototype.hasOwnProperty.call(F,ie)||Object.defineProperty(F,ie,{value:ue,writable:!0,enumerable:!0,configurable:!0})}return F}toString($,F){let q=this.value;if(q.items.length>1)return super.toString($,F);this.value=q.items[0];let J=super.toString($,F);return this.value=q,J}},L={defaultType:h.Type.BLOCK_LITERAL,lineWidth:76},S={trueStr:"true",falseStr:"false"},C={asBigInt:!1},_={nullStr:"null"},U={defaultType:h.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function I($,F,q){for(let{format:J,test:ie,resolve:ue}of F)if(ie){let be=$.match(ie);if(be){let ve=ue.apply(null,be);return ve instanceof ce||(ve=new ce(ve)),J&&(ve.format=J),ve}}return q&&($=q($)),new ce($)}var G="flow",oe="block",ge="quoted",Le=($,F)=>{let q=$[F+1];for(;q===" "||q===" ";){do q=$[F+=1];while(q&&q!==`
292
- `);q=$[F+1]}return F};function Ie($,F,q,{indentAtStart:J,lineWidth:ie=80,minContentWidth:ue=20,onFold:be,onOverflow:ve}){if(!ie||ie<0)return $;let Ne=Math.max(1+ue,1+ie-F.length);if($.length<=Ne)return $;let ke=[],Pe={},He=ie-F.length;typeof J=="number"&&(J>ie-Math.max(2,ue)?ke.push(0):He=ie-J);let Lt,st,Ct=!1,ut=-1,wt=-1,Qt=-1;q===oe&&(ut=Le($,ut),ut!==-1&&(He=ut+Ne));for(let Rt;Rt=$[ut+=1];){if(q===ge&&Rt==="\\"){switch(wt=ut,$[ut+1]){case"x":ut+=3;break;case"u":ut+=5;break;case"U":ut+=9;break;default:ut+=1}Qt=ut}if(Rt===`
293
- `)q===oe&&(ut=Le($,ut)),He=ut+Ne,Lt=void 0;else{if(Rt===" "&&st&&st!==" "&&st!==`
294
- `&&st!==" "){let vt=$[ut+1];vt&&vt!==" "&&vt!==`
295
- `&&vt!==" "&&(Lt=ut)}if(ut>=He)if(Lt)ke.push(Lt),He=Lt+Ne,Lt=void 0;else if(q===ge){for(;st===" "||st===" ";)st=Rt,Rt=$[ut+=1],Ct=!0;let vt=ut>Qt+1?ut-2:wt-1;if(Pe[vt])return $;ke.push(vt),Pe[vt]=!0,He=vt+Ne,Lt=void 0}else Ct=!0}st=Rt}if(Ct&&ve&&ve(),ke.length===0)return $;be&&be();let pt=$.slice(0,ke[0]);for(let Rt=0;Rt<ke.length;++Rt){let vt=ke[Rt],cn=ke[Rt+1]||$.length;vt===0?pt=`
296
- ${F}${$.slice(0,cn)}`:(q===ge&&Pe[vt]&&(pt+=`${$[vt]}\\`),pt+=`
297
- ${F}${$.slice(vt+1,cn)}`)}return pt}var qe=({indentAtStart:$})=>$?Object.assign({indentAtStart:$},U.fold):U.fold,je=$=>/^(%|---|\.\.\.)/m.test($);function Je($,F,q){if(!F||F<0)return!1;let J=F-q,ie=$.length;if(ie<=J)return!1;for(let ue=0,be=0;ue<ie;++ue)if($[ue]===`
298
- `){if(ue-be>J)return!0;if(be=ue+1,ie-be<=J)return!1}return!0}function Ot($,F){let{implicitKey:q}=F,{jsonEncoding:J,minMultiLineLength:ie}=U.doubleQuoted,ue=JSON.stringify($);if(J)return ue;let be=F.indent||(je($)?" ":""),ve="",Ne=0;for(let ke=0,Pe=ue[ke];Pe;Pe=ue[++ke])if(Pe===" "&&ue[ke+1]==="\\"&&ue[ke+2]==="n"&&(ve+=ue.slice(Ne,ke)+"\\ ",ke+=1,Ne=ke,Pe="\\"),Pe==="\\")switch(ue[ke+1]){case"u":{ve+=ue.slice(Ne,ke);let He=ue.substr(ke+2,4);switch(He){case"0000":ve+="\\0";break;case"0007":ve+="\\a";break;case"000b":ve+="\\v";break;case"001b":ve+="\\e";break;case"0085":ve+="\\N";break;case"00a0":ve+="\\_";break;case"2028":ve+="\\L";break;case"2029":ve+="\\P";break;default:He.substr(0,2)==="00"?ve+="\\x"+He.substr(2):ve+=ue.substr(ke,6)}ke+=5,Ne=ke+1}break;case"n":if(q||ue[ke+2]==='"'||ue.length<ie)ke+=1;else{for(ve+=ue.slice(Ne,ke)+`
299
-
300
- `;ue[ke+2]==="\\"&&ue[ke+3]==="n"&&ue[ke+4]!=='"';)ve+=`
301
- `,ke+=2;ve+=be,ue[ke+2]===" "&&(ve+="\\"),ke+=1,Ne=ke+1}break;default:ke+=1}return ve=Ne?ve+ue.slice(Ne):ue,q?ve:Ie(ve,be,ge,qe(F))}function Cn($,F){if(F.implicitKey){if(/\n/.test($))return Ot($,F)}else if(/[ \t]\n|\n[ \t]/.test($))return Ot($,F);let q=F.indent||(je($)?" ":""),J="'"+$.replace(/'/g,"''").replace(/\n+/g,`$&
302
- ${q}`)+"'";return F.implicitKey?J:Ie(J,q,G,qe(F))}function kn({comment:$,type:F,value:q},J,ie,ue){if(/\n[\t ]+$/.test(q)||/^\s*$/.test(q))return Ot(q,J);let be=J.indent||(J.forceBlockIndent||je(q)?" ":""),ve=be?"2":"1",Ne=F===h.Type.BLOCK_FOLDED?!1:F===h.Type.BLOCK_LITERAL?!0:!Je(q,U.fold.lineWidth,be.length),ke=Ne?"|":">";if(!q)return ke+`
303
- `;let Pe="",He="";if(q=q.replace(/[\n\t ]*$/,st=>{let Ct=st.indexOf(`
304
- `);return Ct===-1?ke+="-":(q===st||Ct!==st.length-1)&&(ke+="+",ue&&ue()),He=st.replace(/\n$/,""),""}).replace(/^[\n ]*/,st=>{st.indexOf(" ")!==-1&&(ke+=ve);let Ct=st.match(/ +$/);return Ct?(Pe=st.slice(0,-Ct[0].length),Ct[0]):(Pe=st,"")}),He&&(He=He.replace(/\n+(?!\n|$)/g,`$&${be}`)),Pe&&(Pe=Pe.replace(/\n+/g,`$&${be}`)),$&&(ke+=" #"+$.replace(/ ?[\r\n]+/g," "),ie&&ie()),!q)return`${ke}${ve}
305
- ${be}${He}`;if(Ne)return q=q.replace(/\n+/g,`$&${be}`),`${ke}
306
- ${be}${Pe}${q}${He}`;q=q.replace(/\n+/g,`
307
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${be}`);let Lt=Ie(`${Pe}${q}${He}`,be,oe,U.fold);return`${ke}
308
- ${be}${Lt}`}function de($,F,q,J){let{comment:ie,type:ue,value:be}=$,{actualString:ve,implicitKey:Ne,indent:ke,inFlow:Pe}=F;if(Ne&&/[\n[\]{},]/.test(be)||Pe&&/[[\]{},]/.test(be))return Ot(be,F);if(!be||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(be))return Ne||Pe||be.indexOf(`
309
- `)===-1?be.indexOf('"')!==-1&&be.indexOf("'")===-1?Cn(be,F):Ot(be,F):kn($,F,q,J);if(!Ne&&!Pe&&ue!==h.Type.PLAIN&&be.indexOf(`
310
- `)!==-1)return kn($,F,q,J);if(ke===""&&je(be))return F.forceBlockIndent=!0,kn($,F,q,J);let He=be.replace(/\n+/g,`$&
311
- ${ke}`);if(ve){let{tags:st}=F.doc.schema;if(typeof I(He,st,st.scalarFallback).value!="string")return Ot(be,F)}let Lt=Ne?He:Ie(He,ke,G,qe(F));return ie&&!Pe&&(Lt.indexOf(`
312
- `)!==-1||ie.indexOf(`
313
- `)!==-1)?(q&&q(),v(Lt,ke,ie)):Lt}function Re($,F,q,J){let{defaultType:ie}=U,{implicitKey:ue,inFlow:be}=F,{type:ve,value:Ne}=$;typeof Ne!="string"&&(Ne=String(Ne),$=Object.assign({},$,{value:Ne}));let ke=He=>{switch(He){case h.Type.BLOCK_FOLDED:case h.Type.BLOCK_LITERAL:return kn($,F,q,J);case h.Type.QUOTE_DOUBLE:return Ot(Ne,F);case h.Type.QUOTE_SINGLE:return Cn(Ne,F);case h.Type.PLAIN:return de($,F,q,J);default:return null}};(ve!==h.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Ne)||(ue||be)&&(ve===h.Type.BLOCK_FOLDED||ve===h.Type.BLOCK_LITERAL))&&(ve=h.Type.QUOTE_DOUBLE);let Pe=ke(ve);if(Pe===null&&(Pe=ke(ie),Pe===null))throw new Error(`Unsupported default string type ${ie}`);return Pe}function Ue({format:$,minFractionDigits:F,tag:q,value:J}){if(typeof J=="bigint")return String(J);if(!isFinite(J))return isNaN(J)?".nan":J<0?"-.inf":".inf";let ie=JSON.stringify(J);if(!$&&F&&(!q||q==="tag:yaml.org,2002:float")&&/^\d/.test(ie)){let ue=ie.indexOf(".");ue<0&&(ue=ie.length,ie+=".");let be=F-(ie.length-ue-1);for(;be-- >0;)ie+="0"}return ie}function Be($,F){let q,J;switch(F.type){case h.Type.FLOW_MAP:q="}",J="flow map";break;case h.Type.FLOW_SEQ:q="]",J="flow sequence";break;default:$.push(new h.YAMLSemanticError(F,"Not a flow collection!?"));return}let ie;for(let ue=F.items.length-1;ue>=0;--ue){let be=F.items[ue];if(!be||be.type!==h.Type.COMMENT){ie=be;break}}if(ie&&ie.char!==q){let ue=`Expected ${J} to end with ${q}`,be;typeof ie.offset=="number"?(be=new h.YAMLSemanticError(F,ue),be.offset=ie.offset+1):(be=new h.YAMLSemanticError(ie,ue),ie.range&&ie.range.end&&(be.offset=ie.range.end-ie.range.start)),$.push(be)}}function Ke($,F){let q=F.context.src[F.range.start-1];if(q!==`
314
- `&&q!==" "&&q!==" "){let J="Comments must be separated from other tokens by white space characters";$.push(new h.YAMLSemanticError(F,J))}}function lt($,F){let q=String(F),J=q.substr(0,8)+"..."+q.substr(-8);return new h.YAMLSemanticError($,`The "${J}" key is too long`)}function gn($,F){for(let{afterKey:q,before:J,comment:ie}of F){let ue=$.items[J];ue?(q&&ue.value&&(ue=ue.value),ie===void 0?(q||!ue.commentBefore)&&(ue.spaceBefore=!0):ue.commentBefore?ue.commentBefore+=`
315
- `+ie:ue.commentBefore=ie):ie!==void 0&&($.comment?$.comment+=`
316
- `+ie:$.comment=ie)}}function Qn($,F){let q=F.strValue;return q?typeof q=="string"?q:(q.errors.forEach(J=>{J.source||(J.source=F),$.errors.push(J)}),q.str):""}function fr($,F){let{handle:q,suffix:J}=F.tag,ie=$.tagPrefixes.find(ue=>ue.handle===q);if(!ie){let ue=$.getDefaults().tagPrefixes;if(ue&&(ie=ue.find(be=>be.handle===q)),!ie)throw new h.YAMLSemanticError(F,`The ${q} tag handle is non-default and was not declared.`)}if(!J)throw new h.YAMLSemanticError(F,`The ${q} tag has no suffix.`);if(q==="!"&&($.version||$.options.version)==="1.0"){if(J[0]==="^")return $.warnings.push(new h.YAMLWarning(F,"YAML 1.0 ^ tag expansion is not supported")),J;if(/[:/]/.test(J)){let ue=J.match(/^([a-z0-9-]+)\/(.*)/i);return ue?`tag:${ue[1]}.yaml.org,2002:${ue[2]}`:`tag:${J}`}}return ie.prefix+decodeURIComponent(J)}function Kn($,F){let{tag:q,type:J}=F,ie=!1;if(q){let{handle:ue,suffix:be,verbatim:ve}=q;if(ve){if(ve!=="!"&&ve!=="!!")return ve;let Ne=`Verbatim tags aren't resolved, so ${ve} is invalid.`;$.errors.push(new h.YAMLSemanticError(F,Ne))}else if(ue==="!"&&!be)ie=!0;else try{return fr($,F)}catch(Ne){$.errors.push(Ne)}}switch(J){case h.Type.BLOCK_FOLDED:case h.Type.BLOCK_LITERAL:case h.Type.QUOTE_DOUBLE:case h.Type.QUOTE_SINGLE:return h.defaultTags.STR;case h.Type.FLOW_MAP:case h.Type.MAP:return h.defaultTags.MAP;case h.Type.FLOW_SEQ:case h.Type.SEQ:return h.defaultTags.SEQ;case h.Type.PLAIN:return ie?h.defaultTags.STR:null;default:return null}}function Ts($,F,q){let{tags:J}=$.schema,ie=[];for(let be of J)if(be.tag===q)if(be.test)ie.push(be);else{let ve=be.resolve($,F);return ve instanceof Te?ve:new ce(ve)}let ue=Qn($,F);return typeof ue=="string"&&ie.length>0?I(ue,ie,J.scalarFallback):null}function di({type:$}){switch($){case h.Type.FLOW_MAP:case h.Type.MAP:return h.defaultTags.MAP;case h.Type.FLOW_SEQ:case h.Type.SEQ:return h.defaultTags.SEQ;default:return h.defaultTags.STR}}function mc($,F,q){try{let J=Ts($,F,q);if(J)return q&&F.tag&&(J.tag=q),J}catch(J){return J.source||(J.source=F),$.errors.push(J),null}try{let J=di(F);if(!J)throw new Error(`The tag ${q} is unavailable`);let ie=`The tag ${q} is unavailable, falling back to ${J}`;$.warnings.push(new h.YAMLWarning(F,ie));let ue=Ts($,F,J);return ue.tag=q,ue}catch(J){let ie=new h.YAMLReferenceError(F,J.message);return ie.stack=J.stack,$.errors.push(ie),null}}var Ma=$=>{if(!$)return!1;let{type:F}=$;return F===h.Type.MAP_KEY||F===h.Type.MAP_VALUE||F===h.Type.SEQ_ITEM};function gc($,F){let q={before:[],after:[]},J=!1,ie=!1,ue=Ma(F.context.parent)?F.context.parent.props.concat(F.props):F.props;for(let{start:be,end:ve}of ue)switch(F.context.src[be]){case h.Char.COMMENT:{if(!F.commentHasRequiredWhitespace(be)){let Pe="Comments must be separated from other tokens by white space characters";$.push(new h.YAMLSemanticError(F,Pe))}let{header:Ne,valueRange:ke}=F;(ke&&(be>ke.start||Ne&&be>Ne.start)?q.after:q.before).push(F.context.src.slice(be+1,ve));break}case h.Char.ANCHOR:if(J){let Ne="A node can have at most one anchor";$.push(new h.YAMLSemanticError(F,Ne))}J=!0;break;case h.Char.TAG:if(ie){let Ne="A node can have at most one tag";$.push(new h.YAMLSemanticError(F,Ne))}ie=!0;break}return{comments:q,hasAnchor:J,hasTag:ie}}function pc($,F){let{anchors:q,errors:J,schema:ie}=$;if(F.type===h.Type.ALIAS){let be=F.rawValue,ve=q.getNode(be);if(!ve){let ke=`Aliased anchor not found: ${be}`;return J.push(new h.YAMLReferenceError(F,ke)),null}let Ne=new nt(ve);return q._cstAliases.push(Ne),Ne}let ue=Kn($,F);if(ue)return mc($,F,ue);if(F.type!==h.Type.PLAIN){let be=`Failed to resolve ${F.type} node here`;return J.push(new h.YAMLSyntaxError(F,be)),null}try{let be=Qn($,F);return I(be,ie.tags,ie.tags.scalarFallback)}catch(be){return be.source||(be.source=F),J.push(be),null}}function Er($,F){if(!F)return null;F.error&&$.errors.push(F.error);let{comments:q,hasAnchor:J,hasTag:ie}=gc($.errors,F);if(J){let{anchors:be}=$,ve=F.anchor,Ne=be.getNode(ve);Ne&&(be.map[be.newName(ve)]=Ne),be.map[ve]=F}if(F.type===h.Type.ALIAS&&(J||ie)){let be="An alias node must not specify any properties";$.errors.push(new h.YAMLSemanticError(F,be))}let ue=pc($,F);if(ue){ue.range=[F.range.start,F.range.end],$.options.keepCstNodes&&(ue.cstNode=F),$.options.keepNodeTypes&&(ue.type=F.type);let be=q.before.join(`
317
- `);be&&(ue.commentBefore=ue.commentBefore?`${ue.commentBefore}
318
- ${be}`:be);let ve=q.after.join(`
319
- `);ve&&(ue.comment=ue.comment?`${ue.comment}
320
- ${ve}`:ve)}return F.resolved=ue}function bc($,F){if(F.type!==h.Type.MAP&&F.type!==h.Type.FLOW_MAP){let be=`A ${F.type} node cannot be resolved as a mapping`;return $.errors.push(new h.YAMLSyntaxError(F,be)),null}let{comments:q,items:J}=F.type===h.Type.FLOW_MAP?vc($,F):po($,F),ie=new Mt;ie.items=J,gn(ie,q);let ue=!1;for(let be=0;be<J.length;++be){let{key:ve}=J[be];if(ve instanceof Te&&(ue=!0),$.schema.merge&&ve&&ve.value===Ae){J[be]=new R(J[be]);let Ne=J[be].value.items,ke=null;Ne.some(Pe=>{if(Pe instanceof nt){let{type:He}=Pe.source;return He===h.Type.MAP||He===h.Type.FLOW_MAP?!1:ke="Merge nodes aliases can only point to maps"}return ke="Merge nodes can only have Alias nodes as values"}),ke&&$.errors.push(new h.YAMLSemanticError(F,ke))}else for(let Ne=be+1;Ne<J.length;++Ne){let{key:ke}=J[Ne];if(ve===ke||ve&&ke&&Object.prototype.hasOwnProperty.call(ve,"value")&&ve.value===ke.value){let Pe=`Map keys must be unique; "${ve}" is repeated`;$.errors.push(new h.YAMLSemanticError(F,Pe));break}}}if(ue&&!$.options.mapAsMap){let be="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";$.warnings.push(new h.YAMLWarning(F,be))}return F.resolved=ie,ie}var Oa=({context:{lineStart:$,node:F,src:q},props:J})=>{if(J.length===0)return!1;let{start:ie}=J[0];if(F&&ie>F.valueRange.start||q[ie]!==h.Char.COMMENT)return!1;for(let ue=$;ue<ie;++ue)if(q[ue]===`
321
- `)return!1;return!0};function yc($,F){if(!Oa($))return;let q=$.getPropValue(0,h.Char.COMMENT,!0),J=!1,ie=F.value.commentBefore;if(ie&&ie.startsWith(q))F.value.commentBefore=ie.substr(q.length+1),J=!0;else{let ue=F.value.comment;!$.node&&ue&&ue.startsWith(q)&&(F.value.comment=ue.substr(q.length+1),J=!0)}J&&(F.comment=q)}function po($,F){let q=[],J=[],ie,ue=null;for(let be=0;be<F.items.length;++be){let ve=F.items[be];switch(ve.type){case h.Type.BLANK_LINE:q.push({afterKey:!!ie,before:J.length});break;case h.Type.COMMENT:q.push({afterKey:!!ie,before:J.length,comment:ve.comment});break;case h.Type.MAP_KEY:ie!==void 0&&J.push(new Ye(ie)),ve.error&&$.errors.push(ve.error),ie=Er($,ve.node),ue=null;break;case h.Type.MAP_VALUE:{if(ie===void 0&&(ie=null),ve.error&&$.errors.push(ve.error),!ve.context.atLineStart&&ve.node&&ve.node.type===h.Type.MAP&&!ve.node.context.atLineStart){let Pe="Nested mappings are not allowed in compact mappings";$.errors.push(new h.YAMLSemanticError(ve.node,Pe))}let Ne=ve.node;if(!Ne&&ve.props.length>0){Ne=new h.PlainValue(h.Type.PLAIN,[]),Ne.context={parent:ve,src:ve.context.src};let Pe=ve.range.start+1;if(Ne.range={start:Pe,end:Pe},Ne.valueRange={start:Pe,end:Pe},typeof ve.range.origStart=="number"){let He=ve.range.origStart+1;Ne.range.origStart=Ne.range.origEnd=He,Ne.valueRange.origStart=Ne.valueRange.origEnd=He}}let ke=new Ye(ie,Er($,Ne));yc(ve,ke),J.push(ke),ie&&typeof ue=="number"&&ve.range.start>ue+1024&&$.errors.push(lt(F,ie)),ie=void 0,ue=null}break;default:ie!==void 0&&J.push(new Ye(ie)),ie=Er($,ve),ue=ve.range.start,ve.error&&$.errors.push(ve.error);e:for(let Ne=be+1;;++Ne){let ke=F.items[Ne];switch(ke&&ke.type){case h.Type.BLANK_LINE:case h.Type.COMMENT:continue e;case h.Type.MAP_VALUE:break e;default:{let Pe="Implicit map keys need to be followed by map values";$.errors.push(new h.YAMLSemanticError(ve,Pe));break e}}}if(ve.valueRangeContainsNewline){let Ne="Implicit map keys need to be on a single line";$.errors.push(new h.YAMLSemanticError(ve,Ne))}}}return ie!==void 0&&J.push(new Ye(ie)),{comments:q,items:J}}function vc($,F){let q=[],J=[],ie,ue=!1,be="{";for(let ve=0;ve<F.items.length;++ve){let Ne=F.items[ve];if(typeof Ne.char=="string"){let{char:ke,offset:Pe}=Ne;if(ke==="?"&&ie===void 0&&!ue){ue=!0,be=":";continue}if(ke===":"){if(ie===void 0&&(ie=null),be===":"){be=",";continue}}else if(ue&&(ie===void 0&&ke!==","&&(ie=null),ue=!1),ie!==void 0&&(J.push(new Ye(ie)),ie=void 0,ke===",")){be=":";continue}if(ke==="}"){if(ve===F.items.length-1)continue}else if(ke===be){be=":";continue}let He=`Flow map contains an unexpected ${ke}`,Lt=new h.YAMLSyntaxError(F,He);Lt.offset=Pe,$.errors.push(Lt)}else Ne.type===h.Type.BLANK_LINE?q.push({afterKey:!!ie,before:J.length}):Ne.type===h.Type.COMMENT?(Ke($.errors,Ne),q.push({afterKey:!!ie,before:J.length,comment:Ne.comment})):ie===void 0?(be===","&&$.errors.push(new h.YAMLSemanticError(Ne,"Separator , missing in flow map")),ie=Er($,Ne)):(be!==","&&$.errors.push(new h.YAMLSemanticError(Ne,"Indicator : missing in flow map entry")),J.push(new Ye(ie,Er($,Ne))),ie=void 0,ue=!1)}return Be($.errors,F),ie!==void 0&&J.push(new Ye(ie)),{comments:q,items:J}}function bo($,F){if(F.type!==h.Type.SEQ&&F.type!==h.Type.FLOW_SEQ){let ue=`A ${F.type} node cannot be resolved as a sequence`;return $.errors.push(new h.YAMLSyntaxError(F,ue)),null}let{comments:q,items:J}=F.type===h.Type.FLOW_SEQ?yo($,F):Dc($,F),ie=new it;if(ie.items=J,gn(ie,q),!$.options.mapAsMap&&J.some(ue=>ue instanceof Ye&&ue.key instanceof Te)){let ue="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";$.warnings.push(new h.YAMLWarning(F,ue))}return F.resolved=ie,ie}function Dc($,F){let q=[],J=[];for(let ie=0;ie<F.items.length;++ie){let ue=F.items[ie];switch(ue.type){case h.Type.BLANK_LINE:q.push({before:J.length});break;case h.Type.COMMENT:q.push({comment:ue.comment,before:J.length});break;case h.Type.SEQ_ITEM:if(ue.error&&$.errors.push(ue.error),J.push(Er($,ue.node)),ue.hasProps){let be="Sequence items cannot have tags or anchors before the - indicator";$.errors.push(new h.YAMLSemanticError(ue,be))}break;default:ue.error&&$.errors.push(ue.error),$.errors.push(new h.YAMLSyntaxError(ue,`Unexpected ${ue.type} node in sequence`))}}return{comments:q,items:J}}function yo($,F){let q=[],J=[],ie=!1,ue,be=null,ve="[",Ne=null;for(let ke=0;ke<F.items.length;++ke){let Pe=F.items[ke];if(typeof Pe.char=="string"){let{char:He,offset:Lt}=Pe;if(He!==":"&&(ie||ue!==void 0)&&(ie&&ue===void 0&&(ue=ve?J.pop():null),J.push(new Ye(ue)),ie=!1,ue=void 0,be=null),He===ve)ve=null;else if(!ve&&He==="?")ie=!0;else if(ve!=="["&&He===":"&&ue===void 0){if(ve===","){if(ue=J.pop(),ue instanceof Ye){let st="Chaining flow sequence pairs is invalid",Ct=new h.YAMLSemanticError(F,st);Ct.offset=Lt,$.errors.push(Ct)}if(!ie&&typeof be=="number"){let st=Pe.range?Pe.range.start:Pe.offset;st>be+1024&&$.errors.push(lt(F,ue));let{src:Ct}=Ne.context;for(let ut=be;ut<st;++ut)if(Ct[ut]===`
322
- `){let wt="Implicit keys of flow sequence pairs need to be on a single line";$.errors.push(new h.YAMLSemanticError(Ne,wt));break}}}else ue=null;be=null,ie=!1,ve=null}else if(ve==="["||He!=="]"||ke<F.items.length-1){let st=`Flow sequence contains an unexpected ${He}`,Ct=new h.YAMLSyntaxError(F,st);Ct.offset=Lt,$.errors.push(Ct)}}else if(Pe.type===h.Type.BLANK_LINE)q.push({before:J.length});else if(Pe.type===h.Type.COMMENT)Ke($.errors,Pe),q.push({comment:Pe.comment,before:J.length});else{if(ve){let Lt=`Expected a ${ve} in flow sequence`;$.errors.push(new h.YAMLSemanticError(Pe,Lt))}let He=Er($,Pe);ue===void 0?(J.push(He),Ne=Pe):(J.push(new Ye(ue,He)),ue=void 0),be=Pe.range.start,ve=","}}return Be($.errors,F),ue!==void 0&&J.push(new Ye(ue)),{comments:q,items:J}}m.Alias=nt,m.Collection=Te,m.Merge=R,m.Node=Q,m.Pair=Ye,m.Scalar=ce,m.YAMLMap=Mt,m.YAMLSeq=it,m.addComment=O,m.binaryOptions=L,m.boolOptions=S,m.findPair=dt,m.intOptions=C,m.isEmptyPath=De,m.nullOptions=_,m.resolveMap=bc,m.resolveNode=Er,m.resolveSeq=bo,m.resolveString=Qn,m.strOptions=U,m.stringifyNumber=Ue,m.stringifyString=Re,m.toJSON=le}),E=u(m=>{var h=w(),v=A(),O={identify:I=>I instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(I,G)=>{let oe=v.resolveString(I,G);if(typeof Buffer=="function")return Buffer.from(oe,"base64");if(typeof atob=="function"){let ge=atob(oe.replace(/[\n\r]/g,"")),Le=new Uint8Array(ge.length);for(let Ie=0;Ie<ge.length;++Ie)Le[Ie]=ge.charCodeAt(Ie);return Le}else{let ge="This environment does not support reading binary tags; either Buffer or atob is required";return I.errors.push(new h.YAMLReferenceError(G,ge)),null}},options:v.binaryOptions,stringify:({comment:I,type:G,value:oe},ge,Le,Ie)=>{let qe;if(typeof Buffer=="function")qe=oe instanceof Buffer?oe.toString("base64"):Buffer.from(oe.buffer).toString("base64");else if(typeof btoa=="function"){let je="";for(let Je=0;Je<oe.length;++Je)je+=String.fromCharCode(oe[Je]);qe=btoa(je)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(G||(G=v.binaryOptions.defaultType),G===h.Type.QUOTE_DOUBLE)oe=qe;else{let{lineWidth:je}=v.binaryOptions,Je=Math.ceil(qe.length/je),Ot=new Array(Je);for(let Cn=0,kn=0;Cn<Je;++Cn,kn+=je)Ot[Cn]=qe.substr(kn,je);oe=Ot.join(G===h.Type.BLOCK_LITERAL?`
323
- `:" ")}return v.stringifyString({comment:I,type:G,value:oe},ge,Le,Ie)}};function Q(I,G){let oe=v.resolveSeq(I,G);for(let ge=0;ge<oe.items.length;++ge){let Le=oe.items[ge];if(!(Le instanceof v.Pair)){if(Le instanceof v.YAMLMap){if(Le.items.length>1){let qe="Each pair must have its own sequence indicator";throw new h.YAMLSemanticError(G,qe)}let Ie=Le.items[0]||new v.Pair;Le.commentBefore&&(Ie.commentBefore=Ie.commentBefore?`${Le.commentBefore}
324
- ${Ie.commentBefore}`:Le.commentBefore),Le.comment&&(Ie.comment=Ie.comment?`${Le.comment}
325
- ${Ie.comment}`:Le.comment),Le=Ie}oe.items[ge]=Le instanceof v.Pair?Le:new v.Pair(Le)}}return oe}function le(I,G,oe){let ge=new v.YAMLSeq(I);ge.tag="tag:yaml.org,2002:pairs";for(let Le of G){let Ie,qe;if(Array.isArray(Le))if(Le.length===2)Ie=Le[0],qe=Le[1];else throw new TypeError(`Expected [key, value] tuple: ${Le}`);else if(Le&&Le instanceof Object){let Je=Object.keys(Le);if(Je.length===1)Ie=Je[0],qe=Le[Ie];else throw new TypeError(`Expected { key: value } tuple: ${Le}`)}else Ie=Le;let je=I.createPair(Ie,qe,oe);ge.items.push(je)}return ge}var ce={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Q,createNode:le},we=class sg extends v.YAMLSeq{constructor(){super(),h._defineProperty(this,"add",v.YAMLMap.prototype.add.bind(this)),h._defineProperty(this,"delete",v.YAMLMap.prototype.delete.bind(this)),h._defineProperty(this,"get",v.YAMLMap.prototype.get.bind(this)),h._defineProperty(this,"has",v.YAMLMap.prototype.has.bind(this)),h._defineProperty(this,"set",v.YAMLMap.prototype.set.bind(this)),this.tag=sg.tag}toJSON(G,oe){let ge=new Map;oe&&oe.onCreate&&oe.onCreate(ge);for(let Le of this.items){let Ie,qe;if(Le instanceof v.Pair?(Ie=v.toJSON(Le.key,"",oe),qe=v.toJSON(Le.value,Ie,oe)):Ie=v.toJSON(Le,"",oe),ge.has(Ie))throw new Error("Ordered maps must not include duplicate keys");ge.set(Ie,qe)}return ge}};h._defineProperty(we,"tag","tag:yaml.org,2002:omap");function De(I,G){let oe=Q(I,G),ge=[];for(let{key:Le}of oe.items)if(Le instanceof v.Scalar)if(ge.includes(Le.value)){let Ie="Ordered maps must not include duplicate keys";throw new h.YAMLSemanticError(G,Ie)}else ge.push(Le.value);return Object.assign(new we,oe)}function Te(I,G,oe){let ge=le(I,G,oe),Le=new we;return Le.items=ge.items,Le}var Oe={identify:I=>I instanceof Map,nodeClass:we,default:!1,tag:"tag:yaml.org,2002:omap",resolve:De,createNode:Te},it=class ig extends v.YAMLMap{constructor(){super(),this.tag=ig.tag}add(G){let oe=G instanceof v.Pair?G:new v.Pair(G);v.findPair(this.items,oe.key)||this.items.push(oe)}get(G,oe){let ge=v.findPair(this.items,G);return!oe&&ge instanceof v.Pair?ge.key instanceof v.Scalar?ge.key.value:ge.key:ge}set(G,oe){if(typeof oe!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof oe}`);let ge=v.findPair(this.items,G);ge&&!oe?this.items.splice(this.items.indexOf(ge),1):!ge&&oe&&this.items.push(new v.Pair(G))}toJSON(G,oe){return super.toJSON(G,oe,Set)}toString(G,oe,ge){if(!G)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(G,oe,ge);throw new Error("Set items must all have null values")}};h._defineProperty(it,"tag","tag:yaml.org,2002:set");function yt(I,G){let oe=v.resolveMap(I,G);if(!oe.hasAllNullValues())throw new h.YAMLSemanticError(G,"Set items must all have null values");return Object.assign(new it,oe)}function Ye(I,G,oe){let ge=new it;for(let Le of G)ge.items.push(I.createPair(Le,null,oe));return ge}var gt={identify:I=>I instanceof Set,nodeClass:it,default:!1,tag:"tag:yaml.org,2002:set",resolve:yt,createNode:Ye},nt=(I,G)=>{let oe=G.split(":").reduce((ge,Le)=>ge*60+Number(Le),0);return I==="-"?-oe:oe},dt=({value:I})=>{if(isNaN(I)||!isFinite(I))return v.stringifyNumber(I);let G="";I<0&&(G="-",I=Math.abs(I));let oe=[I%60];return I<60?oe.unshift(0):(I=Math.round((I-oe[0])/60),oe.unshift(I%60),I>=60&&(I=Math.round((I-oe[0])/60),oe.unshift(I))),G+oe.map(ge=>ge<10?"0"+String(ge):String(ge)).join(":").replace(/000000\d*$/,"")},Mt={identify:I=>typeof I=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(I,G,oe)=>nt(G,oe.replace(/_/g,"")),stringify:dt},Ae={identify:I=>typeof I=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(I,G,oe)=>nt(G,oe.replace(/_/g,"")),stringify:dt},R={identify:I=>I instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(I,G,oe,ge,Le,Ie,qe,je,Je)=>{je&&(je=(je+"00").substr(1,3));let Ot=Date.UTC(G,oe-1,ge,Le||0,Ie||0,qe||0,je||0);if(Je&&Je!=="Z"){let Cn=nt(Je[0],Je.slice(1));Math.abs(Cn)<30&&(Cn*=60),Ot-=6e4*Cn}return new Date(Ot)},stringify:({value:I})=>I.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function L(I){let G={};return I?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!G.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!G.YAML_SILENCE_WARNINGS}function S(I,G){L(!1)&&console.warn(G?`${G}: ${I}`:I)}function C(I){if(L(!0)){let G=I.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");S(`The endpoint 'yaml/${G}' will be removed in a future release.`,"DeprecationWarning")}}var _={};function U(I,G){if(!_[I]&&L(!0)){_[I]=!0;let oe=`The option '${I}' will be removed in a future release`;oe+=G?`, use '${G}' instead.`:".",S(oe,"DeprecationWarning")}}m.binary=O,m.floatTime=Ae,m.intTime=Mt,m.omap=Oe,m.pairs=ce,m.set=gt,m.timestamp=R,m.warn=S,m.warnFileDeprecation=C,m.warnOptionDeprecation=U}),P=u(m=>{var h=w(),v=A(),O=E();function Q(de,Re,Ue){let Be=new v.YAMLMap(de);if(Re instanceof Map)for(let[Ke,lt]of Re)Be.items.push(de.createPair(Ke,lt,Ue));else if(Re&&typeof Re=="object")for(let Ke of Object.keys(Re))Be.items.push(de.createPair(Ke,Re[Ke],Ue));return typeof de.sortMapEntries=="function"&&Be.items.sort(de.sortMapEntries),Be}var le={createNode:Q,default:!0,nodeClass:v.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:v.resolveMap};function ce(de,Re,Ue){let Be=new v.YAMLSeq(de);if(Re&&Re[Symbol.iterator])for(let Ke of Re){let lt=de.createNode(Ke,Ue.wrapScalars,null,Ue);Be.items.push(lt)}return Be}var we={createNode:ce,default:!0,nodeClass:v.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:v.resolveSeq},De={identify:de=>typeof de=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:v.resolveString,stringify(de,Re,Ue,Be){return Re=Object.assign({actualString:!0},Re),v.stringifyString(de,Re,Ue,Be)},options:v.strOptions},Te=[le,we,De],Oe=de=>typeof de=="bigint"||Number.isInteger(de),it=(de,Re,Ue)=>v.intOptions.asBigInt?BigInt(de):parseInt(Re,Ue);function yt(de,Re,Ue){let{value:Be}=de;return Oe(Be)&&Be>=0?Ue+Be.toString(Re):v.stringifyNumber(de)}var Ye={identify:de=>de==null,createNode:(de,Re,Ue)=>Ue.wrapScalars?new v.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:v.nullOptions,stringify:()=>v.nullOptions.nullStr},gt={identify:de=>typeof de=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:de=>de[0]==="t"||de[0]==="T",options:v.boolOptions,stringify:({value:de})=>de?v.boolOptions.trueStr:v.boolOptions.falseStr},nt={identify:de=>Oe(de)&&de>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(de,Re)=>it(de,Re,8),options:v.intOptions,stringify:de=>yt(de,8,"0o")},dt={identify:Oe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:de=>it(de,de,10),options:v.intOptions,stringify:v.stringifyNumber},Mt={identify:de=>Oe(de)&&de>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(de,Re)=>it(de,Re,16),options:v.intOptions,stringify:de=>yt(de,16,"0x")},Ae={identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(de,Re)=>Re?NaN:de[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:v.stringifyNumber},R={identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:de=>parseFloat(de),stringify:({value:de})=>Number(de).toExponential()},L={identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(de,Re,Ue){let Be=Re||Ue,Ke=new v.Scalar(parseFloat(de));return Be&&Be[Be.length-1]==="0"&&(Ke.minFractionDigits=Be.length),Ke},stringify:v.stringifyNumber},S=Te.concat([Ye,gt,nt,dt,Mt,Ae,R,L]),C=de=>typeof de=="bigint"||Number.isInteger(de),_=({value:de})=>JSON.stringify(de),U=[le,we,{identify:de=>typeof de=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:v.resolveString,stringify:_},{identify:de=>de==null,createNode:(de,Re,Ue)=>Ue.wrapScalars?new v.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:_},{identify:de=>typeof de=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:de=>de==="true",stringify:_},{identify:C,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:de=>v.intOptions.asBigInt?BigInt(de):parseInt(de,10),stringify:({value:de})=>C(de)?de.toString():JSON.stringify(de)},{identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:de=>parseFloat(de),stringify:_}];U.scalarFallback=de=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(de)}`)};var I=({value:de})=>de?v.boolOptions.trueStr:v.boolOptions.falseStr,G=de=>typeof de=="bigint"||Number.isInteger(de);function oe(de,Re,Ue){let Be=Re.replace(/_/g,"");if(v.intOptions.asBigInt){switch(Ue){case 2:Be=`0b${Be}`;break;case 8:Be=`0o${Be}`;break;case 16:Be=`0x${Be}`;break}let lt=BigInt(Be);return de==="-"?BigInt(-1)*lt:lt}let Ke=parseInt(Be,Ue);return de==="-"?-1*Ke:Ke}function ge(de,Re,Ue){let{value:Be}=de;if(G(Be)){let Ke=Be.toString(Re);return Be<0?"-"+Ue+Ke.substr(1):Ue+Ke}return v.stringifyNumber(de)}var Le=Te.concat([{identify:de=>de==null,createNode:(de,Re,Ue)=>Ue.wrapScalars?new v.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:v.nullOptions,stringify:()=>v.nullOptions.nullStr},{identify:de=>typeof de=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:v.boolOptions,stringify:I},{identify:de=>typeof de=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:v.boolOptions,stringify:I},{identify:G,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(de,Re,Ue)=>oe(Re,Ue,2),stringify:de=>ge(de,2,"0b")},{identify:G,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(de,Re,Ue)=>oe(Re,Ue,8),stringify:de=>ge(de,8,"0")},{identify:G,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(de,Re,Ue)=>oe(Re,Ue,10),stringify:v.stringifyNumber},{identify:G,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(de,Re,Ue)=>oe(Re,Ue,16),stringify:de=>ge(de,16,"0x")},{identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(de,Re)=>Re?NaN:de[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:v.stringifyNumber},{identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:de=>parseFloat(de.replace(/_/g,"")),stringify:({value:de})=>Number(de).toExponential()},{identify:de=>typeof de=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(de,Re){let Ue=new v.Scalar(parseFloat(de.replace(/_/g,"")));if(Re){let Be=Re.replace(/_/g,"");Be[Be.length-1]==="0"&&(Ue.minFractionDigits=Be.length)}return Ue},stringify:v.stringifyNumber}],O.binary,O.omap,O.pairs,O.set,O.intTime,O.floatTime,O.timestamp),Ie={core:S,failsafe:Te,json:U,yaml11:Le},qe={binary:O.binary,bool:gt,float:L,floatExp:R,floatNaN:Ae,floatTime:O.floatTime,int:dt,intHex:Mt,intOct:nt,intTime:O.intTime,map:le,null:Ye,omap:O.omap,pairs:O.pairs,seq:we,set:O.set,timestamp:O.timestamp};function je(de,Re,Ue){if(Re){let Be=Ue.filter(lt=>lt.tag===Re),Ke=Be.find(lt=>!lt.format)||Be[0];if(!Ke)throw new Error(`Tag ${Re} not found`);return Ke}return Ue.find(Be=>(Be.identify&&Be.identify(de)||Be.class&&de instanceof Be.class)&&!Be.format)}function Je(de,Re,Ue){if(de instanceof v.Node)return de;let{defaultPrefix:Be,onTagObj:Ke,prevObjects:lt,schema:gn,wrapScalars:Qn}=Ue;Re&&Re.startsWith("!!")&&(Re=Be+Re.slice(2));let fr=je(de,Re,gn.tags);if(!fr){if(typeof de.toJSON=="function"&&(de=de.toJSON()),!de||typeof de!="object")return Qn?new v.Scalar(de):de;fr=de instanceof Map?le:de[Symbol.iterator]?we:le}Ke&&(Ke(fr),delete Ue.onTagObj);let Kn={value:void 0,node:void 0};if(de&&typeof de=="object"&&lt){let Ts=lt.get(de);if(Ts){let di=new v.Alias(Ts);return Ue.aliasNodes.push(di),di}Kn.value=de,lt.set(de,Kn)}return Kn.node=fr.createNode?fr.createNode(Ue.schema,de,Ue):Qn?new v.Scalar(de):de,Re&&Kn.node instanceof v.Node&&(Kn.node.tag=Re),Kn.node}function Ot(de,Re,Ue,Be){let Ke=de[Be.replace(/\W/g,"")];if(!Ke){let lt=Object.keys(de).map(gn=>JSON.stringify(gn)).join(", ");throw new Error(`Unknown schema "${Be}"; use one of ${lt}`)}if(Array.isArray(Ue))for(let lt of Ue)Ke=Ke.concat(lt);else typeof Ue=="function"&&(Ke=Ue(Ke.slice()));for(let lt=0;lt<Ke.length;++lt){let gn=Ke[lt];if(typeof gn=="string"){let Qn=Re[gn];if(!Qn){let fr=Object.keys(Re).map(Kn=>JSON.stringify(Kn)).join(", ");throw new Error(`Unknown custom tag "${gn}"; use one of ${fr}`)}Ke[lt]=Qn}}return Ke}var Cn=(de,Re)=>de.key<Re.key?-1:de.key>Re.key?1:0,kn=class og{constructor({customTags:Re,merge:Ue,schema:Be,sortMapEntries:Ke,tags:lt}){this.merge=!!Ue,this.name=Be,this.sortMapEntries=Ke===!0?Cn:Ke||null,!Re&&lt&&O.warnOptionDeprecation("tags","customTags"),this.tags=Ot(Ie,qe,Re||lt,Be)}createNode(Re,Ue,Be,Ke){let lt={defaultPrefix:og.defaultPrefix,schema:this,wrapScalars:Ue},gn=Ke?Object.assign(Ke,lt):lt;return Je(Re,Be,gn)}createPair(Re,Ue,Be){Be||(Be={wrapScalars:!0});let Ke=this.createNode(Re,Be.wrapScalars,null,Be),lt=this.createNode(Ue,Be.wrapScalars,null,Be);return new v.Pair(Ke,lt)}};h._defineProperty(kn,"defaultPrefix",h.defaultTagPrefix),h._defineProperty(kn,"defaultTags",h.defaultTags),m.Schema=kn}),j=u(m=>{var h=w(),v=A(),O=P(),Q={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},le={get binary(){return v.binaryOptions},set binary(L){Object.assign(v.binaryOptions,L)},get bool(){return v.boolOptions},set bool(L){Object.assign(v.boolOptions,L)},get int(){return v.intOptions},set int(L){Object.assign(v.intOptions,L)},get null(){return v.nullOptions},set null(L){Object.assign(v.nullOptions,L)},get str(){return v.strOptions},set str(L){Object.assign(v.strOptions,L)}},ce={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:h.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:h.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:h.defaultTagPrefix}]}};function we(L,S){if((L.version||L.options.version)==="1.0"){let U=S.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(U)return"!"+U[1];let I=S.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return I?`!${I[1]}/${I[2]}`:`!${S.replace(/^tag:/,"")}`}let C=L.tagPrefixes.find(U=>S.indexOf(U.prefix)===0);if(!C){let U=L.getDefaults().tagPrefixes;C=U&&U.find(I=>S.indexOf(I.prefix)===0)}if(!C)return S[0]==="!"?S:`!<${S}>`;let _=S.substr(C.prefix.length).replace(/[!,[\]{}]/g,U=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[U]);return C.handle+_}function De(L,S){if(S instanceof v.Alias)return v.Alias;if(S.tag){let U=L.filter(I=>I.tag===S.tag);if(U.length>0)return U.find(I=>I.format===S.format)||U[0]}let C,_;if(S instanceof v.Scalar){_=S.value;let U=L.filter(I=>I.identify&&I.identify(_)||I.class&&_ instanceof I.class);C=U.find(I=>I.format===S.format)||U.find(I=>!I.format)}else _=S,C=L.find(U=>U.nodeClass&&_ instanceof U.nodeClass);if(!C){let U=_&&_.constructor?_.constructor.name:typeof _;throw new Error(`Tag not resolved for ${U} value`)}return C}function Te(L,S,{anchors:C,doc:_}){let U=[],I=_.anchors.getName(L);return I&&(C[I]=L,U.push(`&${I}`)),L.tag?U.push(we(_,L.tag)):S.default||U.push(we(_,S.tag)),U.join(" ")}function Oe(L,S,C,_){let{anchors:U,schema:I}=S.doc,G;if(!(L instanceof v.Node)){let Le={aliasNodes:[],onTagObj:Ie=>G=Ie,prevObjects:new Map};L=I.createNode(L,!0,null,Le);for(let Ie of Le.aliasNodes){Ie.source=Ie.source.node;let qe=U.getName(Ie.source);qe||(qe=U.newName(),U.map[qe]=Ie.source)}}if(L instanceof v.Pair)return L.toString(S,C,_);G||(G=De(I.tags,L));let oe=Te(L,G,S);oe.length>0&&(S.indentAtStart=(S.indentAtStart||0)+oe.length+1);let ge=typeof G.stringify=="function"?G.stringify(L,S,C,_):L instanceof v.Scalar?v.stringifyString(L,S,C,_):L.toString(S,C,_);return oe?L instanceof v.Scalar||ge[0]==="{"||ge[0]==="["?`${oe} ${ge}`:`${oe}
326
- ${S.indent}${ge}`:ge}var it=class ag{static validAnchorNode(S){return S instanceof v.Scalar||S instanceof v.YAMLSeq||S instanceof v.YAMLMap}constructor(S){h._defineProperty(this,"map",Object.create(null)),this.prefix=S}createAlias(S,C){return this.setAnchor(S,C),new v.Alias(S)}createMergePair(...S){let C=new v.Merge;return C.value.items=S.map(_=>{if(_ instanceof v.Alias){if(_.source instanceof v.YAMLMap)return _}else if(_ instanceof v.YAMLMap)return this.createAlias(_);throw new Error("Merge sources must be Map nodes or their Aliases")}),C}getName(S){let{map:C}=this;return Object.keys(C).find(_=>C[_]===S)}getNames(){return Object.keys(this.map)}getNode(S){return this.map[S]}newName(S){S||(S=this.prefix);let C=Object.keys(this.map);for(let _=1;;++_){let U=`${S}${_}`;if(!C.includes(U))return U}}resolveNodes(){let{map:S,_cstAliases:C}=this;Object.keys(S).forEach(_=>{S[_]=S[_].resolved}),C.forEach(_=>{_.source=_.source.resolved}),delete this._cstAliases}setAnchor(S,C){if(S!=null&&!ag.validAnchorNode(S))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(C&&/[\x00-\x19\s,[\]{}]/.test(C))throw new Error("Anchor names must not contain whitespace or control characters");let{map:_}=this,U=S&&Object.keys(_).find(I=>_[I]===S);if(U)if(C)U!==C&&(delete _[U],_[C]=S);else return U;else{if(!C){if(!S)return null;C=this.newName()}_[C]=S}return C}},yt=(L,S)=>{if(L&&typeof L=="object"){let{tag:C}=L;L instanceof v.Collection?(C&&(S[C]=!0),L.items.forEach(_=>yt(_,S))):L instanceof v.Pair?(yt(L.key,S),yt(L.value,S)):L instanceof v.Scalar&&C&&(S[C]=!0)}return S},Ye=L=>Object.keys(yt(L,{}));function gt(L,S){let C={before:[],after:[]},_,U=!1;for(let I of S)if(I.valueRange){if(_!==void 0){let oe="Document contains trailing content not separated by a ... or --- line";L.errors.push(new h.YAMLSyntaxError(I,oe));break}let G=v.resolveNode(L,I);U&&(G.spaceBefore=!0,U=!1),_=G}else I.comment!==null?(_===void 0?C.before:C.after).push(I.comment):I.type===h.Type.BLANK_LINE&&(U=!0,_===void 0&&C.before.length>0&&!L.commentBefore&&(L.commentBefore=C.before.join(`
327
- `),C.before=[]));if(L.contents=_||null,!_)L.comment=C.before.concat(C.after).join(`
328
- `)||null;else{let I=C.before.join(`
329
- `);if(I){let G=_ instanceof v.Collection&&_.items[0]?_.items[0]:_;G.commentBefore=G.commentBefore?`${I}
330
- ${G.commentBefore}`:I}L.comment=C.after.join(`
331
- `)||null}}function nt({tagPrefixes:L},S){let[C,_]=S.parameters;if(!C||!_){let U="Insufficient parameters given for %TAG directive";throw new h.YAMLSemanticError(S,U)}if(L.some(U=>U.handle===C)){let U="The %TAG directive must only be given at most once per handle in the same document.";throw new h.YAMLSemanticError(S,U)}return{handle:C,prefix:_}}function dt(L,S){let[C]=S.parameters;if(S.name==="YAML:1.0"&&(C="1.0"),!C){let _="Insufficient parameters given for %YAML directive";throw new h.YAMLSemanticError(S,_)}if(!ce[C]){let _=`Document will be parsed as YAML ${L.version||L.options.version} rather than YAML ${C}`;L.warnings.push(new h.YAMLWarning(S,_))}return C}function Mt(L,S,C){let _=[],U=!1;for(let I of S){let{comment:G,name:oe}=I;switch(oe){case"TAG":try{L.tagPrefixes.push(nt(L,I))}catch(ge){L.errors.push(ge)}U=!0;break;case"YAML":case"YAML:1.0":if(L.version){let ge="The %YAML directive must only be given at most once per document.";L.errors.push(new h.YAMLSemanticError(I,ge))}try{L.version=dt(L,I)}catch(ge){L.errors.push(ge)}U=!0;break;default:if(oe){let ge=`YAML only supports %TAG and %YAML directives, and not %${oe}`;L.warnings.push(new h.YAMLWarning(I,ge))}}G&&_.push(G)}if(C&&!U&&(L.version||C.version||L.options.version)==="1.1"){let I=({handle:G,prefix:oe})=>({handle:G,prefix:oe});L.tagPrefixes=C.tagPrefixes.map(I),L.version=C.version}L.commentBefore=_.join(`
332
- `)||null}function Ae(L){if(L instanceof v.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var R=class Jf{constructor(S){this.anchors=new it(S.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=S,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(S){return Ae(this.contents),this.contents.add(S)}addIn(S,C){Ae(this.contents),this.contents.addIn(S,C)}delete(S){return Ae(this.contents),this.contents.delete(S)}deleteIn(S){return v.isEmptyPath(S)?this.contents==null?!1:(this.contents=null,!0):(Ae(this.contents),this.contents.deleteIn(S))}getDefaults(){return Jf.defaults[this.version]||Jf.defaults[this.options.version]||{}}get(S,C){return this.contents instanceof v.Collection?this.contents.get(S,C):void 0}getIn(S,C){return v.isEmptyPath(S)?!C&&this.contents instanceof v.Scalar?this.contents.value:this.contents:this.contents instanceof v.Collection?this.contents.getIn(S,C):void 0}has(S){return this.contents instanceof v.Collection?this.contents.has(S):!1}hasIn(S){return v.isEmptyPath(S)?this.contents!==void 0:this.contents instanceof v.Collection?this.contents.hasIn(S):!1}set(S,C){Ae(this.contents),this.contents.set(S,C)}setIn(S,C){v.isEmptyPath(S)?this.contents=C:(Ae(this.contents),this.contents.setIn(S,C))}setSchema(S,C){if(!S&&!C&&this.schema)return;typeof S=="number"&&(S=S.toFixed(1)),S==="1.0"||S==="1.1"||S==="1.2"?(this.version?this.version=S:this.options.version=S,delete this.options.schema):S&&typeof S=="string"&&(this.options.schema=S),Array.isArray(C)&&(this.options.customTags=C);let _=Object.assign({},this.getDefaults(),this.options);this.schema=new O.Schema(_)}parse(S,C){this.options.keepCstNodes&&(this.cstNode=S),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:_=[],contents:U=[],directivesEndMarker:I,error:G,valueRange:oe}=S;if(G&&(G.source||(G.source=this),this.errors.push(G)),Mt(this,_,C),I&&(this.directivesEndMarker=!0),this.range=oe?[oe.start,oe.end]:null,this.setSchema(),this.anchors._cstAliases=[],gt(this,U),this.anchors.resolveNodes(),this.options.prettyErrors){for(let ge of this.errors)ge instanceof h.YAMLError&&ge.makePretty();for(let ge of this.warnings)ge instanceof h.YAMLError&&ge.makePretty()}return this}listNonDefaultTags(){return Ye(this.contents).filter(S=>S.indexOf(O.Schema.defaultPrefix)!==0)}setTagPrefix(S,C){if(S[0]!=="!"||S[S.length-1]!=="!")throw new Error("Handle must start and end with !");if(C){let _=this.tagPrefixes.find(U=>U.handle===S);_?_.prefix=C:this.tagPrefixes.push({handle:S,prefix:C})}else this.tagPrefixes=this.tagPrefixes.filter(_=>_.handle!==S)}toJSON(S,C){let{keepBlobsInJSON:_,mapAsMap:U,maxAliasCount:I}=this.options,G=_&&(typeof S!="string"||!(this.contents instanceof v.Scalar)),oe={doc:this,indentStep:" ",keep:G,mapAsMap:G&&!!U,maxAliasCount:I,stringify:Oe},ge=Object.keys(this.anchors.map);ge.length>0&&(oe.anchors=new Map(ge.map(Ie=>[this.anchors.map[Ie],{alias:[],aliasCount:0,count:1}])));let Le=v.toJSON(this.contents,S,oe);if(typeof C=="function"&&oe.anchors)for(let{count:Ie,res:qe}of oe.anchors.values())C(qe,Ie);return Le}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let S=this.options.indent;if(!Number.isInteger(S)||S<=0){let ge=JSON.stringify(S);throw new Error(`"indent" option must be a positive integer, not ${ge}`)}this.setSchema();let C=[],_=!1;if(this.version){let ge="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?ge="%YAML:1.0":this.version==="1.1"&&(ge="%YAML 1.1")),C.push(ge),_=!0}let U=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:ge,prefix:Le})=>{U.some(Ie=>Ie.indexOf(Le)===0)&&(C.push(`%TAG ${ge} ${Le}`),_=!0)}),(_||this.directivesEndMarker)&&C.push("---"),this.commentBefore&&((_||!this.directivesEndMarker)&&C.unshift(""),C.unshift(this.commentBefore.replace(/^/gm,"#")));let I={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(S),stringify:Oe},G=!1,oe=null;if(this.contents){this.contents instanceof v.Node&&(this.contents.spaceBefore&&(_||this.directivesEndMarker)&&C.push(""),this.contents.commentBefore&&C.push(this.contents.commentBefore.replace(/^/gm,"#")),I.forceBlockIndent=!!this.comment,oe=this.contents.comment);let ge=oe?null:()=>G=!0,Le=Oe(this.contents,I,()=>oe=null,ge);C.push(v.addComment(Le,"",oe))}else this.contents!==void 0&&C.push(Oe(this.contents,I));return this.comment&&((!G||oe)&&C[C.length-1]!==""&&C.push(""),C.push(this.comment.replace(/^/gm,"#"))),C.join(`
333
- `)+`
334
- `}};h._defineProperty(R,"defaults",ce),m.Document=R,m.defaultOptions=Q,m.scalarOptions=le}),H=u(m=>{var h=k(),v=j(),O=P(),Q=w(),le=E();A();function ce(Ye,gt=!0,nt){nt===void 0&&typeof gt=="string"&&(nt=gt,gt=!0);let dt=Object.assign({},v.Document.defaults[v.defaultOptions.version],v.defaultOptions);return new O.Schema(dt).createNode(Ye,gt,nt)}var we=class extends v.Document{constructor(Ye){super(Object.assign({},v.defaultOptions,Ye))}};function De(Ye,gt){let nt=[],dt;for(let Mt of h.parse(Ye)){let Ae=new we(gt);Ae.parse(Mt,dt),nt.push(Ae),dt=Ae}return nt}function Te(Ye,gt){let nt=h.parse(Ye),dt=new we(gt).parse(nt[0]);if(nt.length>1){let Mt="Source contains multiple documents; please use YAML.parseAllDocuments()";dt.errors.unshift(new Q.YAMLSemanticError(nt[1],Mt))}return dt}function Oe(Ye,gt){let nt=Te(Ye,gt);if(nt.warnings.forEach(dt=>le.warn(dt)),nt.errors.length>0)throw nt.errors[0];return nt.toJSON()}function it(Ye,gt){let nt=new we(gt);return nt.contents=Ye,String(nt)}var yt={createNode:ce,defaultOptions:v.defaultOptions,Document:we,parse:Oe,parseAllDocuments:De,parseCST:h.parse,parseDocument:Te,scalarOptions:v.scalarOptions,stringify:it};m.YAML=yt}),z=u((m,h)=>{h.exports=H().YAML}),M=u(m=>{var h=A(),v=w();m.findPair=h.findPair,m.parseMap=h.resolveMap,m.parseSeq=h.resolveSeq,m.stringifyNumber=h.stringifyNumber,m.stringifyString=h.stringifyString,m.toJSON=h.toJSON,m.Type=v.Type,m.YAMLError=v.YAMLError,m.YAMLReferenceError=v.YAMLReferenceError,m.YAMLSemanticError=v.YAMLSemanticError,m.YAMLSyntaxError=v.YAMLSyntaxError,m.YAMLWarning=v.YAMLWarning}),T={};c(T,{languages:()=>Rr,options:()=>wu,parsers:()=>aa,printers:()=>dc});var Y=(m,h,v,O)=>{if(!(m&&h==null))return h.replaceAll?h.replaceAll(v,O):v.global?h.replace(v,O):h.split(v).join(O)},K=Y,W="string",re="array",ee="cursor",B="indent",ae="align",te="trim",X="group",se="fill",he="if-break",Se="indent-if-break",_e="line-suffix",Fe="line-suffix-boundary",$e="line",Ge="label",kt="break-parent",at=new Set([ee,B,ae,te,X,se,he,Se,_e,Fe,$e,Ge,kt]),tn=(m,h,v)=>{if(!(m&&h==null))return Array.isArray(h)||typeof h=="string"?h[v<0?h.length+v:v]:h.at(v)},_t=tn;function Zr(m){if(typeof m=="string")return W;if(Array.isArray(m))return re;if(!m)return;let{type:h}=m;if(at.has(h))return h}var Qs=Zr,Kl=m=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(m);function Ji(m){let h=m===null?"null":typeof m;if(h!=="string"&&h!=="object")return`Unexpected doc '${h}',
335
- Expected it to be 'string' or 'object'.`;if(Qs(m))throw new Error("doc is valid.");let v=Object.prototype.toString.call(m);if(v!=="[object Object]")return`Unexpected doc '${v}'.`;let O=Kl([...at].map(Q=>`'${Q}'`));return`Unexpected doc.type '${m.type}'.
336
- Expected it to be ${O}.`}var zo=class extends Error{name="InvalidDocError";constructor(m){super(Ji(m)),this.doc=m}},Xl=zo;function Tr(m,h){if(typeof m=="string")return h(m);let v=new Map;return O(m);function O(le){if(v.has(le))return v.get(le);let ce=Q(le);return v.set(le,ce),ce}function Q(le){switch(Qs(le)){case re:return h(le.map(O));case se:return h({...le,parts:le.parts.map(O)});case he:return h({...le,breakContents:O(le.breakContents),flatContents:O(le.flatContents)});case X:{let{expandedStates:ce,contents:we}=le;return ce?(ce=ce.map(O),we=ce[0]):we=O(we),h({...le,contents:we,expandedStates:ce})}case ae:case B:case Se:case Ge:case _e:return h({...le,contents:O(le.contents)});case W:case ee:case te:case Fe:case $e:case kt:return h(le);default:throw new Xl(le)}}}function ir(m,h=ar){return Tr(m,v=>typeof v=="string"?ln(h,v.split(`
337
- `)):v)}var Mr=()=>{},or=Mr;function wn(m,h){return{type:ae,contents:h,n:m}}function Sn(m,h={}){return or(h.expandedStates),{type:X,id:h.id,contents:m,break:!!h.shouldBreak,expandedStates:h.expandedStates}}function on(m){return wn(Number.NEGATIVE_INFINITY,m)}function qn(m){return wn({type:"root"},m)}function dn(m){return wn(-1,m)}function Wn(m,h){return Sn(m[0],{...h,expandedStates:m})}function Hn(m){return{type:se,parts:m}}function Mn(m,h="",v={}){return{type:he,breakContents:m,flatContents:h,groupId:v.groupId}}function Xt(m){return{type:_e,contents:m}}var En={type:kt},An={type:$e,hard:!0},Go={type:$e,hard:!0,literal:!0},Es={type:$e},Ht={type:$e,soft:!0},mt=[An,En],ar=[Go,En];function ln(m,h){let v=[];for(let O=0;O<h.length;O++)O!==0&&v.push(m),v.push(h[O]);return v}function Zl(m){return(h,v,O)=>{let Q=!!(O!=null&&O.backwards);if(v===!1)return!1;let{length:le}=h,ce=v;for(;ce>=0&&ce<le;){let we=h.charAt(ce);if(m instanceof RegExp){if(!m.test(we))return ce}else if(!m.includes(we))return ce;Q?ce--:ce++}return ce===-1||ce===le?ce:!1}}var Jo=Zl(" ");function es(m,h,v){let O=!!(v!=null&&v.backwards);if(h===!1)return!1;let Q=m.charAt(h);if(O){if(m.charAt(h-1)==="\r"&&Q===`
338
- `)return h-2;if(Q===`
339
- `||Q==="\r"||Q==="\u2028"||Q==="\u2029")return h-1}else{if(Q==="\r"&&m.charAt(h+1)===`
340
- `)return h+2;if(Q===`
341
- `||Q==="\r"||Q==="\u2028"||Q==="\u2029")return h+1}return h}var Qi=es;function eu(m,h){let v=h-1;v=Jo(m,v,{backwards:!0}),v=Qi(m,v,{backwards:!0}),v=Jo(m,v,{backwards:!0});let O=Qi(m,v,{backwards:!0});return v!==O}var Ki=eu,Ks=class extends Error{name="UnexpectedNodeError";constructor(m,h,v="type"){super(`Unexpected ${h} node ${v}: ${JSON.stringify(m[v])}.`),this.node=m}},Xi=Ks;function Qo(m,h){let{node:v}=m;if(v.type==="root"&&h.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(h.filepath))return async O=>{let Q=await O(h.originalText,{parser:"json"});return Q?[Q,mt]:void 0}}Qo.getVisitorKeys=()=>[];var tu=Qo,ts=null;function As(m){if(ts!==null&&typeof ts.property){let h=ts;return ts=As.prototype=null,h}return ts=As.prototype=m??Object.create(null),new As}var nu=10;for(let m=0;m<=nu;m++)As();function ru(m){return As(m)}function Ko(m,h="type"){ru(m);function v(O){let Q=O[h],le=m[Q];if(!Array.isArray(le))throw Object.assign(new Error(`Missing visitor keys for '${Q}'.`),{node:O});return le}return v}var Ns=Ko,Xo=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([m,h])=>[m,[...h,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),su=Xo,iu=Ns(su),ou=iu;function Xs(m){return m.position.start.offset}function au(m){return m.position.end.offset}function Zs(m){return/^\s*@(?:prettier|format)\s*$/u.test(m)}function lu(m){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(m)}function uu(m){return`# @format
342
-
343
- ${m}`}function ei(m){return Array.isArray(m)&&m.length>0}var Yn=ei;function zn(m,h){return typeof m?.type=="string"&&(!h||h.includes(m.type))}function Zo(m,h,v){return h("children"in m?{...m,children:m.children.map(O=>Zo(O,h,m))}:m,v)}function xs(m,h,v){Object.defineProperty(m,h,{get:v,enumerable:!1})}function cu(m,h){let v=0,O=h.length;for(let Q=m.position.end.offset-1;Q<O;Q++){let le=h[Q];if(le===`
344
- `&&v++,v===1&&/\S/u.test(le))return!1;if(v===2)return!0}return!1}function ea(m){let{node:h}=m;switch(h.type){case"tag":case"anchor":case"comment":return!1}let v=m.stack.length;for(let O=1;O<v;O++){let Q=m.stack[O],le=m.stack[O-1];if(Array.isArray(le)&&typeof Q=="number"&&Q!==le.length-1)return!1}return!0}function Zi(m){return Yn(m.children)?Zi(_t(!1,m.children,-1)):m}function ta(m){return m.value.trim()==="prettier-ignore"}function fu(m){let{node:h}=m;if(h.type==="documentBody"){let v=m.parent.head;return xn(v)&&ta(_t(!1,v.endComments,-1))}return On(h)&&ta(_t(!1,h.leadingComments,-1))}function ns(m){return!Yn(m.children)&&!hu(m)}function hu(m){return On(m)||rs(m)||ti(m)||Nn(m)||xn(m)}function On(m){return Yn(m?.leadingComments)}function rs(m){return Yn(m?.middleComments)}function ti(m){return m?.indicatorComment}function Nn(m){return m?.trailingComment}function xn(m){return Yn(m?.endComments)}function na(m){let h=[],v;for(let O of m.split(/( +)/u))O!==" "?v===" "?h.push(O):h.push((h.pop()||"")+O):v===void 0&&h.unshift(""),v=O;return v===" "&&h.push((h.pop()||"")+" "),h[0]===""&&(h.shift(),h.unshift(" "+(h.shift()||""))),h}function Or(m,h,v){let O=h.split(`
345
- `).map((Q,le,ce)=>le===0&&le===ce.length-1?Q:le!==0&&le!==ce.length-1?Q.trim():le===0?Q.trimEnd():Q.trimStart());return v.proseWrap==="preserve"?O.map(Q=>Q.length===0?[]:[Q]):O.map(Q=>Q.length===0?[]:na(Q)).reduce((Q,le,ce)=>ce!==0&&O[ce-1].length>0&&le.length>0&&!(m==="quoteDouble"&&_t(!1,_t(!1,Q,-1),-1).endsWith("\\"))?[...Q.slice(0,-1),[..._t(!1,Q,-1),...le]]:[...Q,le],[]).map(Q=>v.proseWrap==="never"?[Q.join(" ")]:Q)}function ra(m,{parentIndent:h,isLastDescendant:v,options:O}){let Q=m.position.start.line===m.position.end.line?"":O.originalText.slice(m.position.start.offset,m.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],le;if(m.indent===null){let De=Q.match(/^(?<leadingSpace> *)[^\n\r ]/mu);le=De?De.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else le=m.indent-1+h;let ce=Q.split(`
346
- `).map(De=>De.slice(le));if(O.proseWrap==="preserve"||m.type==="blockLiteral")return we(ce.map(De=>De.length===0?[]:[De]));return we(ce.map(De=>De.length===0?[]:na(De)).reduce((De,Te,Oe)=>Oe!==0&&ce[Oe-1].length>0&&Te.length>0&&!/^\s/u.test(Te[0])&&!/^\s|\s$/u.test(_t(!1,De,-1))?[...De.slice(0,-1),[..._t(!1,De,-1),...Te]]:[...De,Te],[]).map(De=>De.reduce((Te,Oe)=>Te.length>0&&/\s$/u.test(_t(!1,Te,-1))?[...Te.slice(0,-1),_t(!1,Te,-1)+" "+Oe]:[...Te,Oe],[])).map(De=>O.proseWrap==="never"?[De.join(" ")]:De));function we(De){if(m.chomping==="keep")return _t(!1,De,-1).length===0?De.slice(0,-1):De;let Te=0;for(let Oe=De.length-1;Oe>=0&&De[Oe].length===0;Oe--)Te++;return Te===0?De:Te>=2&&!v?De.slice(0,-(Te-1)):De.slice(0,-Te)}}function lr(m){if(!m)return!0;switch(m.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var ni=new WeakMap;function eo(m,h){let{node:v,root:O}=m,Q;return ni.has(O)?Q=ni.get(O):(Q=new Set,ni.set(O,Q)),!Q.has(v.position.end.line)&&(Q.add(v.position.end.line),cu(v,h)&&!sa(m.parent))?Ht:""}function sa(m){return xn(m)&&!zn(m,["documentHead","documentBody","flowMapping","flowSequence"])}function jt(m,h){return wn(" ".repeat(m),h)}function du(m,h,v){let{node:O}=m,Q=m.ancestors.filter(Te=>Te.type==="sequence"||Te.type==="mapping").length,le=ea(m),ce=[O.type==="blockFolded"?">":"|"];O.indent!==null&&ce.push(O.indent.toString()),O.chomping!=="clip"&&ce.push(O.chomping==="keep"?"+":"-"),ti(O)&&ce.push(" ",h("indicatorComment"));let we=ra(O,{parentIndent:Q,isLastDescendant:le,options:v}),De=[];for(let[Te,Oe]of we.entries())Te===0&&De.push(mt),De.push(Hn(ln(Es,Oe))),Te!==we.length-1?De.push(Oe.length===0?mt:qn(ar)):O.chomping==="keep"&&le&&De.push(on(Oe.length===0?mt:ar));return O.indent===null?ce.push(dn(jt(v.tabWidth,De))):ce.push(on(jt(O.indent-1+Q,De))),ce}var mu=du;function ia(m,h,v){let{node:O}=m,Q=O.type==="flowMapping",le=Q?"{":"[",ce=Q?"}":"]",we=Ht;Q&&O.children.length>0&&v.bracketSpacing&&(we=Es);let De=_t(!1,O.children,-1),Te=De?.type==="flowMappingItem"&&ns(De.key)&&ns(De.value);return[le,jt(v.tabWidth,[we,gu(m,h,v),v.trailingComma==="none"?"":Mn(","),xn(O)?[mt,ln(mt,m.map(h,"endComments"))]:""]),Te?"":we,ce]}function gu(m,h,v){return m.map(({isLast:O,node:Q,next:le})=>[h(),O?"":[",",Es,Q.position.start.line!==le.position.start.line?eo(m,v.originalText):""]],"children")}function pu(m,h,v){var O;let{node:Q,parent:le}=m,{key:ce,value:we}=Q,De=ns(ce),Te=ns(we);if(De&&Te)return": ";let Oe=h("key"),it=bu(Q)?" ":"";if(Te)return Q.type==="flowMappingItem"&&le.type==="flowMapping"?Oe:Q.type==="mappingItem"&&to(ce.content,v)&&!Nn(ce.content)&&((O=le.tag)==null?void 0:O.value)!=="tag:yaml.org,2002:set"?[Oe,it,":"]:["? ",jt(2,Oe)];let yt=h("value");if(De)return[": ",jt(2,yt)];if(On(we)||!lr(ce.content))return["? ",jt(2,Oe),mt,...m.map(()=>[h(),mt],"value","leadingComments"),": ",jt(2,yt)];if(no(ce.content)&&!On(ce.content)&&!rs(ce.content)&&!Nn(ce.content)&&!xn(ce)&&!On(we.content)&&!rs(we.content)&&!xn(we)&&to(we.content,v))return[Oe,it,": ",yt];let Ye=Symbol("mappingKey"),gt=Sn([Mn("? "),Sn(jt(2,Oe),{id:Ye})]),nt=[mt,": ",jt(2,yt)],dt=[it,":"];On(we.content)||xn(we)&&we.content&&!zn(we.content,["mapping","sequence"])||le.type==="mapping"&&Nn(ce.content)&&lr(we.content)||zn(we.content,["mapping","sequence"])&&we.content.tag===null&&we.content.anchor===null?dt.push(mt):we.content?dt.push(Es):Nn(we)&&dt.push(" "),dt.push(yt);let Mt=jt(v.tabWidth,dt);return to(ce.content,v)&&!On(ce.content)&&!rs(ce.content)&&!xn(ce)?Wn([[Oe,Mt]]):Wn([[gt,Mn(nt,Mt,{groupId:Ye})]])}function to(m,h){if(!m)return!0;switch(m.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(h.proseWrap==="preserve")return m.position.start.line===m.position.end.line;if(/\\$/mu.test(h.originalText.slice(m.position.start.offset,m.position.end.offset)))return!1;switch(h.proseWrap){case"never":return!m.value.includes(`
347
- `);case"always":return!/[\n ]/u.test(m.value);default:return!1}}function bu(m){var h;return((h=m.key.content)==null?void 0:h.type)==="alias"}function no(m){if(!m)return!0;switch(m.type){case"plain":case"quoteDouble":case"quoteSingle":return m.position.start.line===m.position.end.line;case"alias":return!0;default:return!1}}var un=pu;function Gn(m){return Zo(m,ss)}function ss(m){switch(m.type){case"document":xs(m,"head",()=>m.children[0]),xs(m,"body",()=>m.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":xs(m,"content",()=>m.children[0]);break;case"mappingItem":case"flowMappingItem":xs(m,"key",()=>m.children[0]),xs(m,"value",()=>m.children[1]);break}return m}var ro=Gn;function oa(m,h,v){let{node:O}=m,Q=[];O.type!=="mappingValue"&&On(O)&&Q.push([ln(mt,m.map(v,"leadingComments")),mt]);let{tag:le,anchor:ce}=O;le&&Q.push(v("tag")),le&&ce&&Q.push(" "),ce&&Q.push(v("anchor"));let we="";return zn(O,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!ea(m)&&(we=eo(m,h.originalText)),(le||ce)&&(zn(O,["sequence","mapping"])&&!rs(O)?Q.push(mt):Q.push(" ")),rs(O)&&Q.push([O.middleComments.length===1?"":mt,ln(mt,m.map(v,"middleComments")),mt]),fu(m)?Q.push(ir(h.originalText.slice(O.position.start.offset,O.position.end.offset).trimEnd())):Q.push(Sn(yu(m,h,v))),Nn(O)&&!zn(O,["document","documentHead"])&&Q.push(Xt([O.type==="mappingValue"&&!O.content?"":" ",m.parent.type==="mappingKey"&&m.getParentNode(2).type==="mapping"&&lr(O)?"":En,v("trailingComment")])),sa(O)&&Q.push(jt(O.type==="sequenceItem"?2:0,[mt,ln(mt,m.map(({node:De})=>[Ki(h.originalText,Xs(De))?mt:"",v()],"endComments"))])),Q.push(we),Q}function yu(m,h,v){let{node:O}=m;switch(O.type){case"root":{let Q=[];m.each(({node:ce,next:we,isFirst:De})=>{De||Q.push(mt),Q.push(v()),ri(ce,we)?(Q.push(mt,"..."),Nn(ce)&&Q.push(" ",v("trailingComment"))):we&&!Nn(we.head)&&Q.push(mt,"---")},"children");let le=Zi(O);return(!zn(le,["blockLiteral","blockFolded"])||le.chomping!=="keep")&&Q.push(mt),Q}case"document":{let Q=[];return so(m,h)==="head"&&((O.head.children.length>0||O.head.endComments.length>0)&&Q.push(v("head")),Nn(O.head)?Q.push(["---"," ",v(["head","trailingComment"])]):Q.push("---")),vu(O)&&Q.push(v("body")),ln(mt,Q)}case"documentHead":return ln(mt,[...m.map(v,"children"),...m.map(v,"endComments")]);case"documentBody":{let{children:Q,endComments:le}=O,ce="";if(Q.length>0&&le.length>0){let we=Zi(O);zn(we,["blockFolded","blockLiteral"])?we.chomping!=="keep"&&(ce=[mt,mt]):ce=mt}return[ln(mt,m.map(v,"children")),ce,ln(mt,m.map(v,"endComments"))]}case"directive":return["%",ln(" ",[O.name,...O.parameters])];case"comment":return["#",O.value];case"alias":return["*",O.value];case"tag":return h.originalText.slice(O.position.start.offset,O.position.end.offset);case"anchor":return["&",O.value];case"plain":return vr(O.type,h.originalText.slice(O.position.start.offset,O.position.end.offset),h);case"quoteDouble":case"quoteSingle":{let Q="'",le='"',ce=h.originalText.slice(O.position.start.offset+1,O.position.end.offset-1);if(O.type==="quoteSingle"&&ce.includes("\\")||O.type==="quoteDouble"&&/\\[^"]/u.test(ce)){let De=O.type==="quoteDouble"?le:Q;return[De,vr(O.type,ce,h),De]}if(ce.includes(le))return[Q,vr(O.type,O.type==="quoteDouble"?K(!1,K(!1,ce,String.raw`\"`,le),"'",Q.repeat(2)):ce,h),Q];if(ce.includes(Q))return[le,vr(O.type,O.type==="quoteSingle"?K(!1,ce,"''",Q):ce,h),le];let we=h.singleQuote?Q:le;return[we,vr(O.type,ce,h),we]}case"blockFolded":case"blockLiteral":return mu(m,v,h);case"mapping":case"sequence":return ln(mt,m.map(v,"children"));case"sequenceItem":return["- ",jt(2,O.content?v("content"):"")];case"mappingKey":case"mappingValue":return O.content?v("content"):"";case"mappingItem":case"flowMappingItem":return un(m,v,h);case"flowMapping":return ia(m,v,h);case"flowSequence":return ia(m,v,h);case"flowSequenceItem":return v("content");default:throw new Xi(O,"YAML")}}function vu(m){return m.body.children.length>0||xn(m.body)}function ri(m,h){return Nn(m)||h&&(h.head.children.length>0||xn(h.head))}function so(m,h){let v=m.node;if(m.isFirst&&/---(?:\s|$)/u.test(h.originalText.slice(Xs(v),Xs(v)+4))||v.head.children.length>0||xn(v.head)||Nn(v.head))return"head";let O=m.next;return ri(v,O)?!1:O?"root":!1}function vr(m,h,v){let O=Or(m,h,v);return ln(mt,O.map(Q=>Hn(ln(Es,Q))))}function Ls(m,h){if(zn(m))switch(m.type){case"comment":if(Zs(m.value))return null;break;case"quoteDouble":case"quoteSingle":h.type="quote";break}}Ls.ignoredProperties=new Set(["position"]);var Du={preprocess:ro,embed:tu,print:oa,massageAstNode:Ls,insertPragma:uu,getVisitorKeys:ou},io=Du,Rr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],Cs={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]}},si={bracketSpacing:Cs.bracketSpacing,singleQuote:Cs.singleQuote,proseWrap:Cs.proseWrap},wu=si,aa={};c(aa,{yaml:()=>hc});var ks=`
348
- `,ii="\r",Su=function(){function m(h){this.length=h.length;for(var v=[0],O=0;O<h.length;)switch(h[O]){case ks:O+=ks.length,v.push(O);break;case ii:O+=ii.length,h[O]===ks&&(O+=ks.length),v.push(O);break;default:O++;break}this.offsets=v}return m.prototype.locationForIndex=function(h){if(h<0||h>this.length)return null;for(var v=0,O=this.offsets;O[v+1]<=h;)v++;var Q=h-O[v];return{line:v,column:Q}},m.prototype.indexForLocation=function(h){var v=h.line,O=h.column;return v<0||v>=this.offsets.length||O<0||O>this.lengthOfLine(v)?null:this.offsets[v]+O},m.prototype.lengthOfLine=function(h){var v=this.offsets[h],O=h===this.offsets.length-1?this.length:this.offsets[h+1];return O-v},m}();function mn(m,h=null){"children"in m&&m.children.forEach(v=>mn(v,m)),"anchor"in m&&m.anchor&&mn(m.anchor,m),"tag"in m&&m.tag&&mn(m.tag,m),"leadingComments"in m&&m.leadingComments.forEach(v=>mn(v,m)),"middleComments"in m&&m.middleComments.forEach(v=>mn(v,m)),"indicatorComment"in m&&m.indicatorComment&&mn(m.indicatorComment,m),"trailingComment"in m&&m.trailingComment&&mn(m.trailingComment,m),"endComments"in m&&m.endComments.forEach(v=>mn(v,m)),Object.defineProperty(m,"_parent",{value:h,enumerable:!1})}function Pr(m){return`${m.line}:${m.column}`}function Eu(m){mn(m);let h=Au(m),v=m.children.slice();m.comments.sort((O,Q)=>O.position.start.offset-Q.position.end.offset).filter(O=>!O._parent).forEach(O=>{for(;v.length>1&&O.position.start.line>v[0].position.end.line;)v.shift();Nu(O,h,v[0])})}function Au(m){let h=Array.from(new Array(m.position.end.line),()=>({}));for(let v of m.comments)h[v.position.start.line-1].comment=v;return is(h,m),h}function is(m,h){if(h.position.start.offset!==h.position.end.offset){if("leadingComments"in h){let{start:v}=h.position,{leadingAttachableNode:O}=m[v.line-1];(!O||v.column<O.position.start.column)&&(m[v.line-1].leadingAttachableNode=h)}if("trailingComment"in h&&h.position.end.column>1&&h.type!=="document"&&h.type!=="documentHead"){let{end:v}=h.position,{trailingAttachableNode:O}=m[v.line-1];(!O||v.column>=O.position.end.column)&&(m[v.line-1].trailingAttachableNode=h)}if(h.type!=="root"&&h.type!=="document"&&h.type!=="documentHead"&&h.type!=="documentBody"){let{start:v,end:O}=h.position,Q=[O.line].concat(v.line===O.line?[]:v.line);for(let le of Q){let ce=m[le-1].trailingNode;(!ce||O.column>=ce.position.end.column)&&(m[le-1].trailingNode=h)}}"children"in h&&h.children.forEach(v=>{is(m,v)})}}function Nu(m,h,v){let O=m.position.start.line,{trailingAttachableNode:Q}=h[O-1];if(Q){if(Q.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Pr(m.position.start)}`);mn(m,Q),Q.trailingComment=m;return}for(let ce=O;ce>=v.position.start.line;ce--){let{trailingNode:we}=h[ce-1],De;if(we)De=we;else if(ce!==O&&h[ce-1].comment)De=h[ce-1].comment._parent;else continue;if((De.type==="sequence"||De.type==="mapping")&&(De=De.children[0]),De.type==="mappingItem"){let[Te,Oe]=De.children;De=oo(Te)?Te:Oe}for(;;){if(Dr(De,m)){mn(m,De),De.endComments.push(m);return}if(!De._parent)break;De=De._parent}break}for(let ce=O+1;ce<=v.position.end.line;ce++){let{leadingAttachableNode:we}=h[ce-1];if(we){mn(m,we),we.leadingComments.push(m);return}}let le=v.children[1];mn(m,le),le.endComments.push(m)}function Dr(m,h){if(m.position.start.offset<h.position.start.offset&&m.position.end.offset>h.position.end.offset)switch(m.type){case"flowMapping":case"flowSequence":return m.children.length===0||h.position.start.line>m.children[m.children.length-1].position.end.line}if(h.position.end.offset<m.position.end.offset)return!1;switch(m.type){case"sequenceItem":return h.position.start.column>m.position.start.column;case"mappingKey":case"mappingValue":return h.position.start.column>m._parent.position.start.column&&(m.children.length===0||m.children.length===1&&m.children[0].type!=="blockFolded"&&m.children[0].type!=="blockLiteral")&&(m.type==="mappingValue"||oo(m));default:return!1}}function oo(m){return m.position.start!==m.position.end&&(m.children.length===0||m.position.start.offset!==m.children[0].position.start.offset)}function Bt(m,h){return{type:m,position:h}}function xu(m,h,v){return{...Bt("root",m),children:h,comments:v}}function Jn(m){switch(m.type){case"DOCUMENT":for(let h=m.contents.length-1;h>=0;h--)m.contents[h].type==="BLANK_LINE"?m.contents.splice(h,1):Jn(m.contents[h]);for(let h=m.directives.length-1;h>=0;h--)m.directives[h].type==="BLANK_LINE"&&m.directives.splice(h,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let h=m.items.length-1;h>=0;h--){let v=m.items[h];"char"in v||(v.type==="BLANK_LINE"?m.items.splice(h,1):Jn(v))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":m.node&&Jn(m.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(m.type)}`)}}function os(){return{leadingComments:[]}}function Rn(m=null){return{trailingComment:m}}function Ir(){return{...os(),...Rn()}}function Lu(m,h,v){return{...Bt("alias",m),...Ir(),...h,value:v}}function la(m,h){let v=m.cstNode;return Lu(h.transformRange({origStart:v.valueRange.origStart-1,origEnd:v.valueRange.origEnd}),h.transformContent(m),v.rawValue)}function Cu(m){return{...m,type:"blockFolded"}}function ku(m,h,v,O,Q,le){return{...Bt("blockValue",m),...os(),...h,chomping:v,indent:O,value:Q,indicatorComment:le}}var ur;(function(m){m.Tag="!",m.Anchor="&",m.Comment="#"})(ur||(ur={}));function _u(m,h){return{...Bt("anchor",m),value:h}}function _s(m,h){return{...Bt("comment",m),value:h}}function as(m,h,v){return{anchor:h,tag:m,middleComments:v}}function Br(m,h){return{...Bt("tag",m),value:h}}function $r(m,h,v=()=>!1){let O=m.cstNode,Q=[],le=null,ce=null,we=null;for(let De of O.props){let Te=h.text[De.origStart];switch(Te){case ur.Tag:le=le||De,ce=Br(h.transformRange(De),m.tag);break;case ur.Anchor:le=le||De,we=_u(h.transformRange(De),O.anchor);break;case ur.Comment:{let Oe=_s(h.transformRange(De),h.text.slice(De.origStart+1,De.origEnd));h.comments.push(Oe),!v(Oe)&&le&&le.origEnd<=De.origStart&&De.origEnd<=O.valueRange.origStart&&Q.push(Oe);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(Te)}`)}}return as(ce,we,Q)}var Fs;(function(m){m.CLIP="clip",m.STRIP="strip",m.KEEP="keep"})(Fs||(Fs={}));function oi(m,h){let v=m.cstNode,O=1,Q=v.chomping==="CLIP"?0:1,le=v.header.origEnd-v.header.origStart-O-Q!==0,ce=h.transformRange({origStart:v.header.origStart,origEnd:v.valueRange.origEnd}),we=null,De=$r(m,h,Te=>{if(!(ce.start.offset<Te.position.start.offset&&Te.position.end.offset<ce.end.offset))return!1;if(we)throw new Error(`Unexpected multiple indicator comments at ${Pr(Te.position.start)}`);return we=Te,!0});return ku(ce,De,Fs[v.chomping],le?v.blockIndent:null,v.strValue,we)}function ua(m,h){return Cu(oi(m,h))}function ao(m){return{...m,type:"blockLiteral"}}function Fu(m,h){return ao(oi(m,h))}function ca(m,h){return _s(h.transformRange(m.range),m.comment)}function Tu(m,h,v){return{...Bt("directive",m),...Ir(),name:h,parameters:v}}function lo(m,h){for(let v of m.props){let O=h.text[v.origStart];switch(O){case ur.Comment:h.comments.push(_s(h.transformRange(v),h.text.slice(v.origStart+1,v.origEnd)));break;default:throw new Error(`Unexpected leading character ${JSON.stringify(O)}`)}}}function fa(m,h){return lo(m,h),Tu(h.transformRange(m.range),m.name,m.parameters)}function uo(m,h,v,O){return{...Bt("document",m),...Rn(O),children:[h,v]}}function Vr(m,h){return{start:m,end:h}}function ai(m){return{start:m,end:m}}function wr(m=[]){return{endComments:m}}function Mu(m,h,v){return{...Bt("documentBody",m),...wr(v),children:h?[h]:[]}}function Sr(m){return m[m.length-1]}function ha(m,h){let v=m.match(h);return v?v.index:-1}function Ou(m,h,v){let O=m.cstNode,{comments:Q,endComments:le,documentTrailingComment:ce,documentHeadTrailingComment:we}=Ru(O,h,v),De=h.transformNode(m.contents),{position:Te,documentEndPoint:Oe}=da(O,De,h);return h.comments.push(...Q,...le),{documentBody:Mu(Te,De,le),documentEndPoint:Oe,documentTrailingComment:ce,documentHeadTrailingComment:we}}function Ru(m,h,v){let O=[],Q=[],le=[],ce=[],we=!1;for(let De=m.contents.length-1;De>=0;De--){let Te=m.contents[De];if(Te.type==="COMMENT"){let Oe=h.transformNode(Te);v&&v.line===Oe.position.start.line?ce.unshift(Oe):we?O.unshift(Oe):Oe.position.start.offset>=m.valueRange.origEnd?le.unshift(Oe):O.unshift(Oe)}else we=!0}if(le.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Pr(le[1].position.start)}`);if(ce.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Pr(ce[1].position.start)}`);return{comments:O,endComments:Q,documentTrailingComment:Sr(le)||null,documentHeadTrailingComment:Sr(ce)||null}}function da(m,h,v){let O=ha(v.text.slice(m.valueRange.origEnd),/^\.\.\./),Q=O===-1?m.valueRange.origEnd:Math.max(0,m.valueRange.origEnd-1);v.text[Q-1]==="\r"&&Q--;let le=v.transformRange({origStart:h!==null?h.position.start.offset:Q,origEnd:Q}),ce=O===-1?le.end:v.transformOffset(m.valueRange.origEnd+3);return{position:le,documentEndPoint:ce}}function ma(m,h,v,O){return{...Bt("documentHead",m),...wr(v),...Rn(O),children:h}}function Pu(m,h){let v=m.cstNode,{directives:O,comments:Q,endComments:le}=ga(v,h),{position:ce,endMarkerPoint:we}=Iu(v,O,h);return h.comments.push(...Q,...le),{createDocumentHeadWithTrailingComment:De=>(De&&h.comments.push(De),ma(ce,O,le,De)),documentHeadEndMarkerPoint:we}}function ga(m,h){let v=[],O=[],Q=[],le=!1;for(let ce=m.directives.length-1;ce>=0;ce--){let we=h.transformNode(m.directives[ce]);we.type==="comment"?le?O.unshift(we):Q.unshift(we):(le=!0,v.unshift(we))}return{directives:v,comments:O,endComments:Q}}function Iu(m,h,v){let O=ha(v.text.slice(0,m.valueRange.origStart),/---\s*$/);O>0&&!/[\r\n]/.test(v.text[O-1])&&(O=-1);let Q=O===-1?{origStart:m.valueRange.origStart,origEnd:m.valueRange.origStart}:{origStart:O,origEnd:O+3};return h.length!==0&&(Q.origStart=h[0].position.start.offset),{position:v.transformRange(Q),endMarkerPoint:O===-1?null:v.transformOffset(O)}}function Bu(m,h){let{createDocumentHeadWithTrailingComment:v,documentHeadEndMarkerPoint:O}=Pu(m,h),{documentBody:Q,documentEndPoint:le,documentTrailingComment:ce,documentHeadTrailingComment:we}=Ou(m,h,O),De=v(we);return ce&&h.comments.push(ce),uo(Vr(De.position.start,le),De,Q,ce)}function pa(m,h,v){return{...Bt("flowCollection",m),...Ir(),...wr(),...h,children:v}}function ba(m,h,v){return{...pa(m,h,v),type:"flowMapping"}}function ya(m,h,v){return{...Bt("flowMappingItem",m),...os(),children:[h,v]}}function li(m,h){let v=[];for(let O of m)O&&"type"in O&&O.type==="COMMENT"?h.comments.push(h.transformNode(O)):v.push(O);return v}function va(m){let[h,v]=["?",":"].map(O=>{let Q=m.find(le=>"char"in le&&le.char===O);return Q?{origStart:Q.origOffset,origEnd:Q.origOffset+1}:null});return{additionalKeyRange:h,additionalValueRange:v}}function jr(m,h){let v=h;return O=>m.slice(v,v=O)}function co(m){let h=[],v=jr(m,1),O=!1;for(let Q=1;Q<m.length-1;Q++){let le=m[Q];if("char"in le&&le.char===","){h.push(v(Q)),v(Q+1),O=!1;continue}O=!0}return O&&h.push(v(m.length-1)),h}function Da(m,h){return{...Bt("mappingKey",m),...Rn(),...wr(),children:h?[h]:[]}}function Ur(m,h){return{...Bt("mappingValue",m),...Ir(),...wr(),children:h?[h]:[]}}function ui(m,h,v,O,Q){let le=h.transformNode(m.key),ce=h.transformNode(m.value),we=le||O?Da(h.transformRange({origStart:O?O.origStart:le.position.start.offset,origEnd:le?le.position.end.offset:O.origStart+1}),le):null,De=ce||Q?Ur(h.transformRange({origStart:Q?Q.origStart:ce.position.start.offset,origEnd:ce?ce.position.end.offset:Q.origStart+1}),ce):null;return v(Vr(we?we.position.start:De.position.start,De?De.position.end:we.position.end),we||Da(ai(De.position.start),null),De||Ur(ai(we.position.end),null))}function ci(m,h){let v=li(m.cstNode.items,h),O=co(v),Q=m.items.map((we,De)=>{let Te=O[De],{additionalKeyRange:Oe,additionalValueRange:it}=va(Te);return ui(we,h,ya,Oe,it)}),le=v[0],ce=Sr(v);return ba(h.transformRange({origStart:le.origOffset,origEnd:ce.origOffset+1}),h.transformContent(m),Q)}function wa(m,h,v){return{...pa(m,h,v),type:"flowSequence"}}function $u(m,h){return{...Bt("flowSequenceItem",m),children:[h]}}function Sa(m,h){let v=li(m.cstNode.items,h),O=co(v),Q=m.items.map((we,De)=>{if(we.type!=="PAIR"){let Te=h.transformNode(we);return $u(Vr(Te.position.start,Te.position.end),Te)}else{let Te=O[De],{additionalKeyRange:Oe,additionalValueRange:it}=va(Te);return ui(we,h,ya,Oe,it)}}),le=v[0],ce=Sr(v);return wa(h.transformRange({origStart:le.origOffset,origEnd:ce.origOffset+1}),h.transformContent(m),Q)}function Ea(m,h,v){return{...Bt("mapping",m),...os(),...h,children:v}}function Aa(m,h,v){return{...Bt("mappingItem",m),...os(),children:[h,v]}}function Na(m,h){let v=m.cstNode;v.items.filter(ce=>ce.type==="MAP_KEY"||ce.type==="MAP_VALUE").forEach(ce=>lo(ce,h));let O=li(v.items,h),Q=fo(O),le=m.items.map((ce,we)=>{let De=Q[we],[Te,Oe]=De[0].type==="MAP_VALUE"?[null,De[0].range]:[De[0].range,De.length===1?null:De[1].range];return ui(ce,h,Aa,Te,Oe)});return Ea(Vr(le[0].position.start,Sr(le).position.end),h.transformContent(m),le)}function fo(m){let h=[],v=jr(m,0),O=!1;for(let Q=0;Q<m.length;Q++){if(m[Q].type==="MAP_VALUE"){h.push(v(Q+1)),O=!1;continue}O&&h.push(v(Q)),O=!0}return O&&h.push(v(1/0)),h}function xa(m,h,v){return{...Bt("plain",m),...Ir(),...h,value:v}}function Vu(m,h,v){for(let O=h;O>=0;O--)if(v.test(m[O]))return O;return-1}function La(m,h){let v=m.cstNode;return xa(h.transformRange({origStart:v.valueRange.origStart,origEnd:Vu(h.text,v.valueRange.origEnd-1,/\S/)+1}),h.transformContent(m),v.strValue)}function ju(m){return{...m,type:"quoteDouble"}}function Uu(m,h,v){return{...Bt("quoteValue",m),...h,...Ir(),value:v}}function cr(m,h){let v=m.cstNode;return Uu(h.transformRange(v.valueRange),h.transformContent(m),v.strValue)}function qu(m,h){return ju(cr(m,h))}function Wu(m){return{...m,type:"quoteSingle"}}function Hu(m,h){return Wu(cr(m,h))}function Yu(m,h,v){return{...Bt("sequence",m),...os(),...wr(),...h,children:v}}function Ca(m,h){return{...Bt("sequenceItem",m),...Ir(),...wr(),children:h?[h]:[]}}function zu(m,h){let v=li(m.cstNode.items,h).map((O,Q)=>{lo(O,h);let le=h.transformNode(m.items[Q]);return Ca(Vr(h.transformOffset(O.valueRange.origStart),le===null?h.transformOffset(O.valueRange.origStart+1):le.position.end),le)});return Yu(Vr(v[0].position.start,Sr(v).position.end),h.transformContent(m),v)}function Gu(m,h){if(m===null||m.type===void 0&&m.value===null)return null;switch(m.type){case"ALIAS":return la(m,h);case"BLOCK_FOLDED":return ua(m,h);case"BLOCK_LITERAL":return Fu(m,h);case"COMMENT":return ca(m,h);case"DIRECTIVE":return fa(m,h);case"DOCUMENT":return Bu(m,h);case"FLOW_MAP":return ci(m,h);case"FLOW_SEQ":return Sa(m,h);case"MAP":return Na(m,h);case"PLAIN":return La(m,h);case"QUOTE_DOUBLE":return qu(m,h);case"QUOTE_SINGLE":return Hu(m,h);case"SEQ":return zu(m,h);default:throw new Error(`Unexpected node type ${m.type}`)}}function Ju(m,h,v){let O=new SyntaxError(m);return O.name="YAMLSyntaxError",O.source=h,O.position=v,O}function Qu(m,h){let v=m.source.range||m.source.valueRange;return Ju(m.message,h.text,h.transformRange(v))}function Ku(m,h,v){return{offset:m,line:h,column:v}}function Xu(m,h){m<0?m=0:m>h.text.length&&(m=h.text.length);let v=h.locator.locationForIndex(m);return Ku(m,v.line+1,v.column+1)}function Zu(m,h){return Vr(h.transformOffset(m.origStart),h.transformOffset(m.origEnd))}function ec(m){if(!m.setOrigRanges()){let h=v=>{if(ka(v))return v.origStart=v.start,v.origEnd=v.end,!0;if(_a(v))return v.origOffset=v.offset,!0};m.forEach(v=>fi(v,h))}}function fi(m,h){if(!(!m||typeof m!="object")&&h(m)!==!0)for(let v of Object.keys(m)){if(v==="context"||v==="error")continue;let O=m[v];Array.isArray(O)?O.forEach(Q=>fi(Q,h)):fi(O,h)}}function ka(m){return typeof m.start=="number"}function _a(m){return typeof m.offset=="number"}function ho(m){if("children"in m){if(m.children.length===1){let h=m.children[0];if(h.type==="plain"&&h.tag===null&&h.anchor===null&&h.value==="")return m.children.splice(0,1),m}m.children.forEach(ho)}return m}function mo(m,h,v,O){let Q=h(m);return le=>{O(Q,le)&&v(m,Q=le)}}function hi(m){if(m===null||!("children"in m))return;let h=m.children;if(h.forEach(hi),m.type==="document"){let[le,ce]=m.children;le.position.start.offset===le.position.end.offset?le.position.start=le.position.end=ce.position.start:ce.position.start.offset===ce.position.end.offset&&(ce.position.start=ce.position.end=le.position.end)}let v=mo(m.position,Fa,tc,sc),O=mo(m.position,nc,rc,Ta);"endComments"in m&&m.endComments.length!==0&&(v(m.endComments[0].position.start),O(Sr(m.endComments).position.end));let Q=h.filter(le=>le!==null);if(Q.length!==0){let le=Q[0],ce=Sr(Q);v(le.position.start),O(ce.position.end),"leadingComments"in le&&le.leadingComments.length!==0&&v(le.leadingComments[0].position.start),"tag"in le&&le.tag&&v(le.tag.position.start),"anchor"in le&&le.anchor&&v(le.anchor.position.start),"trailingComment"in ce&&ce.trailingComment&&O(ce.trailingComment.position.end)}}function Fa(m){return m.start}function tc(m,h){m.start=h}function nc(m){return m.end}function rc(m,h){m.end=h}function sc(m,h){return h.offset<m.offset}function Ta(m,h){return h.offset>m.offset}var ic=d(z()),Ln=d(M());Ln.default.findPair,Ln.default.toJSON,Ln.default.parseMap,Ln.default.parseSeq,Ln.default.stringifyNumber,Ln.default.stringifyString,Ln.default.Type,Ln.default.YAMLError,Ln.default.YAMLReferenceError;var oc=Ln.default.YAMLSemanticError;Ln.default.YAMLSyntaxError,Ln.default.YAMLWarning;var{Document:ac,parseCST:lc}=ic.default;function go(m){let h=lc(m);ec(h);let v=h.map(we=>new ac({merge:!1,keepCstNodes:!0}).parse(we)),O=new Su(m),Q=[],le={text:m,locator:O,comments:Q,transformOffset:we=>Xu(we,le),transformRange:we=>Zu(we,le),transformNode:we=>Gu(we,le),transformContent:we=>$r(we,le)};for(let we of v)for(let De of we.errors)if(!(De instanceof oc&&De.message==='Map keys must be unique; "<<" is repeated'))throw Qu(De,le);v.forEach(we=>Jn(we.cstNode));let ce=xu(le.transformRange({origStart:0,origEnd:le.text.length}),v.map(le.transformNode),Q);return Eu(ce),hi(ce),ho(ce),ce}function uc(m,h){let v=new SyntaxError(m+" ("+h.loc.start.line+":"+h.loc.start.column+")");return Object.assign(v,h)}var cc=uc;function fc(m){try{let h=go(m);return delete h.comments,h}catch(h){throw h!=null&&h.position?cc(h.message,{loc:h.position,cause:h}):h}}var hc={astFormat:"yaml",parse:fc,hasPragma:lu,locStart:Xs,locEnd:au},dc={yaml:io};return y(T)})}(Uc)),Uc.exports}var lg=q2(),W2=$2(lg),H2=Tg({__proto__:null,default:W2},[lg]);function ug(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Qf(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Y2(e){return ug(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function Pi(e){return typeof e=="boolean"}var Tn;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Tn||(Tn={}));var E0;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Qr.Markdown,Qr.PlainText],commitCharactersSupport:!0}}}}})(E0||(E0={}));var z2=(e,t,...n)=>n.length===0?t:t.replaceAll(/{(\d+)}/g,(r,[s])=>s in n?String(n[s]):r);function Gi(){return z2}var zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=Gi();No("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),No("dateTimeFormatWarning","String is not a RFC3339 date-time."),No("dateFormatWarning","String is not a RFC3339 date."),No("timeFormatWarning","String is not a RFC3339 time."),No("emailFormatWarning","String is not an e-mail address.");var Gs=function(){function e(t,n,r){r===void 0&&(r=0),this.offset=n,this.length=r,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();(function(e){zs(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="null",s.value=null,s}return t})(Gs);(function(e){zs(t,e);function t(n,r,s){var i=e.call(this,n,s)||this;return i.type="boolean",i.value=r,i}return t})(Gs);(function(e){zs(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="array",s.items=[],s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t})(Gs);(function(e){zs(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return t})(Gs);(function(e){zs(t,e);function t(n,r,s){var i=e.call(this,n,r,s)||this;return i.type="string",i.value="",i}return t})(Gs);(function(e){zs(t,e);function t(n,r,s){var i=e.call(this,n,r)||this;return i.type="property",i.colonOffset=-1,i.keyNode=s,i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t})(Gs);(function(e){zs(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t})(Gs);function G2(e){return Pi(e)?e?{}:{not:{}}:e}var A0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(A0||(A0={}));(function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e})();function ul(e){return xy(e)}function J2(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",s=!!t,i=!!t,o=!1,l=t&&typeof t.flags=="string"?t.flags:"",u,c=0,g=n.length;c<g;c++)switch(u=n[c],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+u;break;case"?":if(s){r+=".";break}case"[":case"]":if(s){r+=u;break}case"{":if(s){o=!0,r+="(";break}case"}":if(s){o=!1,r+=")";break}case",":if(o){r+="|";break}r+="\\"+u;break;case"*":for(var d=n[c-1],y=1;n[c+1]==="*";)y++,c++;var w=n[c+1];if(!i)r+=".*";else{var k=y>1&&(d==="/"||d===void 0||d==="{"||d===",")&&(w==="/"||w===void 0||w===","||w==="}");k?(w==="/"?c++:d==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=u}return(!l||!~l.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,l)}var cs=Gi(),Q2="!",K2="/",X2=function(){function e(t,n){this.globWrappers=[];try{for(var r=0,s=t;r<s.length;r++){var i=s[r],o=i[0]!==Q2;o||(i=i.substring(1)),i.length>0&&(i[0]===K2&&(i=i.substring(1)),this.globWrappers.push({regexp:J2("**/"+i,{extended:!0,globstar:!0}),include:o}))}this.uris=n}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,s=this.globWrappers;r<s.length;r++){var i=s[r],o=i.regexp,l=i.include;o.test(t)&&(n=l)}return n},e.prototype.getURIs=function(){return this.uris},e}(),Z2=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new gr(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),gr=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),To=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);if(n)return G2(n)},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var s=0,i=Object.keys(n.patternProperties);s<i.length;s++){var o=i[s],l=Y2(o);if(l.test(r))return this.getSectionRecursive(t,n.patternProperties[o])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var u=parseInt(r,10);if(!isNaN(u)&&n.items[u])return this.getSectionRecursive(t,n.items[u])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e}(),ev=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=Vn.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=fs(t);for(var s=[t],i=Object.keys(this.schemasById).map(function(c){return n.schemasById[c]});s.length;)for(var o=s.pop(),l=0;l<i.length;l++){var u=i[l];u&&(u.url===o||u.dependencies[o])&&(u.url!==o&&s.push(u.url),u.clearSchema(),i[l]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var s=fs(r);this.contributionSchemas[s]=this.addSchemaHandle(s,n[r])}}if(Array.isArray(t.schemaAssociations))for(var i=t.schemaAssociations,o=0,l=i;o<l.length;o++){var u=l[o],c=u.uris.map(fs),g=this.addFilePatternAssociation(u.pattern,c);this.contributionAssociations.push(g)}},e.prototype.addSchemaHandle=function(t,n){var r=new Z2(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new X2(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var s=fs(t);return this.registeredSchemasIds[s]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[t]),r?this.addSchemaHandle(s,r):this.getOrAddSchemaHandle(s)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var s=r[n];this.filePatternAssociations.push(s)}},e.prototype.getResolvedSchema=function(t){var n=fs(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=cs("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Ua(t));return this.promise.resolve(new gr({},[n]))}return this.requestService(t).then(function(r){if(!r){var s=cs("json.schema.nocontent","Unable to load schema from '{0}': No content.",Ua(t));return new gr({},[s])}var i={},o=[];i=Ny(r,o);var l=o.length?[cs("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Ua(t),o[0].offset)]:[];return new gr(i,l)},function(r){var s=r.toString(),i=r.toString().split("Error: ");return i.length>1&&(s=i[1]),Qf(s,".")&&(s=s.substr(0,s.length-1)),new gr({},[cs("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Ua(t),s)])})},e.prototype.resolveSchemaContent=function(t,n,r){var s=this,i=t.errors.slice(0),o=t.schema;if(o.$schema){var l=fs(o.$schema);if(l==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new To({},[cs("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));l==="https://json-schema.org/draft/2019-09/schema"&&i.push(cs("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,c=function(w,k){if(!k)return w;var A=w;return k[0]==="/"&&(k=k.substr(1)),k.split("/").some(function(E){return E=E.replace(/~1/g,"/").replace(/~0/g,"~"),A=A[E],!A}),A},g=function(w,k,A,E){var P=E?decodeURIComponent(E):void 0,j=c(k,P);if(j)for(var H in j)j.hasOwnProperty(H)&&!w.hasOwnProperty(H)&&(w[H]=j[H]);else i.push(cs("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",P,A))},d=function(w,k,A,E,P){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(k)&&(k=u.resolveRelativePath(k,E)),k=fs(k);var j=s.getOrAddSchemaHandle(k);return j.getUnresolvedSchema().then(function(H){if(P[k]=!0,H.errors.length){var z=A?k+"#"+A:k;i.push(cs("json.schema.problemloadingref","Problems loading reference '{0}': {1}",z,H.errors[0]))}return g(w,H.schema,k,A),y(w,H.schema,k,j.dependencies)})},y=function(w,k,A,E){if(!w||typeof w!="object")return Promise.resolve(null);for(var P=[w],j=[],H=[],z=function(){for(var W=[],re=0;re<arguments.length;re++)W[re]=arguments[re];for(var ee=0,B=W;ee<B.length;ee++){var ae=B[ee];typeof ae=="object"&&P.push(ae)}},M=function(){for(var W=[],re=0;re<arguments.length;re++)W[re]=arguments[re];for(var ee=0,B=W;ee<B.length;ee++){var ae=B[ee];if(typeof ae=="object")for(var te in ae){var X=te,se=ae[X];typeof se=="object"&&P.push(se)}}},T=function(){for(var W=[],re=0;re<arguments.length;re++)W[re]=arguments[re];for(var ee=0,B=W;ee<B.length;ee++){var ae=B[ee];if(Array.isArray(ae))for(var te=0,X=ae;te<X.length;te++){var se=X[te];typeof se=="object"&&P.push(se)}}},Y=function(W){for(var re=[];W.$ref;){var ee=W.$ref,B=ee.split("#",2);if(delete W.$ref,B[0].length>0){H.push(d(W,B[0],B[1],A,E));return}else re.indexOf(ee)===-1&&(g(W,k,A,B[1]),re.push(ee))}z(W.items,W.additionalItems,W.additionalProperties,W.not,W.contains,W.propertyNames,W.if,W.then,W.else),M(W.definitions,W.properties,W.patternProperties,W.dependencies),T(W.anyOf,W.allOf,W.oneOf,W.items)};P.length;){var K=P.pop();j.indexOf(K)>=0||(j.push(K),Y(K))}return s.promise.all(H)};return y(o,o,n,r).then(function(w){return new To(o,i)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(P){return P.keyNode.value==="$schema"&&P.valueNode&&P.valueNode.type==="string"});if(r.length>0){var s=r[0].valueNode;if(s&&s.type==="string"){var i=ul(s);if(i&&ug(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,t)),i){var o=fs(i);return this.getOrAddSchemaHandle(o).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var l=Object.create(null),u=[],c=nv(t),g=0,d=this.filePatternAssociations;g<d.length;g++){var y=d[g];if(y.matchesPattern(c))for(var w=0,k=y.getURIs();w<k.length;w++){var A=k[w];l[A]||(u.push(A),l[A]=!0)}}var E=u.length>0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:E},E},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),s={allOf:n.map(function(i){return{$ref:i}})};return this.addSchemaHandle(r,s)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var s=r.id||"schemaservice://untitled/matchingSchemas/"+tv++;return this.resolveSchemaContent(new gr(r),s,{}).then(function(i){return n.getMatchingSchemas(i.schema).filter(function(o){return!o.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(i){return i?n.getMatchingSchemas(i.schema).filter(function(o){return!o.inverted}):[]})},e}(),tv=0;function fs(e){try{return Vn.parse(e).toString()}catch{return e}}function nv(e){try{return Vn.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Ua(e){try{var t=Vn.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function rv(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}function sv(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return t}function N0(e){try{return new RegExp(e,"u")}catch{return new RegExp(e)}}function iv(e,t){t++;for(let n=t;n<e.length;n++){const r=e.charAt(n);if(r===" "||r===" ")t++;else return t}return t}function Mo(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Mo(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const i=[];for(r in t)i.push(r);if(i.sort(),!Mo(s,i))return!1;for(n=0;n<s.length;n++)if(!Mo(e[s[n]],t[s[n]]))return!1}return!0}function Xn(e){return typeof e=="number"}function Bs(e){return typeof e<"u"}function Fi(e){return typeof e=="boolean"}function Ni(e){return typeof e=="string"}function ov(e){return Symbol.iterator in Object(e)}function Kf(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?x0(e.$id):e.$ref||e._$ref?x0(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle}function x0(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function cg(e,t){const n=Vn.parse(t);let r=Us.basename(n.fsPath);return Us.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(e,"name")?Object.getOwnPropertyDescriptor(e,"name").value+` (${r})`:e.title?e.description?e.title+" - "+e.description+` (${r})`:e.title+` (${r})`:r}function av(e){return e.type!=="object"&&!Xf(e)}function Xf(e){return!!(e.anyOf||e.allOf||e.oneOf)}var lv=Gi(),uv=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:et.Error)},e.prototype.doValidation=function(t,n,r,s){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var o=[],l={},u=function(d){var y=d.range.start.line+" "+d.range.start.character+" "+d.message;l[y]||(l[y]=!0,o.push(d))},c=function(d){var y=r?.trailingCommas?qa(r.trailingCommas):et.Error,w=r?.comments?qa(r.comments):i.commentSeverity,k=r?.schemaValidation?qa(r.schemaValidation):et.Warning,A=r?.schemaRequest?qa(r.schemaRequest):et.Warning;if(d){if(d.errors.length&&n.root&&A){var E=n.root,P=E.type==="object"?E.properties[0]:void 0;if(P&&P.keyNode.value==="$schema"){var j=P.valueNode||P,H=ze.create(t.positionAt(j.offset),t.positionAt(j.offset+j.length));u(Un.create(H,d.errors[0],A,Tn.SchemaResolveError))}else{var H=ze.create(t.positionAt(E.offset),t.positionAt(E.offset+1));u(Un.create(H,d.errors[0],A,Tn.SchemaResolveError))}}else if(k){var z=n.validate(t,d.schema,k);z&&z.forEach(u)}fg(d.schema)&&(w=void 0),hg(d.schema)&&(y=void 0)}for(var M=0,T=n.syntaxErrors;M<T.length;M++){var Y=T[M];if(Y.code===Tn.TrailingComma){if(typeof y!="number")continue;Y.severity=y}u(Y)}if(typeof w=="number"){var K=lv("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(W){u(Un.create(W,K,w,Tn.CommentNotPermitted))})}return o};if(s){var g=s.id||"schemaservice://untitled/"+cv++;return this.jsonSchemaService.resolveSchemaContent(new gr(s),g,{}).then(function(d){return c(d)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(d){return c(d)})},e}(),cv=0;function fg(e){if(e&&typeof e=="object"){if(Pi(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],s=fg(r);if(Pi(s))return s}}}function hg(e){if(e&&typeof e=="object"){if(Pi(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Pi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var s=r[n],i=hg(s);if(Pi(i))return i}}}function qa(e){switch(e){case"error":return et.Error;case"warning":return et.Warning;case"ignore":return}}var L0=48,fv=57,hv=65,Wa=97,dv=102;function Yt(e){return e<L0?0:e<=fv?e-L0:(e<Wa&&(e+=Wa-hv),e>=Wa&&e<=dv?e-Wa+10:0)}function mv(e){if(e[0]==="#")switch(e.length){case 4:return{red:Yt(e.charCodeAt(1))*17/255,green:Yt(e.charCodeAt(2))*17/255,blue:Yt(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Yt(e.charCodeAt(1))*17/255,green:Yt(e.charCodeAt(2))*17/255,blue:Yt(e.charCodeAt(3))*17/255,alpha:Yt(e.charCodeAt(4))*17/255};case 7:return{red:(Yt(e.charCodeAt(1))*16+Yt(e.charCodeAt(2)))/255,green:(Yt(e.charCodeAt(3))*16+Yt(e.charCodeAt(4)))/255,blue:(Yt(e.charCodeAt(5))*16+Yt(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Yt(e.charCodeAt(1))*16+Yt(e.charCodeAt(2)))/255,green:(Yt(e.charCodeAt(3))*16+Yt(e.charCodeAt(4)))/255,blue:(Yt(e.charCodeAt(5))*16+Yt(e.charCodeAt(6)))/255,alpha:(Yt(e.charCodeAt(7))*16+Yt(e.charCodeAt(8)))/255}}}var gv=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var s=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var i=n.root;if(!i)return[];var o=r.resultLimit||Number.MAX_VALUE,l=t.uri;if((l==="vscode://defaultsettings/keybindings.json"||Qf(l.toLowerCase(),"/user/keybindings.json"))&&i.type==="array"){for(var u=[],c=0,g=i.items;c<g.length;c++){var d=g[c];if(d.type==="object")for(var y=0,w=d.properties;y<w.length;y++){var k=w[y];if(k.keyNode.value==="key"&&k.valueNode){var A=$i.create(t.uri,hs(t,d));if(u.push({name:ul(k.valueNode),kind:Nr.Function,location:A}),o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(l),u}}}return u}for(var E=[{node:i,containerName:""}],P=0,j=!1,H=[],z=function(T,Y){T.type==="array"?T.items.forEach(function(K){K&&E.push({node:K,containerName:Y})}):T.type==="object"&&T.properties.forEach(function(K){var W=K.valueNode;if(W)if(o>0){o--;var re=$i.create(t.uri,hs(t,K)),ee=Y?Y+"."+K.keyNode.value:K.keyNode.value;H.push({name:s.getKeyLabel(K),kind:s.getSymbolKind(W.type),location:re,containerName:Y}),E.push({node:W,containerName:ee})}else j=!0})};P<E.length;){var M=E[P++];z(M.node,M.containerName)}return j&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(l),H},e.prototype.findDocumentSymbols2=function(t,n,r){var s=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var i=n.root;if(!i)return[];var o=r.resultLimit||Number.MAX_VALUE,l=t.uri;if((l==="vscode://defaultsettings/keybindings.json"||Qf(l.toLowerCase(),"/user/keybindings.json"))&&i.type==="array"){for(var u=[],c=0,g=i.items;c<g.length;c++){var d=g[c];if(d.type==="object")for(var y=0,w=d.properties;y<w.length;y++){var k=w[y];if(k.keyNode.value==="key"&&k.valueNode){var A=hs(t,d),E=hs(t,k.keyNode);if(u.push({name:ul(k.valueNode),kind:Nr.Function,range:A,selectionRange:E}),o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(l),u}}}return u}for(var P=[],j=[{node:i,result:P}],H=0,z=!1,M=function(Y,K){Y.type==="array"?Y.items.forEach(function(W,re){if(W)if(o>0){o--;var ee=hs(t,W),B=ee,ae=String(re),te={name:ae,kind:s.getSymbolKind(W.type),range:ee,selectionRange:B,children:[]};K.push(te),j.push({result:te.children,node:W})}else z=!0}):Y.type==="object"&&Y.properties.forEach(function(W){var re=W.valueNode;if(re)if(o>0){o--;var ee=hs(t,W),B=hs(t,W.keyNode),ae=[],te={name:s.getKeyLabel(W),kind:s.getSymbolKind(re.type),range:ee,selectionRange:B,children:ae,detail:s.getDetail(re)};K.push(te),j.push({result:ae,node:re})}else z=!0})};H<j.length;){var T=j[H++];M(T.node,T.result)}return z&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(l),P},e.prototype.getSymbolKind=function(t){switch(t){case"object":return Nr.Module;case"string":return Nr.String;case"number":return Nr.Number;case"array":return Nr.Array;case"boolean":return Nr.Boolean;default:return Nr.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"↵")),n&&n.trim()?n:'"'+n+'"'},e.prototype.getDetail=function(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(s){var i=[];if(s)for(var o=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,l=n.getMatchingSchemas(s.schema),u={},c=0,g=l;c<g.length;c++){var d=g[c];if(!d.inverted&&d.schema&&(d.schema.format==="color"||d.schema.format==="color-hex")&&d.node&&d.node.type==="string"){var y=String(d.node.offset);if(!u[y]){var w=mv(ul(d.node));if(w){var k=hs(t,d.node);i.push({color:w,range:k})}if(u[y]=!0,o--,o<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),i}}}return i})},e.prototype.getColorPresentations=function(t,n,r,s){var i=[],o=Math.round(r.red*255),l=Math.round(r.green*255),u=Math.round(r.blue*255);function c(d){var y=d.toString(16);return y.length!==2?"0"+y:y}var g;return r.alpha===1?g="#"+c(o)+c(l)+c(u):g="#"+c(o)+c(l)+c(u)+c(Math.round(r.alpha*255)),i.push({label:g,textEdit:$t.replace(s,JSON.stringify(g))}),i},e}();function hs(e,t){return ze.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function pv(e,t){var n=[];return t.visit(function(r){var s;if(r.type==="property"&&r.keyNode.value==="$ref"&&((s=r.valueNode)===null||s===void 0?void 0:s.type)==="string"){var i=r.valueNode.value,o=yv(t,i);if(o){var l=e.positionAt(o.offset);n.push({target:e.uri+"#"+(l.line+1)+","+(l.character+1),range:bv(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function bv(e,t){return ze.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function yv(e,t){var n=vv(t);return n?Zf(n,e.root):null}function Zf(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(o){return o.keyNode.value===n});return r?Zf(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var s=Number.parseInt(n),i=t.items[s];return i?Zf(e,i):null}return null}function vv(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(Dv)}function Dv(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Gl(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return t.documents.length===1?t.documents[0]:null}function dg(e){const t=["mapping","scalar","sequence"];return e?e.filter(n=>{if(typeof n=="string"){const r=n.split(" "),s=r[1]&&r[1].toLowerCase()||"scalar";return s==="map"?!1:t.indexOf(s)!==-1}return!1}):[]}function mg(e,t){if(!t||!e||t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}var ft=Gi(),qc="Property {0} is not allowed.",wv={"color-hex":{errorMessage:ft("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:ft("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:ft("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:ft("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:ft("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},ipv4:{errorMessage:ft("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:ft("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},Jl="YAML",gg="yaml-schema: ",yn;(function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"})(yn||(yn={}));var Sv={[yn.missingRequiredPropWarning]:'Missing property "{0}".',[yn.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[yn.constWarning]:"Value must be {0}."},Js=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=o=>{if(e>=o.offset&&e<=o.offset+o.length){const l=o.children;for(let u=0;u<l.length&&l[u].offset<=e;u++){const c=n(l[u]);c&&t.push(c)}return o}return null},r=n(this);let s=Number.MAX_VALUE,i=null;for(const o of t){const l=o.length+o.offset-e+(e-o.offset);l<s&&(i=o,s=l)}return i||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Ev=class extends Js{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},Av=class extends Js{constructor(e,t,n,r,s){super(e,t,r,s),this.type="boolean",this.value=n}},Nv=class extends Js{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},xv=class extends Js{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Rl=class extends Js{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},Lv=class extends Js{constructor(e,t,n,r){super(e,t,n,r),this.type="property",this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Cv=class extends Js{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function bn(e){if(e!==void 0)return Fi(e)?e?{}:{not:{}}:(typeof e!="object"&&(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),e={type:e}),e)}var C0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(C0||(C0={}));var kv=class pg{constructor(t=-1,n=null){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){this.schemas.push(...t.schemas)}include(t){return(this.focusOffset===-1||bg(t,this.focusOffset))&&t!==this.exclude}newSub(){return new pg(-1,this.exclude)}},jo=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};jo.instance=new jo;var Fn=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,e?this.enumValues=[]:this.enumValues=null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const t of this.problems)t.code===Tn.EnumValueMismatch&&(t.message=ft("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map(n=>JSON.stringify(n)).join(", ")))}}mergeWarningGeneric(e,t){var n,r,s;if((n=this.problems)!=null&&n.length)for(const i of t){const o=this.problems.filter(l=>l.problemType===i);for(const l of o){const u=(r=e.problems)==null?void 0:r.find(c=>c.problemType===i&&l.location.offset===c.location.offset&&(i!==yn.missingRequiredPropWarning||mg(c.problemArgs,l.problemArgs)));u&&((s=u.problemArgs)!=null&&s.length&&(u.problemArgs.filter(c=>!l.problemArgs.includes(c)).forEach(c=>l.problemArgs.push(c)),l.message=cl(l.problemType,l.problemArgs)),this.mergeSources(u,l))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace(gg,"");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Oo(e){switch(e.type){case"array":return e.children.map(Oo);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const s=r[n],i=s.children[1];i&&(t[s.children[0].value]=Oo(i))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function bg(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function yg(e,t,n){if(n===void 0&&(n=!1),bg(e,t,n)){const r=e.children;if(Array.isArray(r))for(let s=0;s<r.length&&r[s].offset<=t;s++){const i=yg(r[s],t,n);if(i)return i}return e}}var _v=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return yg(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}visit(e){if(this.root){const t=n=>{let r=e(n);const s=n.children;if(Array.isArray(s))for(let i=0;i<s.length&&r;i++)r=t(s[i]);return r};t(this.root)}}validate(e,t){if(this.root&&t){const n=new Fn(this.isKubernetes);return nn(this.root,t,t,n,jo.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map(r=>{const s=ze.create(e.positionAt(r.location.offset),e.positionAt(r.location.offset+r.location.length)),i=Un.create(s,r.message,r.severity,r.code?r.code:Tn.Undefined,r.source);return i.data={schemaUri:r.schemaUri,...r.data},i})}return null}getMatchingSchemas(e,t=-1,n=null,r){const s=new kv(t,n);return this.root&&e&&nn(this.root,e,e,new Fn(this.isKubernetes),s,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),s.schemas}};function nn(e,t,n,r,s,i){const{isKubernetes:o,callFromAutoComplete:l}=i;if(!e||typeof t!="object")return;switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":y(e,t,r,s);break;case"array":d(e,t,r,s);break;case"string":g(e,t,r);break;case"number":c(e,t,r);break;case"property":return nn(e.valueNode,t,t,r,s,i)}u(),s.add({node:e,schema:t});function u(){function A(M){return e.type===M||M==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type))t.type.some(A)||r.problems.push({location:{offset:e.offset,length:e.length},severity:et.Warning,message:t.errorMessage||ft("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Et(t,n),schemaUri:At(t,n)});else if(t.type&&!A(t.type)){const M=t.type==="object"?Kf(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:et.Warning,message:t.errorMessage||cl(yn.typeMismatchWarning,[M]),source:Et(t,n),schemaUri:At(t,n),problemType:yn.typeMismatchWarning,problemArgs:[M]})}if(Array.isArray(t.allOf))for(const M of t.allOf)nn(e,bn(M),t,r,s,i);const E=bn(t.not);if(E){const M=new Fn(o),T=s.newSub();nn(e,E,t,M,T,i),M.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:et.Warning,message:ft("notSchemaWarning","Matches a schema that is not allowed."),source:Et(t,n),schemaUri:At(t,n)});for(const Y of T.schemas)Y.inverted=!Y.inverted,s.add(Y)}const P=(M,T)=>{var Y;const K=[],W=[],re=[];let ee=null;for(const B of M){const ae={...bn(B)},te=new Fn(o),X=s.newSub();nn(e,ae,t,te,X,i),(!te.hasProblems()||l)&&(K.push(ae),W.push(ae),te.propertiesMatches===0&&re.push(ae),ae.format&&W.pop()),ee?o?ee=w(te,ee,ae,X):ee=k(e,T,te,ee,ae,X):ee={schema:ae,validationResult:te,matchingSchemas:X}}return W.length>1&&(W.length>1||re.length===0)&&T&&r.problems.push({location:{offset:e.offset,length:1},severity:et.Warning,message:ft("oneOfWarning","Matches multiple schemas when only one must validate."),source:Et(t,n),schemaUri:At(t,n)}),ee!==null&&(r.merge(ee.validationResult),r.propertiesMatches+=ee.validationResult.propertiesMatches,r.propertiesValueMatches+=ee.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||ee.validationResult.enumValueMatch,(Y=ee.validationResult.enumValues)!=null&&Y.length&&(r.enumValues=(r.enumValues||[]).concat(ee.validationResult.enumValues)),s.merge(ee.matchingSchemas)),K.length};Array.isArray(t.anyOf)&&P(t.anyOf,!1),Array.isArray(t.oneOf)&&P(t.oneOf,!0);const j=(M,T)=>{const Y=new Fn(o),K=s.newSub();nn(e,bn(M),T,Y,K,i),r.merge(Y),r.propertiesMatches+=Y.propertiesMatches,r.propertiesValueMatches+=Y.propertiesValueMatches,s.merge(K)},H=(M,T,Y,K)=>{const W=bn(M),re=new Fn(o),ee=s.newSub();nn(e,W,T,re,ee,i),s.merge(ee);const{filePatternAssociation:B}=W;B&&(new Jv(B).matchesPattern(i.uri)||re.problems.push({location:{offset:e.offset,length:e.length},severity:et.Warning,message:ft("ifFilePatternAssociation",`filePatternAssociation '${B}' does not match with doc uri '${i.uri}'.`),source:Et(t,T),schemaUri:At(t,T)})),re.hasProblems()?K&&j(K,T):Y&&j(Y,T)},z=bn(t.if);if(z&&H(z,t,bn(t.then),bn(t.else)),Array.isArray(t.enum)){const M=Oo(e);let T=!1;for(const Y of t.enum)if(Mo(M,Y)||l&&Ni(M)&&Ni(Y)&&M&&Y.startsWith(M)){T=!0;break}r.enumValues=t.enum,r.enumValueMatch=T,T||r.problems.push({location:{offset:e.offset,length:e.length},severity:et.Warning,code:Tn.EnumValueMismatch,message:t.errorMessage||ft("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(Y=>JSON.stringify(Y)).join(", ")),source:Et(t,n),schemaUri:At(t,n),data:{values:t.enum}})}if(Bs(t.const)){const M=Oo(e);!Mo(M,t.const)&&!(l&&Ni(M)&&Ni(t.const)&&t.const.startsWith(M))?(r.problems.push({location:{offset:e.offset,length:e.length},severity:et.Warning,code:Tn.EnumValueMismatch,problemType:yn.constWarning,message:t.errorMessage||cl(yn.constWarning,[JSON.stringify(t.const)]),source:Et(t,n),schemaUri:At(t,n),problemArgs:[JSON.stringify(t.const)],data:{values:[t.const]}}),r.enumValueMatch=!1):r.enumValueMatch=!0,r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:et.Warning,message:t.deprecationMessage,source:Et(t,n),schemaUri:At(t,n)})}function c(A,E,P){const j=A.value;Xn(E.multipleOf)&&j%E.multipleOf!==0&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("multipleOfWarning","Value is not divisible by {0}.",E.multipleOf),source:Et(E,n),schemaUri:At(E,n)});function H(W,re){if(Xn(re))return re;if(Fi(re)&&re)return W}function z(W,re){if(!Fi(re)||!re)return W}const M=H(E.minimum,E.exclusiveMinimum);Xn(M)&&j<=M&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",M),source:Et(E,n),schemaUri:At(E,n)});const T=H(E.maximum,E.exclusiveMaximum);Xn(T)&&j>=T&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",T),source:Et(E,n),schemaUri:At(E,n)});const Y=z(E.minimum,E.exclusiveMinimum);Xn(Y)&&j<Y&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("minimumWarning","Value is below the minimum of {0}.",Y),source:Et(E,n),schemaUri:At(E,n)});const K=z(E.maximum,E.exclusiveMaximum);Xn(K)&&j>K&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("maximumWarning","Value is above the maximum of {0}.",K),source:Et(E,n),schemaUri:At(E,n)})}function g(A,E,P){if(Xn(E.minLength)&&A.value.length<E.minLength&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("minLengthWarning","String is shorter than the minimum length of {0}.",E.minLength),source:Et(E,n),schemaUri:At(E,n)}),Xn(E.maxLength)&&A.value.length>E.maxLength&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("maxLengthWarning","String is longer than the maximum length of {0}.",E.maxLength),source:Et(E,n),schemaUri:At(E,n)}),Ni(E.pattern)&&(N0(E.pattern).test(A.value)||P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:E.patternErrorMessage||E.errorMessage||ft("patternWarning",'String does not match the pattern of "{0}".',E.pattern),source:Et(E,n),schemaUri:At(E,n)})),E.format)switch(E.format){case"uri":case"uri-reference":{let j;if(!A.value)j=ft("uriEmpty","URI expected.");else try{!Vn.parse(A.value).scheme&&E.format==="uri"&&(j=ft("uriSchemeMissing","URI with a scheme is expected."))}catch(H){j=H.message}j&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:E.patternErrorMessage||E.errorMessage||ft("uriFormatWarning","String is not a URI: {0}",j),source:Et(E,n),schemaUri:At(E,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const j=wv[E.format];(!A.value||!j.pattern.test(A.value))&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:E.patternErrorMessage||E.errorMessage||j.errorMessage,source:Et(E,n),schemaUri:At(E,n)})}break}}function d(A,E,P,j){if(Array.isArray(E.items)){const z=E.items;for(let M=0;M<z.length;M++){const T=z[M],Y=bn(T),K=new Fn(o),W=A.items[M];W?(nn(W,Y,E,K,j,i),P.mergePropertyMatch(K),P.mergeEnumValues(K)):A.items.length>=z.length&&P.propertiesValueMatches++}if(A.items.length>z.length)if(typeof E.additionalItems=="object")for(let M=z.length;M<A.items.length;M++){const T=new Fn(o);nn(A.items[M],E.additionalItems,E,T,j,i),P.mergePropertyMatch(T),P.mergeEnumValues(T)}else E.additionalItems===!1&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",z.length),source:Et(E,n),schemaUri:At(E,n)})}else{const z=bn(E.items);if(z){const M=new Fn(o);A.items.forEach(T=>{if(z.oneOf&&z.oneOf.length===1){const Y=z.oneOf[0],K={...bn(Y)};K.title=E.title,K.closestTitle=E.closestTitle,nn(T,K,E,M,j,i),P.mergePropertyMatch(M),P.mergeEnumValues(M)}else nn(T,z,E,M,j,i),P.mergePropertyMatch(M),P.mergeEnumValues(M)})}}const H=bn(E.contains);if(H&&(A.items.some(M=>{const T=new Fn(o);return nn(M,H,E,T,jo.instance,i),!T.hasProblems()})||P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:E.errorMessage||ft("requiredItemMissingWarning","Array does not contain required item."),source:Et(E,n),schemaUri:At(E,n)})),Xn(E.minItems)&&A.items.length<E.minItems&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("minItemsWarning","Array has too few items. Expected {0} or more.",E.minItems),source:Et(E,n),schemaUri:At(E,n)}),Xn(E.maxItems)&&A.items.length>E.maxItems&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("maxItemsWarning","Array has too many items. Expected {0} or fewer.",E.maxItems),source:Et(E,n),schemaUri:At(E,n)}),E.uniqueItems===!0){const z=Oo(A);z.some((T,Y)=>Y!==z.lastIndexOf(T))&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("uniqueItemsWarning","Array has duplicate items."),source:Et(E,n),schemaUri:At(E,n)})}}function y(A,E,P,j){var H;const z=Object.create(null),M=[],T=[...A.properties];for(;T.length>0;){const W=T.pop(),re=W.keyNode.value;if(re==="<<"&&W.valueNode)switch(W.valueNode.type){case"object":{T.push(...W.valueNode.properties);break}case"array":{W.valueNode.items.forEach(ee=>{ee&&ov(ee.properties)&&T.push(...ee.properties)});break}}else z[re]=W.valueNode,M.push(re)}if(Array.isArray(E.required)){for(const W of E.required)if(z[W]===void 0){const re=A.parent&&A.parent.type==="property"&&A.parent.keyNode,ee=re?{offset:re.offset,length:re.length}:{offset:A.offset,length:1};P.problems.push({location:ee,severity:et.Warning,message:cl(yn.missingRequiredPropWarning,[W]),source:Et(E,n),schemaUri:At(E,n),problemArgs:[W],problemType:yn.missingRequiredPropWarning})}}const Y=W=>{let re=M.indexOf(W);for(;re>=0;)M.splice(re,1),re=M.indexOf(W)};if(E.properties)for(const W of Object.keys(E.properties)){Y(W);const re=E.properties[W],ee=z[W];if(ee)if(Fi(re))if(re)P.propertiesMatches++,P.propertiesValueMatches++;else{const B=ee.parent;P.problems.push({location:{offset:B.keyNode.offset,length:B.keyNode.length},severity:et.Warning,message:E.errorMessage||ft("DisallowedExtraPropWarning",qc,W),source:Et(E,n),schemaUri:At(E,n)})}else{re.url=(H=E.url)!=null?H:n.url;const B=new Fn(o);nn(ee,re,E,B,j,i),P.mergePropertyMatch(B),P.mergeEnumValues(B)}}if(E.patternProperties)for(const W of Object.keys(E.patternProperties)){const re=N0(W);for(const ee of M.slice(0))if(re.test(ee)){Y(ee);const B=z[ee];if(B){const ae=E.patternProperties[W];if(Fi(ae))if(ae)P.propertiesMatches++,P.propertiesValueMatches++;else{const te=B.parent;P.problems.push({location:{offset:te.keyNode.offset,length:te.keyNode.length},severity:et.Warning,message:E.errorMessage||ft("DisallowedExtraPropWarning",qc,ee),source:Et(E,n),schemaUri:At(E,n)})}else{const te=new Fn(o);nn(B,ae,E,te,j,i),P.mergePropertyMatch(te),P.mergeEnumValues(te)}}}}if(typeof E.additionalProperties=="object")for(const W of M){const re=z[W];if(re){const ee=new Fn(o);nn(re,E.additionalProperties,E,ee,j,i),P.mergePropertyMatch(ee),P.mergeEnumValues(ee)}}else if((E.additionalProperties===!1||E.type==="object"&&E.additionalProperties===void 0&&i.disableAdditionalProperties===!0)&&M.length>0){const W=E.properties&&Object.keys(E.properties).filter(re=>!z[re]);for(const re of M){const ee=z[re];if(ee){let B=null;ee.type!=="property"?(B=ee.parent,B.type==="object"&&(B=B.properties[0])):B=ee;const ae={location:{offset:B.keyNode.offset,length:B.keyNode.length},severity:et.Warning,code:Tn.PropertyExpected,message:E.errorMessage||ft("DisallowedExtraPropWarning",qc,re),source:Et(E,n),schemaUri:At(E,n)};W?.length&&(ae.data={properties:W}),P.problems.push(ae)}}}if(Xn(E.maxProperties)&&A.properties.length>E.maxProperties&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("MaxPropWarning","Object has more properties than limit of {0}.",E.maxProperties),source:Et(E,n),schemaUri:At(E,n)}),Xn(E.minProperties)&&A.properties.length<E.minProperties&&P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("MinPropWarning","Object has fewer properties than the required number of {0}",E.minProperties),source:Et(E,n),schemaUri:At(E,n)}),E.dependencies){for(const W of Object.keys(E.dependencies))if(z[W]){const ee=E.dependencies[W];if(Array.isArray(ee))for(const B of ee)z[B]?P.propertiesValueMatches++:P.problems.push({location:{offset:A.offset,length:A.length},severity:et.Warning,message:ft("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",B,W),source:Et(E,n),schemaUri:At(E,n)});else{const B=bn(ee);if(B){const ae=new Fn(o);nn(A,B,E,ae,j,i),P.mergePropertyMatch(ae),P.mergeEnumValues(ae)}}}}const K=bn(E.propertyNames);if(K)for(const W of A.properties){const re=W.keyNode;re&&nn(re,K,E,P,jo.instance,i)}}function w(A,E,P,j){const H=A.compareKubernetes(E.validationResult);return H>0?E={schema:P,validationResult:A,matchingSchemas:j}:H===0&&(E.matchingSchemas.merge(j),E.validationResult.mergeEnumValues(A)),E}function k(A,E,P,j,H,z){if(!E&&!P.hasProblems()&&(!j.validationResult.hasProblems()||l))j.matchingSchemas.merge(z),j.validationResult.propertiesMatches+=P.propertiesMatches,j.validationResult.propertiesValueMatches+=P.propertiesValueMatches;else{const M=P.compareGeneric(j.validationResult);M>0||M===0&&E&&j.schema.type==="object"&&A.type!=="null"&&A.type!==j.schema.type?j={schema:H,validationResult:P,matchingSchemas:z}:M===0&&(j.matchingSchemas.merge(z),j.validationResult.mergeEnumValues(P),j.validationResult.mergeWarningGeneric(P,[yn.missingRequiredPropWarning,yn.typeMismatchWarning,yn.constWarning]))}return j}}function Et(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(e.closestTitle)r=e.closestTitle;else if(t.closestTitle)r=t.closestTitle;else{const s=(n=e.url)!=null?n:t.url;if(s){const i=Vn.parse(s);i.scheme==="file"&&(r=i.fsPath),r=i.toString()}}if(r)return`${gg}${r}`}return Jl}function At(e,t){var n;const r=(n=e.url)!=null?n:t.url;return r?[r]:[]}function cl(e,t){return ft(e,Sv[e],t.join(" | "))}var Fv=1e3,eh=0,Wc=new Set;function qi(e,t,n,r){if(e||(eh=0),!t)return null;if(Jt(t))return Tv(t,e,n,r);if(Nt(t))return Mv(t,e,n,r);if(Gt(t))return Ov(t,e,n,r);if(Xe(t))return Rv(t,e);if(Fr(t)&&!Wc.has(t)&&eh<Fv){Wc.add(t);const s=Pv(t,e,n,r);return Wc.delete(t),s}else return}function Tv(e,t,n,r){let s;e.flow&&!e.range?s=Iv(e):s=e.range;const i=new Cv(t,e,...vg(s,r));for(const o of e.items)Nt(o)&&i.properties.push(qi(i,o,n,r));return i}function Mv(e,t,n,r){const s=e.key,i=e.value,o=s.range[0];let l=s.range[1],u=s.range[2];i&&(l=i.range[1],u=i.range[2]);const c=new Lv(t,e,...vg([o,l,u],r));if(Fr(s)){const g=new Rl(t,s,...bs(s.range));g.value=s.source,c.keyNode=g}else c.keyNode=qi(c,s,n,r);return c.valueNode=qi(c,i,n,r),c}function Ov(e,t,n,r){const s=new Nv(t,e,...bs(e.range));for(const i of e.items)if(St(i)){const o=qi(s,i,n,r);o&&s.children.push(o)}return s}function Rv(e,t){if(e.value===null)return new Ev(t,e,...bs(e.range));switch(typeof e.value){case"string":{const n=new Rl(t,e,...bs(e.range));return n.value=e.value,n}case"boolean":return new Av(t,e,e.value,...bs(e.range));case"number":{const n=new xv(t,e,...bs(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Rl(t,e,...bs(e.range));return n.value=e.source,n}}}function Pv(e,t,n,r){eh++;const s=e.resolve(n);if(s)return qi(t,s,n,r);{const i=new Rl(t,e,...bs(e.range));return i.value=e.source,i}}function bs(e){return[e[0],e[1]-e[0]]}function vg(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),s=[e[0],e[1]-e[0]];return n.line!==r.line&&(t.lineStarts.length!==r.line||r.col===1)&&s[1]--,s}function Iv(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)Nt(r)&&(St(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),St(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}function Bv(e,t){let n;if(It(e,(r,s,i)=>{if(s===t)return n=i[i.length-1],It.BREAK}),!Hi(n))return n}function $v(e){if(e.items.length>1)return!1;const t=e.items[0];return Xe(t.key)&&Xe(t.value)&&t.key.value===""&&!t.value.value}function Vv(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}function jv(e,t){let n=!1;for(const r of e){if(r.type==="document")th([],r,s=>{var i;if(Dg(s)&&((i=s.value)==null?void 0:i.type)==="comment"){if(r.offset<=t&&s.value.source.length+s.value.offset>=t)return n=!0,It.BREAK}else if(s.type==="comment"&&s.offset<=t&&s.offset+s.source.length>=t)return n=!0,It.BREAK});else if(r.type==="comment"&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function Dg(e){return e.start!==void 0}function th(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let l=0;l<o.items.length;++l){const u=th(Object.freeze(e.concat([[i,l]])),o.items[l],n);if(typeof u=="number")l=u-1;else{if(u===It.BREAK)return It.BREAK;u===It.REMOVE&&(o.items.splice(l,1),l-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}const s=t.sep;if(s)for(let i=0;i<s.length;++i){const o=th(Object.freeze(e),s[i],n);if(typeof o=="number")i=o-1;else{if(o===It.BREAK)return It.BREAK;o===It.REMOVE&&(s.items.splice(i,1),i-=1)}}return typeof r=="function"?r(t,e):r}var wg=class Sg extends _v{constructor(t){super(null,[]),this.lineCounter=t}clone(){const t=new Sg(this.lineCounter);return t.isKubernetes=this.isKubernetes,t.disableAdditionalProperties=this.disableAdditionalProperties,t.uri=this.uri,t.currentDocIndex=this.currentDocIndex,t._lineComments=this.lineComments.slice(),t.internalDocument=this._internalDocument.clone(),t}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split(`
349
- `).forEach(n=>this._lineComments.push(`#${n}`)),It(this.internalDocument,(t,n)=>{n?.commentBefore&&(n?.commentBefore.split(`
350
- `)).forEach(s=>this._lineComments.push(`#${s}`)),n?.comment&&this._lineComments.push(`#${n.comment}`)}),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=qi(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(t){this._internalDocument=t,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(t){this._lineComments=t}get errors(){return this.internalDocument.errors.map(k0)}get warnings(){return this.internalDocument.warnings.map(k0)}getNodeFromPosition(t,n,r){const s=n.getPosition(t),i=n.getLineContent(s.line);if(i.trim().length===0)return[this.findClosestNode(t,n,r),!0];const l=i.substring(s.character).match(/^([ ]+)\n?$/),u=!!l,c=l?.[1].length;let g;return It(this.internalDocument,(d,y)=>{if(!y)return;const w=y.range;if(!w)return;const k=()=>u&&t+c===w[2]&&Xe(y)&&y.value===null;if(w[0]<=t&&w[1]>=t||k())g=y;else return It.SKIP}),[g,!1]}findClosestNode(t,n,r){let s=this.internalDocument.range[2],i=this.internalDocument.range[0],o;It(this.internalDocument,(g,d)=>{if(!d)return;const y=d.range;if(!y)return;const w=y[1]-t;i<=y[0]&&w<=0&&Math.abs(w)<=s&&(s=Math.abs(w),i=y[0],o=d)});const l=n.getPosition(t),u=n.getLineContent(l.line),c=sv(u,l.character);return Xe(o)&&o.value===null||c===l.character&&(o=this.getProperParentByIndentation(c,o,n,"",r)),o}getProperParentByIndentation(t,n,r,s,i,o){if(!n)return this.internalDocument.contents;if(i=i||2,St(n)&&n.range){const l=r.getPosition(n.range[0]),u=r.getLineContent(l.line);if(s=s===""?u.trim():s,s.startsWith("-")&&t===i&&s===u.trim()&&(l.character+=t),l.character>t&&l.character>0){const c=this.getParent(n);if(c)return this.getProperParentByIndentation(t,c,r,s,i,o)}else if(l.character<t){const c=this.getParent(n);if(Nt(c)&&St(c.value))return c.value;if(Nt(o)&&St(o.value))return o.value}else return n}else if(Nt(n)){o=n;const l=this.getParent(n);return this.getProperParentByIndentation(t,l,r,s,i,o)}return n}getParent(t){return Bv(this.internalDocument,t)}},Eg=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Uv=class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,t??Pl,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){const r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new Eg([],[]),parserOptions:Pl});const s=this.cache.get(r);if(s.version!==e.version||t.customTags&&!mg(s.parserOptions.customTags,t.customTags)){let i=e.getText();n&&!/\S/.test(i)&&(i=`{${i}}`);const o=Yv(i,t,e);s.document=o,s.version=e.version,s.parserOptions=t}}},br=new Uv;function k0(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Tn.Undefined}}var qv=class{constructor(e,t){this.tag=e,this.type=t}get collection(){if(this.type==="mapping")return"map";if(this.type==="sequence")return"seq"}resolve(e){if(Jt(e)&&this.type==="mapping"||Gt(e)&&this.type==="sequence"||typeof e=="string"&&this.type==="scalar")return e}},Wv=class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}};function Hv(e){const t=[],n=dg(e);for(const r of n){const s=r.split(" "),i=s[0],o=s[1]&&s[1].toLowerCase()||"scalar";t.push(new qv(i,o))}return t.push(new Wv),t}var Ys=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return"";const n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(ze.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},Pl={customTags:[],yamlVersion:"1.2"};function Yv(e,t=Pl,n){var r;const s={strict:!1,customTags:Hv(t.customTags),version:(r=t.yamlVersion)!=null?r:Pl.yamlVersion,keepSourceTokens:!0},i=new Wm(s),o=new Km;let l=!1;if(n){const w=new Ys(n),k=w.getPosition(e.length);l=w.getLineContent(k.line).trim().length===0}const c=(l?new Hf:new Hf(o.addNewLine)).parse(e),g=Array.from(c),d=i.compose(g,!0,e.length),y=Array.from(d,w=>zv(w,o));return new Eg(y,g)}function zv(e,t){const n=new wg(t);return n.internalDocument=e,n}function Gv(e){if(e instanceof wg){const t=e.lineComments.find(n=>nh(n));if(t!=null){const n=t.match(/\$schema=\S+/g);if(n!==null&&n.length>=1)return n.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),n[0].substring(8)}}}function nh(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return t!==null&&t.length===1}var Ql=class{validateSchema(){return!0}defaultMeta(){}},_0=new Ql,Hc=new Ql,Yc=new Ql,zc=new Ql,Ha=Gi(),F0;(function(e){e[e.delete=0]="delete",e[e.add=1]="add",e[e.deleteAll=2]="deleteAll"})(F0||(F0={}));var Jv=class{constructor(e){try{this.patternRegExp=new RegExp(rv(e)+"$")}catch{this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}},Qv=class extends ev{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const s={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:i,description:o,versions:l}=this.schemaUriToNameAndDescription.get(r);s.name=i,s.description=o,s.fromStore=!0,s.versions=l}e.push(s)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let s=e.schema;const i=this.contextService;let o=[];switch(this.normalizeId(s.$schema)){case Hc.defaultMeta():{Hc.validateSchema(s)||(o=o.concat(Hc.errors));break}case Yc.defaultMeta():{Yc.validateSchema(s)||(o=o.concat(Yc.errors));break}case zc.defaultMeta():{zc.validateSchema(s)||(o=o.concat(zc.errors));break}default:_0.validateSchema(s)||(o=o.concat(_0.errors));break}if(o.length>0){const d=[];for(const y of o)d.push(`${y.instancePath} : ${y.message}`);r.push(`Schema '${cg(e.schema,t)}' is not valid:
351
- ${d.join(`
352
- `)}`)}const l=(d,y)=>{if(!y)return d;let w=d;return y[0]==="/"&&(y=y.substr(1)),y.split("/").some(k=>(w=w[k],!w)),w},u=(d,y,w,k)=>{const A=l(y,k);if(A)for(const E in A)Object.prototype.hasOwnProperty.call(A,E)&&!Object.prototype.hasOwnProperty.call(d,E)&&(d[E]=A[E]);else r.push(Ha("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",k,w))},c=(d,y,w,k,A)=>{i&&!/^\w+:\/\/.*/.test(y)&&(y=i.resolveRelativePath(y,k)),y=this.normalizeId(y);const E=this.getOrAddSchemaHandle(y);return E.getUnresolvedSchema().then(P=>{if(A[y]=!0,P.errors.length){const j=w?y+"#"+w:y;r.push(Ha("json.schema.problemloadingref","Problems loading reference '{0}': {1}",j,P.errors[0]))}return u(d,P.schema,y,w),d.url=y,g(d,P.schema,y,E.dependencies)})},g=async(d,y,w,k)=>{if(!d||typeof d!="object")return null;const A=[d],E=new Set,P=[],j=(...T)=>{for(const Y of T)typeof Y=="object"&&A.push(Y)},H=(...T)=>{for(const Y of T)if(typeof Y=="object")for(const K in Y){const W=Y[K];typeof W=="object"&&A.push(W)}},z=(...T)=>{for(const Y of T)if(Array.isArray(Y))for(const K of Y)typeof K=="object"&&A.push(K)},M=T=>{const Y=new Set;for(;T.$ref;){const K=T.$ref,W=K.split("#",2);if(T._$ref=T.$ref,delete T.$ref,W[0].length>0){P.push(c(T,W[0],W[1],w,k));return}else Y.has(K)||(u(T,y,w,W[1]),Y.add(K))}j(T.items,T.additionalItems,T.additionalProperties,T.not,T.contains,T.propertyNames,T.if,T.then,T.else),H(T.definitions,T.properties,T.patternProperties,T.dependencies),z(T.anyOf,T.allOf,T.oneOf,T.items,T.schemaSequence)};if(w.indexOf("#")>0){const T=w.split("#",2);if(T[0].length>0&&T[1].length>0){const Y={};await c(Y,T[0],T[1],w,k);for(const K in s)K!=="required"&&Object.prototype.hasOwnProperty.call(s,K)&&!Object.prototype.hasOwnProperty.call(Y,K)&&(Y[K]=s[K]);s=Y}}for(;A.length;){const T=A.pop();E.has(T)||(E.add(T),M(T))}return Promise.all(P)};return await g(s,s,t,n),new To(s,r)}getSchemaForResource(e,t){const n=()=>{let o=Gv(t);if(o!==void 0){if(!o.startsWith("file:")&&!o.startsWith("http")){let l="";if(o.indexOf("#")>0){const u=o.split("#",2);o=u[0],l=u[1]}if(Us.isAbsolute(o))o=Vn.file(o).toString();else{const u=Vn.parse(e);o=Vn.file(Us.resolve(Us.parse(u.fsPath).dir,o)).toString()}l.length>0&&(o+="#"+l)}return o}},r=o=>{const l=super.createCombinedSchema(e,o);return l.getResolvedSchema().then(u=>(u.schema&&typeof u.schema=="object"&&(u.schema.url=l.url),u.schema&&u.schema.schemaSequence&&u.schema.schemaSequence[t.currentDocIndex]?new To(u.schema.schemaSequence[t.currentDocIndex]):u))},s=()=>{const o=Object.create(null),l=[];for(const u of this.filePatternAssociations)if(u.matchesPattern(e))for(const c of u.getURIs())o[c]||(l.push(c),o[c]=!0);if(l.length>0){const u=this.highestPrioritySchemas(l);return r(u)}return Promise.resolve(null)},i=n();return i?r([i]):this.customSchemaProvider?this.customSchemaProvider(e).then(o=>Array.isArray(o)?o.length===0?s():Promise.all(o.map(l=>this.resolveCustomSchema(l,t))).then(l=>({errors:[],schema:{allOf:l.map(u=>u.schema)}}),()=>s()):o?this.resolveCustomSchema(o,t):s()).then(o=>o,()=>s()):s()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,new Set().add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach(r=>{(this.schemaPriorityMapping.get(r)||[0]).forEach(i=>{i>t&&(t=i);let o=n.get(i);o?(o=o.concat(r),n.set(i,o)):n.set(i,[r])})}),n.get(t)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&typeof r.schema=="object"&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new To(r.schema.schemaSequence[t.currentDocIndex],r.errors):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,new Set().add(rh.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach(t=>{this.deleteSchema(t)}),Promise.resolve(void 0)}async deleteSchema(e){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const s of n)s!==""&&(this.resolveNext(r,s),r=r[s]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if(typeof e=="object"&&typeof t!="string")throw new Error("Expected a string after the object")}normalizeId(e){try{return Vn.parse(e).toString()}catch{return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then(n=>{if(n.errors&&n.schema===void 0)return t(e).then(r=>{if(!r){const s=Ha("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",T0(e),n.errors);return new gr({},[s])}try{const s=I2(r);return new gr(s,[])}catch(s){const i=Ha("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",T0(e),s);return new gr({},[i])}},r=>{let s=r.toString();const i=r.toString().split("Error: ");return i.length>1&&(s=i[1]),new gr({},[s])});if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:r,description:s,versions:i}=this.schemaUriToNameAndDescription.get(e);n.schema.title=r??n.schema.title,n.schema.description=s??n.schema.description,n.schema.versions=i??n.schema.versions}return n})}registerExternalSchema(e,t,n,r,s,i){return(r||s)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:s,versions:i}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function T0(e){try{const t=Vn.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var Kv=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new gv(e),this.jsonDocumentSymbols.getKeyLabel=n=>{const r=n.keyNode.internalNode;let s="";return Jt(r)?s="{}":Gt(r)?s="[]":s=r.source,s}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const s=br.getYamlDocument(e);if(!s||s.documents.length===0)return null;for(const i of s.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(s){(n=this.telemetry)==null||n.sendError("yaml.documentSymbols.error",s)}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const s=br.getYamlDocument(e);if(!s||s.documents.length===0)return null;for(const i of s.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(s){(n=this.telemetry)==null||n.sendError("yaml.hierarchicalDocumentSymbols.error",s)}return r}};function Ag(e,t){for(const n of e)n.isKubernetes=t}var Xv=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.indentation=e.indentation)}doHover(e,t,n=!1){var r;try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const s=br.getYamlDocument(e),i=e.offsetAt(t),o=Gl(i,s);if(o===null)return Promise.resolve(void 0);Ag(s.documents,n);const l=s.documents.indexOf(o);return o.currentDocIndex=l,this.getHover(e,t,o)}catch(s){(r=this.telemetry)==null||r.sendError("yaml.hover.error",s)}}getHover(e,t,n){const r=e.offsetAt(t);let s=n.getNodeFromOffset(r);if(!s||(s.type==="object"||s.type==="array")&&r>s.offset+1&&r<s.offset+s.length-1)return Promise.resolve(null);const i=s;if(s.type==="string"){const c=s.parent;if(c&&c.type==="property"&&c.keyNode===s&&(s=c.valueNode,!s))return Promise.resolve(null)}const o=ze.create(e.positionAt(i.offset),e.positionAt(i.offset+i.length)),l=c=>({contents:{kind:Qr.Markdown,value:c},range:o}),u=c=>c.replace(/\s\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then(c=>{if(c&&s&&!c.errors.length){const g=n.getMatchingSchemas(c.schema,s.offset);let d,y,w=[];const k=[],A=[];g.every(P=>((P.node===s||s.type==="property"&&s.valueNode===P.node)&&!P.inverted&&P.schema&&(d=d||P.schema.title||P.schema.closestTitle,y=y||P.schema.markdownDescription||this.toMarkdown(P.schema.description),P.schema.enum&&(P.schema.markdownEnumDescriptions?w=P.schema.markdownEnumDescriptions:P.schema.enumDescriptions?w=P.schema.enumDescriptions.map(this.toMarkdown,this):w=[],P.schema.enum.forEach((j,H)=>{typeof j!="string"&&(j=JSON.stringify(j)),A.push({value:j,description:w[H]})})),P.schema.anyOf&&eD(s,g,P.schema)&&(d="",y=P.schema.description?P.schema.description+`
353
- `:"",P.schema.anyOf.forEach((j,H)=>{d+=j.title||P.schema.closestTitle||"",y+=j.markdownDescription||this.toMarkdown(j.description)||"",H!==P.schema.anyOf.length-1&&(d+=" || ",y+=" || ")}),d=u(d),y=u(y)),P.schema.examples&&P.schema.examples.forEach(j=>{k.push(B2(j,null,2))})),!0));let E="";return d&&(E="#### "+this.toMarkdown(d)),y&&(E=Ya(E),E+=y),A.length!==0&&(E=Ya(E),E+=`Allowed Values:
354
-
355
- `,A.forEach(P=>{P.description?E+=`* \`${M0(P.value)}\`: ${P.description}
356
- `:E+=`* \`${M0(P.value)}\`
357
- `})),k.length!==0&&k.forEach(P=>{E=Ya(E),E+=`Example:
358
-
359
- `,E+=`\`\`\`yaml
360
- ${P}\`\`\`
361
- `}),E.length>0&&c.schema.url&&(E=Ya(E),E+=`Source: [${Zv(c.schema)}](${c.schema.url})`),l(E)}return null})}toMarkdown(e){if(e){let t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
362
-
363
- $3`);if(t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this.indentation!==void 0){const n=new RegExp(` {${this.indentation.length}}`,"g");t=t.replace(n,"&emsp;")}return t}}};function Ya(e){return e.length===0?e:(e.endsWith(`
364
- `)||(e+=`
365
- `),e+`
366
- `)}function Zv(e){let t="JSON Schema";const n=e.url;if(n){const r=Vn.parse(n);t=Us.basename(r.fsPath)}else e.title&&(t=e.title);return t}function M0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}function eD(e,t,n){let r=0;for(const s of t)e===s.node&&s.schema!==n&&n.anyOf.forEach(i=>{s.schema.title===i.title&&s.schema.description===i.description&&s.schema.properties===i.properties&&r++});return r===n.anyOf.length}var tD=class{validate(e,t){const n=[],r=new Set,s=new Set,i=new Map;It(t.internalDocument,(o,l,u)=>{St(l)&&((Wt(l)||Xe(l))&&l.anchor&&(r.add(l),i.set(l,u[u.length-1])),Fr(l)&&s.add(l.resolve(t.internalDocument)))});for(const o of r)if(!s.has(o)){const l=this.getAnchorNode(i.get(o),o);if(l){const u=ze.create(e.positionAt(l.offset),e.positionAt(l.offset+l.source.length)),c=Un.create(u,`Unused anchor "${l.source}"`,et.Hint,0);c.tags=[Af.Unnecessary],n.push(c)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if(Dg(n))return O0(n);if(_2(n))for(const r of n.items){if(t.srcToken!==r.value)continue;const s=O0(r);if(s)return s}}}};function O0(e){for(const t of e.start)if(t.type==="anchor")return t;if(e.sep&&Array.isArray(e.sep)){for(const t of e.sep)if(t.type==="anchor")return t}}var nD=class{constructor(e){this.forbidMapping=e.flowMapping==="forbid",this.forbidSequence=e.flowSequence==="forbid"}validate(e,t){const n=[];return It(t.internalDocument,(r,s)=>{var i,o;this.forbidMapping&&Jt(s)&&((i=s.srcToken)==null?void 0:i.type)==="flow-collection"&&n.push(Un.create(this.getRangeOf(e,s.srcToken),"Flow style mapping is forbidden",et.Error,"flowMap")),this.forbidSequence&&Gt(s)&&((o=s.srcToken)==null?void 0:o.type)==="flow-collection"&&n.push(Un.create(this.getRangeOf(e,s.srcToken),"Flow style sequence is forbidden",et.Error,"flowSeq"))}),n}getRangeOf(e,t){return ze.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},rD=class{validate(e,t){const n=[];return It(t.internalDocument,(r,s)=>{if(Jt(s)){for(let i=1;i<s.items.length;i++)if(iD(s.items[i-1],s.items[i])>0){const o=sD(e,s.items[i-1]);n.push(Un.create(o,`Wrong ordering of key "${s.items[i-1].key}" in mapping`,et.Error,"mapKeyOrder"))}}}),n}};function sD(e,t){var n,r,s,i,o,l,u,c,g,d,y;const w=(l=(s=(n=t?.srcToken.start[0])==null?void 0:n.offset)!=null?s:(r=t?.srcToken)==null?void 0:r.key.offset)!=null?l:(o=(i=t?.srcToken)==null?void 0:i.sep[0])==null?void 0:o.offset,k=((u=t?.srcToken)==null?void 0:u.value.offset)||((g=(c=t?.srcToken)==null?void 0:c.sep[0])==null?void 0:g.offset)||((d=t?.srcToken)==null?void 0:d.key.offset)||((y=t?.srcToken.start[t.srcToken.start.length-1])==null?void 0:y.offset);return ze.create(e.positionAt(w),e.positionAt(k))}function iD(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}var oD=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?sn.create(n.line,new Ys(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Un.create(r,e.message,e.severity,e.code,Jl)},aD=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new uv(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,(e.flowMapping==="forbid"||e.flowSequence==="forbid")&&this.validators.push(new nD(e)),e.keyOrdering&&this.validators.push(new rD)),this.validators.push(new tD)}async doValidation(e,t=!1){var n;if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const l=br.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let u=0;for(const c of l.documents){c.isKubernetes=t,c.currentDocIndex=u,c.disableAdditionalProperties=this.disableAdditionalProperties,c.uri=e.uri;const g=await this.jsonValidation.doValidation(e,c),d=c;d.errors.length>0&&r.push(...d.errors),d.warnings.length>0&&r.push(...d.warnings),r.push(...g),r.push(...this.runAdditionalValidators(e,c)),u++}}catch(l){(n=this.telemetry)==null||n.sendError("yaml.validation.error",l)}let s;const i=new Set,o=[];for(let l of r){if(t&&l.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(l,"location")&&(l=oD(l,e)),l.source||(l.source=Jl),s&&s.message===l.message&&s.range.end.line===l.range.start.line&&Math.abs(s.range.end.character-l.range.end.character)>=1){s.range.end=l.range.end;continue}else s=l;const u=l.range.start.line+" "+l.range.start.character+" "+l.message;i.has(u)||(o.push(l),i.add(u))}return o}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},lD=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}async format(e,t={}){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[H2],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:t.proseWrap==="always"?"always":t.proseWrap==="never"?"never":"preserve",printWidth:t.printWidth},s=await U2.format(n,r);return[$t.replace(ze.create(sn.create(0,0),e.positionAt(n.length)),s)]}catch{return[]}}},uD=class{constructor(e){this.telemetry=e}findLinks(e){var t;try{const n=br.getYamlDocument(e),r=[];for(const s of n.documents)r.push(pv(e,s));return Promise.all(r).then(s=>[].concat(...s))}catch(n){(t=this.telemetry)==null||t.sendError("yaml.documentLink.error",n)}}};function cD(e,t){if(!e)return;const n=[],r=br.getYamlDocument(e);for(const i of r.documents)r.documents.length>1&&n.push(za(e,i.root)),i.visit(o=>{var l;if(o.type==="object"&&((l=o.parent)==null?void 0:l.type)==="array"&&n.push(za(e,o)),o.type==="property"&&o.valueNode)switch(o.valueNode.type){case"array":case"object":n.push(za(e,o));break;case"string":{const u=e.positionAt(o.offset),c=e.positionAt(o.valueNode.offset+o.valueNode.length);u.line!==c.line&&n.push(za(e,o));break}default:return!0}return!0});const s=t&&t.rangeLimit;return typeof s!="number"||n.length<=s?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function za(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const s=e.getText(ze.create(n,r)),i=s.length-s.trimRight().length;return i>0&&(r=e.positionAt(t.offset+t.length-i)),Sf.create(n.line,r.line,n.character,r.character)}var Il;(function(e){e.JUMP_TO_SCHEMA="jumpToSchema"})(Il||(Il={}));var fD=class{constructor(e){this.indentation=e}write(e){if(e.internalNode.srcToken.type!=="flow-collection")return null;const t=e.internalNode.srcToken,n=t.start.type==="flow-map-start"?"block-map":"block-seq",r=e.parent.type,s={type:n,offset:t.offset,indent:t.indent,items:[]};for(const i of t.items)Hs(i,({key:o,sep:l,value:u})=>{if(n==="block-map"){const c=[{type:"space",indent:0,offset:o.offset,source:this.indentation}];r==="property"&&c.unshift({type:"newline",indent:0,offset:o.offset,source:`
367
- `}),s.items.push({start:c,key:o,sep:l,value:u})}else n==="block-seq"&&s.items.push({start:[{type:"newline",indent:0,offset:u.offset,source:`
368
- `},{type:"space",indent:0,offset:u.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:u.offset,source:"-"},{type:"space",indent:0,offset:u.offset,source:" "}],value:u});if(u.type==="flow-collection")return It.SKIP});return Hm(s)}},hD=structuredClone,dD=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getKeyOrderActions(t.context.diagnostics,e)),n.push(...this.getQuickFixForPropertyOrValueMismatch(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,s,i;if(!((s=(r=(n=(t=this.clientCapabilities)==null?void 0:t.window)==null?void 0:n.showDocument)==null?void 0:r.support)!=null?s:!1))return[];const l=new Map;for(const c of e){const g=((i=c.data)==null?void 0:i.schemaUri)||[];for(const d of g)d&&(l.has(d)||l.set(d,[]),l.get(d).push(c))}const u=[];for(const c of l.keys()){const g=xr.create(`Jump to schema location (${Us.basename(c)})`,qs.create("JumpToSchema",Il.JUMP_TO_SCHEMA,c));g.diagnostics=l.get(c),u.push(g)}return u}getTabToSpaceConverting(e,t){const n=[],r=new Ys(t),s=[];for(const i of e)if(i.message==="Using tabs can lead to unpredictable results"){if(s.includes(i.range.start.line))continue;const o=r.getLineContent(i.range.start.line);let l=0,u="";for(let g=i.range.start.character;g<=i.range.end.character&&o.charAt(g)===" ";g++)l++,u+=this.indentation;s.push(i.range.start.line);let c=i.range;l!==i.range.end.character-i.range.start.character&&(c=ze.create(i.range.start,sn.create(i.range.end.line,i.range.start.character+l))),n.push(xr.create("Convert Tab to Spaces",Os(t.uri,[$t.replace(c,u)]),Hr.QuickFix))}if(n.length!==0){const i=[];for(let o=0;o<=r.getLineCount();o++){const l=r.getLineContent(o);let u=0,c="";for(let g=0;g<l.length;g++){const d=l.charAt(g);if(d!==" "&&d!==" "){u!==0&&(i.push($t.replace(ze.create(o,g-u,o,g),c)),u=0,c="");break}if(d===" "&&u!==0){i.push($t.replace(ze.create(o,g-u,o,g),c)),u=0,c="";continue}d===" "&&(c+=this.indentation,u++)}u!==0&&i.push($t.replace(ze.create(o,0,o,r.getLineLength(o)),c))}i.length>0&&n.push(xr.create("Convert all Tabs to Spaces",Os(t.uri,i),Hr.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Ys(t);for(const s of e)if(s.message.startsWith("Unused anchor")&&s.source===Jl){const i=ze.create(s.range.start,s.range.end),o=r.getText(i),l=r.getLineContent(i.end.line),u=iv(l,i.end.character);i.end.character=u;const c=xr.create(`Delete unused anchor: ${o}`,Os(t.uri,[$t.del(i)]),Hr.QuickFix);c.diagnostics=[s],n.push(c)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if(r.message==='Incorrect type. Expected "boolean".'){const s=t.getText(r.range).toLocaleLowerCase();if(s==='"true"'||s==='"false"'||s==="'true'"||s==="'false'"){const i=s.includes("true")?"true":"false";n.push(xr.create("Convert to boolean",Os(t.uri,[$t.replace(r.range,i)]),Hr.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if(r.code==="flowMap"||r.code==="flowSeq"){const s=R0(t,r);if(Jt(s.internalNode)||Gt(s.internalNode)){const i=Jt(s.internalNode)?"map":"sequence",o=new fD(this.indentation);n.push(xr.create(`Convert to block style ${i}`,Os(t.uri,[$t.replace(r.range,o.write(s))]),Hr.QuickFix))}}return n}getKeyOrderActions(e,t){var n,r,s,i,o,l,u,c,g,d,y,w,k,A;const E=[];for(const P of e)if(P?.code==="mapKeyOrder"){let j=R0(t,P);for(;j&&j.type!=="object";)j=j.parent;if(j&&Jt(j.internalNode)){const H=hD(j.internalNode);if((H.srcToken.type==="block-map"||H.srcToken.type==="flow-collection")&&(j.internalNode.srcToken.type==="block-map"||j.internalNode.srcToken.type==="flow-collection")){H.srcToken.items.sort((M,T)=>{if(M.key&&T.key&&Bc(M.key)&&Bc(T.key))return M.key.source.localeCompare(T.key.source);if(!M.key&&T.key)return-1;if(M.key&&!T.key)return 1;if(!M.key&&!T.key)return 0});for(let M=0;M<H.srcToken.items.length;M++){const T=H.srcToken.items[M],Y=j.internalNode.srcToken.items[M];if(T.start=Y.start,((n=T.value)==null?void 0:n.type)==="alias"||((r=T.value)==null?void 0:r.type)==="scalar"||((s=T.value)==null?void 0:s.type)==="single-quoted-scalar"||((i=T.value)==null?void 0:i.type)==="double-quoted-scalar"){const K=(u=(l=(o=T.value)==null?void 0:o.end)==null?void 0:l.findIndex(re=>re.type==="newline"))!=null?u:-1;let W=null;((c=Y.value)==null?void 0:c.type)==="block-scalar"?W=(d=(g=Y.value)==null?void 0:g.props)==null?void 0:d.find(re=>re.type==="newline"):Bc(Y.value)&&(W=(w=(y=Y.value)==null?void 0:y.end)==null?void 0:w.find(re=>re.type==="newline")),W&&K<0&&(T.value.end=(k=T.value.end)!=null?k:[],T.value.end.push(W)),!W&&K>-1&&T.value.end.splice(K,1)}else((A=T.value)==null?void 0:A.type)==="block-scalar"&&(T.value.props.find(W=>W.type==="newline")||T.value.props.push({type:"newline",indent:0,offset:T.value.offset,source:`
369
- `}))}}const z=ze.create(t.positionAt(j.offset),t.positionAt(j.offset+j.length));E.push(xr.create("Fix key order for this map",Os(t.uri,[$t.replace(z,Hm(H.srcToken))]),Hr.QuickFix))}}return E}getPossibleQuickFixValues(e){if(typeof e.data=="object"){if(e.code===Tn.EnumValueMismatch&&"values"in e.data&&Array.isArray(e.data.values))return e.data.values;if(e.code===Tn.PropertyExpected&&"properties"in e.data&&Array.isArray(e.data.properties))return e.data.properties}}getQuickFixForPropertyOrValueMismatch(e,t){const n=[];for(const r of e){const s=this.getPossibleQuickFixValues(r);if(s?.length)for(const i of s)n.push(xr.create(i,Os(t.uri,[$t.replace(r.range,i)]),Hr.QuickFix))}return n}};function R0(e,t){const n=br.getYamlDocument(e),r=e.offsetAt(t.range.start);return Gl(r,n).getNodeFromOffset(r)}function Os(e,t){const n={};return n[e]=t,{changes:n}}function mD(e,t){const{position:n}=t,r=new Ys(e);if(t.ch===`
370
- `){const s=r.getLineContent(n.line-1);if(s.trimRight().endsWith(":")){const i=r.getLineContent(n.line),o=i.substring(n.character,i.length),l=s.indexOf(" - ")!==-1;if(o.trimRight().length===0){const u=n.character-(s.length-s.trimLeft().length);if(u===t.options.tabSize&&!l)return;const c=[];return i.length>0&&c.push($t.del(ze.create(n,sn.create(n.line,i.length-1)))),c.push($t.insert(n," ".repeat(t.options.tabSize+(l?2-u:0)))),c}if(l)return[$t.insert(n," ".repeat(t.options.tabSize))]}if(s.trimRight().endsWith("|"))return[$t.insert(n," ".repeat(t.options.tabSize))];if(s.includes(" - ")&&!s.includes(": "))return[$t.insert(n,"- ")];if(s.includes(" - ")&&s.includes(": "))return[$t.insert(n," ")]}}function gD(e){const t=new Map;return e&&(e.url?e.url.startsWith("schemaservice://combinedSchema/")?P0(e,t):t.set(e.url,e):P0(e,t)),t}function P0(e,t){e.allOf&&Gc(e.allOf,t),e.anyOf&&Gc(e.anyOf,t),e.oneOf&&Gc(e.oneOf,t)}function Gc(e,t){for(const n of e)!Fi(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}var pD=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){var t;const n=[];try{const r=br.getYamlDocument(e);let s=new Map;for(const i of r.documents){const o=await this.schemaService.getSchemaForResource(e.uri,i);o?.schema&&(s=new Map([...gD(o?.schema),...s]))}for(const i of s){const o=Rf.create(ze.create(0,0,0,0));o.command={title:cg(i[1],i[0]),command:Il.JUMP_TO_SCHEMA,arguments:[i[0]]},n.push(o)}}catch(r){(t=this.telemetry)==null||t.sendError("yaml.codeLens.error",r)}return n}resolveCodeLens(e){return e}},bD=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function yD(e,t,n,r,s){s.spacesDiff=0,s.looksLikeAlignment=!1;let i;for(i=0;i<t&&i<r;i++){const y=e.charCodeAt(i),w=n.charCodeAt(i);if(y!==w)break}let o=0,l=0;for(let y=i;y<t;y++)e.charCodeAt(y)===32?o++:l++;let u=0,c=0;for(let y=i;y<r;y++)n.charCodeAt(y)===32?u++:c++;if(o>0&&l>0||u>0&&c>0)return;const g=Math.abs(l-c),d=Math.abs(o-u);if(g===0){s.spacesDiff=d,d>0&&0<=u-1&&u-1<e.length&&u<n.length&&n.charCodeAt(u)!==32&&e.charCodeAt(u-1)===32&&e.charCodeAt(e.length-1)===44&&(s.looksLikeAlignment=!0);return}d%g===0&&(s.spacesDiff=d/g)}function vD(e,t,n){const r=Math.min(e.getLineCount(),1e4);let s=0,i=0,o="",l=0;const u=[2,4,6,8,3,5,7],c=8,g=[0,0,0,0,0,0,0,0,0],d=new bD;for(let k=1;k<=r;k++){const A=e.getLineLength(k),E=e.getLineContent(k),P=A<=65536;let j=!1,H=0,z=0,M=0;for(let Y=0,K=A;Y<K;Y++){const W=P?E.charCodeAt(Y):e.getLineCharCode(k,Y);if(W===9)M++;else if(W===32)z++;else{j=!0,H=Y;break}}if(!j||(M>0?s++:z>1&&i++,yD(o,l,E,H,d),d.looksLikeAlignment&&t!==d.spacesDiff))continue;const T=d.spacesDiff;T<=c&&g[T]++,o=E,l=H}let y=n;s!==i&&(y=s<i);let w=t;if(y){let k=y?0:.1*r;u.forEach(A=>{const E=g[A];E>k&&(k=E,w=A)}),w===4&&g[4]>0&&g[2]>0&&g[2]>=g[4]/2&&(w=2)}return{insertSpaces:y,tabSize:w}}function fl(e,t,n,r,s=0,i=0){if(e!==null&&typeof e=="object"){const o=s===0&&r.shouldIndentWithTab||s>0?t+r.indentation:"";if(Array.isArray(e)){if(i+=1,e.length===0)return"";let l="";for(let u=0;u<e.length;u++){let c=e[u];if(typeof e[u]!="object"){l+=`
371
- `+o+"- "+n(e[u]);continue}Array.isArray(e[u])||(c=DD(e[u],i)),l+=fl(c,t,n,r,s+=1,i)}return l}else{const l=Object.keys(e);if(l.length===0)return"";let u=s===0&&r.newLineFirst||s>0?`
372
- `:"",c=!0;for(let g=0;g<l.length;g++){const d=l[g];if(s===0&&r.existingProps.includes(d))continue;const y=typeof e[d]=="object",w=y?":":": ",k=y&&/^\s|-/.test(d)?r.indentation:"",A=o+k,E=c?"":`
373
- `;if(s===0&&c&&!r.indentFirstObject){const P=fl(e[d],A,n,r,s+1,0);u+=E+t+d+w+P}else{const P=fl(e[d],A,n,r,s+1,0);u+=E+o+d+w+P}c=!1}return u}}return n(e)}function DD(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const s=Object.keys(e)[r];r===0?n["- ".repeat(t)+s]=e[s]:n[" ".repeat(t)+s]=e[s]}return n}var wD=Gi(),Ng=/[\\]+"/g,I0=Bn.Class,Ga="__",SD=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=""}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,r=!0){var s;const i=Of.create([],!1);if(!this.completionEnabled)return i;const o=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),l=new Ys(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const M=vD(l,2,!0);this.indentation=M.insertSpaces?" ".repeat(M.tabSize):" "}Ag(o.documents,n);for(const M of o.documents)M.uri=e.uri;const u=e.offsetAt(t),c=e.getText();if(c.charAt(u-1)===":")return Promise.resolve(i);let g=Gl(u,o);if(g===null)return Promise.resolve(i);g=g.clone();let[d,y]=g.getNodeFromPosition(u,l,this.indentation.length);const w=this.getCurrentWord(e,u);let k=l.getLineContent(t.line);const A=k.substring(t.character),E=/^[ ]+\n?$/.test(A);this.arrayPrefixIndentation="";let P=null;if(E){P=ze.create(t,sn.create(t.line,k.length));const M=k.trim().length===0,T=k.match(/^\s*(-)\s*$/);if(d&&Xe(d)&&!M&&!T){const Y=k.substring(0,t.character),K=Y.match(/^[\s-]*([^:]+)?$/)||Y.match(/:[ \t]((?!:[ \t]).*)$/);K?.[1]&&(P=ze.create(sn.create(t.line,t.character-K[1].length),sn.create(t.line,k.length)))}}else if(d&&Xe(d)&&d.value==="null"){const M=e.positionAt(d.range[0]);M.character+=1;const T=e.positionAt(d.range[2]);T.character+=1,P=ze.create(M,T)}else if(d&&Xe(d)&&d.value){const M=e.positionAt(d.range[0]);P=ze.create(M,e.positionAt(d.range[1]))}else if(d&&Xe(d)&&d.value===null&&w==="-")P=ze.create(t,t),this.arrayPrefixIndentation=" ";else{let M=u-w.length;M>0&&c[M-1]==='"'&&M--,P=ze.create(e.positionAt(M),t)}const j={},H={add:(M,T)=>{const Y=function(B){var ae;if(((ae=j[B.label])==null?void 0:ae.label)===Ga)return;const X=B.parent.schema,se=Kf(X),he=X.markdownDescription||X.description;let Se=i.items.find(_e=>{var Fe;return((Fe=_e.parent)==null?void 0:Fe.schema)===X&&_e.kind===I0});Se&&Se.parent.insertTexts.includes(B.insertText)||(Se?Se.parent.insertTexts.push(B.insertText):(Se={...B,label:se,documentation:he,sortText:"_"+se,kind:I0},Se.label=Se.label||B.label,Se.parent.insertTexts=[B.insertText],i.items.push(Se)))},K=!!M.parent;let W=M.label;if(!W){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(M)}`);return}if(Ni(W)||(W=String(W)),W=W.replace(/[\n]/g,"↵"),W.length>60){const B=W.substr(0,57).trim()+"...";j[B]||(W=B)}if(M.insertText.endsWith("$1")&&!K&&(M.insertText=M.insertText.substr(0,M.insertText.length-2)),P&&P.start.line===P.end.line&&(M.textEdit=$t.replace(P,M.insertText)),M.label=W,K){Y(M);return}this.arrayPrefixIndentation&&this.updateCompletionText(M,this.arrayPrefixIndentation+M.insertText);const re=j[W],ee=re?.label!==Ga&&re?.insertText!==M.insertText;if(!re)j[W]=M,i.items.push(M);else if(ee){const B=this.mergeSimpleInsertTexts(W,re.insertText,M.insertText,T);B?this.updateCompletionText(re,B):(j[W]=M,i.items.push(M))}re&&!re.documentation&&M.documentation&&(re.documentation=M.documentation)},error:M=>{var T;(T=this.telemetry)==null||T.sendError("yaml.completion.error",M)},log:M=>{console.log(M)},getNumberOfProposals:()=>i.items.length,result:i,proposed:j};this.customTags&&this.customTags.length>0&&this.getCustomTagValueCompletions(H),k.endsWith(`
374
- `)&&(k=k.substr(0,k.length-1));try{const M=await this.schemaService.getSchemaForResource(e.uri,g);if((!M||M.errors.length)&&t.line===0&&t.character===0&&!nh(k)){const W={kind:Bn.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:an.PlainText};i.items.push(W)}if(nh(k)||jv(o.tokens,u)){const W=k.indexOf("$schema=");return W!==-1&&W+8<=t.character&&this.schemaService.getAllSchemas().forEach(re=>{var ee;const B={kind:Bn.Constant,label:(ee=re.name)!=null?ee:re.uri,detail:re.description,insertText:re.uri,insertTextFormat:an.PlainText,insertTextMode:Tf.asIs};i.items.push(B)}),i}if(!M||M.errors.length)return i;let T=null;if(!d)if(!g.internalDocument.contents||Xe(g.internalDocument.contents)){const W=g.internalDocument.createNode({});W.range=[u,u+1,u+1],g.internalDocument.contents=W,g.updateFromInternalDocument(),d=W}else d=g.findClosestNode(u,l),y=!0;const Y=d;if(d)if(k.length===0)d=g.internalDocument.contents;else{const W=g.getParent(d);if(W){if(Xe(d)){if(d.value){if(Nt(W)){if(W.value===d){if(k.trim().length>0&&k.indexOf(":")<0){const re=this.createTempObjNode(w,d,g),ee=g.getParent(W);if(Gt(g.internalDocument.contents)){const B=Vv(g.internalDocument.contents,W);typeof B=="number"&&(g.internalDocument.set(B,re),g.updateFromInternalDocument())}else ee&&(Jt(ee)||Gt(ee))?(ee.set(W.key,re),g.updateFromInternalDocument()):(g.internalDocument.set(W.key,re),g.updateFromInternalDocument());T=re.items[0],d=re}else if(k.trim().length===0){const re=g.getParent(W);re&&(d=re)}}else if(W.key===d){const re=g.getParent(W);T=W,re&&(d=re)}}else if(Gt(W))if(k.trim().length>0){const re=this.createTempObjNode(w,d,g);W.delete(d),W.add(re),g.updateFromInternalDocument(),d=re}else d=W}else if(d.value===null){if(Nt(W)){if(W.key===d)d=W;else if(St(W.key)&&W.key.range){const re=g.getParent(W);if(y&&re&&Jt(re)&&$v(re))d=re;else{const ee=e.positionAt(W.key.range[0]);if(t.character>ee.character&&t.line!==ee.line){const B=this.createTempObjNode(w,d,g);re&&(Jt(re)||Gt(re))?(re.set(W.key,B),g.updateFromInternalDocument()):(g.internalDocument.set(W.key,B),g.updateFromInternalDocument()),T=B.items[0],d=B}else ee.character===t.character&&re&&(d=re)}}}else if(Gt(W))if(k.charAt(t.character-1)!=="-"){const re=this.createTempObjNode(w,d,g);W.delete(d),W.add(re),g.updateFromInternalDocument(),d=re}else if(k.charAt(t.character-1)==="-"){const re=this.createTempObjNode("",d,g);W.delete(d),W.add(re),g.updateFromInternalDocument(),d=re}else d=W}}else if(Jt(d)&&!y&&k.trim().length===0&&Gt(W)){const re=l.getLineContent(t.line+1);(l.getLineCount()===t.line+1||re.trim().length===0)&&(d=W)}}else if(Xe(d)){const re=this.createTempObjNode(w,d,g);g.internalDocument.contents=re,g.updateFromInternalDocument(),T=re.items[0],d=re}else if(Jt(d))for(const re of d.items)St(re.value)&&re.value.range&&re.value.range[0]===u+1&&(d=re.value);else if(Gt(d)&&k.charAt(t.character-1)!=="-"){const re=this.createTempObjNode(w,d,g);re.items=[],g.updateFromInternalDocument();for(const ee of d.items)Jt(ee)&&ee.items.forEach(B=>{re.items.push(B)});d=re}}if(d&&Jt(d)){const W=d.items;for(const re of W)(!T||T!==re)&&Xe(re.key)&&(j[re.key.value+""]=Mf.create(Ga));this.addPropertyCompletions(M,g,d,Y,"",H,l,P,r),!M&&w.length>0&&c.charAt(u-w.length-1)!=='"'&&H.add({kind:Bn.Property,label:w,insertText:this.getInsertTextForProperty(w,null,""),insertTextFormat:an.Snippet})}const K={};this.getValueCompletions(M,g,d,u,e,H,K,r)}catch(M){(s=this.telemetry)==null||s.sendError("yaml.completion.error",M)}this.finalizeParentCompletion(i);const z=i.items.filter((M,T,Y)=>T===Y.findIndex(K=>K.label===M.label&&K.insertText===M.insertText&&K.kind===M.kind));return z?.length>0&&(i.items=z),i}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const s=g=>g.includes(`
375
- `),i=g=>g.startsWith(`
376
- `),o=g=>{const d=g.indexOf(`
377
- `);return d>0&&g.substring(d,g.length).trim().length===0};if(s(t)||s(n))return r&&o(t)&&!o(n)&&!i(n)?n:void 0;const l=this.getValuesFromInsertText(t),u=this.getValuesFromInsertText(n),c=Array.prototype.concat(l,u);if(c.length)return c.length===1?`${e}: \${1:${c[0]}}`:`${e}: \${1|${c.join(",")}|}`}getValuesFromInsertText(e){const t=e.substring(e.indexOf(":")+1).trim();if(!t)return[];const n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(","):[t]}finalizeParentCompletion(e){const t=n=>{let r=0;return n.map(s=>{const i=s.match(/\$([0-9]+)|\${[0-9]+:/g);if(!i)return s;const o=i.map(u=>+u.replace(/\${([0-9]+)[:|]/g,"$1").replace("$","")).reduce((u,c)=>c>u?c:u,0),l=s.replace(/\$([0-9]+)/g,(u,c)=>"$"+(+c+r)).replace(/\${([0-9]+)[:|]/g,(u,c)=>"${"+(+c+r)+":");return r+=o,l})};e.items.forEach(n=>{if(ND(n)){const r=n.parent.indent||"";let i=t(n.parent.insertTexts).join(`
378
- ${r}`);i.endsWith("$1")&&(i=i.substring(0,i.length-2)),n.insertText=this.arrayPrefixIndentation+i,n.textEdit&&(n.textEdit.newText=n.insertText);const o=i.replace(/\${[0-9]+[:|](.*)}/g,(u,c)=>c).replace(/\$([0-9]+)/g,""),l=n.documentation?[n.documentation,"","----",""]:[];n.documentation={kind:Qr.Markdown,value:[...l,"```yaml",r+o,"```"].join(`
379
- `)},delete n.parent}})}createTempObjNode(e,t,n){const r={};r[e]=null;const s=n.internalDocument.createNode(r);return s.range=t.range,s.items[0].key.range=t.range,s.items[0].value.range=t.range,s}addPropertyCompletions(e,t,n,r,s,i,o,l,u){var c,g,d;const y=t.getMatchingSchemas(e.schema,-1,null,u),w=o.getText(l),k=o.getLineContent(l.start.line),A=k.trim().length===0,E=k.indexOf(":")!==-1,P=k.trimLeft().indexOf("-")===0,j=t.getParent(n),H=y.find(T=>T.node.internalNode===r&&T.schema.properties),z=y.filter(T=>T.schema.oneOf).map(T=>T.schema.oneOf)[0];let M=!1;z?.length<y.length&&z?.forEach((T,Y)=>{var K,W;!((K=y[Y])!=null&&K.schema.oneOf)&&((W=y[Y])==null?void 0:W.schema.properties)===T.properties&&(M=!0)});for(const T of y){if((T.node.internalNode===n&&!H||T.node.internalNode===r&&!E||((c=T.node.parent)==null?void 0:c.internalNode)===r&&!E)&&!T.inverted){this.collectDefaultSnippets(T.schema,s,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:P});const Y=T.schema.properties;if(Y){const K=T.schema.maxProperties;if(K===void 0||n.items===void 0||n.items.length<K||n.items.length===K&&!A){for(const W in Y)if(Object.prototype.hasOwnProperty.call(Y,W)){const re=Y[W];if(typeof re=="object"&&!re.deprecationMessage&&!re.doNotSuggest){let ee="";if(j&&Gt(j)&&n.items.length<=1&&!A){const se=o.getText(),he=se.lastIndexOf("-",n.range[0]-1);if(he>=0){const Se=l.end.character-l.start.character;ee=" "+se.slice(he+1,n.range[1]-Se)}}ee+=this.arrayPrefixIndentation;let B;re.type==="array"&&(B=n.items.find(se=>Xe(se.key)&&se.key.range&&se.key.value===W&&Xe(se.value)&&!se.value.value&&o.getPosition(se.key.range[2]).line===l.end.line-1))&&B&&(Array.isArray(re.items)?this.addSchemaValueCompletions(re.items[0],s,i,{},"property"):typeof re.items=="object"&&re.items.type==="object"&&this.addArrayItemValueCompletion(re.items,s,i));let ae=W;(!W.startsWith(w)||!E)&&(ae=this.getInsertTextForProperty(W,re,s,ee+this.indentation));const te=Xe(r)&&r.value===null||Jt(r)&&r.items.length===0,X=((g=T.schema.required)==null?void 0:g.length)>0;(!this.parentSkeletonSelectedFirst||!te||!X)&&i.add({kind:Bn.Property,label:W,insertText:ae,insertTextFormat:an.Snippet,documentation:this.fromMarkup(re.markdownDescription)||re.description||""},M),(d=T.schema.required)!=null&&d.includes(W)&&i.add({label:W,insertText:this.getInsertTextForProperty(W,re,s,ee+this.indentation),insertTextFormat:an.Snippet,documentation:this.fromMarkup(re.markdownDescription)||re.description||"",parent:{schema:T.schema,indent:ee}})}}}}if(j&&Gt(j)&&av(T.schema)&&this.addSchemaValueCompletions(T.schema,s,i,{},"property",Array.isArray(j.items)),T.schema.propertyNames&&T.schema.additionalProperties&&T.schema.type==="object"){const K=bn(T.schema.propertyNames),W=K.title||"property";i.add({kind:Bn.Property,label:W,insertText:`\${1:${W}}: `,insertTextFormat:an.Snippet,documentation:this.fromMarkup(K.markdownDescription)||K.description||""})}}j&&T.node.internalNode===j&&T.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(T.schema,s,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(T.schema,s,i,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,s,i,o,l){let u=null;if(n&&Xe(n)&&(n=t.getParent(n)),!n){this.addSchemaValueCompletions(e.schema,"",i,o,"value");return}if(Nt(n)){const c=n.value;if(c&&c.range&&r>c.range[0]+c.range[2])return;u=Xe(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(u!==null||Gt(n))){const c="",g=t.getMatchingSchemas(e.schema,-1,null,l);for(const d of g)if(d.node.internalNode===n&&!d.inverted&&d.schema){if(d.schema.items&&(this.collectDefaultSnippets(d.schema,c,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Gt(n)&&n.items))if(Array.isArray(d.schema.items)){const y=this.findItemAtOffset(n,s,r);y<d.schema.items.length&&this.addSchemaValueCompletions(d.schema.items[y],c,i,o,"value")}else typeof d.schema.items=="object"&&(d.schema.items.type==="object"||Xf(d.schema.items))?this.addSchemaValueCompletions(d.schema.items,c,i,o,"value",!0):this.addSchemaValueCompletions(d.schema.items,c,i,o,"value");if(d.schema.properties){const y=d.schema.properties[u];y&&this.addSchemaValueCompletions(y,c,i,o,"value")}d.schema.additionalProperties&&this.addSchemaValueCompletions(d.schema.additionalProperties,c,i,o,"value")}o.boolean&&(this.addBooleanValueCompletion(!0,c,i),this.addBooleanValueCompletion(!1,c,i)),o.null&&this.addNullValueCompletion(c,i)}}addArrayItemValueCompletion(e,t,n,r){const s=Kf(e),i=`- ${this.getInsertTextForObject(e,t).insertText.trimLeft()}`,o=s?" type `"+s+"`":"",l=e.description?" ("+e.description+")":"",u=this.getDocumentationWithMarkdownText(`Create an item of an array${o}${l}`,i);n.add({kind:this.getSuggestionKind(e.type),label:"- (array item) "+(s||r),documentation:u,insertText:i,insertTextFormat:an.Snippet})}getInsertTextForProperty(e,t,n,r=this.indentation){const s=this.getInsertTextForValue(e,"","string"),i=s+":";let o,l=0;if(t){let u=Array.isArray(t.type)?t.type[0]:t.type;if(u||(t.properties?u="object":t.items?u="array":t.anyOf&&(u="anyOf")),Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const c=t.defaultSnippets[0].body;Bs(c)&&(o=this.getInsertTextForSnippetValue(c,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),!o.startsWith(" ")&&!o.startsWith(`
380
- `)&&(o=" "+o))}l+=t.defaultSnippets.length}if(t.enum&&(!o&&t.enum.length===1&&(o=" "+this.getInsertTextForGuessedValue(t.enum[0],"",u)),l+=t.enum.length),t.const&&(o||(o=this.getInsertTextForGuessedValue(t.const,"",u),o=AD(o),o=" "+o),l++),Bs(t.default)&&(o||(o=" "+this.getInsertTextForGuessedValue(t.default,"",u)),l++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=" "+this.getInsertTextForGuessedValue(t.examples[0],"",u)),l+=t.examples.length),t.properties)return`${i}
381
- ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${i}
382
- ${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(l===0)switch(u){case"boolean":o=" $1";break;case"string":o=" $1";break;case"object":o=`
383
- ${r}`;break;case"array":o=`
384
- ${r}- `;break;case"number":case"integer":o=" ${1:0}";break;case"null":o=" ${1:null}";break;case"anyOf":o=" $1";break;default:return s}}return(!o||l>1)&&(o=" $1"),i+o+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let s="";return e.properties?(Object.keys(e.properties).forEach(i=>{const o=e.properties[i];let l=Array.isArray(o.type)?o.type[0]:o.type;if(l||(o.anyOf&&(l="anyOf"),o.properties&&(l="object"),o.items&&(l="array")),e.required&&e.required.indexOf(i)>-1)switch(l){case"boolean":case"string":case"number":case"integer":case"anyOf":{let u=o.default||o.const;u?(l==="string"&&(u=Ja(u)),s+=`${n}${i}: \${${r++}:${u}}
385
- `):s+=`${n}${i}: $${r++}
386
- `;break}case"array":{const u=this.getInsertTextForArray(o.items,t,r++,n),c=u.insertText.split(`
387
- `);let g=u.insertText;if(c.length>1){for(let d=1;d<c.length;d++){const y=c[d];c[d]=` ${y}`}g=c.join(`
388
- `)}r=u.insertIndex,s+=`${n}${i}:
389
- ${n}${this.indentation}- ${g}
390
- `}break;case"object":{const u=this.getInsertTextForObject(o,t,`${n}${this.indentation}`,r++);r=u.insertIndex,s+=`${n}${i}:
391
- ${u.insertText}
392
- `}break}else if(!this.disableDefaultProperties&&o.default!==void 0)switch(l){case"boolean":case"number":case"integer":s+=`${n}${i==="null"?this.getInsertTextForValue(i,"","string"):i}: \${${r++}:${o.default}}
393
- `;break;case"string":s+=`${n}${i}: \${${r++}:${Ja(o.default)}}
394
- `;break}}),s.trim().length===0&&(s=`${n}$${r++}
395
- `),s=s.trimRight()+t,{insertText:s,insertIndex:r}):(s=`${n}$${r++}
396
- `,{insertText:s,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let s="";if(!e)return s=`$${n++}`,{insertText:s,insertIndex:n};let i=Array.isArray(e.type)?e.type[0]:e.type;switch(i||(e.properties&&(i="object"),e.items&&(i="array")),e.type){case"boolean":s=`\${${n++}:false}`;break;case"number":case"integer":s=`\${${n++}:0}`;break;case"string":s=`\${${n++}}`;break;case"object":{const o=this.getInsertTextForObject(e,t,`${r} `,n++);s=o.insertText.trimLeft(),n=o.insertIndex}break}return{insertText:s,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case"string":{let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),n==="string"&&(r=Ja(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t,n){if(e===null)return"null";switch(typeof e){case"object":{const r=this.indentation;return this.getInsertTemplateForValue(e,r,{index:1},t)}case"number":case"boolean":return this.getInsertTextForPlainText(e+t)}return n=Array.isArray(n)?n[0]:n,n==="string"&&(e=Ja(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let s=`
397
- `;for(const i of e)s+=`${t}- \${${n.index++}:${i}}
398
- `;return s}else if(typeof e=="object"){let s=`
399
- `;for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=e[i];s+=`${t}\${${n.index++}:${i}}:`;let l;typeof o=="object"?l=`${this.getInsertTemplateForValue(o,t+this.indentation,n,r)}`:l=` \${${n.index++}:${this.getInsertTextForPlainText(o+r)}}
400
- `,s+=`${l}`}return s}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,s,i){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n,i),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),i&&s==="value"&&!Xf(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach(o=>this.addSchemaValueCompletions(o,t,n,r,s,i)),Array.isArray(e.anyOf)&&e.anyOf.forEach(o=>this.addSchemaValueCompletions(o,t,n,r,s,i)),Array.isArray(e.oneOf)&&e.oneOf.forEach(o=>this.addSchemaValueCompletions(o,t,n,r,s,i)))}collectTypes(e,t){if(Array.isArray(e.enum)||Bs(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(function(r){return t[r]=!0}):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let s=!1;if(Bs(e.default)){let i=e.type,o=e.default;for(let u=r;u>0;u--)o=[o],i="array";let l;typeof o=="object"?l="Default value":l=o.toString().replace(Ng,'"'),n.add({kind:this.getSuggestionKind(i),label:l,insertText:this.getInsertTextForValue(o,t,i),insertTextFormat:an.Snippet,detail:wD("json.suggest.default","Default value")}),s=!0}Array.isArray(e.examples)&&e.examples.forEach(i=>{let o=e.type,l=i;for(let u=r;u>0;u--)l=[l],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(l),insertText:this.getInsertTextForValue(l,t,o),insertTextFormat:an.Snippet}),s=!0}),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),!s&&typeof e.items=="object"&&!Array.isArray(e.items)&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(Bs(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:an.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let s=0,i=e.enum.length;s<i;s++){const o=e.enum[s];let l=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&s<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?l=this.fromMarkup(e.markdownEnumDescriptions[s]):e.enumDescriptions&&s<e.enumDescriptions.length&&(l=e.enumDescriptions[s]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t,e.type),insertTextFormat:an.Snippet,documentation:l})}}getLabelForValue(e){return e===null?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r,s=0){if(Array.isArray(e.defaultSnippets))for(const i of e.defaultSnippets){let o=e.type,l=i.body,u=i.label,c,g;if(Bs(l)){const d=i.type||e.type;if(s===0&&d==="array"){const w={};Object.keys(l).forEach((k,A)=>{A===0&&!k.startsWith("-")?w[`- ${k}`]=l[k]:w[` ${k}`]=l[k]}),l=w}const y=Object.keys(n.proposed).filter(w=>n.proposed[w].label===Ga);if(c=this.getInsertTextForSnippetValue(l,t,r,y),c===""&&l)continue;u=u||this.getLabelForSnippetValue(l)}else if(typeof i.bodyText=="string"){let d="",y="",w="";for(let k=s;k>0;k--)d=d+w+`[
401
- `,y=y+`
402
- `+w+"]",w+=this.indentation,o="array";c=d+w+i.bodyText.split(`
403
- `).join(`
404
- `+w)+y+t,u=u||c,g=c.replace(/[\n]/g,"")}n.add({kind:i.suggestionKind||this.getSuggestionKind(o),label:u,sortText:i.sortText||i.label,documentation:this.fromMarkup(i.markdownDescription)||i.description,insertText:c,insertTextFormat:an.Snippet,filterText:g})}}getInsertTextForSnippetValue(e,t,n,r,s){return fl(e,"",o=>{if(typeof o=="string"){if(o[0]==="^")return o.substr(1);if(o==="true"||o==="false")return`"${o}"`}return o},{...n,indentation:this.indentation,existingProps:r},s)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:an.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:an.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){dg(this.customTags).forEach(n=>{const r=n.split(" ")[0];this.addCustomTagValueCompletion(e," ",r)})}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:an.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,(r,s)=>s).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}
405
- \`\`\`
406
- ${t}
407
- \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Bn.Value;switch(e){case"string":return Bn.Value;case"object":return Bn.Module;case"property":return Bn.Property;default:return Bn.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&`
408
- \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:Qr.Markdown,value:e}}doesSupportMarkdown(){if(this.supportsMarkdown===void 0){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&e.completionItem.documentationFormat.indexOf(Qr.Markdown)!==-1}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let r=e.items.length-1;r>=0;r--){const s=e.items[r];if(St(s)&&s.range){if(n>s.range[1])return r;if(n>=s.range[0])return r}}return 0}},ED=/^\d+$/;function Ja(e){let t;if(typeof e=="string"?t=e:t=""+e,t.length===0)return t;if(t==="true"||t==="false"||t==="null"||ED.test(t))return`"${t}"`;t.indexOf('"')!==-1&&(t=t.replace(Ng,'"'));let n=!isNaN(parseInt(t))||t.charAt(0)==="@";if(!n){let r=t.indexOf(":",0);for(;r>0&&r<t.length;r=t.indexOf(":",r+1)){if(r===t.length-1){n=!0;break}const s=t.charAt(r+1);if(s===" "||s===" "){n=!0;break}}}return n&&(t=`"${t}"`),t}function AD(e){return e.replace(/\$\{1:(.*)\}/,"$1")}function ND(e){return"parent"in e}var xD=class{constructor(e){this.telemetry=e}getDefinition(e,t){var n;try{const r=br.getYamlDocument(e),s=e.offsetAt(t.position),i=Gl(s,r);if(i){const[o]=i.getNodeFromPosition(s,new Ys(e));if(o&&Fr(o)){const l=o.resolve(i.internalDocument);if(l&&l.range){const u=ze.create(e.positionAt(l.range[0]),e.positionAt(l.range[2])),c=ze.create(e.positionAt(l.range[0]),e.positionAt(l.range[1]));return[Df.create(e.uri,u,c)]}}}}catch(r){(n=this.telemetry)==null||n.sendError("yaml.definition.error",r)}}};function LD(e,t){const n=br.getYamlDocument(e);return t.map(o=>{const l=r(o);let u;for(const c of l)u=Fl.create(c,u);return u??Fl.create({start:o,end:o})});function r(o){const l=e.offsetAt(o),u=[];for(const c of n.documents){let g,d;for(c.visit(y=>{const w=y.offset+y.length;if(w<l||i(w-1,w)===`
409
- `&&w-1<l)return!0;let k=y.offset;if(k>l){const A=s(y,o);if(!A||A>l)return!0;k=A}return(!g||k>=g.offset)&&(g=y,d=k),!0});g;){const y=d??g.offset,w=g.offset+g.length,k={start:e.positionAt(y),end:e.positionAt(w)},A=e.getText(k),E=CD(A),P=y+E.length;P>=l&&(k.end=e.positionAt(P));const j=(H,z)=>E.startsWith(H)&&E.endsWith(z||H);(g.type==="string"&&(j("'")||j('"'))||g.type==="object"&&j("{","}")||g.type==="array"&&j("[","]"))&&u.push({start:e.positionAt(y+1),end:e.positionAt(w-1)}),u.push(k),g=g.parent,d=void 0}if(u.length>0)break}return u.reverse()}function s(o,l){var u;const c=e.positionAt(o.offset);if(c.line===l.line){if(((u=o.parent)==null?void 0:u.type)==="array"&&i(o.offset-2,o.offset)==="- ")return o.offset-2;if(o.type==="array"||o.type==="object"){const g={line:c.line,character:0};if(e.getText({start:g,end:c}).trim().length===0)return e.offsetAt(g)}}}function i(o,l){return e.getText({start:e.positionAt(o),end:e.positionAt(l)})}}function CD(e){return e.endsWith(`\r
410
- `)?e.substring(0,e.length-2):e.endsWith(`
411
- `)?e.substring(0,e.length-1):e}var rh;(function(e){e[e.SchemaStore=1]="SchemaStore",e[e.SchemaAssociation=2]="SchemaAssociation",e[e.Settings=3]="Settings"})(rh||(rh={}));function kD(e){const t=new Qv(e.schemaRequestService,e.workspaceContext),n=new SD(t,e.clientCapabilities,br,e.telemetry),r=new Xv(t,e.telemetry),s=new Kv(t,e.telemetry),i=new aD(t,e.telemetry),o=new lD,l=new dD(e.clientCapabilities),u=new pD(t,e.telemetry),c=new uD(e.telemetry),g=new xD(e.telemetry);return{configure:d=>{t.clearExternalSchemas(),d.schemas&&(t.schemaPriorityMapping=new Map,d.schemas.forEach(y=>{const w=y.priority?y.priority:0;t.addSchemaPriority(y.uri,w),t.registerExternalSchema(y.uri,y.fileMatch,y.schema,y.name,y.description,y.versions)})),i.configure(d),r.configure(d),n.configure(d),o.configure(d),l.configure(d)},registerCustomSchemaProvider:d=>{t.registerCustomSchemaProvider(d)},findLinks:c.findLinks.bind(c),doComplete:n.doComplete.bind(n),doValidation:i.doValidation.bind(i),doHover:r.doHover.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findHierarchicalDocumentSymbols.bind(s),doDefinition:g.getDefinition.bind(g),resetSchema:d=>t.onResourceChange(d),doFormat:o.format.bind(o),doDocumentOnTypeFormatting:mD,addSchema:(d,y)=>t.saveSchema(d,y),deleteSchema:d=>t.deleteSchema(d),modifySchemaContent:d=>t.addContent(d),deleteSchemaContent:d=>t.deleteContent(d),deleteSchemasWhole:d=>t.deleteSchemas(d),getFoldingRanges:cD,getSelectionRanges:LD,getCodeAction:(d,y)=>l.getCodeAction(d,y),getCodeLens:d=>u.getCodeLens(d),resolveCodeLens:d=>u.resolveCodeLens(d)}}async function _D(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}var FD={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}},TD={resolveRelativePath(e,t){return String(new URL(e,t))}};Dy((e,{enableSchemaRequest:t,...n})=>{const r=kD({schemaRequestService:t?_D:null,telemetry:FD,workspaceContext:TD,clientCapabilities:{textDocument:{completion:{completionItem:{commitCharactersSupport:!0,documentationFormat:["markdown","plaintext"]}},moniker:{}}}}),s=i=>(o,...l)=>{const u=e.getMirrorModels();for(const c of u)if(String(c.uri)===o)return i(pf.create(o,"yaml",c.version,c.getValue()),...l)};return r.configure(n),{doValidation:s(i=>r.doValidation(i,!!n.isKubernetes)),doComplete:s((i,o)=>r.doComplete(i,o,!!n.isKubernetes)),doDefinition:s((i,o)=>r.doDefinition(i,{position:o,textDocument:i})),doDocumentOnTypeFormatting:s((i,o,l,u)=>r.doDocumentOnTypeFormatting(i,{ch:l,options:u,position:o,textDocument:i})),doHover:s(r.doHover),format:s(r.doFormat),resetSchema:r.resetSchema,findDocumentSymbols:s(r.findDocumentSymbols2),findLinks:s(r.findLinks),getCodeAction:s((i,o,l)=>r.getCodeAction(i,{range:o,textDocument:i,context:l})),getFoldingRanges:s(i=>r.getFoldingRanges(i,{lineFoldingOnly:!0})),getSelectionRanges:s(r.getSelectionRanges)}});