@covalent/components 8.14.1 → 8.15.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/abap-1354785f.mjs +1314 -0
  2. package/abap-c7187853.js +6 -0
  3. package/action-ribbon.js +1 -1
  4. package/action-ribbon.mjs +4 -3
  5. package/alert.js +1 -1
  6. package/alert.mjs +4 -3
  7. package/apex-279d4f27.mjs +315 -0
  8. package/apex-fc5f2b3e.js +6 -0
  9. package/app-shell.js +1 -1
  10. package/app-shell.mjs +8 -7
  11. package/assets/css.worker-1af1972f.js +84 -0
  12. package/assets/editor.worker-df55e1ff.js +8 -0
  13. package/assets/html.worker-38c267f1.js +456 -0
  14. package/assets/json.worker-bf861c27.js +39 -0
  15. package/assets/ts.worker-e151483b.js +33972 -0
  16. package/async-directive-4a34f75e.js +5 -0
  17. package/async-directive-99a01ec7.mjs +78 -0
  18. package/azcli-ba812c55.mjs +74 -0
  19. package/azcli-eb191d91.js +6 -0
  20. package/badge.js +1 -1
  21. package/badge.mjs +4 -3
  22. package/bat-34d38df4.js +6 -0
  23. package/bat-4d77495d.mjs +95 -0
  24. package/bicep-7b240724.mjs +108 -0
  25. package/bicep-a8264e77.js +7 -0
  26. package/button.js +1 -1
  27. package/button.mjs +10 -9
  28. package/cameligo-5d2daeb8.mjs +168 -0
  29. package/cameligo-6e71c8f3.js +6 -0
  30. package/card.js +1 -1
  31. package/card.mjs +4 -3
  32. package/cell/cell.d.ts +58 -0
  33. package/cell/cell.d.ts.map +1 -0
  34. package/cell.js +25 -0
  35. package/cell.mjs +129 -0
  36. package/check-list-item.js +1 -1
  37. package/check-list-item.mjs +8 -7
  38. package/checkbox.js +1 -1
  39. package/checkbox.mjs +16 -15
  40. package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
  41. package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
  42. package/chip-set.js +2 -2
  43. package/chip-set.mjs +46 -45
  44. package/chip.js +1 -1
  45. package/chip.mjs +5 -4
  46. package/circular-progress.js +1 -1
  47. package/circular-progress.mjs +5 -4
  48. package/class-map-0a4c6ca9.js +5 -0
  49. package/class-map-6e504a9a.mjs +38 -0
  50. package/clojure-355adae1.js +6 -0
  51. package/clojure-b7ea12a3.mjs +754 -0
  52. package/code-editor/code-editor.d.ts +51 -0
  53. package/code-editor/code-editor.d.ts.map +1 -0
  54. package/code-editor-383a8fae.mjs +94274 -0
  55. package/code-editor-4cce5e5d.js +1200 -0
  56. package/code-editor.js +1 -0
  57. package/code-editor.mjs +10 -0
  58. package/code-snippet.js +1 -1
  59. package/code-snippet.mjs +4 -3
  60. package/coffee-1a8cfbf4.mjs +228 -0
  61. package/coffee-fd8a7421.js +6 -0
  62. package/cpp-642b10c4.mjs +387 -0
  63. package/cpp-7eec3311.js +6 -0
  64. package/csharp-32862cd2.js +6 -0
  65. package/csharp-d987ddad.mjs +320 -0
  66. package/csp-54919de0.js +6 -0
  67. package/csp-96407af0.mjs +57 -0
  68. package/css-5dd354ac.mjs +186 -0
  69. package/css-9be95551.js +8 -0
  70. package/cssMode-821261c4.js +9 -0
  71. package/cssMode-9b89f9af.mjs +1450 -0
  72. package/cypher-11e5a4b6.mjs +262 -0
  73. package/cypher-cc849b67.js +6 -0
  74. package/dart-031264ea.js +6 -0
  75. package/dart-5d209f63.mjs +270 -0
  76. package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
  77. package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
  78. package/dialog.js +1 -1
  79. package/dialog.mjs +5 -4
  80. package/directive-1186bc23.js +5 -0
  81. package/directive-daf4e9b6.mjs +27 -0
  82. package/dockerfile-2f8684f7.js +6 -0
  83. package/dockerfile-8739cff7.mjs +132 -0
  84. package/drawer.js +1 -1
  85. package/drawer.mjs +5 -4
  86. package/ecl-68a6f20f.js +6 -0
  87. package/ecl-a20c5155.mjs +454 -0
  88. package/elixir-32cc668e.js +6 -0
  89. package/elixir-8b028584.mjs +467 -0
  90. package/flow9-0dea2e73.mjs +141 -0
  91. package/flow9-1d2ab5f6.js +6 -0
  92. package/formfield.js +3 -3
  93. package/formfield.mjs +4 -3
  94. package/freemarker2-4fc0d2e6.mjs +648 -0
  95. package/freemarker2-7095cbc4.js +8 -0
  96. package/fsharp-49a70fad.mjs +210 -0
  97. package/fsharp-a22f5013.js +6 -0
  98. package/go-46e3b371.mjs +208 -0
  99. package/go-cdd943fd.js +6 -0
  100. package/graphql-1a14eb34.js +6 -0
  101. package/graphql-51a577e5.mjs +141 -0
  102. package/handlebars-6a356ce9.js +6 -0
  103. package/handlebars-82c24f9d.mjs +396 -0
  104. package/hcl-0833427e.js +6 -0
  105. package/hcl-56b85754.mjs +177 -0
  106. package/html-a95df2b1.mjs +286 -0
  107. package/html-d9124a1e.js +6 -0
  108. package/htmlMode-3946317b.js +9 -0
  109. package/htmlMode-45fac07b.mjs +1460 -0
  110. package/icon-button-toggle.js +1 -1
  111. package/icon-button-toggle.mjs +6 -5
  112. package/icon-button.js +1 -1
  113. package/icon-button.mjs +6 -5
  114. package/icon-check-toggle.js +1 -1
  115. package/icon-check-toggle.mjs +7 -6
  116. package/icon-radio-toggle.js +3 -3
  117. package/icon-radio-toggle.mjs +7 -6
  118. package/index.d.ts +3 -0
  119. package/index.d.ts.map +1 -1
  120. package/index.js +1 -1
  121. package/index.mjs +125 -117
  122. package/ini-1d58d82f.mjs +68 -0
  123. package/ini-34a929df.js +6 -0
  124. package/java-32d7b433.js +6 -0
  125. package/java-cd017f60.mjs +221 -0
  126. package/javascript-0226b3a0.mjs +80 -0
  127. package/javascript-ec698494.js +6 -0
  128. package/jsonMode-a8e45f39.js +11 -0
  129. package/jsonMode-bdcd2ed9.mjs +1871 -0
  130. package/julia-7db1fb9a.js +6 -0
  131. package/julia-a0caf483.mjs +496 -0
  132. package/kotlin-4b9019e1.js +6 -0
  133. package/kotlin-c6e52a56.mjs +245 -0
  134. package/less-5219eae1.js +7 -0
  135. package/less-718543b4.mjs +168 -0
  136. package/lexon-5e6e7a44.mjs +151 -0
  137. package/lexon-dfd683ab.js +6 -0
  138. package/linear-progress.js +1 -1
  139. package/linear-progress.mjs +5 -4
  140. package/liquid-2dc745b6.mjs +243 -0
  141. package/liquid-b6e2effe.js +6 -0
  142. package/list-item.js +2 -2
  143. package/list-item.mjs +7 -6
  144. package/list.js +1 -1
  145. package/list.mjs +8 -7
  146. package/lua-b46719a9.js +6 -0
  147. package/lua-f159160b.mjs +157 -0
  148. package/m3-87473279.js +6 -0
  149. package/m3-aadaf771.mjs +210 -0
  150. package/markdown-9b448c46.mjs +202 -0
  151. package/markdown-eae8e3ba.js +6 -0
  152. package/menu.js +5 -5
  153. package/menu.mjs +9 -8
  154. package/mips-161e49ce.mjs +194 -0
  155. package/mips-82a1ce59.js +6 -0
  156. package/msdax-b3b5017e.js +6 -0
  157. package/msdax-f65cb1e6.mjs +377 -0
  158. package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
  159. package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
  160. package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
  161. package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
  162. package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
  163. package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
  164. package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
  165. package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
  166. package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
  167. package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
  168. package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
  169. package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
  170. package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
  171. package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
  172. package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
  173. package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
  174. package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
  175. package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
  176. package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
  177. package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
  178. package/mysql-24549dd1.mjs +875 -0
  179. package/mysql-69f1c589.js +6 -0
  180. package/nav-list-item.js +1 -1
  181. package/nav-list-item.mjs +7 -6
  182. package/notebook/notebook.d.ts +49 -0
  183. package/notebook/notebook.d.ts.map +1 -0
  184. package/notebook.js +90 -0
  185. package/notebook.mjs +3307 -0
  186. package/objective-c-c8319b65.js +6 -0
  187. package/objective-c-e129a5ca.mjs +188 -0
  188. package/package.json +16 -1
  189. package/pascal-4ccdf5ce.mjs +245 -0
  190. package/pascal-e5207a08.js +6 -0
  191. package/pascaligo-8eb79945.js +6 -0
  192. package/pascaligo-a9603dcd.mjs +158 -0
  193. package/perl-ba1fb97a.mjs +599 -0
  194. package/perl-e8264c91.js +6 -0
  195. package/pgsql-89978310.mjs +843 -0
  196. package/pgsql-c8ba6faf.js +6 -0
  197. package/php-987b9d87.mjs +471 -0
  198. package/php-a6dcde52.js +6 -0
  199. package/pla-96c2695d.mjs +131 -0
  200. package/pla-c85b0e59.js +6 -0
  201. package/postiats-3c2c478e.js +6 -0
  202. package/postiats-7b52ebac.mjs +544 -0
  203. package/powerquery-8954ec26.mjs +890 -0
  204. package/powerquery-b0d5f9e4.js +6 -0
  205. package/powershell-cdb88123.js +6 -0
  206. package/powershell-f00d0274.mjs +233 -0
  207. package/protobuf-3eb85f80.mjs +422 -0
  208. package/protobuf-a3b2ca94.js +7 -0
  209. package/pug-6fab415a.mjs +393 -0
  210. package/pug-c5df821d.js +6 -0
  211. package/python-7770f129.mjs +264 -0
  212. package/python-c7862f06.js +6 -0
  213. package/qsharp-4792f872.mjs +282 -0
  214. package/qsharp-7eddb7b9.js +6 -0
  215. package/r-42c6f0aa.js +6 -0
  216. package/r-630f5d6b.mjs +245 -0
  217. package/radio-list-item.js +1 -1
  218. package/radio-list-item.mjs +8 -7
  219. package/radio.js +2 -2
  220. package/radio.mjs +7 -6
  221. package/razor-3871ef20.mjs +517 -0
  222. package/razor-4a6a11b1.js +6 -0
  223. package/redis-0d0a89dd.js +6 -0
  224. package/redis-276b8288.mjs +298 -0
  225. package/redshift-520a7359.mjs +806 -0
  226. package/redshift-b6bdaeca.js +6 -0
  227. package/restructuredtext-4676a3fc.mjs +162 -0
  228. package/restructuredtext-c83d56ed.js +6 -0
  229. package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
  230. package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
  231. package/ruby-764137cd.mjs +444 -0
  232. package/ruby-96103dcf.js +6 -0
  233. package/rust-87887495.js +6 -0
  234. package/rust-97f8f6e1.mjs +337 -0
  235. package/sb-8c22f14c.mjs +110 -0
  236. package/sb-e2701210.js +6 -0
  237. package/scala-c68c650c.mjs +353 -0
  238. package/scala-e8b7bd42.js +6 -0
  239. package/scheme-b9cbf7cb.js +6 -0
  240. package/scheme-e6a52cb0.mjs +114 -0
  241. package/scss-45104c77.mjs +244 -0
  242. package/scss-d0f4f80e.js +8 -0
  243. package/select.js +1 -1
  244. package/select.mjs +10 -9
  245. package/shell-09452d42.mjs +224 -0
  246. package/shell-43cfbe7d.js +6 -0
  247. package/side-sheet.js +1 -1
  248. package/side-sheet.mjs +3 -2
  249. package/slider-range.js +1 -1
  250. package/slider-range.mjs +7 -6
  251. package/slider.js +1 -1
  252. package/slider.mjs +12 -11
  253. package/snackbar.js +14 -18
  254. package/snackbar.mjs +88 -159
  255. package/solidity-d4979008.mjs +1351 -0
  256. package/solidity-f1319e8a.js +6 -0
  257. package/sophia-21995caf.mjs +190 -0
  258. package/sophia-a1ce907f.js +6 -0
  259. package/sparql-5088743c.mjs +193 -0
  260. package/sparql-98d9e092.js +6 -0
  261. package/sql-63ec8e76.mjs +818 -0
  262. package/sql-faf05577.js +6 -0
  263. package/st-122893c4.js +6 -0
  264. package/st-fa9ab362.mjs +414 -0
  265. package/status-dialog.js +1 -1
  266. package/status-dialog.mjs +7 -6
  267. package/status-header.js +1 -1
  268. package/status-header.mjs +4 -3
  269. package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
  270. package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
  271. package/style.css +1 -0
  272. package/swift-724ff2a3.js +8 -0
  273. package/swift-abdf1835.mjs +315 -0
  274. package/switch.js +1 -1
  275. package/switch.mjs +6 -5
  276. package/systemverilog-8139818b.js +6 -0
  277. package/systemverilog-a4f858ed.mjs +556 -0
  278. package/tab-bar.js +2 -2
  279. package/tab-bar.mjs +7 -6
  280. package/tab.js +1 -1
  281. package/tab.mjs +9 -8
  282. package/tcl-8adf937f.mjs +232 -0
  283. package/tcl-e49fed0b.js +6 -0
  284. package/text-lockup.js +1 -1
  285. package/text-lockup.mjs +4 -3
  286. package/textarea.js +1 -1
  287. package/textarea.mjs +6 -5
  288. package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
  289. package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
  290. package/textfield.js +1 -1
  291. package/textfield.mjs +6 -5
  292. package/toolbar.js +1 -1
  293. package/toolbar.mjs +5 -4
  294. package/top-app-bar-fixed.js +1 -1
  295. package/top-app-bar-fixed.mjs +5 -4
  296. package/top-app-bar.js +1 -1
  297. package/top-app-bar.mjs +8 -7
  298. package/tree-list-item.js +1 -1
  299. package/tree-list-item.mjs +4 -3
  300. package/tsMode-426fdb34.mjs +794 -0
  301. package/tsMode-9087ec29.js +16 -0
  302. package/twig-404eb73e.mjs +323 -0
  303. package/twig-4bfb5b04.js +6 -0
  304. package/typescript-37d9bf54.mjs +332 -0
  305. package/typescript-eb2ab867.js +6 -0
  306. package/vb-8dfd000c.js +6 -0
  307. package/vb-e21e8153.mjs +364 -0
  308. package/xml-349a9a42.js +6 -0
  309. package/xml-9970ffe1.mjs +100 -0
  310. package/yaml-167e3d82.mjs +189 -0
  311. package/yaml-837b2090.js +6 -0
  312. package/class-map-4b94b017.mjs +0 -62
  313. package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,16 @@
