@emailmaker/emailmaker 1.0.32 → 1.0.33

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 (390) hide show
  1. package/README.md +1 -1
  2. package/iframe/{iframe-eblock.eefae9b7403d0fa06227.html → iframe-eblock.a8bef4943d19ed8120eb.html} +1 -1
  3. package/iframe/{iframe.eefae9b7403d0fa06227.html → iframe.a8bef4943d19ed8120eb.html} +1 -1
  4. package/iframe/js/cssbeautify.js +1 -1
  5. package/iframe/sandbox-eblock.js +1 -1
  6. package/iframe/sandbox.js +1 -1
  7. package/package.json +1 -1
  8. package/asset-manifest.json +0 -373
  9. package/css.worker.js +0 -2
  10. package/css.worker.js.LICENSE.txt +0 -6
  11. package/editor.worker.js +0 -1
  12. package/emailmaker-esm.js +0 -1
  13. package/emailmaker.d.ts +0 -1055
  14. package/emailmaker.js +0 -1
  15. package/html.worker.js +0 -2
  16. package/html.worker.js.LICENSE.txt +0 -14
  17. package/json.worker.js +0 -2
  18. package/json.worker.js.LICENSE.txt +0 -6
  19. package/plugin.html +0 -273
  20. package/plugin_blocks_test.html +0 -144
  21. package/plugin_default.html +0 -56
  22. package/plugin_s.html +0 -31
  23. package/static/css/1795.3b54559d.css +0 -1
  24. package/static/css/2256.d0db3199.css +0 -1
  25. package/static/css/3215.3a2b7cfe.css +0 -1
  26. package/static/css/4877.237f7f6b.css +0 -1
  27. package/static/css/5571.4415a91e.css +0 -1
  28. package/static/css/698.9a48c3be.css +0 -1
  29. package/static/css/984.b0f773d2.css +0 -1
  30. package/static/js/1028.4360e11f.js +0 -1
  31. package/static/js/1052.d1f85a29.js +0 -1
  32. package/static/js/1101.c32ce4f7.chunk.js +0 -2
  33. package/static/js/1101.c32ce4f7.chunk.js.LICENSE.txt +0 -6
  34. package/static/js/119.9a0f51df.chunk.js +0 -2
  35. package/static/js/119.9a0f51df.chunk.js.LICENSE.txt +0 -6
  36. package/static/js/1197.7e9444b1.js +0 -1
  37. package/static/js/1212.15b852ca.js +0 -1
  38. package/static/js/127.9f5a0761.chunk.js +0 -2
  39. package/static/js/127.9f5a0761.chunk.js.LICENSE.txt +0 -6
  40. package/static/js/1271.d2ba7d58.chunk.js +0 -2
  41. package/static/js/1271.d2ba7d58.chunk.js.LICENSE.txt +0 -6
  42. package/static/js/1283.b7058deb.chunk.js +0 -2
  43. package/static/js/1283.b7058deb.chunk.js.LICENSE.txt +0 -6
  44. package/static/js/1307.74cb7b10.js +0 -1
  45. package/static/js/1366.f647b62f.js +0 -2
  46. package/static/js/1366.f647b62f.js.LICENSE.txt +0 -6
  47. package/static/js/1399.cb6eb2fa.js +0 -1
  48. package/static/js/1403.68211890.js +0 -1
  49. package/static/js/1472.c8712709.js +0 -1
  50. package/static/js/1619.bb9c2d4f.chunk.js +0 -2
  51. package/static/js/1619.bb9c2d4f.chunk.js.LICENSE.txt +0 -6
  52. package/static/js/1663.cd15901b.chunk.js +0 -2
  53. package/static/js/1663.cd15901b.chunk.js.LICENSE.txt +0 -6
  54. package/static/js/1667.101647da.js +0 -1
  55. package/static/js/1729.b71e4a99.chunk.js +0 -1
  56. package/static/js/1792.f185436f.js +0 -1
  57. package/static/js/1795.a481592d.js +0 -1
  58. package/static/js/1818.053eb89f.chunk.js +0 -2
  59. package/static/js/1818.053eb89f.chunk.js.LICENSE.txt +0 -6
  60. package/static/js/1821.a8efb62e.chunk.js +0 -2
  61. package/static/js/1821.a8efb62e.chunk.js.LICENSE.txt +0 -6
  62. package/static/js/197.a135382e.js +0 -1
  63. package/static/js/2016.e08ef9ce.js +0 -1
  64. package/static/js/2029.041a1c1a.chunk.js +0 -2
  65. package/static/js/2029.041a1c1a.chunk.js.LICENSE.txt +0 -6
  66. package/static/js/2179.73130a54.chunk.js +0 -2
  67. package/static/js/2179.73130a54.chunk.js.LICENSE.txt +0 -6
  68. package/static/js/222.280bf6b3.js +0 -1
  69. package/static/js/2223.17806e9a.js +0 -2
  70. package/static/js/2223.17806e9a.js.LICENSE.txt +0 -10
  71. package/static/js/2225.d78bdfb7.js +0 -1
  72. package/static/js/2256.225fba63.js +0 -1
  73. package/static/js/227.5fd33eeb.chunk.js +0 -2
  74. package/static/js/227.5fd33eeb.chunk.js.LICENSE.txt +0 -10
  75. package/static/js/2464.2c009f8c.js +0 -2
  76. package/static/js/2464.2c009f8c.js.LICENSE.txt +0 -6
  77. package/static/js/2475.c86d0c20.chunk.js +0 -2
  78. package/static/js/2475.c86d0c20.chunk.js.LICENSE.txt +0 -6
  79. package/static/js/2547.9cdcf5fd.chunk.js +0 -2
  80. package/static/js/2547.9cdcf5fd.chunk.js.LICENSE.txt +0 -6
  81. package/static/js/2581.4558746b.chunk.js +0 -2
  82. package/static/js/2581.4558746b.chunk.js.LICENSE.txt +0 -6
  83. package/static/js/2582.d77da683.js +0 -2
  84. package/static/js/2582.d77da683.js.LICENSE.txt +0 -31
  85. package/static/js/2642.53da04d8.js +0 -1
  86. package/static/js/2675.dbe09fe1.chunk.js +0 -2
  87. package/static/js/2675.dbe09fe1.chunk.js.LICENSE.txt +0 -6
  88. package/static/js/2851.fea52359.chunk.js +0 -2
  89. package/static/js/2851.fea52359.chunk.js.LICENSE.txt +0 -6
  90. package/static/js/2896.fac80e3c.js +0 -2
  91. package/static/js/2896.fac80e3c.js.LICENSE.txt +0 -6
  92. package/static/js/2935.c0d4b469.chunk.js +0 -2
  93. package/static/js/2935.c0d4b469.chunk.js.LICENSE.txt +0 -6
  94. package/static/js/2951.3f25f72c.chunk.js +0 -2
  95. package/static/js/2951.3f25f72c.chunk.js.LICENSE.txt +0 -6
  96. package/static/js/3041.e05fa027.js +0 -1
  97. package/static/js/3068.591718b0.chunk.js +0 -2
  98. package/static/js/3068.591718b0.chunk.js.LICENSE.txt +0 -6
  99. package/static/js/3142.6792174f.js +0 -1
  100. package/static/js/3148.2e2f27ce.js +0 -1
  101. package/static/js/3299.983ba49b.chunk.js +0 -2
  102. package/static/js/3299.983ba49b.chunk.js.LICENSE.txt +0 -6
  103. package/static/js/3303.576ded0e.js +0 -1
  104. package/static/js/3447.2a559817.chunk.js +0 -2
  105. package/static/js/3447.2a559817.chunk.js.LICENSE.txt +0 -6
  106. package/static/js/353.3e6b29fb.js +0 -1
  107. package/static/js/3555.3ae2b597.chunk.js +0 -2
  108. package/static/js/3555.3ae2b597.chunk.js.LICENSE.txt +0 -6
  109. package/static/js/3651.8f2624f3.js +0 -1
  110. package/static/js/3682.d155b110.js +0 -2
  111. package/static/js/3682.d155b110.js.LICENSE.txt +0 -18
  112. package/static/js/3683.9414adf5.chunk.js +0 -2
  113. package/static/js/3683.9414adf5.chunk.js.LICENSE.txt +0 -6
  114. package/static/js/3704.aef08abb.js +0 -1
  115. package/static/js/3763.5f775790.chunk.js +0 -2
  116. package/static/js/3763.5f775790.chunk.js.LICENSE.txt +0 -6
  117. package/static/js/3768.f13fcea4.js +0 -1
  118. package/static/js/393.2f571faf.chunk.js +0 -2
  119. package/static/js/393.2f571faf.chunk.js.LICENSE.txt +0 -6
  120. package/static/js/3960.89f3c9f4.chunk.js +0 -2
  121. package/static/js/3960.89f3c9f4.chunk.js.LICENSE.txt +0 -6
  122. package/static/js/3991.d0073826.js +0 -1
  123. package/static/js/4001.0602b191.chunk.js +0 -2
  124. package/static/js/4001.0602b191.chunk.js.LICENSE.txt +0 -6
  125. package/static/js/4047.25747214.chunk.js +0 -2
  126. package/static/js/4047.25747214.chunk.js.LICENSE.txt +0 -6
  127. package/static/js/4087.48b614cb.js +0 -1
  128. package/static/js/4122.efa76a71.js +0 -1
  129. package/static/js/4159.cd6afba9.chunk.js +0 -2
  130. package/static/js/4159.cd6afba9.chunk.js.LICENSE.txt +0 -6
  131. package/static/js/4231.0dca1f81.js +0 -1
  132. package/static/js/4299.440bc3d2.chunk.js +0 -2
  133. package/static/js/4299.440bc3d2.chunk.js.LICENSE.txt +0 -6
  134. package/static/js/4325.e27cebb3.chunk.js +0 -2
  135. package/static/js/4325.e27cebb3.chunk.js.LICENSE.txt +0 -6
  136. package/static/js/4384.d7dc931a.js +0 -2
  137. package/static/js/4384.d7dc931a.js.LICENSE.txt +0 -15
  138. package/static/js/4417.4b3f75b4.chunk.js +0 -2
  139. package/static/js/4417.4b3f75b4.chunk.js.LICENSE.txt +0 -6
  140. package/static/js/4498.0767c1ee.js +0 -1
  141. package/static/js/451.d254d20c.chunk.js +0 -2
  142. package/static/js/451.d254d20c.chunk.js.LICENSE.txt +0 -6
  143. package/static/js/4627.cedc745b.chunk.js +0 -2
  144. package/static/js/4627.cedc745b.chunk.js.LICENSE.txt +0 -6
  145. package/static/js/4805.1ac956f6.js +0 -1
  146. package/static/js/4845.c3ae91f2.js +0 -1
  147. package/static/js/4867.ae5eb9c0.chunk.js +0 -2
  148. package/static/js/4867.ae5eb9c0.chunk.js.LICENSE.txt +0 -6
  149. package/static/js/4877.6ed62a0e.js +0 -1
  150. package/static/js/51.0157cb43.chunk.js +0 -2
  151. package/static/js/51.0157cb43.chunk.js.LICENSE.txt +0 -6
  152. package/static/js/515.16219a24.js +0 -2
  153. package/static/js/515.16219a24.js.LICENSE.txt +0 -6
  154. package/static/js/5243.c58a8a21.chunk.js +0 -2
  155. package/static/js/5243.c58a8a21.chunk.js.LICENSE.txt +0 -6
  156. package/static/js/5315.1a03f762.chunk.js +0 -2
  157. package/static/js/5315.1a03f762.chunk.js.LICENSE.txt +0 -6
  158. package/static/js/5319.92df1268.js +0 -1
  159. package/static/js/5339.df02c3e0.chunk.js +0 -2
  160. package/static/js/5339.df02c3e0.chunk.js.LICENSE.txt +0 -6
  161. package/static/js/5445.7db0b349.chunk.js +0 -2
  162. package/static/js/5445.7db0b349.chunk.js.LICENSE.txt +0 -6
  163. package/static/js/5475.dc9057be.chunk.js +0 -2
  164. package/static/js/5475.dc9057be.chunk.js.LICENSE.txt +0 -6
  165. package/static/js/5491.d8b1b7b0.chunk.js +0 -2
  166. package/static/js/5491.d8b1b7b0.chunk.js.LICENSE.txt +0 -6
  167. package/static/js/5497.a3910de2.js +0 -1
  168. package/static/js/5571.11726031.js +0 -1
  169. package/static/js/577.ca8a62c4.chunk.js +0 -2
  170. package/static/js/577.ca8a62c4.chunk.js.LICENSE.txt +0 -6
  171. package/static/js/5796.4b4a1748.js +0 -2
  172. package/static/js/5796.4b4a1748.js.LICENSE.txt +0 -1
  173. package/static/js/5853.ce87dead.chunk.js +0 -2
  174. package/static/js/5853.ce87dead.chunk.js.LICENSE.txt +0 -6
  175. package/static/js/5873.5fdbcd6c.js +0 -1
  176. package/static/js/5916.3a56abae.js +0 -1
  177. package/static/js/5923.e8e7b96d.chunk.js +0 -2
  178. package/static/js/5923.e8e7b96d.chunk.js.LICENSE.txt +0 -6
  179. package/static/js/5927.4afcefc8.chunk.js +0 -1
  180. package/static/js/5957.d2ad88af.js +0 -2
  181. package/static/js/5957.d2ad88af.js.LICENSE.txt +0 -9
  182. package/static/js/5974.9d34d7d3.js +0 -1
  183. package/static/js/6021.7f32cea2.chunk.js +0 -2
  184. package/static/js/6021.7f32cea2.chunk.js.LICENSE.txt +0 -6
  185. package/static/js/6051.6cefb17a.chunk.js +0 -2
  186. package/static/js/6051.6cefb17a.chunk.js.LICENSE.txt +0 -6
  187. package/static/js/6075.38c621ae.chunk.js +0 -2
  188. package/static/js/6075.38c621ae.chunk.js.LICENSE.txt +0 -6
  189. package/static/js/6083.0ef791dc.chunk.js +0 -2
  190. package/static/js/6083.0ef791dc.chunk.js.LICENSE.txt +0 -6
  191. package/static/js/6091.804a3e5a.js +0 -2
  192. package/static/js/6091.804a3e5a.js.LICENSE.txt +0 -6
  193. package/static/js/6133.0da38de9.js +0 -1
  194. package/static/js/6154.eda7a5eb.js +0 -1
  195. package/static/js/6161.6a73be6e.chunk.js +0 -2
  196. package/static/js/6161.6a73be6e.chunk.js.LICENSE.txt +0 -6
  197. package/static/js/6242.14f46d39.js +0 -2
  198. package/static/js/6242.14f46d39.js.LICENSE.txt +0 -43
  199. package/static/js/6275.19545c93.chunk.js +0 -2
  200. package/static/js/6275.19545c93.chunk.js.LICENSE.txt +0 -6
  201. package/static/js/6300.1ed0e3a4.js +0 -1
  202. package/static/js/6547.377fc02b.chunk.js +0 -2
  203. package/static/js/6547.377fc02b.chunk.js.LICENSE.txt +0 -6
  204. package/static/js/6567.cad55045.js +0 -1
  205. package/static/js/6643.1eb62a36.chunk.js +0 -2
  206. package/static/js/6643.1eb62a36.chunk.js.LICENSE.txt +0 -6
  207. package/static/js/6691.1ee2f23b.chunk.js +0 -2
  208. package/static/js/6691.1ee2f23b.chunk.js.LICENSE.txt +0 -6
  209. package/static/js/6701.8bd3807d.chunk.js +0 -2
  210. package/static/js/6701.8bd3807d.chunk.js.LICENSE.txt +0 -6
  211. package/static/js/6739.22d13837.chunk.js +0 -2
  212. package/static/js/6739.22d13837.chunk.js.LICENSE.txt +0 -6
  213. package/static/js/687.147e9138.js +0 -1
  214. package/static/js/6915.e4ede32f.chunk.js +0 -2
  215. package/static/js/6915.e4ede32f.chunk.js.LICENSE.txt +0 -6
  216. package/static/js/698.aebcf9cd.js +0 -1
  217. package/static/js/7018.f481e3a0.js +0 -1
  218. package/static/js/7051.c0c7cf26.chunk.js +0 -2
  219. package/static/js/7051.c0c7cf26.chunk.js.LICENSE.txt +0 -6
  220. package/static/js/7059.9c893bc0.chunk.js +0 -2
  221. package/static/js/7059.9c893bc0.chunk.js.LICENSE.txt +0 -6
  222. package/static/js/7187.7e67eebe.chunk.js +0 -2
  223. package/static/js/7187.7e67eebe.chunk.js.LICENSE.txt +0 -6
  224. package/static/js/721.4c6f728a.chunk.js +0 -2
  225. package/static/js/721.4c6f728a.chunk.js.LICENSE.txt +0 -6
  226. package/static/js/7471.fe46efd9.js +0 -1
  227. package/static/js/7533.a49f7784.js +0 -1
  228. package/static/js/7635.9d5d1322.chunk.js +0 -2
  229. package/static/js/7635.9d5d1322.chunk.js.LICENSE.txt +0 -6
  230. package/static/js/7698.f82d28d4.js +0 -1
  231. package/static/js/7779.0d221377.chunk.js +0 -2
  232. package/static/js/7779.0d221377.chunk.js.LICENSE.txt +0 -6
  233. package/static/js/7795.c0e8c528.chunk.js +0 -2
  234. package/static/js/7795.c0e8c528.chunk.js.LICENSE.txt +0 -6
  235. package/static/js/7824.e0daa1f7.chunk.js +0 -1
  236. package/static/js/7963.a4acc856.chunk.js +0 -2
  237. package/static/js/7963.a4acc856.chunk.js.LICENSE.txt +0 -6
  238. package/static/js/8003.a4a62303.chunk.js +0 -2
  239. package/static/js/8003.a4a62303.chunk.js.LICENSE.txt +0 -6
  240. package/static/js/8015.b608b9db.chunk.js +0 -2
  241. package/static/js/8015.b608b9db.chunk.js.LICENSE.txt +0 -6
  242. package/static/js/8030.0b457006.js +0 -1
  243. package/static/js/8075.bea74e99.js +0 -1
  244. package/static/js/8179.acf16a1a.chunk.js +0 -1
  245. package/static/js/823.48325ac1.js +0 -2
  246. package/static/js/823.48325ac1.js.LICENSE.txt +0 -7
  247. package/static/js/8236.bdefaa6b.js +0 -2
  248. package/static/js/8236.bdefaa6b.js.LICENSE.txt +0 -42
  249. package/static/js/8309.7e81b18b.js +0 -1
  250. package/static/js/8319.7ea4b259.chunk.js +0 -2
  251. package/static/js/8319.7ea4b259.chunk.js.LICENSE.txt +0 -6
  252. package/static/js/8345.e3795419.js +0 -1
  253. package/static/js/851.23920710.chunk.js +0 -2
  254. package/static/js/851.23920710.chunk.js.LICENSE.txt +0 -6
  255. package/static/js/8671.6a83db75.js +0 -1
  256. package/static/js/8679.f65e4d91.chunk.js +0 -2
  257. package/static/js/8679.f65e4d91.chunk.js.LICENSE.txt +0 -6
  258. package/static/js/8689.5fdcff24.chunk.js +0 -1
  259. package/static/js/8694.60896e26.js +0 -1
  260. package/static/js/8696.301b3f9b.js +0 -1
  261. package/static/js/8738.3ba7b2e7.js +0 -2
  262. package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
  263. package/static/js/8740.a2a83fd4.js +0 -1
  264. package/static/js/8779.f6f8b6f7.chunk.js +0 -2
  265. package/static/js/8779.f6f8b6f7.chunk.js.LICENSE.txt +0 -6
  266. package/static/js/883.616a487d.chunk.js +0 -2
  267. package/static/js/883.616a487d.chunk.js.LICENSE.txt +0 -6
  268. package/static/js/8879.10db9af5.js +0 -2
  269. package/static/js/8879.10db9af5.js.LICENSE.txt +0 -86
  270. package/static/js/8881.ce638df9.chunk.js +0 -2
  271. package/static/js/8881.ce638df9.chunk.js.LICENSE.txt +0 -6
  272. package/static/js/8911.8253711c.chunk.js +0 -2
  273. package/static/js/8911.8253711c.chunk.js.LICENSE.txt +0 -6
  274. package/static/js/9005.62fb383a.chunk.js +0 -2
  275. package/static/js/9005.62fb383a.chunk.js.LICENSE.txt +0 -6
  276. package/static/js/9019.7efd13af.js +0 -2
  277. package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
  278. package/static/js/9055.1f85af27.js +0 -1
  279. package/static/js/9061.3366c9e5.js +0 -1
  280. package/static/js/9101.08739c9d.js +0 -1
  281. package/static/js/9267.67d8f2bb.chunk.js +0 -2
  282. package/static/js/9267.67d8f2bb.chunk.js.LICENSE.txt +0 -6
  283. package/static/js/9328.74394e00.js +0 -1
  284. package/static/js/9603.4321e1c5.chunk.js +0 -2
  285. package/static/js/9603.4321e1c5.chunk.js.LICENSE.txt +0 -6
  286. package/static/js/9649.ff98467b.js +0 -1
  287. package/static/js/9653.3c3fd842.js +0 -1
  288. package/static/js/9763.2e0a4d2d.chunk.js +0 -2
  289. package/static/js/9763.2e0a4d2d.chunk.js.LICENSE.txt +0 -6
  290. package/static/js/9796.52daf89f.js +0 -1
  291. package/static/js/9878.cca6854e.js +0 -2
  292. package/static/js/9878.cca6854e.js.LICENSE.txt +0 -8
  293. package/static/js/9898.93cc5558.chunk.js +0 -2
  294. package/static/js/9898.93cc5558.chunk.js.LICENSE.txt +0 -6
  295. package/static/js/9907.c26468b0.js +0 -1
  296. package/static/js/9935.52cd750c.chunk.js +0 -2
  297. package/static/js/9935.52cd750c.chunk.js.LICENSE.txt +0 -6
  298. package/static/js/ant-locale/locale0.fdb32a9f.chunk.js +0 -1
  299. package/static/js/ant-locale/locale1.5b1308da.chunk.js +0 -1
  300. package/static/js/ant-locale/locale10.f74ae841.chunk.js +0 -1
  301. package/static/js/ant-locale/locale11.cf703a34.chunk.js +0 -1
  302. package/static/js/ant-locale/locale13.9bcbe954.chunk.js +0 -1
  303. package/static/js/ant-locale/locale14.138842ea.chunk.js +0 -1
  304. package/static/js/ant-locale/locale15.e80eb12a.chunk.js +0 -1
  305. package/static/js/ant-locale/locale16.49bc0148.chunk.js +0 -1
  306. package/static/js/ant-locale/locale17.2daaf9a6.chunk.js +0 -1
  307. package/static/js/ant-locale/locale18.f9e62843.chunk.js +0 -1
  308. package/static/js/ant-locale/locale19.c98c053a.chunk.js +0 -1
  309. package/static/js/ant-locale/locale2.b54c0d79.chunk.js +0 -1
  310. package/static/js/ant-locale/locale20.b5cb6b02.chunk.js +0 -1
  311. package/static/js/ant-locale/locale21.7764c4b3.chunk.js +0 -1
  312. package/static/js/ant-locale/locale22.5cbb9959.chunk.js +0 -1
  313. package/static/js/ant-locale/locale23.2342f692.chunk.js +0 -1
  314. package/static/js/ant-locale/locale24.3c622cfa.chunk.js +0 -1
  315. package/static/js/ant-locale/locale25.7658de4e.chunk.js +0 -1
  316. package/static/js/ant-locale/locale26.b7e751bd.chunk.js +0 -1
  317. package/static/js/ant-locale/locale27.a47676d9.chunk.js +0 -1
  318. package/static/js/ant-locale/locale28.c89eee28.chunk.js +0 -1
  319. package/static/js/ant-locale/locale3.48f0afe7.chunk.js +0 -1
  320. package/static/js/ant-locale/locale30.4d3672db.chunk.js +0 -1
  321. package/static/js/ant-locale/locale31.406215d5.chunk.js +0 -1
  322. package/static/js/ant-locale/locale32.6167b5e8.chunk.js +0 -1
  323. package/static/js/ant-locale/locale33.4be05b3c.chunk.js +0 -1
  324. package/static/js/ant-locale/locale34.3813ab2f.chunk.js +0 -1
  325. package/static/js/ant-locale/locale35.d58b9c31.chunk.js +0 -1
  326. package/static/js/ant-locale/locale36.34d5c9ee.chunk.js +0 -1
  327. package/static/js/ant-locale/locale37.1c16e25b.chunk.js +0 -1
  328. package/static/js/ant-locale/locale38.dfa6d712.chunk.js +0 -1
  329. package/static/js/ant-locale/locale39.31c90381.chunk.js +0 -1
  330. package/static/js/ant-locale/locale4.e6fdd0ee.chunk.js +0 -1
  331. package/static/js/ant-locale/locale40.fe7ab935.chunk.js +0 -1
  332. package/static/js/ant-locale/locale41.4dee0621.chunk.js +0 -1
  333. package/static/js/ant-locale/locale42.7061d0fc.chunk.js +0 -1
  334. package/static/js/ant-locale/locale43.b3c810a8.chunk.js +0 -1
  335. package/static/js/ant-locale/locale44.df0a5a76.chunk.js +0 -1
  336. package/static/js/ant-locale/locale45.a7f6f97e.chunk.js +0 -1
  337. package/static/js/ant-locale/locale46.8f49c2cd.chunk.js +0 -1
  338. package/static/js/ant-locale/locale47.b84733ce.chunk.js +0 -1
  339. package/static/js/ant-locale/locale48.bfb8c2b3.chunk.js +0 -1
  340. package/static/js/ant-locale/locale49.c67382b7.chunk.js +0 -1
  341. package/static/js/ant-locale/locale5.b2b61134.chunk.js +0 -1
  342. package/static/js/ant-locale/locale50.6520fd45.chunk.js +0 -1
  343. package/static/js/ant-locale/locale51.9b89fb56.chunk.js +0 -1
  344. package/static/js/ant-locale/locale52.11d21631.chunk.js +0 -1
  345. package/static/js/ant-locale/locale53.cea142dd.chunk.js +0 -1
  346. package/static/js/ant-locale/locale54.16ef125d.chunk.js +0 -1
  347. package/static/js/ant-locale/locale55.b1a653c1.chunk.js +0 -1
  348. package/static/js/ant-locale/locale56.83c76bd5.chunk.js +0 -1
  349. package/static/js/ant-locale/locale57.e685764a.chunk.js +0 -1
  350. package/static/js/ant-locale/locale58.d003f49e.chunk.js +0 -1
  351. package/static/js/ant-locale/locale59.556522b5.chunk.js +0 -1
  352. package/static/js/ant-locale/locale60.bf3ddb83.chunk.js +0 -1
  353. package/static/js/ant-locale/locale61.30fe9720.chunk.js +0 -1
  354. package/static/js/ant-locale/locale62.b21e6edb.chunk.js +0 -1
  355. package/static/js/ant-locale/locale63.8e66417e.chunk.js +0 -1
  356. package/static/js/ant-locale/locale64.fdae6858.chunk.js +0 -1
  357. package/static/js/ant-locale/locale65.58003560.chunk.js +0 -1
  358. package/static/js/ant-locale/locale66.94ea41f2.chunk.js +0 -1
  359. package/static/js/ant-locale/locale68.8a9f32b5.chunk.js +0 -1
  360. package/static/js/ant-locale/locale69.27295717.chunk.js +0 -1
  361. package/static/js/ant-locale/locale7.1509b3e0.chunk.js +0 -1
  362. package/static/js/ant-locale/locale70.964bc038.chunk.js +0 -1
  363. package/static/js/ant-locale/locale71.99926e0d.chunk.js +0 -1
  364. package/static/js/ant-locale/locale8.134136c4.chunk.js +0 -1
  365. package/static/js/ant-locale/locale9.9b87d751.chunk.js +0 -1
  366. package/static/js/emailmaker_core.80378bf9.js +0 -1
  367. package/static/js/mergeTags/locale0.23c595c1.chunk.js +0 -1
  368. package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
  369. package/static/js/mocks.90ebae7c.chunk.js +0 -1
  370. package/static/media/ai-image.7c42c2e1.png +0 -0
  371. package/static/media/codicon.f13d28f3.ttf +0 -0
  372. package/static/media/empty-image.1827d656.png +0 -0
  373. package/static/media/frame_dark.318d7ed5.png +0 -0
  374. package/static/media/frame_light.22a9b4ec.png +0 -0
  375. package/static/media/frame_template_gallery.85693b39.png +0 -0
  376. package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +0 -1
  377. package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +0 -1
  378. package/static/media/sign_up_01.33327158.png +0 -0
  379. package/static/media/sign_up_01_blocks.5538cfdb.png +0 -0
  380. package/static/media/sign_up_02.d99d2aa6.png +0 -0
  381. package/static/media/sign_up_02_blocks.837fc2c9.png +0 -0
  382. package/static/media/sign_up_03.5545ffad.png +0 -0
  383. package/static/media/sign_up_03_blocks.126601f7.png +0 -0
  384. package/static/media/sign_up_04.398a4ca5.png +0 -0
  385. package/static/media/sign_up_04_blocks.255c5c07.png +0 -0
  386. package/static/media/sign_up_05.4c58df1b.png +0 -0
  387. package/static/media/sign_up_05_blocks.431b6844.png +0 -0
  388. package/static/media/video.854adea5.png +0 -0
  389. package/ts.worker.js +0 -2
  390. package/ts.worker.js.LICENSE.txt +0 -21
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7533],{87787:(e,t,i)=>{i.d(t,{Zt:()=>d});var n=i(86683),o=i(74832),s=i(24156),r=i(50051),a=i(68975),l=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class c{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function d(e,t,i,o){const r=e.ordered(t).map(((e,n)=>function(e,t,i,n,o){return l(this,void 0,void 0,(function*(){try{const s=yield Promise.resolve(e.provideHover(i,n,o));if(s&&function(e){const t="undefined"!==typeof e.range,i="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&i}(s))return new c(e,s,t)}catch(r){(0,s.M_)(r)}}))}(e,n,t,i,o)));return n.AE.fromPromises(r).coalesce()}(0,r.ke)("_executeHoverProvider",((e,t,i)=>function(e,t,i,n){return d(e,t,i,n).map((e=>e.hover)).toPromise()}(e.get(a.u).hoverProvider,t,i,o.X.None)))},49785:(e,t,i)=>{i.r(t),i.d(t,{ModesHoverController:()=>ce});var n=i(44948),o=i(26819),s=i(50051),r=i(15186),a=i(29671),l=i(19821),c=i(90237),d=i(38278),h=i(14486),u=i(39869),g=i(62612),p=i(28715),m=i(63404),f=i(86683),v=i(24156),_=i(74663),C=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))},b=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){(function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)})(n,o,(t=e[i](t)).done,t.value)}))}}};class w{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class L extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new _.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new f.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new f.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new f.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(54).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,f.bI)((e=>this._computer.computeAsync(e))),(()=>{C(this,void 0,void 0,(function*(){var e,t;try{try{for(var i,n=b(this._asyncIterable);!(i=yield n.next()).done;){const e=i.value;e&&(this._result.push(e),this._fireResult())}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&(yield t.call(n))}finally{if(e)throw e.error}}this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(s){(0,v.dz)(s)}}))})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new w(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}var y=i(1418),S=i(40350),x=i(93218),I=i(84278),k=i(89163),D=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}};const N=d.$;let R=class e extends o.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._widget=this._register(this._instantiationService.createInstance(E,this._editor)),this._isChangingDecorations=!1,this._messages=[],this._messagesAreComplete=!1,this._participants=[];for(const n of y.B2.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._computer=new O(this._editor,this._participants),this._hoverOperation=this._register(new L(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value,e.isComplete,e.hasLoadingMessage)}))),this._register(this._editor.onDidChangeModelDecorations((()=>{this._isChangingDecorations||this._onModelDecorationsChanged()}))),this._register(d.b2(this._widget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(m.dG.onDidChange((()=>{this._widget.position&&this._computer.anchor&&this._messages.length>0&&(this._widget.clear(),this._renderMessages(this._computer.anchor,this._messages))})))}_onModelDecorationsChanged(){this._widget.position&&(this._hoverOperation.cancel(),this._widget.isColorPickerVisible||this._hoverOperation.start(0))}maybeShowAt(e){const t=[];for(const n of this._participants)if(n.suggestHoverAnchor){const i=n.suggestHoverAnchor(e);i&&t.push(i)}const i=e.target;if(6===i.type&&t.push(new y.hx(0,i.range)),7===i.type){const e=this._editor.getOption(45).typicalHalfwidthCharacterWidth/2;!i.detail.isAfterLines&&"number"===typeof i.detail.horizontalDistanceToText&&i.detail.horizontalDistanceToText<e&&t.push(new y.hx(0,i.range))}return 0!==t.length&&(t.sort(((e,t)=>t.priority-e.priority)),this._startShowingAt(t[0],0,!1),!0)}startShowingAtRange(e,t,i){this._startShowingAt(new y.hx(0,e),t,i)}_startShowingAt(e,t,i){if(!this._computer.anchor||!this._computer.anchor.equals(e)){if(this._hoverOperation.cancel(),this._widget.position)if(this._computer.anchor&&e.canAdoptVisibleHover(this._computer.anchor,this._widget.position)){const t=this._messages.filter((t=>t.isValidForHoverAnchor(e)));if(0===t.length)this.hide();else{if(t.length===this._messages.length&&this._messagesAreComplete)return;this._renderMessages(e,t)}}else this.hide();this._computer.anchor=e,this._computer.shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._widget.hide()}isColorPickerVisible(){return this._widget.isColorPickerVisible}containsNode(e){return this._widget.getDomNode().contains(e)}_addLoadingMessage(e){if(this._computer.anchor)for(const t of this._participants)if(t.createLoadingMessage){const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e,t,i){this._messages=i?this._addLoadingMessage(e):e,this._messagesAreComplete=t,this._computer.anchor&&this._messages.length>0?this._renderMessages(this._computer.anchor,this._messages):t&&this.hide()}_renderMessages(t,i){const{showAtPosition:n,showAtRange:s,highlightRange:r}=e.computeHoverRanges(t.range,i),a=new o.Cm,l=a.add(new P(this._keybindingService)),c=document.createDocumentFragment();let d=null;const h={fragment:c,statusBar:l,setColorPicker:e=>d=e,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(const e of this._participants){const t=i.filter((t=>t.owner===e));t.length>0&&a.add(e.renderHoverParts(h,t))}if(l.hasContent&&c.appendChild(l.hoverElement),c.hasChildNodes()){if(r){const t=this._editor.createDecorationsCollection();try{this._isChangingDecorations=!0,t.set([{range:r,options:e._DECORATION_OPTIONS}])}finally{this._isChangingDecorations=!1}a.add((0,o.s)((()=>{try{this._isChangingDecorations=!0,t.clear()}finally{this._isChangingDecorations=!1}})))}this._widget.showAt(c,new T(d,n,s,this._editor.getOption(54).above,this._computer.shouldFocus,a))}else a.dispose()}static computeHoverRanges(e,t){const i=e.startLineNumber;let n=e.startColumn,o=e.endColumn,s=t[0].range,a=null;for(const l of t)s=r.Q.plusRange(s,l.range),l.range.startLineNumber===i&&l.range.endLineNumber===i&&(n=Math.min(n,l.range.startColumn),o=Math.max(o,l.range.endColumn)),l.forceShowAtRange&&(a=l.range);return{showAtPosition:a?a.getStartPosition():new g.y(e.startLineNumber,n),showAtRange:a||new r.Q(i,n,i,o),highlightRange:s}}};R._DECORATION_OPTIONS=p.kI.register({description:"content-hover-highlight",className:"hoverHighlight"}),R=D([M(1,x._Y),M(2,I.b)],R);class T{constructor(e,t,i,n,o,s){this.colorPicker=e,this.showAtPosition=t,this.showAtRange=i,this.preferAbove=n,this.stoleFocus=o,this.disposables=s}}let E=class e extends o.jG{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=a.R.hoverVisible.bindTo(this._contextKeyService),this._hover=this._register(new h.N),this._visibleData=null,this._register(this._editor.onDidLayoutChange((()=>this._layout()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(45)&&this._updateFont()}))),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this)}get position(){var e,t;return null!==(t=null===(e=this._visibleData)||void 0===e?void 0:e.showAtPosition)&&void 0!==t?t:null}get isColorPickerVisible(){var e;return Boolean(null===(e=this._visibleData)||void 0===e?void 0:e.colorPicker)}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return e.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;return!e&&this._contextKeyService.getContextKeyValue(k.ob.Visible.key)&&(e=!0),{position:this._visibleData.showAtPosition,range:this._visibleData.showAtRange,preference:e?[1,2]:[2,1]}}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(45);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=""+i/t,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(.66*this._editor.getLayoutInfo().width,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}showAt(e,t){this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),t.colorPicker&&t.colorPicker.layout()}hide(){if(this._visibleData){const e=this._visibleData.stoleFocus;this._setVisibleData(null),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();const e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){const e=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==e&&(this._hover.contentsDomNode.style.paddingBottom=e,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}};E.ID="editor.contrib.contentHoverWidget",E=D([M(1,S.fN)],E);let P=class extends o.jG{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=N("div.hover-row.status-bar"),this.actionsElement=d.BC(this.hoverElement,N("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;return this._hasContent=!0,this._register(h.j.render(this.actionsElement,e,i))}append(e){const t=d.BC(this.actionsElement,e);return this._hasContent=!0,t}};P=D([M(0,I.b)],P);class O{constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1}get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}static _getLineDecorations(e,t){if(1!==t.type)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const o=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,s=e.range.endLineNumber===n?e.range.endColumn:o;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(i>t.range.startColumn||t.range.endColumn>s)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return f.AE.EMPTY;const i=O._getLineDecorations(this._editor,t);return f.AE.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):f.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=O._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,u.Yc)(t)}}var A=i(84181),F=i(62179),U=i(1754);const H=d.$;class W extends o.jG{constructor(e,t,i=U.m5){super(),this._renderDisposeables=this._register(new o.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new h.N),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new F.T({editor:this._editor},t,i)),this._computer=new V(this._editor),this._hoverOperation=this._register(new L(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(45)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return W.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const n of t){const e=H("div.hover-row.markdown-hover"),t=d.BC(e,H("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(n.value));t.appendChild(o.element),i.appendChild(e)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(60),s=i-n-(this._hover.containerDomNode.clientHeight-o)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(s),0)}px`}}W.ID="editor.contrib.modesGlyphHoverWidget";class V{constructor(e){this._editor=e,this._lineNumber=-1}get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),i=[];if(!t)return i;for(const n of t){if(!n.options.glyphMarginClassName)continue;const t=n.options.glyphMarginHoverMessage;t&&!(0,A.it)(t)&&i.push(...(0,u._j)(t).map(e))}return i}}var z=i(38016),j=i(93467),B=i(86471),Q=i(56803),$=i(9934),K=i(37717),q=i(10993),G=i(50971),Z=i(53397),Y=i(3903),J=i(1882),X=i(84134),ee=i(68975),te=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};const ne=d.$;class oe{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const se={type:1,filter:{include:Z.gB.QuickFix},triggerAction:Z.fo.QuickFixHover};let re=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=5,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),s=[];for(const a of t){const t=a.range.startLineNumber===n?a.range.startColumn:1,l=a.range.endLineNumber===n?a.range.endColumn:o,c=this._markerDecorationsService.getMarker(i.uri,a);if(!c)continue;const d=new r.Q(e.range.startLineNumber,t,e.range.startLineNumber,l);s.push(new oe(this,d,c))}return s}renderHoverParts(e,t){if(!t.length)return o.jG.None;const i=new o.Cm;t.forEach((t=>e.fragment.appendChild(this.renderMarkerHover(t,i))));const n=1===t.length?t[0]:t.sort(((e,t)=>J.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,n,i),i}renderMarkerHover(e,t){const i=ne("div.hover-row"),n=d.BC(i,ne("div.marker.hover-contents")),{source:o,message:s,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=d.BC(n,ne("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,o||r)if(r&&"string"!==typeof r){const e=ne("span");if(o){d.BC(e,ne("span")).innerText=o}const i=d.BC(e,ne("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(d.ko(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})));d.BC(i,ne("span")).innerText=r.value;const s=d.BC(n,e);s.style.opacity="0.6",s.style.paddingLeft="6px"}else{const e=d.BC(n,ne("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=o&&r?`${o}(${r})`:o||`(${r})`}if((0,u.EI)(a))for(const{message:c,resource:h,startLineNumber:u,startColumn:g}of a){const e=d.BC(n,ne("div"));e.style.marginTop="8px";const i=d.BC(e,ne("a"));i.innerText=`${(0,$.P8)(h)}(${u}, ${g}): `,i.style.cursor="pointer",t.add(d.ko(i,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:u,startColumn:g}}}).catch(v.dz)})));const o=d.BC(e,ne("span"));o.innerText=c,this._editor.applyFontInfo(o)}return i}renderMarkerStatusbar(e,t,i){if(t.marker.severity!==J.cj.Error&&t.marker.severity!==J.cj.Warning&&t.marker.severity!==J.cj.Info||e.statusBar.addAction({label:z.kg("view problem","View Problem"),commandId:Y.NextMarkerAction.ID,run:()=>{var i;e.hide(),null===(i=Y.MarkerController.get(this._editor))||void 0===i||i.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(82)){const n=e.statusBar.append(ne("div"));this.recentMarkerCodeActionsInfo&&(J.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===J.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=z.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?o.jG.None:i.add((0,f.EQ)((()=>n.textContent=z.kg("checkingForQuickFixes","Checking for quick fixes...")),200));n.textContent||(n.textContent=String.fromCharCode(160));const r=this.getCodeActions(t.marker);i.add((0,o.s)((()=>r.cancel()))),r.then((r=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:r.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return r.dispose(),void(n.textContent=z.kg("noQuickFixes","No quick fixes available"));n.style.display="none";let a=!1;i.add((0,o.s)((()=>{a||r.dispose()}))),e.statusBar.addAction({label:z.kg("quick fixes","Quick Fix..."),commandId:G.hi.Id,run:t=>{a=!0;const i=G.d1.get(this._editor),n=d.BK(t);e.hide(),null===i||void 0===i||i.showCodeActions(se,r,{x:n.left+6,y:n.top+n.height+6,width:n.width,height:n.height})}})}),v.dz)}}getCodeActions(e){return(0,f.SS)((t=>(0,q.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new r.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),se,X.ke.None,t)))}};re=te([ie(1,K.A),ie(2,U.Cr),ie(3,ee.u)],re),(0,B.zy)(((e,t)=>{const i=e.getColor(j.vwp);i&&t.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${i}; }`);const n=e.getColor(j.FEE);n&&t.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${n}; }`)}));var ae=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},le=function(e,t){return function(i,n){t(i,n,e)}};let ce=class e{constructor(e,t,i,n,s){this._editor=e,this._instantiationService=t,this._openerService=i,this._languageService=n,this._toUnhook=new o.Cm,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((e=>{e.hasChanged(54)&&(this._unhookEvents(),this._hookEvents())}))}static get(t){return t.getContribution(e.ID)}_hookEvents(){const e=this._editor.getOption(54);this._isHoverEnabled=e.enabled,this._isHoverSticky=e.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._toUnhook.add(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._toUnhook.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._toUnhook.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._toUnhook.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._toUnhook.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._toUnhook.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._toUnhook.add(this._editor.onDidChangeModel((()=>this._hideWidgets()))),this._toUnhook.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target;9!==t.type||t.detail!==E.ID?12===t.type&&t.detail===W.ID||(12!==t.type&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;const i=e.event.browserEvent.relatedTarget;(null===(t=this._contentWidget)||void 0===t?void 0:t.containsNode(i))||this._hideWidgets()}_onEditorMouseMove(e){var t,i,n,o,s;const r=e.target;if(this._isMouseDown&&this._hoverClicked)return;if(this._isHoverSticky&&9===r.type&&r.detail===E.ID)return;if(this._isHoverSticky&&!(null===(i=null===(t=e.event.browserEvent.view)||void 0===t?void 0:t.getSelection())||void 0===i?void 0:i.isCollapsed))return;if(!this._isHoverSticky&&9===r.type&&r.detail===E.ID&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isColorPickerVisible()))return;if(this._isHoverSticky&&12===r.type&&r.detail===W.ID)return;if(!this._isHoverEnabled)return void this._hideWidgets();if(!this._getOrCreateContentWidget().maybeShowAt(e))return 2===r.type&&r.position?(null===(s=this._contentWidget)||void 0===s||s.hide(),this._glyphWidget||(this._glyphWidget=new W(this._editor,this._languageService,this._openerService)),void this._glyphWidget.startShowingAt(r.position.lineNumber)):void this._hideWidgets();null===(o=this._glyphWidget)||void 0===o||o.hide()}_onKeyDown(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){var e,t,i;this._isMouseDown&&this._hoverClicked&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(R,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};ce.ID="editor.contrib.hover",ce=ae([le(1,x._Y),le(2,U.Cr),le(3,l.L),le(4,S.fN)],ce);class de extends s.ks{constructor(){super({id:"editor.action.showHover",label:z.kg({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:a.R.editorTextFocus,primary:(0,n.m5)(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;const i=ce.get(t);if(!i)return;const n=t.getPosition(),o=new r.Q(n.lineNumber,n.column,n.lineNumber,n.column),s=2===t.getOption(2);i.showContentHover(o,1,s)}}class he extends s.ks{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:z.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){const i=ce.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const o=new r.Q(n.lineNumber,n.column,n.lineNumber,n.column),s=c.GotoDefinitionAtPositionEditorContribution.get(t);if(!s)return;s.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(o,1,!0)}))}}(0,s.HW)(ce.ID,ce),(0,s.Fl)(de),(0,s.Fl)(he),y.B2.register(Q.xJ),y.B2.register(re),(0,B.zy)(((e,t)=>{const i=e.getColor(j.mH6);i&&t.addRule(`.monaco-editor .hoverHighlight { background-color: ${i}; }`);const n=e.getColor(j.WfR);n&&t.addRule(`.monaco-editor .monaco-hover { background-color: ${n}; }`);const o=e.getColor(j.oZ8);o&&(t.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${o}; }`),t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${o.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${o.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${o.transparent(.5)}; }`));const s=e.getColor(j.vwp);s&&t.addRule(`.monaco-editor .monaco-hover a { color: ${s}; }`);const r=e.getColor(j.FEE);r&&t.addRule(`.monaco-editor .monaco-hover a:hover { color: ${r}; }`);const a=e.getColor(j.Xo2);a&&t.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const l=e.getColor(j.rRi);l&&t.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${l}; }`);const c=e.getColor(j.S6W);c&&t.addRule(`.monaco-editor .monaco-hover code { background-color: ${c}; }`)}))},1418:(e,t,i)=>{i.d(t,{B2:()=>s,hx:()=>n,mm:()=>o});class n{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class o{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}const s=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},56803:(e,t,i)=>{i.d(t,{eH:()=>b,fm:()=>L,xJ:()=>w});var n=i(38278),o=i(39869),s=i(86683),r=i(84181),a=i(26819),l=i(62179),c=i(62612),d=i(15186),h=i(19821),u=i(87787),g=i(38016),p=i(7548),m=i(1754),f=i(68975),v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};const C=n.$;class b{constructor(e,t,i,n){this.owner=e,this.range=t,this.contents=i,this.ordinal=n}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let w=class{constructor(e,t,i,n,o){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=o,this.hoverOrdinal=2}createLoadingMessage(e){return new b(this,e.range,[(new r.Bc).appendText(g.kg("modesContentHover.loading","Loading..."))],2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),a=[];let l=1e3;const c=i.getLineLength(n),h=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:h});"number"===typeof u&&c>=u&&a.push(new b(this,e.range,[{value:g.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],l++));for(const g of t){const t=g.range.startLineNumber===n?g.range.startColumn:1,i=g.range.endLineNumber===n?g.range.endColumn:s,c=g.options.hoverMessage;if(!c||(0,r.it)(c))continue;const h=new d.Q(e.range.startLineNumber,t,e.range.startLineNumber,i);a.push(new b(this,h,(0,o._j)(c),l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return s.AE.EMPTY;const n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return s.AE.EMPTY;const o=new c.y(e.range.startLineNumber,e.range.startColumn);return(0,u.Zt)(this._languageFeaturesService.hoverProvider,n,o,i).filter((e=>!(0,r.it)(e.hover.contents))).map((t=>{const i=t.hover.range?d.Q.lift(t.hover.range):e.range;return new b(this,i,t.hover.contents,t.ordinal)}))}renderHoverParts(e,t){return L(e,t,this._editor,this._languageService,this._openerService)}};function L(e,t,i,o,s){t.sort(((e,t)=>e.ordinal-t.ordinal));const c=new a.Cm;for(const a of t)for(const t of a.contents){if((0,r.it)(t))continue;const a=C("div.hover-row.markdown-hover"),d=n.BC(a,C("div.hover-contents")),h=c.add(new l.T({editor:i},o,s));c.add(h.onDidRenderAsync((()=>{d.className="hover-contents code-hover-contents",e.onContentsChanged()})));const u=c.add(h.render(t));d.appendChild(u.element),e.fragment.appendChild(a)}return c}w=v([_(1,h.L),_(2,m.Cr),_(3,p.pG),_(4,f.u)],w)},17753:(e,t,i)=>{i.r(t);var n=i(86683),o=i(24156),s=i(85693),r=i(50051),a=i(15186),l=i(21429),c=i(29671),d=i(28715),h=i(52693),u=i(80764),g=i(38016),p=i(86471);class m{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};let _=class e{constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}static get(t){return t.getContribution(e.ID)}dispose(){}run(t,i){this.currentRequest&&this.currentRequest.cancel();const r=this.editor.getSelection(),c=this.editor.getModel();if(!c||!r)return;let d=r;if(d.startLineNumber!==d.endLineNumber)return;const h=new s.$t(this.editor,5),u=c.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=(0,n.SS)((e=>this.editorWorkerService.navigateValueSet(u,d,i))),this.currentRequest.then((i=>{if(!i||!i.range||!i.value)return;if(!h.validate(this.editor))return;const s=a.Q.lift(i.range);let r=i.range;const c=i.value.length-(d.endColumn-d.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+i.value.length},c>1&&(d=new l.L(d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn+c-1));const u=new m(s,d,i.value);this.editor.pushUndoStop(),this.editor.executeCommand(t,u),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:e.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=(0,n.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(o.dz)})).catch(o.dz)):Promise.resolve(void 0)}};_.ID="editor.contrib.inPlaceReplaceController",_.DECORATION=d.kI.register({description:"in-place-replace",className:"valueSetReplacement"}),_=f([v(1,h.w)],_);class C extends r.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:g.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:c.R.writable,kbOpts:{kbExpr:c.R.editorTextFocus,primary:3154,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}class b extends r.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:g.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:c.R.writable,kbOpts:{kbExpr:c.R.editorTextFocus,primary:3156,weight:100}})}run(e,t){const i=_.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}(0,r.HW)(_.ID,_),(0,r.Fl)(C),(0,r.Fl)(b),(0,p.zy)(((e,t)=>{const i=e.getColor(u.$u);i&&t.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${i}; }`)}))},2803:(e,t,i)=>{function n(e,t){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;return i}function o(e,t,i){e=e<0?0:e;let n="";if(!i){const i=Math.floor(e/t);e%=t;for(let e=0;e<i;e++)n+="\t"}for(let o=0;o<e;o++)n+=" ";return n}i.d(t,{c:()=>n,k:()=>o})},93047:(e,t,i)=>{i.r(t),i.d(t,{AutoIndentOnPaste:()=>N,AutoIndentOnPasteCommand:()=>M,ChangeIndentationSizeAction:()=>y,DetectIndentation:()=>I,IndentUsingSpaces:()=>x,IndentUsingTabs:()=>S,IndentationToSpacesAction:()=>w,IndentationToSpacesCommand:()=>T,IndentationToTabsAction:()=>L,IndentationToTabsCommand:()=>E,ReindentLinesAction:()=>k,ReindentSelectedLinesAction:()=>D,getReindentEditOperations:()=>b});var n=i(26819),o=i(53817),s=i(50051),r=i(14469),a=i(48282),l=i(15186),c=i(21429),d=i(29671),h=i(91835),u=i(47665),g=i(2803),p=i(38016),m=i(92002),f=i(84352),v=i(95566),_=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},C=function(e,t){return function(i,n){t(i,n,e)}};function b(e,t,i,n,s){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const l=t.getLanguageConfiguration(e.getLanguageId()).indentationRules;if(!l)return[];for(n=Math.min(n,e.getLineCount());i<=n&&l.unIndentedLinePattern;){const t=e.getLineContent(i);if(!l.unIndentedLinePattern.test(t))break;i++}if(i>n-1)return[];const{tabSize:d,indentSize:h,insertSpaces:u}=e.getOptions(),g=(e,t)=>(t=t||1,r.Y.shiftIndent(e,e.length+t,d,h,u)),p=(e,t)=>(t=t||1,r.Y.unshiftIndent(e,e.length+t,d,h,u)),m=[];let v;const _=e.getLineContent(i);let C=_;if(void 0!==s&&null!==s){v=s;const e=o.UU(_);C=v+_.substring(e.length),l.decreaseIndentPattern&&l.decreaseIndentPattern.test(C)&&(v=p(v),C=v+_.substring(e.length)),_!==C&&m.push(a.k.replaceMove(new c.L(i,1,i,e.length+1),(0,f.P)(v,h,u)))}else v=o.UU(_);let b=v;l.increaseIndentPattern&&l.increaseIndentPattern.test(C)?(b=g(b),v=g(v)):l.indentNextLinePattern&&l.indentNextLinePattern.test(C)&&(b=g(b));for(let r=++i;r<=n;r++){const t=e.getLineContent(r),i=o.UU(t),n=b+t.substring(i.length);l.decreaseIndentPattern&&l.decreaseIndentPattern.test(n)&&(b=p(b),v=p(v)),i!==b&&m.push(a.k.replaceMove(new c.L(r,1,r,i.length+1),(0,f.P)(b,h,u))),l.unIndentedLinePattern&&l.unIndentedLinePattern.test(t)||(l.increaseIndentPattern&&l.increaseIndentPattern.test(n)?(v=g(v),b=v):b=l.indentNextLinePattern&&l.indentNextLinePattern.test(n)?g(b):v)}return m}class w extends s.ks{constructor(){super({id:w.ID,label:p.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:d.R.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new T(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}w.ID="editor.action.indentationToSpaces";class L extends s.ks{constructor(){super({id:L.ID,label:p.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:d.R.writable})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new E(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}L.ID="editor.action.indentationToTabs";class y extends s.ks{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(m.GK),n=e.get(u.S),o=t.getModel();if(!o)return;const s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),r=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize?p.kg("configuredTabSize","Configured Tab Size"):void 0}))),a=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(r,{placeHolder:p.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:r[a]}).then((e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})}))}),50)}}class S extends y{constructor(){super(!1,{id:S.ID,label:p.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}S.ID="editor.action.indentUsingTabs";class x extends y{constructor(){super(!0,{id:x.ID,label:p.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}x.ID="editor.action.indentUsingSpaces";class I extends s.ks{constructor(){super({id:I.ID,label:p.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const i=e.get(u.S),n=t.getModel();if(!n)return;const o=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}}I.ID="editor.action.detectIndentation";class k extends s.ks{constructor(){super({id:"editor.action.reindentlines",label:p.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:d.R.writable})}run(e,t){const i=e.get(h.JZ),n=t.getModel();if(!n)return;const o=b(n,i,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class D extends s.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:p.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:d.R.writable})}run(e,t){const i=e.get(h.JZ),n=t.getModel();if(!n)return;const o=t.getSelections();if(null===o)return;const s=[];for(const r of o){let e=r.startLineNumber,t=r.endLineNumber;if(e!==t&&1===r.endColumn&&t--,1===e){if(e===t)continue}else e--;const o=b(n,i,e,t);s.push(...o)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class M{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const i of e)i.range&&"string"===typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(const n of this._edits)t.addEditOperation(l.Q.lift(n.range),n.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let N=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new n.Cm,this.callOnModel=new n.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(49)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(9),{tabSize:s,indentSize:a,insertSpaces:c}=i.getOptions(),d=[],h={shiftIndent:e=>r.Y.shiftIndent(e,e.length+1,s,a,c),unshiftIndent:e=>r.Y.unshiftIndent(e,e.length+1,s,a,c)};let u=e.startLineNumber;for(;u<=e.endLineNumber&&this.shouldIgnoreLine(i,u);)u++;if(u>e.endLineNumber)return;let p=i.getLineContent(u);if(!/\S/.test(p.substring(0,e.startColumn-1))){const e=(0,v.$f)(n,i,i.getLanguageId(),u,h,this._languageConfigurationService);if(null!==e){const t=o.UU(p),n=g.c(e,s);if(n!==g.c(t,s)){const e=g.k(n,s,c);d.push({range:new l.Q(u,1,u,t.length+1),text:e}),p=e+p.substr(t.length)}else{const e=(0,v.Yb)(i,u,this._languageConfigurationService);if(0===e||8===e)return}}}const m=u;for(;u<e.endLineNumber&&!/\S/.test(i.getLineContent(u+1));)u++;if(u!==e.endLineNumber){const t={tokenization:{getLineTokens:e=>i.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===m?p:i.getLineContent(e)},r=(0,v.$f)(n,t,i.getLanguageId(),u+1,h,this._languageConfigurationService);if(null!==r){const t=g.c(r,s),n=g.c(o.UU(i.getLineContent(u+1)),s);if(t!==n){const r=t-n;for(let t=u+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),n=o.UU(e),a=g.c(n,s)+r,h=g.k(a,s,c);h!==n&&d.push({range:new l.Q(t,1,t,n.length+1),text:h})}}}}if(d.length>0){this.editor.pushUndoStop();const e=new M(d,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function R(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let r=0;r<i;r++)o+=" ";const s=new RegExp(o,"gi");for(let r=1,a=e.getLineCount();r<=a;r++){let i=e.getLineFirstNonWhitespaceColumn(r);if(0===i&&(i=e.getLineMaxColumn(r)),1===i)continue;const a=new l.Q(r,1,r,i),c=e.getValueInRange(a),d=n?c.replace(/\t/gi,o):c.replace(s,"\t");t.addEditOperation(a,d)}}N.ID="editor.contrib.autoIndentOnPaste",N=_([C(1,h.JZ)],N);class T{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),R(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class E{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),R(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,s.HW)(N.ID,N),(0,s.Fl)(w),(0,s.Fl)(L),(0,s.Fl)(S),(0,s.Fl)(x),(0,s.Fl)(I),(0,s.Fl)(k),(0,s.Fl)(D)},58595:(e,t,i)=>{i.r(t);var n=i(50051),o=i(1418),s=i(38278),r=i(39869),a=i(86683),l=i(74832),c=i(24156),d=i(26819),h=i(1713),u=i(4562),g=i(54605),p=i(69373),m=i(86979),f=i(48282),v=i(15186),_=i(63404),C=i(72330),b=i(28715),w=i(14399),L=i(68975),y=i(65573),S=i(81346),x=i(62612),I=i(86657),k=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class D{constructor(e,t){this.range=e,this.direction=t}}class M{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new M(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return k(this,void 0,void 0,(function*(){if("function"===typeof this.provider.resolveInlayHint){if(this._currentResolve){if(yield this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),yield this._currentResolve}}))}_doResolve(e){var t,i;return k(this,void 0,void 0,(function*(){try{const n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null===n||void 0===n?void 0:n.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null===n||void 0===n?void 0:n.label)&&void 0!==i?i:this.hint.label,this._isResolved=!0}catch(n){(0,c.M_)(n),this._isResolved=!1}}))}}class N{constructor(e,t,i){this._disposables=new d.Cm,this.ranges=e,this.provider=new Set;const n=[];for(const[o,s]of t){this._disposables.add(o),this.provider.add(s);for(const e of o.hints){const t=i.validatePosition(e.position);let o="before";const r=N._getRangeAtPosition(i,t);let a;r.getStartPosition().isBefore(t)?(a=v.Q.fromPositions(r.getStartPosition(),t),o="after"):(a=v.Q.fromPositions(t,r.getEndPosition()),o="before"),n.push(new M(e,new D(a,o),s))}}this.items=n.sort(((e,t)=>x.y.compare(e.hint.position,t.hint.position)))}static create(e,t,i,n){return k(this,void 0,void 0,(function*(){const o=[],s=e.ordered(t).reverse().map((e=>i.map((i=>k(this,void 0,void 0,(function*(){try{const s=yield e.provideInlayHints(t,i,n);(null===s||void 0===s?void 0:s.hints.length)&&o.push([s,e])}catch(s){(0,c.M_)(s)}}))))));if(yield Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new c.AL;return new N(i,o,t)}))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new v.Q(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const o=e.tokenization.getLineTokens(i),s=t.column-1,r=o.findTokenIndexAtOffset(s);let a=o.getStartOffset(r),l=o.getEndOffset(r);return l-a===1&&(a===s&&r>1?(a=o.getStartOffset(r-1),l=o.getEndOffset(r-1)):l===s&&r<o.getCount()-1&&(a=o.getStartOffset(r+1),l=o.getEndOffset(r+1))),new v.Q(i,a+1,i,l+1)}}var R=i(48624),T=i(66024),E=i(11293),P=i(21850),O=i(84562),A=i(40350),F=i(21571),U=i(93218),H=i(11734),W=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function V(e,t,i,o){var r;return W(this,void 0,void 0,(function*(){const a=e.get(y.b),c=e.get(F.Z),d=e.get(O.wT),h=e.get(U._Y),u=e.get(H.Ot);if(yield o.item.resolve(l.X.None),!o.part.location)return;const g=o.part.location,p=[],m=new Set(P.ZG.getMenuItems(P.D8.EditorContext).map((e=>(0,P.is)(e)?e.command.id:"")));for(const e of n.dS.getEditorActions())e instanceof T.SymbolNavigationAction&&m.has(e.id)&&p.push(new R.rc(e.id,e.label,void 0,!0,(()=>W(this,void 0,void 0,(function*(){const i=yield a.createModelReference(g.uri);try{yield h.invokeFunction(e.run.bind(e),t,new T.SymbolNavigationAnchor(i.object.textEditorModel,v.Q.getStartPosition(g.range)))}finally{i.dispose()}})))));if(o.part.command){const{command:e}=o.part;p.push(new R.wv),p.push(new R.rc(e.id,e.title,void 0,!0,(()=>W(this,void 0,void 0,(function*(){var t;try{yield d.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(i){u.notify({severity:H.AI.Error,source:o.item.provider.displayName,message:i})}})))))}const f=t.getOption(116);c.showContextMenu({domForShadowRoot:f&&null!==(r=t.getDomNode())&&void 0!==r?r:void 0,getAnchor:()=>{const e=s.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>p,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}))}function z(e,t,i,n){return W(this,void 0,void 0,(function*(){const o=e.get(y.b),s=yield o.createModelReference(n.uri);yield i.invokeWithinContext((e=>W(this,void 0,void 0,(function*(){const o=t.hasSideBySideModifier,r=e.get(A.fN),a=E.x2.inPeekEditor.getValue(r),l=!o&&i.getOption(79)&&!a;return new T.DefinitionAction({openToSide:o,openInPeek:l,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(e,i,{model:s.object.textEditorModel,position:v.Q.getStartPosition(n.range)})})))),s.dispose()}))}var j=i(44785),B=i(93467),Q=i(86471),$=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},K=function(e,t){return function(i,n){t(i,n,e)}},q=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class G{constructor(){this._entries=new h.qK(50)}get(e){const t=G._key(e);return this._entries.get(t)}set(e,t){const i=G._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const Z=(0,U.u1)("IInlayHintsCache");(0,j.v)(Z,G,!0);class Y{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"===typeof e?{label:e}:e[this.index]}}class J{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let X=class e{constructor(e,t,i,n,o,s,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=r,this._disposables=new d.Cm,this._sessionDisposables=new d.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new p.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(128)&&this._update()}))),this._update()}static get(t){var i;return null!==(i=t.getContribution(e.ID))&&void 0!==i?i:void 0}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(128);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,d.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const o=new Set,r=new a.uC((()=>q(this,void 0,void 0,(function*(){const e=Date.now();null===n||void 0===n||n.dispose(!0),n=new l.Q;const i=t.onWillDispose((()=>null===n||void 0===n?void 0:n.cancel()));try{const i=n.token,s=yield N.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(r.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void s.dispose();for(const e of s.provider)"function"!==typeof e.onDidChangeInlayHints||o.has(e)||(o.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{r.isScheduled()||r.schedule()}))));this._sessionDisposables.add(s),this._updateHintsDecorators(s.ranges,s.items),this._cacheHintsForFastRestore(t)}catch(s){(0,c.dz)(s)}finally{n.dispose(),i.dispose()}}))),this._debounceInfo.get(t));if(this._sessionDisposables.add(r),this._sessionDisposables.add((0,d.s)((()=>null===n||void 0===n?void 0:n.dispose(!0)))),r.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&r.isScheduled()||r.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{const t=Math.max(r.delay,1250);r.schedule(t)}))),"on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(s.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),r.schedule(0)}})))}this._sessionDisposables.add(this._installDblClickGesture((()=>r.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new d.Cm,t=e.add(new S.gi(this._editor)),i=new d.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),o=this._editor.getModel();if(!n||!o)return void i.clear();const s=new l.Q;i.add((0,d.s)((()=>s.dispose(!0)))),n.item.resolve(s.token),this._activeInlayHintPart=n.part.command||n.part.location?new J(n,t.hasTriggerModifier):void 0;const r=n.item.hint.position.lineNumber,a=new v.Q(r,1,r,o.getLineMaxColumn(r)),c=this._getInlineHintsForRange(a);this._updateHintsDecorators([a],c),i.add((0,d.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([a],c)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((e=>q(this,void 0,void 0,(function*(){const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(z,e,this._editor,i.location):_.uB.is(i.command)&&(yield this._invokeCommand(i.command,t.item))}}))))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((t=>q(this,void 0,void 0,(function*(){if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),yield i.item.resolve(l.X.None),(0,r.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(v.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))))}_installContextMenu(){return this._editor.onContextMenu((e=>q(this,void 0,void 0,(function*(){if(!(e.event.target instanceof HTMLElement))return;const t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(V,this._editor,e.event.target,t))}))))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof b.Ho&&(null===i||void 0===i?void 0:i.attachedData)instanceof Y?i.attachedData:void 0}_invokeCommand(e,t){var i;return q(this,void 0,void 0,(function*(){try{yield this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(n){this._notificationService.notify({severity:H.AI.Error,source:t.provider.displayName,message:n})}}))}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const o=e.getDecorationRange(i);if(o){const e=new D(o,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(v.Q.compareRangesUsingStarts)){const t=e.validateRange(new v.Q(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&v.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=v.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(t,i){var n,o;const s=[],a=(e,t,i,n,o)=>{const r={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o};s.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?r:void 0}}})},l=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(c/3|0)+"px",display:"inline-block"});a(e,i,"\u200a",t?C.VW.Right:C.VW.None)},{fontSize:c,fontFamily:d,padding:h,isUniform:u}=this._getLayoutInfo(),g="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(g,d);for(const f of i){f.hint.paddingLeft&&l(f,!1);const t="string"===typeof f.hint.label?[{label:f.hint.label}]:f.hint.label;for(let e=0;e<t.length;e++){const i=t[e],o=0===e,s=e===t.length-1,l={fontSize:`${c}px`,fontFamily:`var(${g}), ${m.jU.fontFamily}`,verticalAlign:u?"baseline":"middle"};(0,r.EI)(f.hint.textEdits)&&(l.cursor="default"),this._fillInColors(l,f.hint),(i.command||i.location)&&(null===(n=this._activeInlayHintPart)||void 0===n?void 0:n.part.item)===f&&this._activeInlayHintPart.part.index===e&&(l.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(l.color=(0,Q.Yf)(B.Ztu),l.cursor="pointer")),h&&(o&&s?(l.padding=`1px ${0|Math.max(1,c/4)}px`,l.borderRadius=(c/4|0)+"px"):o?(l.padding=`1px 0 1px ${0|Math.max(1,c/4)}px`,l.borderRadius=`${c/4|0}px 0 0 ${c/4|0}px`):s?(l.padding=`1px ${0|Math.max(1,c/4)}px 1px 0`,l.borderRadius=`0 ${c/4|0}px ${c/4|0}px 0`):l.padding="1px 0 1px 0"),a(f,this._ruleFactory.createClassNameRef(l),ee(i.label),s&&!f.hint.paddingRight?C.VW.Right:C.VW.None,new Y(f,e))}if(f.hint.paddingRight&&l(f,!0),s.length>e._MAX_DECORATORS)break}const p=[];for(const e of t)for(const{id:t}of null!==(o=this._editor.getDecorationsInRange(e))&&void 0!==o?o:[]){const e=this._decorationsMetadata.get(t);e&&(p.push(t),e.classNameRef.dispose(),this._decorationsMetadata.delete(t))}this._editor.changeDecorations((e=>{const t=e.deltaDecorations(p,s.map((e=>e.decoration)));for(let i=0;i<t.length;i++){const e=s[i];this._decorationsMetadata.set(t[i],e)}}))}_fillInColors(e,t){t.kind===_.r4.Parameter?(e.backgroundColor=(0,Q.Yf)(B.B2L),e.color=(0,Q.Yf)(B.sjA)):t.kind===_.r4.Type?(e.backgroundColor=(0,Q.Yf)(B._pU),e.color=(0,Q.Yf)(B.HwT)):(e.backgroundColor=(0,Q.Yf)(B.WL6),e.color=(0,Q.Yf)(B.P6i))}_getLayoutInfo(){const e=this._editor.getOption(128),t=e.padding,i=this._editor.getOption(47),n=this._editor.getOption(44);let o=e.fontSize;(!o||o<5||o>i)&&(o=i);const s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};function ee(e){return e.replace(/[ \t]/g,"\xa0")}X.ID="editor.contrib.InlayHints",X._MAX_DECORATORS=1500,X=$([K(1,L.u),K(2,w.U),K(3,Z),K(4,O.wT),K(5,H.Ot),K(6,U._Y)],X),O.wb.registerCommand("_executeInlayHintProvider",((e,...t)=>q(void 0,void 0,void 0,(function*(){const[i,n]=t;(0,u.j)(g.r.isUri(i)),(0,u.j)(v.Q.isIRange(n));const{inlayHintsProvider:o}=e.get(L.u),s=yield e.get(y.b).createModelReference(i);try{const e=yield N.create(o,s.object.textEditorModel,[v.Q.lift(n)],l.X.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{s.dispose()}}))));var te=i(84181),ie=i(19821),ne=i(87787),oe=i(56803),se=i(7548),re=i(1754),ae=i(38016),le=i(17032),ce=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},de=function(e,t){return function(i,n){t(i,n,e)}},he=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))},ue=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"===typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){(function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)})(n,o,(t=e[i](t)).done,t.value)}))}}};class ge extends o.mm{constructor(e,t){super(10,t,e.item.anchor.range),this.part=e}}let pe=class extends oe.xJ{constructor(e,t,i,n,o,s){super(e,t,i,n,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!X.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof b.Ho&&i.attachedData instanceof Y?new ge(i.attachedData,this):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof ge?new a.AE((t=>he(this,void 0,void 0,(function*(){var n,o;const{part:s}=e;if(yield s.item.resolve(i),i.isCancellationRequested)return;let a,l;if("string"===typeof s.item.hint.tooltip?a=(new te.Bc).appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(a=s.item.hint.tooltip),a&&t.emitOne(new oe.eH(this,e.range,[a],0)),(0,r.EI)(s.item.hint.textEdits)&&t.emitOne(new oe.eH(this,e.range,[(new te.Bc).appendText((0,ae.kg)("hint.dbl","Double click to insert"))],10001)),"string"===typeof s.part.tooltip?l=(new te.Bc).appendText(s.part.tooltip):s.part.tooltip&&(l=s.part.tooltip),l&&t.emitOne(new oe.eH(this,e.range,[l],1)),s.part.location||s.part.command){let i;const n="altKey"===this._editor.getOption(71)?le.zx?(0,ae.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,ae.kg)("links.navigate.kb.meta","ctrl + click"):le.zx?(0,ae.kg)("links.navigate.kb.alt.mac","option + click"):(0,ae.kg)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=(new te.Bc).appendText((0,ae.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",n)):s.part.location?i=(new te.Bc).appendText((0,ae.kg)("hint.def","Go to Definition ({0})",n)):s.part.command&&(i=new te.Bc(`[${(0,ae.kg)("hint.cmd","Execute Command")}](${c=s.part.command,g.r.from({scheme:I.ny.command,path:c.id,query:c.arguments&&encodeURIComponent(JSON.stringify(c.arguments))}).toString()} "${s.part.command.title}") (${n})`,{isTrusted:!0})),i&&t.emitOne(new oe.eH(this,e.range,[i],1e4))}var c;const d=yield this._resolveInlayHintLabelPartHover(s,i);try{for(var h,u=ue(d);!(h=yield u.next()).done;){const e=h.value;t.emitOne(e)}}catch(p){n={error:p}}finally{try{h&&!h.done&&(o=u.return)&&(yield o.call(u))}finally{if(n)throw n.error}}})))):a.AE.EMPTY}_resolveInlayHintLabelPartHover(e,t){return he(this,void 0,void 0,(function*(){if(!e.part.location)return a.AE.EMPTY;const{uri:i,range:n}=e.part.location,o=yield this._resolverService.createModelReference(i);try{const i=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,ne.Zt)(this._languageFeaturesService.hoverProvider,i,new x.y(n.startLineNumber,n.startColumn),t).filter((e=>!(0,te.it)(e.hover.contents))).map((t=>new oe.eH(this,e.item.anchor.range,t.hover.contents,2+t.ordinal))):a.AE.EMPTY}finally{o.dispose()}}))}};pe=ce([de(1,ie.L),de(2,re.Cr),de(3,se.pG),de(4,y.b),de(5,L.u)],pe),(0,n.HW)(X.ID,X),o.B2.register(pe)},49259:(e,t,i)=>{i.r(t),i.d(t,{commitInlineSuggestionAction:()=>tt});var n=i(50051),o=i(29671),s=i(1418);const r="editor.action.inlineSuggest.commit";var a=i(74663),l=i(26819),c=i(53817),d=i(87214),h=i(62612),u=i(63404),g=i(86683),p=i(74832),m=i(24156),f=i(22337),v=i(48282),_=i(15186);class C{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}}const b=[];class w{constructor(e,t,i=0){this.lineNumber=e,this.parts=t,this.additionalReservedLineCount=i}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1];return function(e,t){const i=new C(e),n=t.map((e=>{const t=_.Q.lift(e.range);return{startOffset:i.getOffset(t.getStartPosition()),endOffset:i.getOffset(t.getEndPosition()),text:e.text}}));n.sort(((e,t)=>t.startOffset-e.startOffset));for(const o of n)e=e.substring(0,o.startOffset)+o.text+e.substring(o.endOffset);return e}(e.substr(0,t.column-1),this.parts.map((e=>({range:{startLineNumber:1,endLineNumber:1,startColumn:e.column,endColumn:e.column},text:e.lines.join("\n")})))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}}class L{constructor(e,t,i){this.column=e,this.lines=t,this.preview=i}}class y{constructor(e,t,i,n,o=0){this.lineNumber=e,this.columnStart=t,this.length=i,this.newLines=n,this.additionalReservedLineCount=o,this.parts=[new L(this.columnStart+this.length,this.newLines,!1)]}renderForScreenReader(e){return this.newLines.join("\n")}}class S extends l.jG{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new a.vl,this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(107)&&void 0===this._expanded&&this.onDidChangeEmitter.fire()})))}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}var x=i(84562),I=i(76441);function k(e,t){if(!t)return t;const i=e.getValueInRange(t.range),n=c.Qp(i,t.insertText),o=e.getOffsetAt(t.range.getStartPosition())+n,s=e.getPositionAt(o),r=i.substr(n),a=c.Vi(r,t.insertText),l=e.getPositionAt(Math.max(o,e.getOffsetAt(t.range.getEndPosition())-a));return{range:_.Q.fromPositions(s,l),insertText:t.insertText.substr(n,t.insertText.length-n-a),snippetInfo:t.snippetInfo,filterText:t.filterText,additionalTextEdits:t.additionalTextEdits}}function D(e,t,i,n,o=0){if(e.range.startLineNumber!==e.range.endLineNumber)return;const s=t.getLineContent(e.range.startLineNumber),r=c.UU(s).length;if(e.range.startColumn-1<=r){const t=c.UU(e.insertText).length,i=s.substring(e.range.startColumn-1,r),n=_.Q.fromPositions(e.range.getStartPosition().delta(0,i.length),e.range.getEndPosition()),o=e.insertText.startsWith(i)?e.insertText.substring(i.length):e.insertText.substring(t);e={range:n,insertText:o,command:e.command,snippetInfo:void 0,filterText:e.filterText,additionalTextEdits:e.additionalTextEdits}}const a=t.getValueInRange(e.range),l=function(e,t){if((null===M||void 0===M?void 0:M.originalValue)===e&&(null===M||void 0===M?void 0:M.newValue)===t)return null===M||void 0===M?void 0:M.changes;{let i=R(e,t,!0);if(i){const n=N(i);if(n>0){const o=R(e,t,!1);o&&N(o)<n&&(i=o)}}return M={originalValue:e,newValue:t,changes:i},i}}(a,e.insertText);if(!l)return;const d=e.range.startLineNumber,h=new Array;if("prefix"===i){const e=l.filter((e=>0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==a.length)return}const u=e.insertText.length-o;for(const g of l){const t=e.range.startColumn+g.originalStart+g.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===e.range.startLineNumber&&t<n.column)return;if(g.originalLength>0)return;if(0===g.modifiedLength)continue;const o=g.modifiedStart+g.modifiedLength,s=Math.max(g.modifiedStart,Math.min(o,u)),r=e.insertText.substring(g.modifiedStart,s),a=e.insertText.substring(s,Math.max(g.modifiedStart,o));if(r.length>0){const e=c.uz(r);h.push(new L(t,e,!1))}if(a.length>0){const e=c.uz(a);h.push(new L(t,e,!0))}}return new w(d,h,0)}let M;function N(e){let t=0;for(const i of e)t+=Math.max(i.originalLength-i.modifiedLength,0);return t}function R(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;i<n;i++){const n=e.charCodeAt(i);n>t&&(t=n)}return t}const o=Math.max(n(e),n(t));function s(e){if(e<0)throw new Error("unexpected");return o+e+1}function r(e){let t=0,n=0;const o=new Int32Array(e.length);for(let r=0,a=e.length;r<a;r++)if(i&&"("===e[r]){const e=100*n+t;o[r]=s(2*e),t++}else if(i&&")"===e[r]){t=Math.max(t-1,0);const e=100*n+t;o[r]=s(2*e+1),0===t&&n++}else o[r]=e.charCodeAt(r);return o}const a=r(e),l=r(t);return new I.uP({getElements:()=>a},{getElements:()=>l}).ComputeDiff(!1).changes}var T=i(91835),E=i(18118),P=i(68975),O=i(14399),A=i(21608),F=i(80509),U=i(4562),H=i(4384),W=i(7548),V=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}},j=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let B=class extends l.jG{constructor(e,t,i,n,o,s,c){super(),this.editor=e,this.cache=t,this.commandService=i,this.languageConfigurationService=n,this.languageFeaturesService=o,this.debounceService=s,this.onDidChangeEmitter=new a.vl,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new l.HE),this.active=!1,this.disposed=!1,this.debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(i.onDidExecuteCommand((t=>{new Set([f.CoreEditingCommands.Tab.id,f.CoreEditingCommands.DeleteLeft.id,f.CoreEditingCommands.DeleteRight.id,r,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this.handleUserInput()}))),this._register(this.editor.onDidType((e=>{this.handleUserInput()}))),this._register(this.editor.onDidChangeCursorPosition((e=>{(3===e.reason||this.session&&!this.session.isValid)&&this.hide()}))),this._register((0,l.s)((()=>{this.disposed=!0}))),this._register(this.editor.onDidBlurEditorWidget((()=>{c.getValue("editor.inlineSuggest.hideOnBlur")||this.hide()})))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout((()=>{this.disposed||this.startSessionIfTriggered()}),0)}get session(){return this.completionSession.value}get ghostText(){var e;return null===(e=this.session)||void 0===e?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(e){var t;null===(t=this.session)||void 0===t||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&(null===(t=this.session)||void 0===t||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){this.editor.getOption(56).enabled&&(this.session&&this.session.isValid||this.trigger(u.qw.Automatic))}trigger(e){this.completionSession.value?e===u.qw.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext():(this.completionSession.value=new Q(this.editor,this.editor.getPosition(),(()=>this.active),this.commandService,this.cache,e,this.languageConfigurationService,this.languageFeaturesService.inlineCompletionsProvider,this.debounceValue),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange((()=>{this.onDidChangeEmitter.fire()}))))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;null===(e=this.session)||void 0===e||e.commitCurrentCompletion()}showNext(){var e;null===(e=this.session)||void 0===e||e.showNextInlineCompletion()}showPrevious(){var e;null===(e=this.session)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return j(this,void 0,void 0,(function*(){const t=yield null===(e=this.session)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};B=V([z(2,x.wT),z(3,T.JZ),z(4,P.u),z(5,O.U),z(6,W.pG)],B);class Q extends S{constructor(e,t,i,n,o,s,r,a,c){let d;super(e),this.triggerPosition=t,this.shouldUpdate=i,this.commandService=n,this.cache=o,this.initialTriggerKind=s,this.languageConfigurationService=r,this.registry=a,this.debounce=c,this.minReservedLineCount=0,this.updateOperation=this._register(new l.HE),this.updateSoon=this._register(new g.uC((()=>{const e=this.initialTriggerKind;return this.initialTriggerKind=u.qw.Automatic,this.update(e)}),50)),this.filteredCompletions=[],this.currentlySelectedCompletionId=void 0,this._register(this.onDidChange((()=>{var e;const t=this.currentCompletion;if(t&&t.sourceInlineCompletion!==d){d=t.sourceInlineCompletion;const i=t.sourceProvider;null===(e=i.handleItemDidShow)||void 0===e||e.call(i,t.sourceInlineCompletions,d)}}))),this._register((0,l.s)((()=>{this.cache.clear()}))),this._register(this.editor.onDidChangeCursorPosition((e=>{var t;3!==e.reason&&(null===(t=this.cache.value)||void 0===t||t.updateRanges(),this.cache.value&&(this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire()))}))),this._register(this.editor.onDidChangeModelContent((e=>{var t;null===(t=this.cache.value)||void 0===t||t.updateRanges(),this.updateFilteredInlineCompletions(),this.scheduleAutomaticUpdate()}))),this._register(this.registry.onDidChange((()=>{this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}))),this.scheduleAutomaticUpdate()}updateFilteredInlineCompletions(){if(!this.cache.value)return void(this.filteredCompletions=[]);const e=this.editor.getModel(),t=e.validatePosition(this.editor.getPosition());this.filteredCompletions=this.cache.value.completions.filter((i=>{const n=e.getValueInRange(i.synchronizedRange).toLowerCase(),o=i.inlineCompletion.filterText.toLowerCase(),s=e.getLineIndentColumn(i.synchronizedRange.startLineNumber),r=Math.max(0,t.column-i.synchronizedRange.startColumn);let a=o.substring(0,r),l=o.substring(r),c=n.substring(0,r),d=n.substring(r);return i.synchronizedRange.startColumn<=s&&(c=c.trimStart(),0===c.length&&(d=d.trimStart()),a=a.trimStart(),0===a.length&&(l=l.trimStart())),a.startsWith(c)&&(0,H.dE)(d,l)}))}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value)return 0;if(0===this.cache.value.completions.length)return 0;const e=this.filteredCompletions.findIndex((e=>e.semanticId===this.currentlySelectedCompletionId));return-1===e?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(this.cache.value)return this.filteredCompletions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){return j(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}showPreviousInlineCompletion(){return j(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const e=this.filteredCompletions||[];if(e.length>0){const t=(this.fixAndGetIndexOfCurrentSelection()+e.length-1)%e.length;this.currentlySelectedCompletionId=e[t].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}ensureUpdateWithExplicitContext(){var e;return j(this,void 0,void 0,(function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===u.qw.Explicit?yield this.updateOperation.value.promise:yield this.update(u.qw.Explicit):(null===(e=this.cache.value)||void 0===e?void 0:e.triggerKind)!==u.qw.Explicit&&(yield this.update(u.qw.Explicit))}))}hasMultipleInlineCompletions(){var e;return j(this,void 0,void 0,(function*(){return yield this.ensureUpdateWithExplicitContext(),((null===(e=this.cache.value)||void 0===e?void 0:e.completions.length)||0)>1}))}get ghostText(){const e=this.currentCompletion;if(!e)return;const t=this.editor.getPosition();if(e.range.getEndPosition().isBefore(t))return;const i=this.editor.getOptions().get(56).mode,n=D(e,this.editor.getModel(),i,t);if(n){if(n.isEmpty())return;return n}return new y(e.range.startLineNumber,e.range.startColumn,e.range.endColumn-e.range.startColumn,e.insertText.split("\n"),0)}get currentCompletion(){const e=this.currentCachedCompletion;if(e)return e.toLiveInlineCompletion()}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule(this.debounce.get(this.editor.getModel()))}update(e){return j(this,void 0,void 0,(function*(){if(!this.shouldUpdate())return;const t=this.editor.getPosition(),i=new Date,n=(0,g.SS)((n=>j(this,void 0,void 0,(function*(){let o;try{o=yield G(this.registry,t,this.editor.getModel(),{triggerKind:e,selectedSuggestionInfo:void 0},n,this.languageConfigurationService);const s=new Date;this.debounce.update(this.editor.getModel(),s.getTime()-i.getTime())}catch(s){return void(0,m.dz)(s)}n.isCancellationRequested||(this.cache.setValue(this.editor,o,e),this.updateFilteredInlineCompletions(),this.onDidChangeEmitter.fire())})))),o=new $(n,e);this.updateOperation.value=o,yield n,this.updateOperation.value===o&&this.updateOperation.clear()}))}takeOwnership(e){this._register(e)}commitCurrentCompletion(){if(!this.ghostText)return;const e=this.currentCompletion;e&&this.commit(e)}commit(e){var t;const i=this.cache.clearAndLeak();e.snippetInfo?(this.editor.executeEdits("inlineSuggestion.accept",[v.k.replaceMove(e.range,""),...e.additionalTextEdits]),this.editor.setPosition(e.snippetInfo.range.getStartPosition()),null===(t=F.SnippetController2.get(this.editor))||void 0===t||t.insert(e.snippetInfo.snippet)):this.editor.executeEdits("inlineSuggestion.accept",[v.k.replaceMove(e.range,e.insertText),...e.additionalTextEdits]),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]).finally((()=>{null===i||void 0===i||i.dispose()})).then(void 0,m.M_):null===i||void 0===i||i.dispose(),this.onDidChangeEmitter.fire()}get commands(){var e;return[...new Set((null===(e=this.cache.value)||void 0===e?void 0:e.completions.map((e=>e.inlineCompletion.sourceInlineCompletions)))||[])].flatMap((e=>e.commands||[]))}}class ${constructor(e,t){this.promise=e,this.triggerKind=t}dispose(){this.promise.cancel()}}class K extends l.jG{constructor(e,t,i,n){super(),this.editor=t,this.onChange=i,this.triggerKind=n,this.isDisposing=!1;const o=t.changeDecorations((t=>t.deltaDecorations([],e.items.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))))));this._register((0,l.s)((()=>{this.isDisposing=!0,t.removeDecorations(o)}))),this.completions=e.items.map(((e,t)=>new q(e,o[t]))),this._register(t.onDidChangeModelContent((()=>{this.updateRanges()}))),this._register(e)}updateRanges(){if(this.isDisposing)return;let e=!1;const t=this.editor.getModel();for(const i of this.completions){const n=t.getDecorationRange(i.decorationId);n?i.synchronizedRange.equalsRange(n)||(e=!0,i.synchronizedRange=n):(0,m.dz)(new Error("Decoration has no range"))}e&&this.onChange()}}class q{constructor(e,t){this.inlineCompletion=e,this.decorationId=t,this.semanticId=JSON.stringify({text:this.inlineCompletion.insertText,abbreviation:this.inlineCompletion.filterText,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=e.range}toLiveInlineCompletion(){return{insertText:this.inlineCompletion.insertText,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion,snippetInfo:this.inlineCompletion.snippetInfo,filterText:this.inlineCompletion.filterText,additionalTextEdits:this.inlineCompletion.additionalTextEdits}}}function G(e,t,i,n,o=p.X.None,s){return j(this,void 0,void 0,(function*(){const r=function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new _.Q(e.lineNumber,i.startColumn,e.lineNumber,n):_.Q.fromPositions(e,e.with(void 0,n))}(t,i),a=e.all(i),l=yield Promise.all(a.map((e=>j(this,void 0,void 0,(function*(){const s=yield Promise.resolve(e.provideInlineCompletions(i,t,n,o)).catch(m.M_);return{completions:s,provider:e,dispose:()=>{s&&e.freeInlineCompletions(s)}}}))))),c=new Map;for(const e of l){const t=e.completions;if(t)for(const n of t.items){const o=n.range?_.Q.lift(n.range):r;if(o.startLineNumber!==o.endLineNumber)continue;let a,l;if("string"===typeof n.insertText)a=n.insertText,s&&n.completeBracketPairs&&(a=Z(a,o.getStartPosition(),i,s)),l=void 0;else if("snippet"in n.insertText){a=(new A.fr).parse(n.insertText.snippet).toString(),l={snippet:n.insertText.snippet,range:o}}else(0,U.xb)(n.insertText);const d={insertText:a,snippetInfo:l,range:o,command:n.command,sourceProvider:e.provider,sourceInlineCompletions:t,sourceInlineCompletion:n,filterText:n.filterText||a,additionalTextEdits:n.additionalTextEdits||b};c.set(JSON.stringify({insertText:a,range:n.range}),d)}}return{items:[...c.values()],dispose:()=>{for(const e of l)e.dispose()}}}))}function Z(e,t,i,n){const o=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,s=i.tokenization.tokenizeLineWithEdit(t,o.length-(t.column-1),e),r=null===s||void 0===s?void 0:s.sliceAndInflate(t.column-1,o.length,0);if(!r)return e;return(0,E.I)(r,n)}var Y=i(39869),J=i(42597),X=i(98017);class ee extends l.jG{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new a.vl,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new g.uC((()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())}),100)),this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const i=X.SuggestController.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(e,t,n)=>{const o=this.editor.getModel(),s=k(o,this.suggestControllerPreselector());if(!s)return-1;const r=h.y.lift(t),a=n.map(((e,t)=>{const n=te(i,r,e,this.isShiftKeyPressed),a=k(o,null===n||void 0===n?void 0:n.normalizedInlineCompletion);if(!a)return;var l,c;return{index:t,valid:(l=s.range,(c=a.range).startLineNumber===l.startLineNumber&&c.startColumn===l.startColumn&&(c.endLineNumber<l.endLineNumber||c.endLineNumber===l.endLineNumber&&c.endColumn<=l.endColumn)&&s.insertText.startsWith(a.insertText)),prefixLength:a.insertText.length,suggestItem:e}})).filter((e=>e&&e.valid)),l=(0,Y.vj)(a,(0,Y.VE)((e=>e.prefixLength),Y.U9));return l?l.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(i.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(i.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)}))),this._register(i.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(a.Jh.once(i.model.onDidTrigger)((e=>{t()})))}this.update(this._isActive)}get state(){if(this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){const t=this.getSuggestItemInfo();let i=!1;(function(e,t){if(e===t)return!0;if(!e||!t)return!1;return e.completionItemKind===t.completionItemKind&&e.isSnippetText===t.isSnippetText&&function(e,t){return e===t||!(!e||!t)&&e.range.equalsRange(t.range)&&e.insertText===t.insertText&&e.command===t.command}(e.normalizedInlineCompletion,t.normalizedInlineCompletion)})(this._currentSuggestItemInfo,t)||(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){const e=X.SuggestController.get(this.editor);if(!e)return;if(!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem();return t?te(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=X.SuggestController.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){const e=X.SuggestController.get(this.editor);e&&e.forceRenderingAbove()}}function te(e,t,i,n){if(Array.isArray(i.completion.additionalTextEdits)&&i.completion.additionalTextEdits.length>0)return{completionItemKind:i.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:_.Q.fromPositions(t,t),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:o}=i.completion,s=!1;if(4&i.completion.insertTextRules){const i=(new A.fr).parse(o),n=e.editor.getModel();if(i.children.length>100)return;J.O.adjustWhitespace(n,t,i,!0,!0),o=i.toString(),s=!0}const r=e.getOverwriteInfo(i,n);return{isSnippetText:s,completionItemKind:i.completion.kind,normalizedInlineCompletion:{insertText:o,filterText:o,range:_.Q.fromPositions(t.delta(0,-r.overwriteBefore),t.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}var ie=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ne=function(e,t){return function(i,n){t(i,n,e)}},oe=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let se=class extends S{constructor(e,t,i){super(e),this.cache=t,this.languageFeaturesService=i,this.suggestionInlineCompletionSource=this._register(new ee(this.editor,(()=>{var e,t;return null===(t=null===(e=this.cache.value)||void 0===e?void 0:e.completions[0])||void 0===t?void 0:t.toLiveInlineCompletion()}))),this.updateOperation=this._register(new l.HE),this.updateCacheSoon=this._register(new g.uC((()=>this.updateCache()),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange((()=>{if(!this.editor.hasModel())return;this.updateCacheSoon.schedule();this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);const e=this.ghostText;e&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,e.parts.map((e=>e.lines.length-1)).reduce(((e,t)=>e+t),0))),this.minReservedLineCount>=1?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()}))),this._register(this.cache.onDidChange((()=>{this.onDidChangeEmitter.fire()}))),this._register(this.editor.onDidChangeCursorPosition((e=>{this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire()}))),this._register((0,l.s)((()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove())))}get isActive(){return void 0!==this.suggestionInlineCompletionSource.state}isSuggestionPreviewEnabled(){return this.editor.getOption(107).preview}updateCache(){return oe(this,void 0,void 0,(function*(){const e=this.suggestionInlineCompletionSource.state;if(!e||!e.selectedItem)return;const t={text:e.selectedItem.normalizedInlineCompletion.insertText,range:e.selectedItem.normalizedInlineCompletion.range,isSnippetText:e.selectedItem.isSnippetText,completionKind:e.selectedItem.completionItemKind},i=this.editor.getPosition();if(e.selectedItem.isSnippetText||27===e.selectedItem.completionItemKind||20===e.selectedItem.completionItemKind||23===e.selectedItem.completionItemKind)return void this.cache.clear();const n=(0,g.SS)((e=>oe(this,void 0,void 0,(function*(){let n;try{n=yield G(this.languageFeaturesService.inlineCompletionsProvider,i,this.editor.getModel(),{triggerKind:u.qw.Automatic,selectedSuggestionInfo:t},e)}catch(o){return void(0,m.dz)(o)}e.isCancellationRequested?n.dispose():(this.cache.setValue(this.editor,n,u.qw.Automatic),this.onDidChangeEmitter.fire())})))),o=new $(n,u.qw.Automatic);this.updateOperation.value=o,yield n,this.updateOperation.value===o&&this.updateOperation.clear()}))}get ghostText(){var e,t,i;const n=this.isSuggestionPreviewEnabled(),o=this.editor.getModel(),s=k(o,null===(t=null===(e=this.cache.value)||void 0===e?void 0:e.completions[0])||void 0===t?void 0:t.toLiveInlineCompletion()),r=this.suggestionInlineCompletionSource.state,a=k(o,null===(i=null===r||void 0===r?void 0:r.selectedItem)||void 0===i?void 0:i.normalizedInlineCompletion),l=s&&a&&s.insertText.startsWith(a.insertText)&&s.range.equalsRange(a.range);if(!n&&!l)return;const c=l?s:a||s,d=l?c.insertText.length-a.insertText.length:0;return this.toGhostText(c,d)}toGhostText(e,t){const i=this.editor.getOptions().get(107).previewMode;return e?D(e,this.editor.getModel(),i,this.editor.getPosition(),t)||new w(e.range.endLineNumber,[],this.minReservedLineCount):void 0}};se=ie([ne(2,P.u)],se);var re=i(93218),ae=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},le=function(e,t){return function(i,n){t(i,n,e)}},ce=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class de extends l.jG{constructor(){super(...arguments),this.onDidChangeEmitter=new a.vl,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new l.HE)}get targetModel(){var e;return null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object}setTargetModel(e){var t,i,n;(null===(t=this.currentModelRef.value)||void 0===t?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?(i=e,n=e.onDidChange((()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})),{object:i,dispose:()=>null===n||void 0===n?void 0:n.dispose()}):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=null===(t=null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object)||void 0===t?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;null===(t=this.targetModel)||void 0===t||t.setExpanded(e)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let he=class extends de{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.sharedCache=this._register(new ue),this.suggestWidgetAdapterModel=this._register(this.instantiationService.createInstance(se,this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(this.instantiationService.createInstance(B,this.editor,this.sharedCache)),this._register(this.suggestWidgetAdapterModel.onDidChange((()=>{this.updateModel()}))),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const i=null===(t=this.activeInlineCompletionsModel)||void 0===t?void 0:t.ghostText;return!!i&&i.parts.some((t=>e.containsPosition(new h.y(i.lineNumber,t.column))))}triggerInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.trigger(u.qw.Explicit)}commitInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.hide()}showNextInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showNext()}showPreviousInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showPrevious()}hasMultipleInlineCompletions(){var e;return ce(this,void 0,void 0,(function*(){const t=yield null===(e=this.activeInlineCompletionsModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};he=ae([le(1,re._Y)],he);class ue extends l.jG{constructor(){super(...arguments),this.onDidChangeEmitter=new a.vl,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new l.HE)}get value(){return this.cache.value}setValue(e,t,i){this.cache.value=new K(t,e,(()=>this.onDidChangeEmitter.fire()),i)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}var ge,pe=i(38278),me=i(50424),fe=i(86979),ve=i(86132),_e=i(13167),Ce=i(72330),be=i(19821),we=i(80764),Le=i(33678),ye=i(72029),Se=i(86471),xe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ie=function(e,t){return function(i,n){t(i,n,e)}};const ke=null===(ge=window.trustedTypes)||void 0===ge?void 0:ge.createPolicy("editorGhostText",{createHTML:e=>e});let De=class extends l.jG{constructor(e,t,i,n){super(),this.editor=e,this.model=t,this.instantiationService=i,this.languageService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(Ne,this.editor)),this.additionalLinesWidget=this._register(new Re(this.editor,this.languageService.languageIdCodec)),this.viewMoreContentWidget=void 0,this.replacementDecoration=this._register(new Me(this.editor)),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(29)||e.hasChanged(106)||e.hasChanged(89)||e.hasChanged(84)||e.hasChanged(46)||e.hasChanged(45)||e.hasChanged(60))&&this.update()}))),this._register((0,l.s)((()=>{var e;this.disposed=!0,this.update(),null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0}))),this._register(t.onDidChange((()=>{this.update()}))),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed)return this.partsWidget.clear(),this.additionalLinesWidget.clear(),void this.replacementDecoration.clear();const i=new Array,n=new Array;function o(e,t){if(n.length>0){const i=n[n.length-1];t&&i.decorations.push(new Le.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)n.push({content:i,decorations:t?[new Le.d(1,i.length+1,t,0)]:[]})}t instanceof y?this.replacementDecoration.setDecorations([{range:new _.Q(t.lineNumber,t.columnStart,t.lineNumber,t.columnStart+t.length),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}]):this.replacementDecoration.setDecorations([]);const s=this.editor.getModel().getLineContent(t.lineNumber);let r,a=0;for(const l of t.parts){let e=l.lines;void 0===r?(i.push({column:l.column,text:e[0],preview:l.preview}),e=e.slice(1)):o([s.substring(a,l.column-1)],void 0),e.length>0&&(o(e,"ghost-text"),void 0===r&&l.column<=s.length&&(r=l.column)),a=l.column-1}void 0!==r&&o([s.substring(a)],void 0),this.partsWidget.setParts(t.lineNumber,i,void 0!==r?{column:r,length:s.length+1-r}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,n,t.additionalReservedLineCount),null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0}renderViewMoreLines(e,t,i){const n=this.editor.getOption(45),o=document.createElement("div");o.className="suggest-preview-additional-widget",(0,me.M)(o,n);const s=document.createElement("span");s.className="content-spacer",s.append(t),o.append(s);const r=document.createElement("span");r.className="content-newline suggest-preview-text",r.append("\u23ce "),o.append(r);const a=new l.Cm,c=document.createElement("div");return c.className="button suggest-preview-text",c.append(`+${i} lines\u2026`),a.add(pe.b2(c,"mousedown",(e=>{var t;null===(t=this.model)||void 0===t||t.setExpanded(!0),e.preventDefault(),this.editor.focus()}))),o.append(c),new Te(this.editor,e,o,a)}};De=xe([Ie(2,re._Y),Ie(3,be.L)],De);class Me{constructor(e){this.editor=e,this.decorationIds=[]}setDecorations(e){this.editor.changeDecorations((t=>{this.decorationIds=t.deltaDecorations(this.decorationIds,e)}))}clear(){this.setDecorations([])}dispose(){this.clear()}}class Ne{constructor(e){this.editor=e,this.decorationIds=[]}dispose(){this.clear()}clear(){this.editor.changeDecorations((e=>{this.decorationIds=e.deltaDecorations(this.decorationIds,[])}))}setParts(e,t,i){if(!this.editor.getModel())return;const n=new Array;i&&n.push({range:_.Q.fromPositions(new h.y(e,i.column),new h.y(e,i.column+i.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),this.editor.changeDecorations((i=>{this.decorationIds=i.deltaDecorations(this.decorationIds,t.map((t=>({range:_.Q.fromPositions(new h.y(e,t.column)),options:{description:"ghost-text",after:{content:t.text,inlineClassName:t.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:Ce.VW.Left},showIfCollapsed:!0}}))).concat(n))}))}}class Re{constructor(e,t){this.editor=e,this.languageIdCodec=t,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:o}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const s=Math.max(t.length,i);if(s>0){const i=document.createElement("div");!function(e,t,i,n,o){const s=n.get(29),r=n.get(106),a="none",l=n.get(84),d=n.get(46),h=n.get(45),u=n.get(60),g=(0,_e.Du)(1e4);g.appendASCIIString('<div class="suggest-preview-text">');for(let f=0,v=i.length;f<v;f++){const e=i[f],n=e.content;g.appendASCIIString('<div class="view-line'),g.appendASCIIString('" style="top:'),g.appendASCIIString(String(f*u)),g.appendASCIIString('px;width:1000000px;">');const p=c.aC(n),m=c.E_(n),v=ve.f.createEmpty(n,o);(0,ye.UW)(new ye.zL(h.isMonospace&&!s,h.canUseHalfwidthRightwardsArrow,n,!1,p,m,0,v,e.decorations,t,0,h.spaceWidth,h.middotWidth,h.wsmiddotWidth,r,a,l,d!==fe.Bc.OFF,null),g),g.appendASCIIString("</div>")}g.appendASCIIString("</div>"),(0,me.M)(e,h);const p=g.build(),m=ke?ke.createHTML(p):p;e.innerHTML=m}(i,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:s,domNode:i,afterColumnAffinity:1})}}))}}class Te extends l.jG{constructor(e,t,i,n){super(),this.editor=e,this.position=t,this.domNode=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(n),this._register((0,l.s)((()=>{this.editor.removeContentWidget(this)}))),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}(0,Se.zy)(((e,t)=>{const i=e.getColor(we.Ek);i&&(t.addRule(`.monaco-editor .ghost-text-decoration { color: ${i.toString()} !important; }`),t.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${i.toString()} !important; }`),t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { color: ${i.toString()} !important; }`));const n=e.getColor(we.RH);n&&(t.addRule(`.monaco-editor .ghost-text-decoration { background-color: ${n.toString()}; }`),t.addRule(`.monaco-editor .ghost-text-decoration-preview { background-color: ${n.toString()}; }`),t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { background-color: ${n.toString()}; }`));const o=e.getColor(we.DH);o&&(t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 1px solid ${o}; }`),t.addRule(`.monaco-editor .ghost-text-decoration { border: 1px solid ${o}; }`),t.addRule(`.monaco-editor .ghost-text-decoration-preview { border: 1px solid ${o}; }`))}));var Ee=i(38016),Pe=i(40350),Oe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ae=function(e,t){return function(i,n){t(i,n,e)}},Fe=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let Ue=class e extends l.jG{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new l.HE),this.activeModelDidChangeEmitter=this._register(new a.vl),this._register(this.editor.onDidChangeModel((()=>{this.updateModelController()}))),this._register(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(107)&&this.updateModelController(),e.hasChanged(56)&&this.updateModelController()}))),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){const e=this.editor.getOption(107),t=this.editor.getOption(56);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(We,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return(null===(i=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===i?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Fe(this,void 0,void 0,(function*(){const t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};Ue.inlineSuggestionVisible=new Pe.N1("inlineSuggestionVisible",!1,Ee.kg("inlineSuggestionVisible","Whether an inline suggestion is visible")),Ue.inlineSuggestionHasIndentation=new Pe.N1("inlineSuggestionHasIndentation",!1,Ee.kg("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),Ue.inlineSuggestionHasIndentationLessThanTabSize=new Pe.N1("inlineSuggestionHasIndentationLessThanTabSize",!0,Ee.kg("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),Ue.ID="editor.contrib.ghostTextController",Ue=Oe([Ae(1,re._Y)],Ue);class He{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Ue.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Ue.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=Ue.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let We=class extends l.jG{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new He(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(he,this.editor)),this.widget=this._register(this.instantiationService.createInstance(De,this.editor,this.model)),this._register((0,l.s)((()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)}))),this._register(this.model.onDidChange((()=>{this.updateContextKeys()}))),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(void 0!==(null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText));let t=!1,i=!0;const n=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&n&&n.parts.length>0){const{column:e,lines:o}=n.parts[0],s=o[0];if(e<=this.editor.getModel().getLineIndentColumn(n.lineNumber)){let e=(0,c.HG)(s);-1===e&&(e=s.length-1),t=e>0;const n=this.editor.getModel().getOptions().tabSize;i=d.A.visibleColumnFromColumn(s,e+1,n)<n}}this.contextKeys.inlineCompletionSuggestsIndentation.set(t),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(i)}};We=Oe([Ae(1,re._Y),Ae(2,Pe.fN)],We);class Ve extends n.ks{constructor(){super({id:Ve.ID,label:Ee.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Pe.M$.and(o.R.writable,Ue.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return Fe(this,void 0,void 0,(function*(){const e=Ue.get(t);e&&(e.showNextInlineCompletion(),t.focus())}))}}Ve.ID="editor.action.inlineSuggest.showNext";class ze extends n.ks{constructor(){super({id:ze.ID,label:Ee.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Pe.M$.and(o.R.writable,Ue.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return Fe(this,void 0,void 0,(function*(){const e=Ue.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())}))}}ze.ID="editor.action.inlineSuggest.showPrevious";class je extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:Ee.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:o.R.writable})}run(e,t){return Fe(this,void 0,void 0,(function*(){const e=Ue.get(t);e&&e.trigger()}))}}var Be=i(84181),Qe=i(62179),$e=i(48276),Ke=i(21850),qe=i(1754),Ge=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ze=function(e,t){return function(i,n){t(i,n,e)}};class Ye{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}get commands(){var e,t,i;return(null===(i=null===(t=null===(e=this.controller.activeModel)||void 0===e?void 0:e.activeInlineCompletionsModel)||void 0===t?void 0:t.completionSession.value)||void 0===i?void 0:i.commands)||[]}}let Je=class{constructor(e,t,i,n,o,s,r){this._editor=e,this._commandService=t,this._menuService=i,this._contextKeyService=n,this._languageService=o,this._openerService=s,this.accessibilityService=r,this.hoverOrdinal=3}suggestHoverAnchor(e){const t=Ue.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const e=i.detail;if(t.shouldShowHoverAtViewZone(e.viewZoneId))return new s.mm(1e3,this,_.Q.fromPositions(e.positionBefore||e.position,e.positionBefore||e.position))}if(7===i.type&&t.shouldShowHoverAt(i.range))return new s.mm(1e3,this,i.range);if(6===i.type){if(i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range))return new s.mm(1e3,this,i.range)}return null}computeSync(e,t){const i=Ue.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new Ye(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new l.Cm,n=t[0];this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,n,i);const o=i.add(this._menuService.createMenu(Ke.D8.InlineCompletionsActions,this._contextKeyService)),s=e.statusBar.addAction({label:Ee.kg("showNextInlineSuggestion","Next"),commandId:Ve.ID,run:()=>this._commandService.executeCommand(Ve.ID)}),a=e.statusBar.addAction({label:Ee.kg("showPreviousInlineSuggestion","Previous"),commandId:ze.ID,run:()=>this._commandService.executeCommand(ze.ID)});e.statusBar.addAction({label:Ee.kg("acceptInlineSuggestion","Accept"),commandId:r,run:()=>this._commandService.executeCommand(r)});const c=[s,a];for(const r of c)r.setEnabled(!1);n.hasMultipleSuggestions().then((e=>{for(const t of c)t.setEnabled(e)}));for(const r of n.commands)e.statusBar.addAction({label:r.title,commandId:r.id,run:()=>this._commandService.executeCommand(r.id,...r.arguments||[])});for(const[r,l]of o.getActions())for(const t of l)t instanceof Ke.Xe&&e.statusBar.addAction({label:t.label,commandId:t.item.id,run:()=>this._commandService.executeCommand(t.item.id)});return i}renderScreenReaderText(e,t,i){var n,o;const s=pe.$,r=s("div.hover-row.markdown-hover"),a=pe.BC(r,s("div.hover-contents")),l=i.add(new Qe.T({editor:this._editor},this._languageService,this._openerService)),c=null===(o=null===(n=t.controller.activeModel)||void 0===n?void 0:n.inlineCompletionsModel)||void 0===o?void 0:o.ghostText;if(c){const t=this._editor.getModel().getLineContent(c.lineNumber);(t=>{i.add(l.onDidRenderAsync((()=>{a.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=Ee.kg("inlineSuggestionFollows","Suggestion:"),o=i.add(l.render((new Be.Bc).appendText(n).appendCodeblock("text",t)));a.replaceChildren(o.element)})(c.renderForScreenReader(t))}e.fragment.appendChild(r)}};Je=Ge([Ze(1,x.wT),Ze(2,Ke.ez),Ze(3,Pe.fN),Ze(4,be.L),Ze(5,qe.Cr),Ze(6,$e.j)],Je);var Xe=i(47506);(0,n.HW)(Ue.ID,Ue),(0,n.Fl)(je),(0,n.Fl)(Ve),(0,n.Fl)(ze),s.B2.register(Je);const et=n.DX.bindToContribution(Ue.get),tt=new et({id:r,precondition:Ue.inlineSuggestionVisible,handler(e){e.commit(),e.editor.focus()}});(0,n.E_)(tt),Xe.f.registerKeybindingRule({primary:2,weight:200,id:tt.id,when:Pe.M$.and(tt.precondition,o.R.tabMovesFocus.toNegated(),Ue.inlineSuggestionHasIndentationLessThanTabSize)}),(0,n.E_)(new et({id:"editor.action.inlineSuggest.hide",precondition:Ue.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(e){e.hide()}}))},65519:(e,t,i)=>{i.r(t),i.d(t,{ExpandLineSelectionAction:()=>a});var n=i(50051),o=i(29065),s=i(29671),r=i(38016);class a extends n.ks{constructor(){super({id:"expandLineSelection",label:r.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:s.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,o.c.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}(0,n.Fl)(a)},84551:(e,t,i)=>{i.r(t),i.d(t,{AbstractCaseAction:()=>K,AbstractDeleteAllToBoundaryAction:()=>z,AbstractSortLinesAction:()=>T,DeleteAllLeftAction:()=>j,DeleteAllRightAction:()=>B,DeleteDuplicateLinesAction:()=>O,DeleteLinesAction:()=>F,DuplicateSelectionAction:()=>N,IndentLinesAction:()=>U,InsertLineAfterAction:()=>V,InsertLineBeforeAction:()=>W,JoinLinesAction:()=>Q,KebabCaseAction:()=>X,LowerCaseAction:()=>G,SnakeCaseAction:()=>J,SortLinesAscendingAction:()=>E,SortLinesDescendingAction:()=>P,TitleCaseAction:()=>Y,TransposeAction:()=>$,TrimTrailingWhitespaceAction:()=>A,UpperCaseAction:()=>q});var n=i(44948),o=i(22337),s=i(50051),r=i(53353),a=i(70120),l=i(47584),c=i(48282),d=i(62612),h=i(15186),u=i(21429),g=i(29671);class p{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const n=[];for(let s=i.startLineNumber;s<=i.endLineNumber;s++)n.push(e.getLineContent(s));const o=n.join("\n");""===o&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new h.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new h.Q(i.startLineNumber,1,i.startLineNumber,1),o+"\n"):t.addEditOperation(new h.Q(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+o),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,n=i.endLineNumber,o=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(n+=this._endLineNumberDelta,o=1),i=u.L.createWithDirection(e,t,n,o,this._selectionDirection)}return i}}var m=i(53817),f=i(14469),v=i(99855),_=i(91835),C=i(2803),b=i(95566),w=i(3875),L=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},y=function(e,t){return function(i,n){t(i,n,e)}};let S=class{constructor(e,t,i,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){const i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const{tabSize:o,indentSize:s,insertSpaces:r}=e.getOptions(),a=this.buildIndentConverter(o,s,r),l={tokenization:{getLineTokens:t=>e.tokenization.getLineTokens(t),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&1===e.getLineMaxColumn(n.startLineNumber)){const i=n.startLineNumber,o=this._isMovingDown?i+1:i-1;1===e.getLineMaxColumn(o)?t.addEditOperation(new h.Q(1,1,1,1),null):(t.addEditOperation(new h.Q(i,1,i,1),e.getLineContent(o)),t.addEditOperation(new h.Q(o,1,o,e.getLineMaxColumn(o)),null)),n=new u.L(o,1,o,1)}else{let i,s;if(this._isMovingDown){i=n.endLineNumber+1,s=e.getLineContent(i),t.addEditOperation(new h.Q(i-1,e.getLineMaxColumn(i-1),i,e.getLineMaxColumn(i)),null);let c=s;if(this.shouldAutoIndent(e,n)){const d=this.matchEnterRule(e,a,o,i,n.startLineNumber-1);if(null!==d){const t=m.UU(e.getLineContent(i)),n=d+C.c(t,o),a=C.k(n,o,r);c=a+this.trimLeft(s)}else{l.getLineContent=t=>t===n.startLineNumber?e.getLineContent(i):e.getLineContent(t);const t=(0,b.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(i,1),n.startLineNumber,a,this._languageConfigurationService);if(null!==t){const n=m.UU(e.getLineContent(i)),a=C.c(t,o);if(a!==C.c(n,o)){const e=C.k(a,o,r);c=e+this.trimLeft(s)}}}t.addEditOperation(new h.Q(n.startLineNumber,1,n.startLineNumber,1),c+"\n");const u=this.matchEnterRuleMovingDown(e,a,o,n.startLineNumber,i,c);if(null!==u)0!==u&&this.getIndentEditsOfMovingBlock(e,t,n,o,r,u);else{l.getLineContent=t=>t===n.startLineNumber?c:t>=n.startLineNumber+1&&t<=n.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);const s=(0,b.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(i,1),n.startLineNumber+1,a,this._languageConfigurationService);if(null!==s){const i=m.UU(e.getLineContent(n.startLineNumber)),a=C.c(s,o),l=C.c(i,o);if(a!==l){const i=a-l;this.getIndentEditsOfMovingBlock(e,t,n,o,r,i)}}}}else t.addEditOperation(new h.Q(n.startLineNumber,1,n.startLineNumber,1),c+"\n")}else if(i=n.startLineNumber-1,s=e.getLineContent(i),t.addEditOperation(new h.Q(i,1,i+1,1),null),t.addEditOperation(new h.Q(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),"\n"+s),this.shouldAutoIndent(e,n)){l.getLineContent=t=>t===i?e.getLineContent(n.startLineNumber):e.getLineContent(t);const s=this.matchEnterRule(e,a,o,n.startLineNumber,n.startLineNumber-2);if(null!==s)0!==s&&this.getIndentEditsOfMovingBlock(e,t,n,o,r,s);else{const s=(0,b.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(n.startLineNumber,1),i,a,this._languageConfigurationService);if(null!==s){const i=m.UU(e.getLineContent(n.startLineNumber)),a=C.c(s,o),l=C.c(i,o);if(a!==l){const i=a-l;this.getIndentEditsOfMovingBlock(e,t,n,o,r,i)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,i){return{shiftIndent:n=>f.Y.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>f.Y.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,o){if(o){let s=o.indentation;o.indentAction===v.l.None||o.indentAction===v.l.Indent?s=o.indentation+o.appendText:o.indentAction===v.l.IndentOutdent?s=o.indentation:o.indentAction===v.l.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);const r=e.getLineContent(n);if(this.trimLeft(r).indexOf(this.trimLeft(s))>=0){const o=m.UU(e.getLineContent(n));let r=m.UU(s);const a=(0,b.Yb)(e,n,this._languageConfigurationService);null!==a&&2&a&&(r=t.unshiftIndent(r));return C.c(r,i)-C.c(o,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,o,s){if(m.lT(s)>=0){const s=e.getLineMaxColumn(o),r=(0,w.h)(this._autoIndent,e,new h.Q(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let o=n-1;for(;o>=1;){const t=e.getLineContent(o);if(m.lT(t)>=0)break;o--}if(o<1||n>e.getLineCount())return null;const s=e.getLineMaxColumn(o),r=(0,w.h)(this._autoIndent,e,new h.Q(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,o,s){let r=o;for(;r>=1;){let t;t=r===o&&void 0!==s?s:e.getLineContent(r);if(m.lT(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const a=e.getLineMaxColumn(r),l=(0,w.h)(this._autoIndent,e,new h.Q(r,a,r,a),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,l)}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,o,s){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const a=e.getLineContent(r),l=m.UU(a),c=C.c(l,n)+s,d=C.k(c,n,o);d!==l&&(t.addEditOperation(new h.Q(r,1,r,l.length+1),d),r===i.endLineNumber&&i.endColumn<=l.length+1&&""===d&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber&&(i=i.setEndPosition(i.endLineNumber,2)),i}};S=L([y(3,_.JZ)],S);class x{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return x._COLLATOR||(x._COLLATOR=new Intl.Collator),x._COLLATOR}getEditOperations(e,t){const i=function(e,t,i){const n=I(e,t,i);if(!n)return null;return c.k.replace(new h.Q(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),n.after.join("\n"))}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const n=I(e,t,i);if(!n)return!1;for(let o=0,s=n.before.length;o<s;o++)if(n.before[o]!==n.after[o])return!0;return!1}}function I(e,t,i){const n=t.startLineNumber;let o=t.endLineNumber;if(1===t.endColumn&&o--,n>=o)return null;const s=[];for(let a=n;a<=o;a++)s.push(e.getLineContent(a));let r=s.slice(0);return r.sort(x.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:o,before:s,after:r}}x._COLLATOR=null;var k=i(38016),D=i(21850);class M extends s.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>h.Q.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let s=1;s<i.length;s++){const e=i[s];n.selection.endLineNumber===e.selection.startLineNumber&&(n.index<e.index?e.ignore=!0:(n.ignore=!0,n=e))}const o=[];for(const s of i)o.push(new p(s.selection,this.down,s.ignore));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class N extends s.ks{constructor(){super({id:"editor.action.duplicateSelection",label:k.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:g.R.writable,menuOpts:{menuId:D.D8.MenubarSelectionMenu,group:"2_line",title:k.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(!t.hasModel())return;const n=[],o=t.getSelections(),s=t.getModel();for(const a of o)if(a.isEmpty())n.push(new p(a,!0));else{const e=new u.L(a.endLineNumber,a.endColumn,a.endLineNumber,a.endColumn);n.push(new r.tA(e,s.getValueInRange(a)))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class R extends s.ks{constructor(e,t){super(t),this.down=e}run(e,t){const i=e.get(_.JZ),n=[],o=t.getSelections()||[],s=t.getOption(9);for(const r of o)n.push(new S(r,this.down,s,i));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class T extends s.ks{constructor(e,t){super(t),this.descending=e}run(e,t){const i=t.getSelections()||[];for(const o of i)if(!x.canRun(t.getModel(),o,this.descending))return;const n=[];for(let o=0,s=i.length;o<s;o++)n[o]=new x(i[o],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class E extends T{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:k.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:g.R.writable})}}class P extends T{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:k.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:g.R.writable})}}class O extends s.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:k.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:g.R.writable})}run(e,t){if(!t.hasModel())return;const i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;const n=[],o=[];let s=0;for(const r of t.getSelections()){const e=new Set,t=[];for(let n=r.startLineNumber;n<=r.endLineNumber;n++){const o=i.getLineContent(n);e.has(o)||(t.push(o),e.add(o))}const a=new u.L(r.startLineNumber,1,r.endLineNumber,i.getLineMaxColumn(r.endLineNumber)),l=r.startLineNumber-s,d=new u.L(l,1,l+t.length-1,t[t.length-1].length);n.push(c.k.replace(a,t.join("\n"))),o.push(d),s+=r.endLineNumber-r.startLineNumber+1-t.length}t.pushUndoStop(),t.executeEdits(this.id,n,o),t.pushUndoStop()}}class A extends s.ks{constructor(){super({id:A.ID,label:k.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:(0,n.m5)(2089,2102),weight:100}})}run(e,t,i){let n=[];"auto-save"===i.reason&&(n=(t.getSelections()||[]).map((e=>new d.y(e.positionLineNumber,e.positionColumn))));const o=t.getSelection();if(null===o)return;const s=new a.d(o,n);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop()}}A.ID="editor.action.trimTrailingWhitespace";class F extends s.ks{constructor(){super({id:"editor.action.deleteLines",label:k.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:g.R.writable,kbOpts:{kbExpr:g.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let o=0;const s=[],r=[];for(let a=0,l=i.length;a<l;a++){const e=i[a];let t=e.startLineNumber,l=e.endLineNumber,d=1,h=n.getLineMaxColumn(l);l<n.getLineCount()?(l+=1,h=1):t>1&&(t-=1,d=n.getLineMaxColumn(t)),s.push(c.k.replace(new u.L(t,d,l,h),"")),r.push(new u.L(t-o,e.positionColumn,t-o,e.positionColumn)),o+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}));t.sort(((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let o=1;o<t.length;o++)n.endLineNumber+1>=t[o].startLineNumber?n.endLineNumber=t[o].endLineNumber:(i.push(n),n=t[o]);return i.push(n),i}}class U extends s.ks{constructor(){super({id:"editor.action.indentLines",label:k.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2137,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,l.TK.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class H extends s.ks{constructor(){super({id:"editor.action.outdentLines",label:k.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2135,weight:100}})}run(e,t){o.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)}}class W extends s.ks{constructor(){super({id:"editor.action.insertLineBefore",label:k.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,l.TK.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class V extends s.ks{constructor(){super({id:"editor.action.insertLineAfter",label:k.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,l.TK.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class z extends s.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let a=0,l=n.length-1;a<l;a++){const e=n[a],t=n[a+1];null===h.Q.intersectRanges(e,t)?o.push(e):n[a+1]=h.Q.plusRange(e,t)}o.push(n[n.length-1]);const s=this._getEndCursorState(i,o),r=o.map((e=>c.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}class j extends z{constructor(){super({id:"deleteAllLeft",label:k.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:g.R.writable,kbOpts:{kbExpr:g.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let o=0;return t.forEach((t=>{let s;if(1===t.endColumn&&o>0){const e=t.startLineNumber-o;s=new u.L(e,t.startColumn,e,t.startColumn)}else s=new u.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=s:n.push(s)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(h.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineContent(t).length+1;return new h.Q(t,i,e.startLineNumber,1)}return new h.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new h.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}class B extends z{constructor(){super({id:"deleteAllRight",label:k.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:g.R.writable,kbOpts:{kbExpr:g.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let o=0,s=t.length,r=0;o<s;o++){const s=t[o],a=new u.L(s.startLineNumber-r,s.startColumn,s.startLineNumber-r,s.startColumn);s.intersectRanges(e)?i=a:n.push(a)}return i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getModel();if(null===t)return[];const i=e.getSelections();if(null===i)return[];const n=i.map((e=>{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new h.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new h.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(h.Q.compareRangesUsingStarts),n}}class Q extends s.ks{constructor(){super({id:"editor.action.joinLines",label:k.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(h.Q.compareRangesUsingStarts);const o=[],s=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new u.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new u.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));o.push(s);const r=t.getModel();if(null===r)return;const a=[],l=[];let d=n,g=0;for(let p=0,m=o.length;p<m;p++){const e=o[p],t=e.startLineNumber,i=1;let s,m,f=0;const v=r.getLineContent(e.endLineNumber).length-e.endColumn;if(e.isEmpty()||e.startLineNumber===e.endLineNumber){const i=e.getStartPosition();i.lineNumber<r.getLineCount()?(s=t+1,m=r.getLineMaxColumn(s)):(s=i.lineNumber,m=r.getLineMaxColumn(i.lineNumber))}else s=e.endLineNumber,m=r.getLineMaxColumn(s);let _=r.getLineContent(t);for(let n=t+1;n<=s;n++){const e=r.getLineContent(n),t=r.getLineFirstNonWhitespaceColumn(n);if(t>=1){let i=!0;""===_&&(i=!1),!i||" "!==_.charAt(_.length-1)&&"\t"!==_.charAt(_.length-1)||(i=!1,_=_.replace(/[\s\uFEFF\xA0]+$/g," "));const n=e.substr(t-1);_+=(i?" ":"")+n,f=i?n.length+1:n.length}else f=0}const C=new h.Q(t,i,s,m);if(!C.isEmpty()){let i;e.isEmpty()?(a.push(c.k.replace(C,_)),i=new u.L(C.startLineNumber-g,_.length-f+1,t-g,_.length-f+1)):e.startLineNumber===e.endLineNumber?(a.push(c.k.replace(C,_)),i=new u.L(e.startLineNumber-g,e.startColumn,e.endLineNumber-g,e.endColumn)):(a.push(c.k.replace(C,_)),i=new u.L(e.startLineNumber-g,e.startColumn,e.startLineNumber-g,_.length-v)),null!==h.Q.intersectRanges(C,n)?d=i:l.push(i)}g+=C.endLineNumber-C.startLineNumber}l.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,a,l),t.pushUndoStop()}}class $ extends s.ks{constructor(){super({id:"editor.action.transpose",label:k.kg("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:g.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=[];for(let s=0,a=i.length;s<a;s++){const e=i[s];if(!e.isEmpty())continue;const t=e.getStartPosition(),a=n.getLineMaxColumn(t.lineNumber);if(t.column>=a){if(t.lineNumber===n.getLineCount())continue;const e=new h.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i=n.getValueInRange(e).split("").reverse().join("");o.push(new r.iu(new u.L(t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),i))}else{const e=new h.Q(t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),i=n.getValueInRange(e).split("").reverse().join("");o.push(new r.ui(e,i,new u.L(t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class K extends s.ks{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=t.getOption(118),s=[];for(const r of i)if(r.isEmpty()){const e=r.getStartPosition(),i=t.getConfiguredWordAtPosition(e);if(!i)continue;const a=new h.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),l=n.getValueInRange(a);s.push(c.k.replace(a,this._modifyText(l,o)))}else{const e=n.getValueInRange(r);s.push(c.k.replace(r,this._modifyText(e,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}}class q extends K{constructor(){super({id:"editor.action.transformToUppercase",label:k.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:g.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class G extends K{constructor(){super({id:"editor.action.transformToLowercase",label:k.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:g.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class Z{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class Y extends K{constructor(){super({id:"editor.action.transformToTitlecase",label:k.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:g.R.writable})}_modifyText(e,t){const i=Y.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}Y.titleBoundary=new Z("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class J extends K{constructor(){super({id:"editor.action.transformToSnakecase",label:k.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:g.R.writable})}_modifyText(e,t){const i=J.caseBoundary.get(),n=J.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}J.caseBoundary=new Z("(\\p{Ll})(\\p{Lu})","gmu"),J.singleLetters=new Z("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class X extends K{constructor(){super({id:"editor.action.transformToKebabcase",label:k.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:g.R.writable})}static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}_modifyText(e,t){const i=X.caseBoundary.get(),n=X.singleLetters.get(),o=X.underscoreBoundary.get();return i&&n&&o?e.replace(o,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}X.caseBoundary=new Z("(\\p{Ll})(\\p{Lu})","gmu"),X.singleLetters=new Z("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),X.underscoreBoundary=new Z("(\\S)(_)(\\S)","gm"),(0,s.Fl)(class extends M{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:k.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:D.D8.MenubarSelectionMenu,group:"2_line",title:k.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,s.Fl)(class extends M{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:k.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:D.D8.MenubarSelectionMenu,group:"2_line",title:k.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,s.Fl)(N),(0,s.Fl)(class extends R{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:k.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:D.D8.MenubarSelectionMenu,group:"2_line",title:k.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,s.Fl)(class extends R{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:k.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:g.R.writable,kbOpts:{kbExpr:g.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:D.D8.MenubarSelectionMenu,group:"2_line",title:k.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,s.Fl)(E),(0,s.Fl)(P),(0,s.Fl)(O),(0,s.Fl)(A),(0,s.Fl)(F),(0,s.Fl)(U),(0,s.Fl)(H),(0,s.Fl)(W),(0,s.Fl)(V),(0,s.Fl)(j),(0,s.Fl)(B),(0,s.Fl)(Q),(0,s.Fl)($),(0,s.Fl)(q),(0,s.Fl)(G),J.caseBoundary.isSupported()&&J.singleLetters.isSupported()&&(0,s.Fl)(J),Y.titleBoundary.isSupported()&&(0,s.Fl)(Y),X.isSupported()&&(0,s.Fl)(X)},4863:(e,t,i)=>{i.r(t),i.d(t,{CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE:()=>M,LinkedEditingAction:()=>T,LinkedEditingContribution:()=>R,editorLinkedEditingBackground:()=>O});var n=i(39869),o=i(86683),s=i(74832),r=i(60196),a=i(24156),l=i(74663),c=i(26819),d=i(53817),h=i(54605),u=i(50051),g=i(10664),p=i(62612),m=i(15186),f=i(29671),v=i(28715),_=i(91835),C=i(38016),b=i(40350),w=i(93467),L=i(86471),y=i(68975),S=i(14399),x=i(43792),I=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},k=function(e,t){return function(i,n){t(i,n,e)}},D=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};const M=new b.N1("LinkedEditingInputVisible",!1),N="linked-editing-decoration";let R=class e extends c.jG{constructor(e,t,i,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new c.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=M.bindTo(t),this._debounceInformation=o.for(this._providers,"Linked Editing",{min:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new c.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(63)||e.hasChanged(83))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(63)||this._editor.getOption(83))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new o.ve(this._debounceInformation.get(t)),s=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},r=new o.ve(0),a=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{s()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}s()}))),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const o=[];for(let s=1,r=this._currentDecorations.length;s<r;s++){const e=this._currentDecorations.getRange(s);if(e)if(e.startLineNumber!==e.endLineNumber)o.push({range:e,text:n});else{let i=t.getValueInRange(e),s=n,r=e.startColumn,a=e.endColumn;const l=d.Qp(i,s);r+=l,i=i.substr(l),s=s.substr(l);const c=d.Vi(i,s);a-=c,i=i.substr(0,i.length-c),s=s.substr(0,s.length-c),r===a&&0===s.length||o.push({range:new m.Q(e.startLineNumber,r,e.endLineNumber,a),text:s})}}if(0!==o.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",o),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(t=!1){return D(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return void this.clearRanges();const i=this._editor.getPosition();if(!this._enabled&&!t||this._editor.getSelections().length>1)return void this.clearRanges();const n=this._editor.getModel(),s=n.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===s){if(i.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(i))return}}this._currentRequestPosition=i,this._currentRequestModelVersion=s;const r=(0,o.SS)((t=>D(this,void 0,void 0,(function*(){try{const o=new x.W(!1),a=yield P(this._providers,n,i,t);if(this._debounceInformation.update(n,o.elapsed()),r!==this._currentRequest)return;if(this._currentRequest=null,s!==n.getVersionId())return;let l=[];(null===a||void 0===a?void 0:a.ranges)&&(l=a.ranges),this._currentWordPattern=(null===a||void 0===a?void 0:a.wordPattern)||this._languageWordPattern;let c=!1;for(let e=0,t=l.length;e<t;e++)if(m.Q.containsPosition(l[e],i)){if(c=!0,0!==e){const t=l[e];l.splice(e,1),l.unshift(t)}break}if(!c)return void this.clearRanges();const d=l.map((t=>({range:t,options:e.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(d),this._syncRangesToken++}catch(o){(0,a.MB)(o)||(0,a.dz)(o),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}}))));return this._currentRequest=r,r}))}};R.ID="editor.contrib.linkedEditing",R.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:N}),R=I([k(1,b.fN),k(2,y.u),k(3,_.JZ),k(4,S.U)],R);class T extends u.ks{constructor(){super({id:"editor.action.linkedEditing",label:C.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:b.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(g.T),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(n)&&p.y.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),a.dz):super.runCommand(e,t)}run(e,t){const i=R.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const E=u.DX.bindToContribution(R.get);function P(e,t,i,s){const r=e.ordered(t);return(0,o.$1)(r.map((e=>()=>D(this,void 0,void 0,(function*(){try{return yield e.provideLinkedEditingRanges(t,i,s)}catch(n){return void(0,a.M_)(n)}})))),(e=>!!e&&n.EI(null===e||void 0===e?void 0:e.ranges)))}(0,u.E_)(new E({id:"cancelLinkedEditingInput",precondition:M,handler:e=>e.clearRanges(),kbOpts:{kbExpr:f.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const O=(0,w.x1A)("editor.linkedEditingBackground",{dark:r.Q1.fromHex("#f00").transparent(.3),light:r.Q1.fromHex("#f00").transparent(.3),hcDark:r.Q1.fromHex("#f00").transparent(.3),hcLight:r.Q1.white},C.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,L.zy)(((e,t)=>{const i=e.getColor(O);i&&t.addRule(`.monaco-editor .${N} { background: ${i}; border-left-color: ${i}; }`)})),(0,u.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(y.u);return P(n,t,i,s.X.None)})),(0,u.HW)(R.ID,R),(0,u.Fl)(T)},81037:(e,t,i)=>{i.r(t),i.d(t,{LinkDetector:()=>O});var n=i(86683),o=i(74832),s=i(24156),r=i(84181),a=i(26819),l=i(86657),c=i(17032),d=i(9934),h=i(43792),u=i(54605),g=i(50051),p=i(28715),m=i(14399),f=i(68975),v=i(81346),_=i(39869),C=i(4562),b=i(15186),w=i(47665),L=i(84562),y=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class S{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return y(this,void 0,void 0,(function*(){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}))}}class x{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new S(e,n)));t=x._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,o,s,r;for(n=0,s=0,o=e.length,r=t.length;n<o&&s<r;){const o=e[n],r=t[s];if(b.Q.areIntersectingOrTouching(o.range,r.range)){n++;continue}b.Q.compareRangesUsingStarts(o.range,r.range)<0?(i.push(o),n++):(i.push(r),s++)}for(;n<o;n++)i.push(e[n]);for(;s<r;s++)i.push(t[s]);return i}}function I(e,t,i){const n=[],o=e.ordered(t).reverse().map(((e,o)=>Promise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[o]=[t,e])}),s.M_)));return Promise.all(o).then((()=>{const e=new x((0,_.Yc)(n));return i.isCancellationRequested?(e.dispose(),new x([])):e}))}L.wb.registerCommand("_executeLinkProvider",((e,...t)=>y(void 0,void 0,void 0,(function*(){let[i,n]=t;(0,C.j)(i instanceof u.r),"number"!==typeof n&&(n=0);const{linkProvider:s}=e.get(f.u),r=e.get(w.S).getModel(i);if(!r)return[];const a=yield I(s,r,o.X.None);if(!a)return[];for(let e=0;e<Math.min(n,a.links.length);e++)yield a.links[e].resolve(o.X.None);const l=a.links.slice(0);return a.dispose(),l}))));var k=i(38016),D=i(11734),M=i(1754),N=i(93467),R=i(86471),T=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},E=function(e,t){return function(i,n){t(i,n,e)}},P=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(t){s(t)}}function a(e){try{l(n.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let O=class e extends a.jG{constructor(e,t,i,o,s){super(),this.editor=e,this.openerService=t,this.notificationService=i,this.languageFeaturesService=o,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=s.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new n.uC((()=>this.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new v.gi(e));this._register(r.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(r.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(r.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(64)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}static get(t){return t.getContribution(e.ID)}computeLinksNow(){return P(this,void 0,void 0,(function*(){if(!this.editor.hasModel()||!this.editor.getOption(64))return;const e=this.editor.getModel();if(this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,n.SS)((t=>I(this.providers,e,t)));try{const t=new h.W(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){(0,s.dz)(t)}finally{this.computePromise=null}}}))}updateDecorations(e){const t="altKey"===this.editor.getOption(71),i=[],n=Object.keys(this.currentOccurrences);for(const s of n){const e=this.currentOccurrences[s];i.push(e.decorationId)}const o=[];if(e)for(const s of e)o.push(F.decoration(s,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let i=0,o=n.length;i<o;i++){const t=new F(e[i],n[i]);this.currentOccurrences[t.decorationId]=t}}))}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(71);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations((e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(71);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:n}=e;n.resolve(o.X.None).then((e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.ny.file&&e.startsWith(`${l.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===l.ny.file){const n=d.su(i);let o=null;n.startsWith("/./")?o=`.${n.substr(1)}`:n.startsWith("//./")&&(o=`.${n.substr(2)}`),o&&(e=d.uJ(t,o))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(k.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(k.kg("missing.url","Failed to open this link because its target is missing.")):(0,s.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const i of t){const e=this.currentOccurrences[i.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};O.ID="editor.linkDetector",O=T([E(1,M.Cr),E(2,D.Ot),E(3,f.u),E(4,m.U)],O);const A={general:p.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:p.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class F{constructor(e,t){this.link=e,this.decorationId=t}static decoration(e,t){return{range:e.range,options:F._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n=Object.assign({},i?A.active:A.general);return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?k.kg("links.navigate.executeCmd","Execute command"):k.kg("links.navigate.follow","Follow link"),o=t?c.zx?k.kg("links.navigate.kb.meta.mac","cmd + click"):k.kg("links.navigate.kb.meta","ctrl + click"):c.zx?k.kg("links.navigate.kb.alt.mac","option + click"):k.kg("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=k.kg("tooltip.explanation","Execute command {0}",e)}}return new r.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${o})`)}return(new r.Bc).appendText(`${n} (${o})`)}(e,t),n}activate(e,t){e.changeDecorationOptions(this.decorationId,F._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,F._getOptions(this.link,t,!1))}}class U extends g.ks{constructor(){super({id:"editor.action.openLink",label:k.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=O.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const o of n){const e=i.getLinkOccurrence(o.getEndPosition());e&&i.openLinkOccurrence(e,!1)}}}(0,g.HW)(O.ID,O),(0,g.Fl)(U),(0,R.zy)(((e,t)=>{const i=e.getColor(N.Ztu);i&&t.addRule(`.monaco-editor .detected-link-active { color: ${i} !important; }`)}))}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7635.9d5d1322.chunk.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[7635],{77635:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}}}]);
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/