1
+ "use strict";var G=Object.defineProperty;var Q=(e,t,r)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _=(e,t,r)=>(Q(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./code-editor-4cce5e5d.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./async-directive-4a34f75e.js");require("./directive-helpers-0ce1f995.js");require("./directive-1186bc23.js");/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var I=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyNames,Z=Object.prototype.hasOwnProperty,ee=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Y(t))!Z.call(e,a)&&a!==r&&I(e,a,{get:()=>t[a],enumerable:!(s=X(t,a))||s.enumerable});return e},te=(e,t,r)=>(O(e,t,"default"),r&&O(r,t,"default")),b=(e,t,r)=>(ee(e,typeof t!="symbol"?t+"":t,r),r),i={};te(i,P.monaco_editor_core_star);var N=class{constructor(e,t){_(this,"_configChangeListener");_(this,"_updateExtraLibsToken");_(this,"_extraLibsChangeListener");_(this,"_worker");_(this,"_client");this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=i.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(i.editor.getModels().filter(e=>e.getLanguageId()===this._modeId).map(e=>e.uri)):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},o={};o["lib.d.ts"]=!0;o["lib.dom.d.ts"]=!0;o["lib.dom.iterable.d.ts"]=!0;o["lib.es2015.collection.d.ts"]=!0;o["lib.es2015.core.d.ts"]=!0;o["lib.es2015.d.ts"]=!0;o["lib.es2015.generator.d.ts"]=!0;o["lib.es2015.iterable.d.ts"]=!0;o["lib.es2015.promise.d.ts"]=!0;o["lib.es2015.proxy.d.ts"]=!0;o["lib.es2015.reflect.d.ts"]=!0;o["lib.es2015.symbol.d.ts"]=!0;o["lib.es2015.symbol.wellknown.d.ts"]=!0;o["lib.es2016.array.include.d.ts"]=!0;o["lib.es2016.d.ts"]=!0;o["lib.es2016.full.d.ts"]=!0;o["lib.es2017.d.ts"]=!0;o["lib.es2017.full.d.ts"]=!0;o["lib.es2017.intl.d.ts"]=!0;o["lib.es2017.object.d.ts"]=!0;o["lib.es2017.sharedmemory.d.ts"]=!0;o["lib.es2017.string.d.ts"]=!0;o["lib.es2017.typedarrays.d.ts"]=!0;o["lib.es2018.asyncgenerator.d.ts"]=!0;o["lib.es2018.asynciterable.d.ts"]=!0;o["lib.es2018.d.ts"]=!0;o["lib.es2018.full.d.ts"]=!0;o["lib.es2018.intl.d.ts"]=!0;o["lib.es2018.promise.d.ts"]=!0;o["lib.es2018.regexp.d.ts"]=!0;o["lib.es2019.array.d.ts"]=!0;o["lib.es2019.d.ts"]=!0;o["lib.es2019.full.d.ts"]=!0;o["lib.es2019.object.d.ts"]=!0;o["lib.es2019.string.d.ts"]=!0;o["lib.es2019.symbol.d.ts"]=!0;o["lib.es2020.bigint.d.ts"]=!0;o["lib.es2020.d.ts"]=!0;o["lib.es2020.full.d.ts"]=!0;o["lib.es2020.intl.d.ts"]=!0;o["lib.es2020.promise.d.ts"]=!0;o["lib.es2020.sharedmemory.d.ts"]=!0;o["lib.es2020.string.d.ts"]=!0;o["lib.es2020.symbol.wellknown.d.ts"]=!0;o["lib.es2021.d.ts"]=!0;o["lib.es2021.full.d.ts"]=!0;o["lib.es2021.intl.d.ts"]=!0;o["lib.es2021.promise.d.ts"]=!0;o["lib.es2021.string.d.ts"]=!0;o["lib.es2021.weakref.d.ts"]=!0;o["lib.es5.d.ts"]=!0;o["lib.es6.d.ts"]=!0;o["lib.esnext.d.ts"]=!0;o["lib.esnext.full.d.ts"]=!0;o["lib.esnext.intl.d.ts"]=!0;o["lib.esnext.promise.d.ts"]=!0;o["lib.esnext.string.d.ts"]=!0;o["lib.esnext.weakref.d.ts"]=!0;o["lib.scripthost.d.ts"]=!0;o["lib.webworker.d.ts"]=!0;o["lib.webworker.importscripts.d.ts"]=!0;o["lib.webworker.iterable.d.ts"]=!0;function D(e,t,r=0){if(typeof e=="string")return e;if(e===void 0)return"";let s="";if(r){s+=t;for(let a=0;a<r;a++)s+=" "}if(s+=e.messageText,r++,e.next)for(const a of e.next)s+=D(a,t,r);return s}function S(e){return e?e.map(t=>t.text).join(""):""}var w=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let r=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:a,column:u}=r,{lineNumber:c,column:g}=s;return{startLineNumber:a,startColumn:u,endLineNumber:c,endColumn:g}}},M=class{constructor(e){_(this,"_libFiles");_(this,"_hasFetchedLibFiles");_(this,"_fetchLibFilesPromise");this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return e&&e.path.indexOf("/lib.")===0?!!o[e.path.slice(1)]:!1}getOrCreateModel(e){const t=i.Uri.parse(e),r=i.editor.getModel(t);if(r)return r;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return i.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const s=P.typescriptDefaults.getExtraLibs()[e];return s?i.editor.createModel(s.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(e=>e.getLibFiles()).then(e=>{this._hasFetchedLibFiles=!0,this._libFiles=e})),this._fetchLibFilesPromise}},K=class extends w{constructor(t,r,s,a){super(a);_(this,"_disposables",[]);_(this,"_listener",Object.create(null));this._libFiles=t,this._defaults=r,this._selector=s;const u=n=>{if(n.getLanguageId()!==s)return;const p=()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y?n.isAttachedToEditor()&&this._doValidate(n):this._doValidate(n)};let d;const f=n.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(p,500)}),h=n.onDidChangeAttached(()=>{const{onlyVisible:y}=this._defaults.getDiagnosticsOptions();y&&(n.isAttachedToEditor()?p():i.editor.setModelMarkers(n,this._selector,[]))});this._listener[n.uri.toString()]={dispose(){f.dispose(),h.dispose(),clearTimeout(d)}},p()},c=n=>{i.editor.setModelMarkers(n,this._selector,[]);const p=n.uri.toString();this._listener[p]&&(this._listener[p].dispose(),delete this._listener[p])};this._disposables.push(i.editor.onDidCreateModel(n=>u(n))),this._disposables.push(i.editor.onWillDisposeModel(c)),this._disposables.push(i.editor.onDidChangeModelLanguage(n=>{c(n.model),u(n.model)})),this._disposables.push({dispose(){for(const n of i.editor.getModels())c(n)}});const g=()=>{for(const n of i.editor.getModels())c(n),u(n)};this._disposables.push(this._defaults.onDidChange(g)),this._disposables.push(this._defaults.onDidExtraLibsChange(g)),i.editor.getModels().forEach(n=>u(n))}dispose(){this._disposables.forEach(t=>t&&t.dispose()),this._disposables=[]}async _doValidate(t){const r=await this._worker(t.uri);if(t.isDisposed())return;const s=[],{noSyntaxValidation:a,noSemanticValidation:u,noSuggestionDiagnostics:c}=this._defaults.getDiagnosticsOptions();a||s.push(r.getSyntacticDiagnostics(t.uri.toString())),u||s.push(r.getSemanticDiagnostics(t.uri.toString())),c||s.push(r.getSuggestionDiagnostics(t.uri.toString()));const g=await Promise.all(s);if(!g||t.isDisposed())return;const n=g.reduce((d,f)=>f.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),p=n.map(d=>d.relatedInformation||[]).reduce((d,f)=>f.concat(d),[]).map(d=>d.file?i.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(p),!t.isDisposed()&&i.editor.setModelMarkers(t,this._selector,n.map(d=>this._convertDiagnostics(t,d)))}_convertDiagnostics(t,r){const s=r.start||0,a=r.length||1,{lineNumber:u,column:c}=t.getPositionAt(s),{lineNumber:g,column:n}=t.getPositionAt(s+a),p=[];return r.reportsUnnecessary&&p.push(i.MarkerTag.Unnecessary),r.reportsDeprecated&&p.push(i.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(r.category),startLineNumber:u,startColumn:c,endLineNumber:g,endColumn:n,message:D(r.messageText,`
7
+ `),code:r.code.toString(),tags:p,relatedInformation:this._convertRelatedInformation(t,r.relatedInformation)}}_convertRelatedInformation(t,r){if(!r)return[];const s=[];return r.forEach(a=>{let u=t;if(a.file&&(u=this._libFiles.getOrCreateModel(a.file.fileName)),!u)return;const c=a.start||0,g=a.length||1,{lineNumber:n,column:p}=u.getPositionAt(c),{lineNumber:d,column:f}=u.getPositionAt(c+g);s.push({resource:u.uri,startLineNumber:n,startColumn:p,endLineNumber:d,endColumn:f,message:D(a.messageText,`
8
+ `)})}),s}_tsDiagnosticCategoryToMarkerSeverity(t){switch(t){case 1:return i.MarkerSeverity.Error;case 3:return i.MarkerSeverity.Info;case 0:return i.MarkerSeverity.Warning;case 2:return i.MarkerSeverity.Hint}return i.MarkerSeverity.Info}},x=class extends w{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,r,s){const a=e.getWordUntilPosition(t),u=new i.Range(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn),c=e.uri,g=e.getOffsetAt(t),n=await this._worker(c);if(e.isDisposed())return;const p=await n.getCompletionsAtPosition(c.toString(),g);return!p||e.isDisposed()?void 0:{suggestions:p.entries.map(f=>{var A;let h=u;if(f.replacementSpan){const v=e.getPositionAt(f.replacementSpan.start),C=e.getPositionAt(f.replacementSpan.start+f.replacementSpan.length);h=new i.Range(v.lineNumber,v.column,C.lineNumber,C.column)}const y=[];return((A=f.kindModifiers)==null?void 0:A.indexOf("deprecated"))!==-1&&y.push(i.languages.CompletionItemTag.Deprecated),{uri:c,position:t,offset:g,range:h,label:f.name,insertText:f.name,sortText:f.sortText,kind:x.convertKind(f.kind),tags:y}})}}async resolveCompletionItem(e,t){const r=e,s=r.uri,a=r.position,u=r.offset,g=await(await this._worker(s)).getCompletionEntryDetails(s.toString(),u,r.label);return g?{uri:s,position:a,label:g.name,kind:x.convertKind(g.kind),detail:S(g.displayParts),documentation:{value:x.createDocumentationString(g)}}:r}static convertKind(e){switch(e){case l.primitiveType:case l.keyword:return i.languages.CompletionItemKind.Keyword;case l.variable:case l.localVariable:return i.languages.CompletionItemKind.Variable;case l.memberVariable:case l.memberGetAccessor:case l.memberSetAccessor:return i.languages.CompletionItemKind.Field;case l.function:case l.memberFunction:case l.constructSignature:case l.callSignature:case l.indexSignature:return i.languages.CompletionItemKind.Function;case l.enum:return i.languages.CompletionItemKind.Enum;case l.module:return i.languages.CompletionItemKind.Module;case l.class:return i.languages.CompletionItemKind.Class;case l.interface:return i.languages.CompletionItemKind.Interface;case l.warning:return i.languages.CompletionItemKind.File}return i.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=S(e.documentation);if(e.tags)for(const r of e.tags)t+=`
9
+
10
+ ${R(r)}`;return t}};function R(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.text){const[r,...s]=e.text;t+=`\`${r.text}\``,s.length>0&&(t+=` — ${s.map(a=>a.text).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map(r=>r.text).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var L=class extends w{constructor(){super(...arguments);_(this,"signatureHelpTriggerCharacters",["(",","])}static _toSignatureHelpTriggerReason(t){switch(t.triggerKind){case i.languages.SignatureHelpTriggerKind.TriggerCharacter:return t.triggerCharacter?t.isRetrigger?{kind:"retrigger",triggerCharacter:t.triggerCharacter}:{kind:"characterTyped",triggerCharacter:t.triggerCharacter}:{kind:"invoked"};case i.languages.SignatureHelpTriggerKind.ContentChange:return t.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case i.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,r,s,a){const u=t.uri,c=t.getOffsetAt(r),g=await this._worker(u);if(t.isDisposed())return;const n=await g.getSignatureHelpItems(u.toString(),c,{triggerReason:L._toSignatureHelpTriggerReason(a)});if(!n||t.isDisposed())return;const p={activeSignature:n.selectedItemIndex,activeParameter:n.argumentIndex,signatures:[]};return n.items.forEach(d=>{const f={label:"",parameters:[]};f.documentation={value:S(d.documentation)},f.label+=S(d.prefixDisplayParts),d.parameters.forEach((h,y,A)=>{const v=S(h.displayParts),C={label:v,documentation:{value:S(h.documentation)}};f.label+=v,f.parameters.push(C),y<A.length-1&&(f.label+=S(d.separatorDisplayParts))}),f.label+=S(d.suffixDisplayParts),p.signatures.push(f)}),{value:p,dispose(){}}}},E=class extends w{async provideHover(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getQuickInfoAtPosition(s.toString(),a);if(!c||e.isDisposed())return;const g=S(c.documentation),n=c.tags?c.tags.map(d=>R(d)).join(`
11
+
12
+ `):"",p=S(c.displayParts);return{range:this._textSpanToRange(e,c.textSpan),contents:[{value:"```typescript\n"+p+"\n```\n"},{value:g+(n?`
13
+
14
+ `+n:"")}]}}},H=class extends w{async provideDocumentHighlights(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getOccurrencesAtPosition(s.toString(),a);if(!(!c||e.isDisposed()))return c.map(g=>({range:this._textSpanToRange(e,g.textSpan),kind:g.isWriteAccess?i.languages.DocumentHighlightKind.Write:i.languages.DocumentHighlightKind.Text}))}},W=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,r){const s=e.uri,a=e.getOffsetAt(t),u=await this._worker(s);if(e.isDisposed())return;const c=await u.getDefinitionAtPosition(s.toString(),a);if(!c||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(c.map(n=>i.Uri.parse(n.fileName))),e.isDisposed()))return;const g=[];for(let n of c){const p=this._libFiles.getOrCreateModel(n.fileName);p&&g.push({uri:p.uri,range:this._textSpanToRange(p,n.textSpan)})}return g}},V=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,r,s){const a=e.uri,u=e.getOffsetAt(t),c=await this._worker(a);if(e.isDisposed())return;const g=await c.getReferencesAtPosition(a.toString(),u);if(!g||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(g.map(p=>i.Uri.parse(p.fileName))),e.isDisposed()))return;const n=[];for(let p of g){const d=this._libFiles.getOrCreateModel(p.fileName);d&&n.push({uri:d.uri,range:this._textSpanToRange(d,p.textSpan)})}return n}},j=class extends w{async provideDocumentSymbols(e,t){const r=e.uri,s=await this._worker(r);if(e.isDisposed())return;const a=await s.getNavigationBarItems(r.toString());if(!a||e.isDisposed())return;const u=(g,n,p)=>{let d={name:n.text,detail:"",kind:m[n.kind]||i.languages.SymbolKind.Variable,range:this._textSpanToRange(e,n.spans[0]),selectionRange:this._textSpanToRange(e,n.spans[0]),tags:[]};if(p&&(d.containerName=p),n.childItems&&n.childItems.length>0)for(let f of n.childItems)u(g,f,d.name);g.push(d)};let c=[];return a.forEach(g=>u(c,g)),c}},l=class{};b(l,"unknown","");b(l,"keyword","keyword");b(l,"script","script");b(l,"module","module");b(l,"class","class");b(l,"interface","interface");b(l,"type","type");b(l,"enum","enum");b(l,"variable","var");b(l,"localVariable","local var");b(l,"function","function");b(l,"localFunction","local function");b(l,"memberFunction","method");b(l,"memberGetAccessor","getter");b(l,"memberSetAccessor","setter");b(l,"memberVariable","property");b(l,"constructorImplementation","constructor");b(l,"callSignature","call");b(l,"indexSignature","index");b(l,"constructSignature","construct");b(l,"parameter","parameter");b(l,"typeParameter","type parameter");b(l,"primitiveType","primitive type");b(l,"label","label");b(l,"alias","alias");b(l,"const","const");b(l,"let","let");b(l,"warning","warning");var m=Object.create(null);m[l.module]=i.languages.SymbolKind.Module;m[l.class]=i.languages.SymbolKind.Class;m[l.enum]=i.languages.SymbolKind.Enum;m[l.interface]=i.languages.SymbolKind.Interface;m[l.memberFunction]=i.languages.SymbolKind.Method;m[l.memberVariable]=i.languages.SymbolKind.Property;m[l.memberGetAccessor]=i.languages.SymbolKind.Property;m[l.memberSetAccessor]=i.languages.SymbolKind.Property;m[l.variable]=i.languages.SymbolKind.Variable;m[l.const]=i.languages.SymbolKind.Variable;m[l.localVariable]=i.languages.SymbolKind.Variable;m[l.variable]=i.languages.SymbolKind.Variable;m[l.function]=i.languages.SymbolKind.Function;m[l.localFunction]=i.languages.SymbolKind.Function;var k=class extends w{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:`
15
+ `,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},B=class extends k{async provideDocumentRangeFormattingEdits(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getFormattingEditsForRange(a.toString(),u,c,k._convertOptions(r));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},U=class extends k{get autoFormatTriggerCharacters(){return[";","}",`
16
+ `]}async provideOnTypeFormattingEdits(e,t,r,s,a){const u=e.uri,c=e.getOffsetAt(t),g=await this._worker(u);if(e.isDisposed())return;const n=await g.getFormattingEditsAfterKeystroke(u.toString(),c,r,k._convertOptions(s));if(!(!n||e.isDisposed()))return n.map(p=>this._convertTextChanges(e,p))}},q=class extends k{async provideCodeActions(e,t,r,s){const a=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=k._convertOptions(e.getOptions()),n=r.markers.filter(h=>h.code).map(h=>h.code).map(Number),p=await this._worker(a);if(e.isDisposed())return;const d=await p.getCodeFixesAtPosition(a.toString(),u,c,n,g);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter(h=>h.changes.filter(y=>y.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,r,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,r){const s=[];for(const u of r.changes)for(const c of u.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}});return{title:r.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},$=class extends w{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,r,s){const a=e.uri,u=a.toString(),c=e.getOffsetAt(t),g=await this._worker(a);if(e.isDisposed())return;const n=await g.getRenameInfo(u,c,{allowRenameOfImportPath:!1});if(n.canRename===!1)return{edits:[],rejectReason:n.localizedErrorMessage};if(n.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const p=await g.findRenameLocations(u,c,!1,!1,!1);if(!p||e.isDisposed())return;const d=[];for(const f of p){const h=this._libFiles.getOrCreateModel(f.fileName);if(h)d.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,f.textSpan),text:r}});else throw new Error(`Unknown file ${f.fileName}.`)}return{edits:d}}},z=class extends w{async provideInlayHints(e,t,r){const s=e.uri,a=s.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),c=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),g=await this._worker(s);return e.isDisposed()?null:{hints:(await g.provideInlayHints(a,u,c)).map(d=>({...d,label:d.text,position:e.getPositionAt(d.position),kind:this._convertHintKind(d.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return i.languages.InlayHintKind.Parameter;case"Type":return i.languages.InlayHintKind.Type;default:return i.languages.InlayHintKind.Type}}},F,T;function re(e){T=J(e,"typescript")}function se(e){F=J(e,"javascript")}function ie(){return new Promise((e,t)=>{if(!F)return t("JavaScript not registered!");e(F)})}function ne(){return new Promise((e,t)=>{if(!T)return t("TypeScript not registered!");e(T)})}function J(e,t){const r=new N(t,e),s=(...u)=>r.getLanguageServiceWorker(...u),a=new M(s);return i.languages.registerCompletionItemProvider(t,new x(s)),i.languages.registerSignatureHelpProvider(t,new L(s)),i.languages.registerHoverProvider(t,new E(s)),i.languages.registerDocumentHighlightProvider(t,new H(s)),i.languages.registerDefinitionProvider(t,new W(a,s)),i.languages.registerReferenceProvider(t,new V(a,s)),i.languages.registerDocumentSymbolProvider(t,new j(s)),i.languages.registerDocumentRangeFormattingEditProvider(t,new B(s)),i.languages.registerOnTypeFormattingEditProvider(t,new U(s)),i.languages.registerCodeActionProvider(t,new q(s)),i.languages.registerRenameProvider(t,new $(a,s)),i.languages.registerInlayHintsProvider(t,new z(s)),new K(a,e,t,s),s}exports.Adapter=w;exports.CodeActionAdaptor=q;exports.DefinitionAdapter=W;exports.DiagnosticsAdapter=K;exports.FormatAdapter=B;exports.FormatHelper=k;exports.FormatOnTypeAdapter=U;exports.InlayHintsAdapter=z;exports.Kind=l;exports.LibFiles=M;exports.OccurrencesAdapter=H;exports.OutlineAdapter=j;exports.QuickInfoAdapter=E;exports.ReferenceAdapter=V;exports.RenameAdapter=$;exports.SignatureHelpAdapter=L;exports.SuggestAdapter=x;exports.WorkerManager=N;exports.flattenDiagnosticMessageText=D;exports.getJavaScriptWorker=ie;exports.getTypeScriptWorker=ne;exports.setupJavaScript=se;exports.setupTypeScript=re;
@@ -0,0 +1,323 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/
7
+ var t = {
8
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
9
+ comments: {
10
+ blockComment: ["{#", "#}"]
11
+ },
12
+ brackets: [
13
+ ["{#", "#}"],
14
+ ["{%", "%}"],
15
+ ["{{", "}}"],
16
+ ["(", ")"],
17
+ ["[", "]"],
18
+ ["<!--", "-->"],
19
+ ["<", ">"]
20
+ ],
21
+ autoClosingPairs: [
22
+ { open: "{# ", close: " #}" },
23
+ { open: "{% ", close: " %}" },
24
+ { open: "{{ ", close: " }}" },
25
+ { open: "[", close: "]" },
26
+ { open: "(", close: ")" },
27
+ { open: '"', close: '"' },
28
+ { open: "'", close: "'" }
29
+ ],
30
+ surroundingPairs: [
31
+ { open: '"', close: '"' },
32
+ { open: "'", close: "'" },
33
+ { open: "<", close: ">" }
34
+ ]
35
+ }, e = {
36
+ defaultToken: "",
37
+ tokenPostfix: "",
38
+ ignoreCase: !0,
39
+ keywords: [
40
+ "apply",
41
+ "autoescape",
42
+ "block",
43
+ "deprecated",
44
+ "do",
45
+ "embed",
46
+ "extends",
47
+ "flush",
48
+ "for",
49
+ "from",
50
+ "if",
51
+ "import",
52
+ "include",
53
+ "macro",
54
+ "sandbox",
55
+ "set",
56
+ "use",
57
+ "verbatim",
58
+ "with",
59
+ "endapply",
60
+ "endautoescape",
61
+ "endblock",
62
+ "endembed",
63
+ "endfor",
64
+ "endif",
65
+ "endmacro",
66
+ "endsandbox",
67
+ "endset",
68
+ "endwith",
69
+ "true",
70
+ "false"
71
+ ],
72
+ tokenizer: {
73
+ root: [
74
+ [/\s+/],
75
+ [/{#/, "comment.twig", "@commentState"],
76
+ [/{%[-~]?/, "delimiter.twig", "@blockState"],
77
+ [/{{[-~]?/, "delimiter.twig", "@variableState"],
78
+ [/<!DOCTYPE/, "metatag.html", "@doctype"],
79
+ [/<!--/, "comment.html", "@comment"],
80
+ [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
81
+ [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
82
+ [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
83
+ [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
84
+ [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
85
+ [/</, "delimiter.html"],
86
+ [/[^<]+/]
87
+ ],
88
+ commentState: [
89
+ [/#}/, "comment.twig", "@pop"],
90
+ [/./, "comment.twig"]
91
+ ],
92
+ blockState: [
93
+ [/[-~]?%}/, "delimiter.twig", "@pop"],
94
+ [/\s+/],
95
+ [
96
+ /(verbatim)(\s*)([-~]?%})/,
97
+ ["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
98
+ ],
99
+ { include: "expression" }
100
+ ],
101
+ rawDataState: [
102
+ [
103
+ /({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
104
+ ["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
105
+ ],
106
+ [/./, "string.twig"]
107
+ ],
108
+ variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
109
+ stringState: [
110
+ [/"/, "string.twig", "@pop"],
111
+ [/#{\s*/, "string.twig", "@interpolationState"],
112
+ [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
113
+ ],
114
+ interpolationState: [
115
+ [/}/, "string.twig", "@pop"],
116
+ { include: "expression" }
117
+ ],
118
+ expression: [
119
+ [/\s+/],
120
+ [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
121
+ [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
122
+ [/==|!=|<|>|>=|<=/, "operators.twig"],
123
+ [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
124
+ [/(in)(\s+)/, ["operators.twig", ""]],
125
+ [/(is)(\s+)/, ["operators.twig", ""]],
126
+ [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
127
+ [
128
+ /[^\W\d][\w]*/,
129
+ {
130
+ cases: {
131
+ "@keywords": "keyword.twig",
132
+ "@default": "variable.twig"
133
+ }
134
+ }
135
+ ],
136
+ [/\d+(\.\d+)?/, "number.twig"],
137
+ [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
138
+ [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
139
+ [/"/, "string.twig", "@stringState"],
140
+ [/=>/, "operators.twig"],
141
+ [/=/, "operators.twig"]
142
+ ],
143
+ doctype: [
144
+ [/[^>]+/, "metatag.content.html"],
145
+ [/>/, "metatag.html", "@pop"]
146
+ ],
147
+ comment: [
148
+ [/-->/, "comment.html", "@pop"],
149
+ [/[^-]+/, "comment.content.html"],
150
+ [/./, "comment.content.html"]
151
+ ],
152
+ otherTag: [
153
+ [/\/?>/, "delimiter.html", "@pop"],
154
+ [/"([^"]*)"/, "attribute.value.html"],
155
+ [/'([^']*)'/, "attribute.value.html"],
156
+ [/[\w\-]+/, "attribute.name.html"],
157
+ [/=/, "delimiter.html"],
158
+ [/[ \t\r\n]+/]
159
+ ],
160
+ script: [
161
+ [/type/, "attribute.name.html", "@scriptAfterType"],
162
+ [/"([^"]*)"/, "attribute.value.html"],
163
+ [/'([^']*)'/, "attribute.value.html"],
164
+ [/[\w\-]+/, "attribute.name.html"],
165
+ [/=/, "delimiter.html"],
166
+ [
167
+ />/,
168
+ {
169
+ token: "delimiter.html",
170
+ next: "@scriptEmbedded",
171
+ nextEmbedded: "text/javascript"
172
+ }
173
+ ],
174
+ [/[ \t\r\n]+/],
175
+ [
176
+ /(<\/)(script\s*)(>)/,
177
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
178
+ ]
179
+ ],
180
+ scriptAfterType: [
181
+ [/=/, "delimiter.html", "@scriptAfterTypeEquals"],
182
+ [
183
+ />/,
184
+ {
185
+ token: "delimiter.html",
186
+ next: "@scriptEmbedded",
187
+ nextEmbedded: "text/javascript"
188
+ }
189
+ ],
190
+ [/[ \t\r\n]+/],
191
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
192
+ ],
193
+ scriptAfterTypeEquals: [
194
+ [
195
+ /"([^"]*)"/,
196
+ {
197
+ token: "attribute.value.html",
198
+ switchTo: "@scriptWithCustomType.$1"
199
+ }
200
+ ],
201
+ [
202
+ /'([^']*)'/,
203
+ {
204
+ token: "attribute.value.html",
205
+ switchTo: "@scriptWithCustomType.$1"
206
+ }
207
+ ],
208
+ [
209
+ />/,
210
+ {
211
+ token: "delimiter.html",
212
+ next: "@scriptEmbedded",
213
+ nextEmbedded: "text/javascript"
214
+ }
215
+ ],
216
+ [/[ \t\r\n]+/],
217
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
218
+ ],
219
+ scriptWithCustomType: [
220
+ [
221
+ />/,
222
+ {
223
+ token: "delimiter.html",
224
+ next: "@scriptEmbedded.$S2",
225
+ nextEmbedded: "$S2"
226
+ }
227
+ ],
228
+ [/"([^"]*)"/, "attribute.value.html"],
229
+ [/'([^']*)'/, "attribute.value.html"],
230
+ [/[\w\-]+/, "attribute.name.html"],
231
+ [/=/, "delimiter.html"],
232
+ [/[ \t\r\n]+/],
233
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
234
+ ],
235
+ scriptEmbedded: [
236
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
237
+ [/[^<]+/, ""]
238
+ ],
239
+ style: [
240
+ [/type/, "attribute.name.html", "@styleAfterType"],
241
+ [/"([^"]*)"/, "attribute.value.html"],
242
+ [/'([^']*)'/, "attribute.value.html"],
243
+ [/[\w\-]+/, "attribute.name.html"],
244
+ [/=/, "delimiter.html"],
245
+ [
246
+ />/,
247
+ {
248
+ token: "delimiter.html",
249
+ next: "@styleEmbedded",
250
+ nextEmbedded: "text/css"
251
+ }
252
+ ],
253
+ [/[ \t\r\n]+/],
254
+ [
255
+ /(<\/)(style\s*)(>)/,
256
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
257
+ ]
258
+ ],
259
+ styleAfterType: [
260
+ [/=/, "delimiter.html", "@styleAfterTypeEquals"],
261
+ [
262
+ />/,
263
+ {
264
+ token: "delimiter.html",
265
+ next: "@styleEmbedded",
266
+ nextEmbedded: "text/css"
267
+ }
268
+ ],
269
+ [/[ \t\r\n]+/],
270
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
271
+ ],
272
+ styleAfterTypeEquals: [
273
+ [
274
+ /"([^"]*)"/,
275
+ {
276
+ token: "attribute.value.html",
277
+ switchTo: "@styleWithCustomType.$1"
278
+ }
279
+ ],
280
+ [
281
+ /'([^']*)'/,
282
+ {
283
+ token: "attribute.value.html",
284
+ switchTo: "@styleWithCustomType.$1"
285
+ }
286
+ ],
287
+ [
288
+ />/,
289
+ {
290
+ token: "delimiter.html",
291
+ next: "@styleEmbedded",
292
+ nextEmbedded: "text/css"
293
+ }
294
+ ],
295
+ [/[ \t\r\n]+/],
296
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
297
+ ],
298
+ styleWithCustomType: [
299
+ [
300
+ />/,
301
+ {
302
+ token: "delimiter.html",
303
+ next: "@styleEmbedded.$S2",
304
+ nextEmbedded: "$S2"
305
+ }
306
+ ],
307
+ [/"([^"]*)"/, "attribute.value.html"],
308
+ [/'([^']*)'/, "attribute.value.html"],
309
+ [/[\w\-]+/, "attribute.name.html"],
310
+ [/=/, "delimiter.html"],
311
+ [/[ \t\r\n]+/],
312
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
313
+ ],
314
+ styleEmbedded: [
315
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
316
+ [/[^<]+/, ""]
317
+ ]
318
+ }
319
+ };
320
+ export {
321
+ t as conf,
322
+ e as language
323
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
+ * Released under the MIT license
5
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
+ *-----------------------------------------------------------------------------*/var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["<!--","-->"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},e={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};exports.conf=t;exports.language=e;