@gsc-basic/components 1.0.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 (231) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/es/index.js +35 -0
  3. package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +1371 -0
  4. package/dist/es/node_modules/@codemirror/commands/dist/index.js +838 -0
  5. package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +38 -0
  6. package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +300 -0
  7. package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +48 -0
  8. package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +399 -0
  9. package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +497 -0
  10. package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +216 -0
  11. package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +51 -0
  12. package/dist/es/node_modules/@codemirror/language/dist/index.js +1299 -0
  13. package/dist/es/node_modules/@codemirror/lint/dist/index.js +649 -0
  14. package/dist/es/node_modules/@codemirror/search/dist/index.js +872 -0
  15. package/dist/es/node_modules/@codemirror/state/dist/index.js +2639 -0
  16. package/dist/es/node_modules/@codemirror/theme-one-dark/dist/index.js +132 -0
  17. package/dist/es/node_modules/@codemirror/view/dist/index.js +7280 -0
  18. package/dist/es/node_modules/@lezer/common/dist/index.js +1430 -0
  19. package/dist/es/node_modules/@lezer/highlight/dist/index.js +637 -0
  20. package/dist/es/node_modules/@lezer/java/dist/index.js +62 -0
  21. package/dist/es/node_modules/@lezer/javascript/dist/index.js +161 -0
  22. package/dist/es/node_modules/@lezer/json/dist/index.js +34 -0
  23. package/dist/es/node_modules/@lezer/lr/dist/index.js +1307 -0
  24. package/dist/es/node_modules/@lezer/python/dist/index.js +221 -0
  25. package/dist/es/node_modules/@lezer/xml/dist/index.js +100 -0
  26. package/dist/es/node_modules/@lezer/yaml/dist/index.js +274 -0
  27. package/dist/es/node_modules/@marijn/find-cluster-break/src/index.js +69 -0
  28. package/dist/es/node_modules/@vueuse/core/dist/index.js +125 -0
  29. package/dist/es/node_modules/@vueuse/shared/dist/index.js +55 -0
  30. package/dist/es/node_modules/codemirror/dist/index.js +40 -0
  31. package/dist/es/node_modules/crelt/index.js +27 -0
  32. package/dist/es/node_modules/lodash-es/_Hash.js +20 -0
  33. package/dist/es/node_modules/lodash-es/_ListCache.js +20 -0
  34. package/dist/es/node_modules/lodash-es/_Map.js +6 -0
  35. package/dist/es/node_modules/lodash-es/_MapCache.js +20 -0
  36. package/dist/es/node_modules/lodash-es/_Symbol.js +5 -0
  37. package/dist/es/node_modules/lodash-es/_arrayMap.js +8 -0
  38. package/dist/es/node_modules/lodash-es/_assocIndexOf.js +10 -0
  39. package/dist/es/node_modules/lodash-es/_baseGet.js +11 -0
  40. package/dist/es/node_modules/lodash-es/_baseGetTag.js +10 -0
  41. package/dist/es/node_modules/lodash-es/_baseIsNative.js +16 -0
  42. package/dist/es/node_modules/lodash-es/_baseToString.js +18 -0
  43. package/dist/es/node_modules/lodash-es/_castPath.js +10 -0
  44. package/dist/es/node_modules/lodash-es/_coreJsData.js +5 -0
  45. package/dist/es/node_modules/lodash-es/_freeGlobal.js +4 -0
  46. package/dist/es/node_modules/lodash-es/_getMapData.js +8 -0
  47. package/dist/es/node_modules/lodash-es/_getNative.js +9 -0
  48. package/dist/es/node_modules/lodash-es/_getRawTag.js +15 -0
  49. package/dist/es/node_modules/lodash-es/_getValue.js +6 -0
  50. package/dist/es/node_modules/lodash-es/_hashClear.js +7 -0
  51. package/dist/es/node_modules/lodash-es/_hashDelete.js +7 -0
  52. package/dist/es/node_modules/lodash-es/_hashGet.js +13 -0
  53. package/dist/es/node_modules/lodash-es/_hashHas.js +9 -0
  54. package/dist/es/node_modules/lodash-es/_hashSet.js +9 -0
  55. package/dist/es/node_modules/lodash-es/_isKey.js +12 -0
  56. package/dist/es/node_modules/lodash-es/_isKeyable.js +7 -0
  57. package/dist/es/node_modules/lodash-es/_isMasked.js +11 -0
  58. package/dist/es/node_modules/lodash-es/_listCacheClear.js +6 -0
  59. package/dist/es/node_modules/lodash-es/_listCacheDelete.js +12 -0
  60. package/dist/es/node_modules/lodash-es/_listCacheGet.js +8 -0
  61. package/dist/es/node_modules/lodash-es/_listCacheHas.js +7 -0
  62. package/dist/es/node_modules/lodash-es/_listCacheSet.js +8 -0
  63. package/dist/es/node_modules/lodash-es/_mapCacheClear.js +13 -0
  64. package/dist/es/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  65. package/dist/es/node_modules/lodash-es/_mapCacheGet.js +7 -0
  66. package/dist/es/node_modules/lodash-es/_mapCacheHas.js +7 -0
  67. package/dist/es/node_modules/lodash-es/_mapCacheSet.js +8 -0
  68. package/dist/es/node_modules/lodash-es/_memoizeCapped.js +11 -0
  69. package/dist/es/node_modules/lodash-es/_nativeCreate.js +5 -0
  70. package/dist/es/node_modules/lodash-es/_objectToString.js +7 -0
  71. package/dist/es/node_modules/lodash-es/_root.js +5 -0
  72. package/dist/es/node_modules/lodash-es/_stringToPath.js +10 -0
  73. package/dist/es/node_modules/lodash-es/_toKey.js +10 -0
  74. package/dist/es/node_modules/lodash-es/_toSource.js +17 -0
  75. package/dist/es/node_modules/lodash-es/eq.js +6 -0
  76. package/dist/es/node_modules/lodash-es/get.js +8 -0
  77. package/dist/es/node_modules/lodash-es/isArray.js +4 -0
  78. package/dist/es/node_modules/lodash-es/isFunction.js +12 -0
  79. package/dist/es/node_modules/lodash-es/isNil.js +6 -0
  80. package/dist/es/node_modules/lodash-es/isObject.js +7 -0
  81. package/dist/es/node_modules/lodash-es/isObjectLike.js +6 -0
  82. package/dist/es/node_modules/lodash-es/isString.js +10 -0
  83. package/dist/es/node_modules/lodash-es/isSymbol.js +9 -0
  84. package/dist/es/node_modules/lodash-es/memoize.js +18 -0
  85. package/dist/es/node_modules/lodash-es/toString.js +7 -0
  86. package/dist/es/node_modules/style-mod/src/style-mod.js +109 -0
  87. package/dist/es/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +132 -0
  88. package/dist/es/node_modules/w3c-keyname/index.js +93 -0
  89. package/dist/es/src/CodeEditor/index.js +6 -0
  90. package/dist/es/src/CodeEditor/src/index.css +1 -0
  91. package/dist/es/src/CodeEditor/src/index.vue.js +128 -0
  92. package/dist/es/src/CodeEditor/src/index2.css +1 -0
  93. package/dist/es/src/ConfigProvider/index.js +7 -0
  94. package/dist/es/src/ConfigProvider/src/configProvider.js +14 -0
  95. package/dist/es/src/ConfigProvider/src/configProviderProps.js +22 -0
  96. package/dist/es/src/ConfigProvider/src/constants.js +9 -0
  97. package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +45 -0
  98. package/dist/es/src/ScaleScreen/index.js +6 -0
  99. package/dist/es/src/ScaleScreen/src/index.css +1 -0
  100. package/dist/es/src/ScaleScreen/src/index.vue.js +115 -0
  101. package/dist/es/src/ScaleScreen/src/index2.css +1 -0
  102. package/dist/es/src/VideoBackground/index.js +6 -0
  103. package/dist/es/src/VideoBackground/src/helper.js +29 -0
  104. package/dist/es/src/VideoBackground/src/index.css +1 -0
  105. package/dist/es/src/VideoBackground/src/index.vue.js +108 -0
  106. package/dist/es/src/VideoBackground/src/index2.css +1 -0
  107. package/dist/es/src/VideoBackground/src/index3.css +1 -0
  108. package/dist/es/src/VideoBackground/src/videoBackground.js +31 -0
  109. package/dist/es/src/hooks/useLocale.js +24 -0
  110. package/dist/es/src/hooks/useNamespace.js +8 -0
  111. package/dist/es/src/index.js +28 -0
  112. package/dist/es/src/locale/lang/en-US.js +32 -0
  113. package/dist/es/src/locale/lang/ja-JP.js +32 -0
  114. package/dist/es/src/locale/lang/zh-CN.js +32 -0
  115. package/dist/es/src/styles/tokens.css +1 -0
  116. package/dist/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  117. package/dist/lib/index.js +1 -0
  118. package/dist/lib/node_modules/@codemirror/autocomplete/dist/index.js +1 -0
  119. package/dist/lib/node_modules/@codemirror/commands/dist/index.js +1 -0
  120. package/dist/lib/node_modules/@codemirror/lang-java/dist/index.js +1 -0
  121. package/dist/lib/node_modules/@codemirror/lang-javascript/dist/index.js +13 -0
  122. package/dist/lib/node_modules/@codemirror/lang-json/dist/index.js +1 -0
  123. package/dist/lib/node_modules/@codemirror/lang-python/dist/index.js +3 -0
  124. package/dist/lib/node_modules/@codemirror/lang-sql/dist/index.js +2 -0
  125. package/dist/lib/node_modules/@codemirror/lang-xml/dist/index.js +1 -0
  126. package/dist/lib/node_modules/@codemirror/lang-yaml/dist/index.js +1 -0
  127. package/dist/lib/node_modules/@codemirror/language/dist/index.js +1 -0
  128. package/dist/lib/node_modules/@codemirror/lint/dist/index.js +1 -0
  129. package/dist/lib/node_modules/@codemirror/search/dist/index.js +2 -0
  130. package/dist/lib/node_modules/@codemirror/state/dist/index.js +5 -0
  131. package/dist/lib/node_modules/@codemirror/theme-one-dark/dist/index.js +1 -0
  132. package/dist/lib/node_modules/@codemirror/view/dist/index.js +5 -0
  133. package/dist/lib/node_modules/@lezer/common/dist/index.js +1 -0
  134. package/dist/lib/node_modules/@lezer/highlight/dist/index.js +1 -0
  135. package/dist/lib/node_modules/@lezer/java/dist/index.js +1 -0
  136. package/dist/lib/node_modules/@lezer/javascript/dist/index.js +1 -0
  137. package/dist/lib/node_modules/@lezer/json/dist/index.js +1 -0
  138. package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -0
  139. package/dist/lib/node_modules/@lezer/python/dist/index.js +1 -0
  140. package/dist/lib/node_modules/@lezer/xml/dist/index.js +1 -0
  141. package/dist/lib/node_modules/@lezer/yaml/dist/index.js +1 -0
  142. package/dist/lib/node_modules/@marijn/find-cluster-break/src/index.js +1 -0
  143. package/dist/lib/node_modules/@vueuse/core/dist/index.js +1 -0
  144. package/dist/lib/node_modules/@vueuse/shared/dist/index.js +1 -0
  145. package/dist/lib/node_modules/codemirror/dist/index.js +1 -0
  146. package/dist/lib/node_modules/crelt/index.js +1 -0
  147. package/dist/lib/node_modules/lodash-es/_Hash.js +1 -0
  148. package/dist/lib/node_modules/lodash-es/_ListCache.js +1 -0
  149. package/dist/lib/node_modules/lodash-es/_Map.js +1 -0
  150. package/dist/lib/node_modules/lodash-es/_MapCache.js +1 -0
  151. package/dist/lib/node_modules/lodash-es/_Symbol.js +1 -0
  152. package/dist/lib/node_modules/lodash-es/_arrayMap.js +1 -0
  153. package/dist/lib/node_modules/lodash-es/_assocIndexOf.js +1 -0
  154. package/dist/lib/node_modules/lodash-es/_baseGet.js +1 -0
  155. package/dist/lib/node_modules/lodash-es/_baseGetTag.js +1 -0
  156. package/dist/lib/node_modules/lodash-es/_baseIsNative.js +1 -0
  157. package/dist/lib/node_modules/lodash-es/_baseToString.js +1 -0
  158. package/dist/lib/node_modules/lodash-es/_castPath.js +1 -0
  159. package/dist/lib/node_modules/lodash-es/_coreJsData.js +1 -0
  160. package/dist/lib/node_modules/lodash-es/_freeGlobal.js +1 -0
  161. package/dist/lib/node_modules/lodash-es/_getMapData.js +1 -0
  162. package/dist/lib/node_modules/lodash-es/_getNative.js +1 -0
  163. package/dist/lib/node_modules/lodash-es/_getRawTag.js +1 -0
  164. package/dist/lib/node_modules/lodash-es/_getValue.js +1 -0
  165. package/dist/lib/node_modules/lodash-es/_hashClear.js +1 -0
  166. package/dist/lib/node_modules/lodash-es/_hashDelete.js +1 -0
  167. package/dist/lib/node_modules/lodash-es/_hashGet.js +1 -0
  168. package/dist/lib/node_modules/lodash-es/_hashHas.js +1 -0
  169. package/dist/lib/node_modules/lodash-es/_hashSet.js +1 -0
  170. package/dist/lib/node_modules/lodash-es/_isKey.js +1 -0
  171. package/dist/lib/node_modules/lodash-es/_isKeyable.js +1 -0
  172. package/dist/lib/node_modules/lodash-es/_isMasked.js +1 -0
  173. package/dist/lib/node_modules/lodash-es/_listCacheClear.js +1 -0
  174. package/dist/lib/node_modules/lodash-es/_listCacheDelete.js +1 -0
  175. package/dist/lib/node_modules/lodash-es/_listCacheGet.js +1 -0
  176. package/dist/lib/node_modules/lodash-es/_listCacheHas.js +1 -0
  177. package/dist/lib/node_modules/lodash-es/_listCacheSet.js +1 -0
  178. package/dist/lib/node_modules/lodash-es/_mapCacheClear.js +1 -0
  179. package/dist/lib/node_modules/lodash-es/_mapCacheDelete.js +1 -0
  180. package/dist/lib/node_modules/lodash-es/_mapCacheGet.js +1 -0
  181. package/dist/lib/node_modules/lodash-es/_mapCacheHas.js +1 -0
  182. package/dist/lib/node_modules/lodash-es/_mapCacheSet.js +1 -0
  183. package/dist/lib/node_modules/lodash-es/_memoizeCapped.js +1 -0
  184. package/dist/lib/node_modules/lodash-es/_nativeCreate.js +1 -0
  185. package/dist/lib/node_modules/lodash-es/_objectToString.js +1 -0
  186. package/dist/lib/node_modules/lodash-es/_root.js +1 -0
  187. package/dist/lib/node_modules/lodash-es/_stringToPath.js +1 -0
  188. package/dist/lib/node_modules/lodash-es/_toKey.js +1 -0
  189. package/dist/lib/node_modules/lodash-es/_toSource.js +1 -0
  190. package/dist/lib/node_modules/lodash-es/eq.js +1 -0
  191. package/dist/lib/node_modules/lodash-es/get.js +1 -0
  192. package/dist/lib/node_modules/lodash-es/isArray.js +1 -0
  193. package/dist/lib/node_modules/lodash-es/isFunction.js +1 -0
  194. package/dist/lib/node_modules/lodash-es/isNil.js +1 -0
  195. package/dist/lib/node_modules/lodash-es/isObject.js +1 -0
  196. package/dist/lib/node_modules/lodash-es/isObjectLike.js +1 -0
  197. package/dist/lib/node_modules/lodash-es/isString.js +1 -0
  198. package/dist/lib/node_modules/lodash-es/isSymbol.js +1 -0
  199. package/dist/lib/node_modules/lodash-es/memoize.js +1 -0
  200. package/dist/lib/node_modules/lodash-es/toString.js +1 -0
  201. package/dist/lib/node_modules/style-mod/src/style-mod.js +3 -0
  202. package/dist/lib/node_modules/vue-codemirror/dist/vue-codemirror.esm.js +1 -0
  203. package/dist/lib/node_modules/w3c-keyname/index.js +1 -0
  204. package/dist/lib/src/CodeEditor/index.js +1 -0
  205. package/dist/lib/src/CodeEditor/src/index.css +1 -0
  206. package/dist/lib/src/CodeEditor/src/index.vue.js +1 -0
  207. package/dist/lib/src/CodeEditor/src/index2.css +1 -0
  208. package/dist/lib/src/ConfigProvider/index.js +1 -0
  209. package/dist/lib/src/ConfigProvider/src/configProvider.js +1 -0
  210. package/dist/lib/src/ConfigProvider/src/configProviderProps.js +1 -0
  211. package/dist/lib/src/ConfigProvider/src/constants.js +1 -0
  212. package/dist/lib/src/ConfigProvider/src/useGlobalConfig.js +1 -0
  213. package/dist/lib/src/ScaleScreen/index.js +1 -0
  214. package/dist/lib/src/ScaleScreen/src/index.css +1 -0
  215. package/dist/lib/src/ScaleScreen/src/index.vue.js +1 -0
  216. package/dist/lib/src/ScaleScreen/src/index2.css +1 -0
  217. package/dist/lib/src/VideoBackground/index.js +1 -0
  218. package/dist/lib/src/VideoBackground/src/helper.js +1 -0
  219. package/dist/lib/src/VideoBackground/src/index.css +1 -0
  220. package/dist/lib/src/VideoBackground/src/index.vue.js +1 -0
  221. package/dist/lib/src/VideoBackground/src/index2.css +1 -0
  222. package/dist/lib/src/VideoBackground/src/index3.css +1 -0
  223. package/dist/lib/src/VideoBackground/src/videoBackground.js +1 -0
  224. package/dist/lib/src/hooks/useLocale.js +1 -0
  225. package/dist/lib/src/hooks/useNamespace.js +1 -0
  226. package/dist/lib/src/index.js +1 -0
  227. package/dist/lib/src/locale/lang/en-US.js +1 -0
  228. package/dist/lib/src/locale/lang/ja-JP.js +1 -0
  229. package/dist/lib/src/locale/lang/zh-CN.js +1 -0
  230. package/dist/lib/src/styles/tokens.css +1 -0
  231. package/package.json +71 -0
@@ -0,0 +1,1299 @@
1
+ import { NodeProp as y, Tree as C, IterMode as De, TreeFragment as M, Parser as Be, NodeType as Q } from "../../../@lezer/common/dist/index.js";
2
+ import { Prec as Ie, Facet as w, EditorState as B, RangeSetBuilder as ae, StateField as X, StateEffect as L, RangeSet as Oe, combineConfig as fe, countColumn as Me } from "../../state/dist/index.js";
3
+ import { EditorView as b, ViewPlugin as Y, Decoration as p, gutter as Ne, GutterMarker as Ee, logException as Fe, WidgetType as ce, Direction as _ } from "../../view/dist/index.js";
4
+ import { tagHighlighter as Le, highlightTree as He, tags as u, styleTags as We } from "../../../@lezer/highlight/dist/index.js";
5
+ import { StyleModule as ee } from "../../../style-mod/src/style-mod.js";
6
+ var U;
7
+ const A = /* @__PURE__ */ new y();
8
+ function Re(n) {
9
+ return w.define({
10
+ combine: n ? (e) => e.concat(n) : void 0
11
+ });
12
+ }
13
+ const Ue = /* @__PURE__ */ new y();
14
+ class g {
15
+ /**
16
+ Construct a language object. If you need to invoke this
17
+ directly, first define a data facet with
18
+ [`defineLanguageFacet`](https://codemirror.net/6/docs/ref/#language.defineLanguageFacet), and then
19
+ configure your parser to [attach](https://codemirror.net/6/docs/ref/#language.languageDataProp) it
20
+ to the language's outer syntax node.
21
+ */
22
+ constructor(e, t, r = [], i = "") {
23
+ this.data = e, this.name = i, B.prototype.hasOwnProperty("tree") || Object.defineProperty(B.prototype, "tree", { get() {
24
+ return k(this);
25
+ } }), this.parser = t, this.extension = [
26
+ v.of(this),
27
+ B.languageData.of((o, s, a) => {
28
+ let l = te(o, s, a), f = l.type.prop(A);
29
+ if (!f)
30
+ return [];
31
+ let c = o.facet(f), h = l.type.prop(Ue);
32
+ if (h) {
33
+ let m = l.resolve(s - l.from, a);
34
+ for (let d of h)
35
+ if (d.test(m, o)) {
36
+ let S = o.facet(d.facet);
37
+ return d.type == "replace" ? S : S.concat(c);
38
+ }
39
+ }
40
+ return c;
41
+ })
42
+ ].concat(r);
43
+ }
44
+ /**
45
+ Query whether this language is active at the given position.
46
+ */
47
+ isActiveAt(e, t, r = -1) {
48
+ return te(e, t, r).type.prop(A) == this.data;
49
+ }
50
+ /**
51
+ Find the document regions that were parsed using this language.
52
+ The returned regions will _include_ any nested languages rooted
53
+ in this language, when those exist.
54
+ */
55
+ findRegions(e) {
56
+ let t = e.facet(v);
57
+ if (t?.data == this.data)
58
+ return [{ from: 0, to: e.doc.length }];
59
+ if (!t || !t.allowsNesting)
60
+ return [];
61
+ let r = [], i = (o, s) => {
62
+ if (o.prop(A) == this.data) {
63
+ r.push({ from: s, to: s + o.length });
64
+ return;
65
+ }
66
+ let a = o.prop(y.mounted);
67
+ if (a) {
68
+ if (a.tree.prop(A) == this.data) {
69
+ if (a.overlay)
70
+ for (let l of a.overlay)
71
+ r.push({ from: l.from + s, to: l.to + s });
72
+ else
73
+ r.push({ from: s, to: s + o.length });
74
+ return;
75
+ } else if (a.overlay) {
76
+ let l = r.length;
77
+ if (i(a.tree, a.overlay[0].from + s), r.length > l)
78
+ return;
79
+ }
80
+ }
81
+ for (let l = 0; l < o.children.length; l++) {
82
+ let f = o.children[l];
83
+ f instanceof C && i(f, o.positions[l] + s);
84
+ }
85
+ };
86
+ return i(k(e), 0), r;
87
+ }
88
+ /**
89
+ Indicates whether this language allows nested languages. The
90
+ default implementation returns true.
91
+ */
92
+ get allowsNesting() {
93
+ return !0;
94
+ }
95
+ }
96
+ g.setState = /* @__PURE__ */ L.define();
97
+ function te(n, e, t) {
98
+ let r = n.facet(v), i = k(n).topNode;
99
+ if (!r || r.allowsNesting)
100
+ for (let o = i; o; o = o.enter(e, t, De.ExcludeBuffers))
101
+ o.type.isTop && (i = o);
102
+ return i;
103
+ }
104
+ class G extends g {
105
+ constructor(e, t, r) {
106
+ super(e, t, [], r), this.parser = t;
107
+ }
108
+ /**
109
+ Define a language from a parser.
110
+ */
111
+ static define(e) {
112
+ let t = Re(e.languageData);
113
+ return new G(t, e.parser.configure({
114
+ props: [A.add((r) => r.isTop ? t : void 0)]
115
+ }), e.name);
116
+ }
117
+ /**
118
+ Create a new instance of this language with a reconfigured
119
+ version of its parser and optionally a new name.
120
+ */
121
+ configure(e, t) {
122
+ return new G(this.data, this.parser.configure(e), t || this.name);
123
+ }
124
+ get allowsNesting() {
125
+ return this.parser.hasWrappers();
126
+ }
127
+ }
128
+ function k(n) {
129
+ let e = n.field(g.state, !1);
130
+ return e ? e.tree : C.empty;
131
+ }
132
+ class $e {
133
+ /**
134
+ Create an input object for the given document.
135
+ */
136
+ constructor(e) {
137
+ this.doc = e, this.cursorPos = 0, this.string = "", this.cursor = e.iter();
138
+ }
139
+ get length() {
140
+ return this.doc.length;
141
+ }
142
+ syncTo(e) {
143
+ return this.string = this.cursor.next(e - this.cursorPos).value, this.cursorPos = e + this.string.length, this.cursorPos - this.string.length;
144
+ }
145
+ chunk(e) {
146
+ return this.syncTo(e), this.string;
147
+ }
148
+ get lineChunks() {
149
+ return !0;
150
+ }
151
+ read(e, t) {
152
+ let r = this.cursorPos - this.string.length;
153
+ return e < r || t >= this.cursorPos ? this.doc.sliceString(e, t) : this.string.slice(e - r, t - r);
154
+ }
155
+ }
156
+ let D = null;
157
+ class N {
158
+ constructor(e, t, r = [], i, o, s, a, l) {
159
+ this.parser = e, this.state = t, this.fragments = r, this.tree = i, this.treeLen = o, this.viewport = s, this.skipped = a, this.scheduleOn = l, this.parse = null, this.tempSkipped = [];
160
+ }
161
+ /**
162
+ @internal
163
+ */
164
+ static create(e, t, r) {
165
+ return new N(e, t, [], C.empty, 0, r, [], null);
166
+ }
167
+ startParse() {
168
+ return this.parser.startParse(new $e(this.state.doc), this.fragments);
169
+ }
170
+ /**
171
+ @internal
172
+ */
173
+ work(e, t) {
174
+ return t != null && t >= this.state.doc.length && (t = void 0), this.tree != C.empty && this.isDone(t ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
175
+ var r;
176
+ if (typeof e == "number") {
177
+ let i = Date.now() + e;
178
+ e = () => Date.now() > i;
179
+ }
180
+ for (this.parse || (this.parse = this.startParse()), t != null && (this.parse.stoppedAt == null || this.parse.stoppedAt > t) && t < this.state.doc.length && this.parse.stopAt(t); ; ) {
181
+ let i = this.parse.advance();
182
+ if (i)
183
+ if (this.fragments = this.withoutTempSkipped(M.addTree(i, this.fragments, this.parse.stoppedAt != null)), this.treeLen = (r = this.parse.stoppedAt) !== null && r !== void 0 ? r : this.state.doc.length, this.tree = i, this.parse = null, this.treeLen < (t ?? this.state.doc.length))
184
+ this.parse = this.startParse();
185
+ else
186
+ return !0;
187
+ if (e())
188
+ return !1;
189
+ }
190
+ });
191
+ }
192
+ /**
193
+ @internal
194
+ */
195
+ takeTree() {
196
+ let e, t;
197
+ this.parse && (e = this.parse.parsedPos) >= this.treeLen && ((this.parse.stoppedAt == null || this.parse.stoppedAt > e) && this.parse.stopAt(e), this.withContext(() => {
198
+ for (; !(t = this.parse.advance()); )
199
+ ;
200
+ }), this.treeLen = e, this.tree = t, this.fragments = this.withoutTempSkipped(M.addTree(this.tree, this.fragments, !0)), this.parse = null);
201
+ }
202
+ withContext(e) {
203
+ let t = D;
204
+ D = this;
205
+ try {
206
+ return e();
207
+ } finally {
208
+ D = t;
209
+ }
210
+ }
211
+ withoutTempSkipped(e) {
212
+ for (let t; t = this.tempSkipped.pop(); )
213
+ e = ne(e, t.from, t.to);
214
+ return e;
215
+ }
216
+ /**
217
+ @internal
218
+ */
219
+ changes(e, t) {
220
+ let { fragments: r, tree: i, treeLen: o, viewport: s, skipped: a } = this;
221
+ if (this.takeTree(), !e.empty) {
222
+ let l = [];
223
+ if (e.iterChangedRanges((f, c, h, m) => l.push({ fromA: f, toA: c, fromB: h, toB: m })), r = M.applyChanges(r, l), i = C.empty, o = 0, s = { from: e.mapPos(s.from, -1), to: e.mapPos(s.to, 1) }, this.skipped.length) {
224
+ a = [];
225
+ for (let f of this.skipped) {
226
+ let c = e.mapPos(f.from, 1), h = e.mapPos(f.to, -1);
227
+ c < h && a.push({ from: c, to: h });
228
+ }
229
+ }
230
+ }
231
+ return new N(this.parser, t, r, i, o, s, a, this.scheduleOn);
232
+ }
233
+ /**
234
+ @internal
235
+ */
236
+ updateViewport(e) {
237
+ if (this.viewport.from == e.from && this.viewport.to == e.to)
238
+ return !1;
239
+ this.viewport = e;
240
+ let t = this.skipped.length;
241
+ for (let r = 0; r < this.skipped.length; r++) {
242
+ let { from: i, to: o } = this.skipped[r];
243
+ i < e.to && o > e.from && (this.fragments = ne(this.fragments, i, o), this.skipped.splice(r--, 1));
244
+ }
245
+ return this.skipped.length >= t ? !1 : (this.reset(), !0);
246
+ }
247
+ /**
248
+ @internal
249
+ */
250
+ reset() {
251
+ this.parse && (this.takeTree(), this.parse = null);
252
+ }
253
+ /**
254
+ Notify the parse scheduler that the given region was skipped
255
+ because it wasn't in view, and the parse should be restarted
256
+ when it comes into view.
257
+ */
258
+ skipUntilInView(e, t) {
259
+ this.skipped.push({ from: e, to: t });
260
+ }
261
+ /**
262
+ Returns a parser intended to be used as placeholder when
263
+ asynchronously loading a nested parser. It'll skip its input and
264
+ mark it as not-really-parsed, so that the next update will parse
265
+ it again.
266
+
267
+ When `until` is given, a reparse will be scheduled when that
268
+ promise resolves.
269
+ */
270
+ static getSkippingParser(e) {
271
+ return new class extends Be {
272
+ createParse(t, r, i) {
273
+ let o = i[0].from, s = i[i.length - 1].to;
274
+ return {
275
+ parsedPos: o,
276
+ advance() {
277
+ let l = D;
278
+ if (l) {
279
+ for (let f of i)
280
+ l.tempSkipped.push(f);
281
+ e && (l.scheduleOn = l.scheduleOn ? Promise.all([l.scheduleOn, e]) : e);
282
+ }
283
+ return this.parsedPos = s, new C(Q.none, [], [], s - o);
284
+ },
285
+ stoppedAt: null,
286
+ stopAt() {
287
+ }
288
+ };
289
+ }
290
+ }();
291
+ }
292
+ /**
293
+ @internal
294
+ */
295
+ isDone(e) {
296
+ e = Math.min(e, this.state.doc.length);
297
+ let t = this.fragments;
298
+ return this.treeLen >= e && t.length && t[0].from == 0 && t[0].to >= e;
299
+ }
300
+ /**
301
+ Get the context for the current parse, or `null` if no editor
302
+ parse is in progress.
303
+ */
304
+ static get() {
305
+ return D;
306
+ }
307
+ }
308
+ function ne(n, e, t) {
309
+ return M.applyChanges(n, [{ fromA: e, toA: t, fromB: e, toB: t }]);
310
+ }
311
+ class P {
312
+ constructor(e) {
313
+ this.context = e, this.tree = e.tree;
314
+ }
315
+ apply(e) {
316
+ if (!e.docChanged && this.tree == this.context.tree)
317
+ return this;
318
+ let t = this.context.changes(e.changes, e.state), r = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), t.viewport.to);
319
+ return t.work(20, r) || t.takeTree(), new P(t);
320
+ }
321
+ static init(e) {
322
+ let t = Math.min(3e3, e.doc.length), r = N.create(e.facet(v).parser, e, { from: 0, to: t });
323
+ return r.work(20, t) || r.takeTree(), new P(r);
324
+ }
325
+ }
326
+ g.state = /* @__PURE__ */ X.define({
327
+ create: P.init,
328
+ update(n, e) {
329
+ for (let t of e.effects)
330
+ if (t.is(g.setState))
331
+ return t.value;
332
+ return e.startState.facet(v) != e.state.facet(v) ? P.init(e.state) : n.apply(e);
333
+ }
334
+ });
335
+ let ue = (n) => {
336
+ let e = setTimeout(
337
+ () => n(),
338
+ 500
339
+ /* Work.MaxPause */
340
+ );
341
+ return () => clearTimeout(e);
342
+ };
343
+ typeof requestIdleCallback < "u" && (ue = (n) => {
344
+ let e = -1, t = setTimeout(
345
+ () => {
346
+ e = requestIdleCallback(n, {
347
+ timeout: 400
348
+ /* Work.MinPause */
349
+ });
350
+ },
351
+ 100
352
+ /* Work.MinPause */
353
+ );
354
+ return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
355
+ });
356
+ const $ = typeof navigator < "u" && (!((U = navigator.scheduling) === null || U === void 0) && U.isInputPending) ? () => navigator.scheduling.isInputPending() : null, qe = /* @__PURE__ */ Y.fromClass(class {
357
+ constructor(e) {
358
+ this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
359
+ }
360
+ update(e) {
361
+ let t = this.view.state.field(g.state).context;
362
+ (t.updateViewport(e.view.viewport) || this.view.viewport.to > t.treeLen) && this.scheduleWork(), (e.docChanged || e.selectionSet) && (this.view.hasFocus && (this.chunkBudget += 50), this.scheduleWork()), this.checkAsyncSchedule(t);
363
+ }
364
+ scheduleWork() {
365
+ if (this.working)
366
+ return;
367
+ let { state: e } = this.view, t = e.field(g.state);
368
+ (t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = ue(this.work));
369
+ }
370
+ work(e) {
371
+ this.working = null;
372
+ let t = Date.now();
373
+ if (this.chunkEnd < t && (this.chunkEnd < 0 || this.view.hasFocus) && (this.chunkEnd = t + 3e4, this.chunkBudget = 3e3), this.chunkBudget <= 0)
374
+ return;
375
+ let { state: r, viewport: { to: i } } = this.view, o = r.field(g.state);
376
+ if (o.tree == o.context.tree && o.context.isDone(
377
+ i + 1e5
378
+ /* Work.MaxParseAhead */
379
+ ))
380
+ return;
381
+ let s = Date.now() + Math.min(this.chunkBudget, 100, e && !$ ? Math.max(25, e.timeRemaining() - 5) : 1e9), a = o.context.treeLen < i && r.doc.length > i + 1e3, l = o.context.work(() => $ && $() || Date.now() > s, i + (a ? 0 : 1e5));
382
+ this.chunkBudget -= Date.now() - t, (l || this.chunkBudget <= 0) && (o.context.takeTree(), this.view.dispatch({ effects: g.setState.of(new P(o.context)) })), this.chunkBudget > 0 && !(l && !a) && this.scheduleWork(), this.checkAsyncSchedule(o.context);
383
+ }
384
+ checkAsyncSchedule(e) {
385
+ e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => Fe(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
386
+ }
387
+ destroy() {
388
+ this.working && this.working();
389
+ }
390
+ isWorking() {
391
+ return !!(this.working || this.workScheduled > 0);
392
+ }
393
+ }, {
394
+ eventHandlers: { focus() {
395
+ this.scheduleWork();
396
+ } }
397
+ }), v = /* @__PURE__ */ w.define({
398
+ combine(n) {
399
+ return n.length ? n[0] : null;
400
+ },
401
+ enables: (n) => [
402
+ g.state,
403
+ qe,
404
+ b.contentAttributes.compute([n], (e) => {
405
+ let t = e.facet(n);
406
+ return t && t.name ? { "data-language": t.name } : {};
407
+ })
408
+ ]
409
+ });
410
+ class Et {
411
+ /**
412
+ Create a language support object.
413
+ */
414
+ constructor(e, t = []) {
415
+ this.language = e, this.support = t, this.extension = [e, t];
416
+ }
417
+ }
418
+ const je = /* @__PURE__ */ w.define(), he = /* @__PURE__ */ w.define({
419
+ combine: (n) => {
420
+ if (!n.length)
421
+ return " ";
422
+ let e = n[0];
423
+ if (!e || /\S/.test(e) || Array.from(e).some((t) => t != e[0]))
424
+ throw new Error("Invalid indent unit: " + JSON.stringify(n[0]));
425
+ return e;
426
+ }
427
+ });
428
+ function ze(n) {
429
+ let e = n.facet(he);
430
+ return e.charCodeAt(0) == 9 ? n.tabSize * e.length : e.length;
431
+ }
432
+ function Ge(n, e) {
433
+ let t = "", r = n.tabSize, i = n.facet(he)[0];
434
+ if (i == " ") {
435
+ for (; e >= r; )
436
+ t += " ", e -= r;
437
+ i = " ";
438
+ }
439
+ for (let o = 0; o < e; o++)
440
+ t += i;
441
+ return t;
442
+ }
443
+ function Je(n, e) {
444
+ n instanceof B && (n = new de(n));
445
+ for (let r of n.state.facet(je)) {
446
+ let i = r(n, e);
447
+ if (i !== void 0)
448
+ return i;
449
+ }
450
+ let t = k(n.state);
451
+ return t.length >= e ? Ke(n, t, e) : null;
452
+ }
453
+ class de {
454
+ /**
455
+ Create an indent context.
456
+ */
457
+ constructor(e, t = {}) {
458
+ this.state = e, this.options = t, this.unit = ze(e);
459
+ }
460
+ /**
461
+ Get a description of the line at the given position, taking
462
+ [simulated line
463
+ breaks](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
464
+ into account. If there is such a break at `pos`, the `bias`
465
+ argument determines whether the part of the line line before or
466
+ after the break is used.
467
+ */
468
+ lineAt(e, t = 1) {
469
+ let r = this.state.doc.lineAt(e), { simulateBreak: i, simulateDoubleBreak: o } = this.options;
470
+ return i != null && i >= r.from && i <= r.to ? o && i == e ? { text: "", from: e } : (t < 0 ? i < e : i <= e) ? { text: r.text.slice(i - r.from), from: i } : { text: r.text.slice(0, i - r.from), from: r.from } : r;
471
+ }
472
+ /**
473
+ Get the text directly after `pos`, either the entire line
474
+ or the next 100 characters, whichever is shorter.
475
+ */
476
+ textAfterPos(e, t = 1) {
477
+ if (this.options.simulateDoubleBreak && e == this.options.simulateBreak)
478
+ return "";
479
+ let { text: r, from: i } = this.lineAt(e, t);
480
+ return r.slice(e - i, Math.min(r.length, e + 100 - i));
481
+ }
482
+ /**
483
+ Find the column for the given position.
484
+ */
485
+ column(e, t = 1) {
486
+ let { text: r, from: i } = this.lineAt(e, t), o = this.countColumn(r, e - i), s = this.options.overrideIndentation ? this.options.overrideIndentation(i) : -1;
487
+ return s > -1 && (o += s - this.countColumn(r, r.search(/\S|$/))), o;
488
+ }
489
+ /**
490
+ Find the column position (taking tabs into account) of the given
491
+ position in the given string.
492
+ */
493
+ countColumn(e, t = e.length) {
494
+ return Me(e, this.state.tabSize, t);
495
+ }
496
+ /**
497
+ Find the indentation column of the line at the given point.
498
+ */
499
+ lineIndent(e, t = 1) {
500
+ let { text: r, from: i } = this.lineAt(e, t), o = this.options.overrideIndentation;
501
+ if (o) {
502
+ let s = o(i);
503
+ if (s > -1)
504
+ return s;
505
+ }
506
+ return this.countColumn(r, r.search(/\S|$/));
507
+ }
508
+ /**
509
+ Returns the [simulated line
510
+ break](https://codemirror.net/6/docs/ref/#language.IndentContext.constructor^options.simulateBreak)
511
+ for this context, if any.
512
+ */
513
+ get simulatedBreak() {
514
+ return this.options.simulateBreak || null;
515
+ }
516
+ }
517
+ const Ve = /* @__PURE__ */ new y();
518
+ function Ke(n, e, t) {
519
+ let r = e.resolveStack(t), i = e.resolveInner(t, -1).resolve(t, 0).enterUnfinishedNodesBefore(t);
520
+ if (i != r.node) {
521
+ let o = [];
522
+ for (let s = i; s && !(s.from < r.node.from || s.to > r.node.to || s.from == r.node.from && s.type == r.node.type); s = s.parent)
523
+ o.push(s);
524
+ for (let s = o.length - 1; s >= 0; s--)
525
+ r = { node: o[s], next: r };
526
+ }
527
+ return pe(r, n, t);
528
+ }
529
+ function pe(n, e, t) {
530
+ for (let r = n; r; r = r.next) {
531
+ let i = Xe(r.node);
532
+ if (i)
533
+ return i(Z.create(e, t, r));
534
+ }
535
+ return 0;
536
+ }
537
+ function Qe(n) {
538
+ return n.pos == n.options.simulateBreak && n.options.simulateDoubleBreak;
539
+ }
540
+ function Xe(n) {
541
+ let e = n.type.prop(Ve);
542
+ if (e)
543
+ return e;
544
+ let t = n.firstChild, r;
545
+ if (t && (r = t.type.prop(y.closedBy))) {
546
+ let i = n.lastChild, o = i && r.indexOf(i.name) > -1;
547
+ return (s) => me(s, !0, 1, void 0, o && !Qe(s) ? i.from : void 0);
548
+ }
549
+ return n.parent == null ? Ye : null;
550
+ }
551
+ function Ye() {
552
+ return 0;
553
+ }
554
+ class Z extends de {
555
+ constructor(e, t, r) {
556
+ super(e.state, e.options), this.base = e, this.pos = t, this.context = r;
557
+ }
558
+ /**
559
+ The syntax tree node to which the indentation strategy
560
+ applies.
561
+ */
562
+ get node() {
563
+ return this.context.node;
564
+ }
565
+ /**
566
+ @internal
567
+ */
568
+ static create(e, t, r) {
569
+ return new Z(e, t, r);
570
+ }
571
+ /**
572
+ Get the text directly after `this.pos`, either the entire line
573
+ or the next 100 characters, whichever is shorter.
574
+ */
575
+ get textAfter() {
576
+ return this.textAfterPos(this.pos);
577
+ }
578
+ /**
579
+ Get the indentation at the reference line for `this.node`, which
580
+ is the line on which it starts, unless there is a node that is
581
+ _not_ a parent of this node covering the start of that line. If
582
+ so, the line at the start of that node is tried, again skipping
583
+ on if it is covered by another such node.
584
+ */
585
+ get baseIndent() {
586
+ return this.baseIndentFor(this.node);
587
+ }
588
+ /**
589
+ Get the indentation for the reference line of the given node
590
+ (see [`baseIndent`](https://codemirror.net/6/docs/ref/#language.TreeIndentContext.baseIndent)).
591
+ */
592
+ baseIndentFor(e) {
593
+ let t = this.state.doc.lineAt(e.from);
594
+ for (; ; ) {
595
+ let r = e.resolve(t.from);
596
+ for (; r.parent && r.parent.from == r.from; )
597
+ r = r.parent;
598
+ if (Ze(r, e))
599
+ break;
600
+ t = this.state.doc.lineAt(r.from);
601
+ }
602
+ return this.lineIndent(t.from);
603
+ }
604
+ /**
605
+ Continue looking for indentations in the node's parent nodes,
606
+ and return the result of that.
607
+ */
608
+ continue() {
609
+ return pe(this.context.next, this.base, this.pos);
610
+ }
611
+ }
612
+ function Ze(n, e) {
613
+ for (let t = e; t; t = t.parent)
614
+ if (n == t)
615
+ return !0;
616
+ return !1;
617
+ }
618
+ function _e(n) {
619
+ let e = n.node, t = e.childAfter(e.from), r = e.lastChild;
620
+ if (!t)
621
+ return null;
622
+ let i = n.options.simulateBreak, o = n.state.doc.lineAt(t.from), s = i == null || i <= o.from ? o.to : Math.min(o.to, i);
623
+ for (let a = t.to; ; ) {
624
+ let l = e.childAfter(a);
625
+ if (!l || l == r)
626
+ return null;
627
+ if (!l.type.isSkipped) {
628
+ if (l.from >= s)
629
+ return null;
630
+ let f = /^ */.exec(o.text.slice(t.to - o.from))[0].length;
631
+ return { from: t.from, to: t.to + f };
632
+ }
633
+ a = l.to;
634
+ }
635
+ }
636
+ function Ft({ closing: n, align: e = !0, units: t = 1 }) {
637
+ return (r) => me(r, e, t, n);
638
+ }
639
+ function me(n, e, t, r, i) {
640
+ let o = n.textAfter, s = o.match(/^\s*/)[0].length, a = r && o.slice(s, s + r.length) == r || i == n.pos + s, l = e ? _e(n) : null;
641
+ return l ? a ? n.column(l.from) : n.column(l.to) : n.baseIndent + (a ? 0 : n.unit * t);
642
+ }
643
+ const Lt = (n) => n.baseIndent;
644
+ function Ht({ except: n, units: e = 1 } = {}) {
645
+ return (t) => {
646
+ let r = n && n.test(t.textAfter);
647
+ return t.baseIndent + (r ? 0 : e * t.unit);
648
+ };
649
+ }
650
+ const et = 200;
651
+ function Wt() {
652
+ return B.transactionFilter.of((n) => {
653
+ if (!n.docChanged || !n.isUserEvent("input.type") && !n.isUserEvent("input.complete"))
654
+ return n;
655
+ let e = n.startState.languageDataAt("indentOnInput", n.startState.selection.main.head);
656
+ if (!e.length)
657
+ return n;
658
+ let t = n.newDoc, { head: r } = n.newSelection.main, i = t.lineAt(r);
659
+ if (r > i.from + et)
660
+ return n;
661
+ let o = t.sliceString(i.from, r);
662
+ if (!e.some((f) => f.test(o)))
663
+ return n;
664
+ let { state: s } = n, a = -1, l = [];
665
+ for (let { head: f } of s.selection.ranges) {
666
+ let c = s.doc.lineAt(f);
667
+ if (c.from == a)
668
+ continue;
669
+ a = c.from;
670
+ let h = Je(s, c.from);
671
+ if (h == null)
672
+ continue;
673
+ let m = /^\s*/.exec(c.text)[0], d = Ge(s, h);
674
+ m != d && l.push({ from: c.from, to: c.from + m.length, insert: d });
675
+ }
676
+ return l.length ? [n, { changes: l, sequential: !0 }] : n;
677
+ });
678
+ }
679
+ const tt = /* @__PURE__ */ w.define(), nt = /* @__PURE__ */ new y();
680
+ function Rt(n) {
681
+ let e = n.firstChild, t = n.lastChild;
682
+ return e && e.to < t.from ? { from: e.to, to: t.type.isError ? n.to : t.from } : null;
683
+ }
684
+ function rt(n, e, t) {
685
+ let r = k(n);
686
+ if (r.length < t)
687
+ return null;
688
+ let i = r.resolveStack(t, 1), o = null;
689
+ for (let s = i; s; s = s.next) {
690
+ let a = s.node;
691
+ if (a.to <= t || a.from > t)
692
+ continue;
693
+ if (o && a.from < e)
694
+ break;
695
+ let l = a.type.prop(nt);
696
+ if (l && (a.to < r.length - 50 || r.length == n.doc.length || !it(a))) {
697
+ let f = l(a, n);
698
+ f && f.from <= t && f.from >= e && f.to > t && (o = f);
699
+ }
700
+ }
701
+ return o;
702
+ }
703
+ function it(n) {
704
+ let e = n.lastChild;
705
+ return e && e.to == n.to && e.type.isError;
706
+ }
707
+ function E(n, e, t) {
708
+ for (let r of n.facet(tt)) {
709
+ let i = r(n, e, t);
710
+ if (i)
711
+ return i;
712
+ }
713
+ return rt(n, e, t);
714
+ }
715
+ function ge(n, e) {
716
+ let t = e.mapPos(n.from, 1), r = e.mapPos(n.to, -1);
717
+ return t >= r ? void 0 : { from: t, to: r };
718
+ }
719
+ const H = /* @__PURE__ */ L.define({ map: ge }), I = /* @__PURE__ */ L.define({ map: ge });
720
+ function ke(n) {
721
+ let e = [];
722
+ for (let { head: t } of n.state.selection.ranges)
723
+ e.some((r) => r.from <= t && r.to >= t) || e.push(n.lineBlockAt(t));
724
+ return e;
725
+ }
726
+ const x = /* @__PURE__ */ X.define({
727
+ create() {
728
+ return p.none;
729
+ },
730
+ update(n, e) {
731
+ e.isUserEvent("delete") && e.changes.iterChangedRanges((t, r) => n = re(n, t, r)), n = n.map(e.changes);
732
+ for (let t of e.effects)
733
+ if (t.is(H) && !ot(n, t.value.from, t.value.to)) {
734
+ let { preparePlaceholder: r } = e.state.facet(we), i = r ? p.replace({ widget: new ut(r(e.state, t.value)) }) : ie;
735
+ n = n.update({ add: [i.range(t.value.from, t.value.to)] });
736
+ } else t.is(I) && (n = n.update({
737
+ filter: (r, i) => t.value.from != r || t.value.to != i,
738
+ filterFrom: t.value.from,
739
+ filterTo: t.value.to
740
+ }));
741
+ return e.selection && (n = re(n, e.selection.main.head)), n;
742
+ },
743
+ provide: (n) => b.decorations.from(n),
744
+ toJSON(n, e) {
745
+ let t = [];
746
+ return n.between(0, e.doc.length, (r, i) => {
747
+ t.push(r, i);
748
+ }), t;
749
+ },
750
+ fromJSON(n) {
751
+ if (!Array.isArray(n) || n.length % 2)
752
+ throw new RangeError("Invalid JSON for fold state");
753
+ let e = [];
754
+ for (let t = 0; t < n.length; ) {
755
+ let r = n[t++], i = n[t++];
756
+ if (typeof r != "number" || typeof i != "number")
757
+ throw new RangeError("Invalid JSON for fold state");
758
+ e.push(ie.range(r, i));
759
+ }
760
+ return p.set(e, !0);
761
+ }
762
+ });
763
+ function re(n, e, t = e) {
764
+ let r = !1;
765
+ return n.between(e, t, (i, o) => {
766
+ i < t && o > e && (r = !0);
767
+ }), r ? n.update({
768
+ filterFrom: e,
769
+ filterTo: t,
770
+ filter: (i, o) => i >= t || o <= e
771
+ }) : n;
772
+ }
773
+ function F(n, e, t) {
774
+ var r;
775
+ let i = null;
776
+ return (r = n.field(x, !1)) === null || r === void 0 || r.between(e, t, (o, s) => {
777
+ (!i || i.from > o) && (i = { from: o, to: s });
778
+ }), i;
779
+ }
780
+ function ot(n, e, t) {
781
+ let r = !1;
782
+ return n.between(e, e, (i, o) => {
783
+ i == e && o == t && (r = !0);
784
+ }), r;
785
+ }
786
+ function be(n, e) {
787
+ return n.field(x, !1) ? e : e.concat(L.appendConfig.of(ve()));
788
+ }
789
+ const st = (n) => {
790
+ for (let e of ke(n)) {
791
+ let t = E(n.state, e.from, e.to);
792
+ if (t)
793
+ return n.dispatch({ effects: be(n.state, [H.of(t), ye(n, t)]) }), !0;
794
+ }
795
+ return !1;
796
+ }, lt = (n) => {
797
+ if (!n.state.field(x, !1))
798
+ return !1;
799
+ let e = [];
800
+ for (let t of ke(n)) {
801
+ let r = F(n.state, t.from, t.to);
802
+ r && e.push(I.of(r), ye(n, r, !1));
803
+ }
804
+ return e.length && n.dispatch({ effects: e }), e.length > 0;
805
+ };
806
+ function ye(n, e, t = !0) {
807
+ let r = n.state.doc.lineAt(e.from).number, i = n.state.doc.lineAt(e.to).number;
808
+ return b.announce.of(`${n.state.phrase(t ? "Folded lines" : "Unfolded lines")} ${r} ${n.state.phrase("to")} ${i}.`);
809
+ }
810
+ const at = (n) => {
811
+ let { state: e } = n, t = [];
812
+ for (let r = 0; r < e.doc.length; ) {
813
+ let i = n.lineBlockAt(r), o = E(e, i.from, i.to);
814
+ o && t.push(H.of(o)), r = (o ? n.lineBlockAt(o.to) : i).to + 1;
815
+ }
816
+ return t.length && n.dispatch({ effects: be(n.state, t) }), !!t.length;
817
+ }, ft = (n) => {
818
+ let e = n.state.field(x, !1);
819
+ if (!e || !e.size)
820
+ return !1;
821
+ let t = [];
822
+ return e.between(0, n.state.doc.length, (r, i) => {
823
+ t.push(I.of({ from: r, to: i }));
824
+ }), n.dispatch({ effects: t }), !0;
825
+ }, Ut = [
826
+ { key: "Ctrl-Shift-[", mac: "Cmd-Alt-[", run: st },
827
+ { key: "Ctrl-Shift-]", mac: "Cmd-Alt-]", run: lt },
828
+ { key: "Ctrl-Alt-[", run: at },
829
+ { key: "Ctrl-Alt-]", run: ft }
830
+ ], ct = {
831
+ placeholderDOM: null,
832
+ preparePlaceholder: null,
833
+ placeholderText: "…"
834
+ }, we = /* @__PURE__ */ w.define({
835
+ combine(n) {
836
+ return fe(n, ct);
837
+ }
838
+ });
839
+ function ve(n) {
840
+ return [x, dt];
841
+ }
842
+ function xe(n, e) {
843
+ let { state: t } = n, r = t.facet(we), i = (s) => {
844
+ let a = n.lineBlockAt(n.posAtDOM(s.target)), l = F(n.state, a.from, a.to);
845
+ l && n.dispatch({ effects: I.of(l) }), s.preventDefault();
846
+ };
847
+ if (r.placeholderDOM)
848
+ return r.placeholderDOM(n, i, e);
849
+ let o = document.createElement("span");
850
+ return o.textContent = r.placeholderText, o.setAttribute("aria-label", t.phrase("folded code")), o.title = t.phrase("unfold"), o.className = "cm-foldPlaceholder", o.onclick = i, o;
851
+ }
852
+ const ie = /* @__PURE__ */ p.replace({ widget: /* @__PURE__ */ new class extends ce {
853
+ toDOM(n) {
854
+ return xe(n, null);
855
+ }
856
+ }() });
857
+ class ut extends ce {
858
+ constructor(e) {
859
+ super(), this.value = e;
860
+ }
861
+ eq(e) {
862
+ return this.value == e.value;
863
+ }
864
+ toDOM(e) {
865
+ return xe(e, this.value);
866
+ }
867
+ }
868
+ const ht = {
869
+ openText: "⌄",
870
+ closedText: "›",
871
+ markerDOM: null,
872
+ domEventHandlers: {},
873
+ foldingChanged: () => !1
874
+ };
875
+ class q extends Ee {
876
+ constructor(e, t) {
877
+ super(), this.config = e, this.open = t;
878
+ }
879
+ eq(e) {
880
+ return this.config == e.config && this.open == e.open;
881
+ }
882
+ toDOM(e) {
883
+ if (this.config.markerDOM)
884
+ return this.config.markerDOM(this.open);
885
+ let t = document.createElement("span");
886
+ return t.textContent = this.open ? this.config.openText : this.config.closedText, t.title = e.state.phrase(this.open ? "Fold line" : "Unfold line"), t;
887
+ }
888
+ }
889
+ function $t(n = {}) {
890
+ let e = { ...ht, ...n }, t = new q(e, !0), r = new q(e, !1), i = Y.fromClass(class {
891
+ constructor(s) {
892
+ this.from = s.viewport.from, this.markers = this.buildMarkers(s);
893
+ }
894
+ update(s) {
895
+ (s.docChanged || s.viewportChanged || s.startState.facet(v) != s.state.facet(v) || s.startState.field(x, !1) != s.state.field(x, !1) || k(s.startState) != k(s.state) || e.foldingChanged(s)) && (this.markers = this.buildMarkers(s.view));
896
+ }
897
+ buildMarkers(s) {
898
+ let a = new ae();
899
+ for (let l of s.viewportLineBlocks) {
900
+ let f = F(s.state, l.from, l.to) ? r : E(s.state, l.from, l.to) ? t : null;
901
+ f && a.add(l.from, l.from, f);
902
+ }
903
+ return a.finish();
904
+ }
905
+ }), { domEventHandlers: o } = e;
906
+ return [
907
+ i,
908
+ Ne({
909
+ class: "cm-foldGutter",
910
+ markers(s) {
911
+ var a;
912
+ return ((a = s.plugin(i)) === null || a === void 0 ? void 0 : a.markers) || Oe.empty;
913
+ },
914
+ initialSpacer() {
915
+ return new q(e, !1);
916
+ },
917
+ domEventHandlers: {
918
+ ...o,
919
+ click: (s, a, l) => {
920
+ if (o.click && o.click(s, a, l))
921
+ return !0;
922
+ let f = F(s.state, a.from, a.to);
923
+ if (f)
924
+ return s.dispatch({ effects: I.of(f) }), !0;
925
+ let c = E(s.state, a.from, a.to);
926
+ return c ? (s.dispatch({ effects: H.of(c) }), !0) : !1;
927
+ }
928
+ }
929
+ }),
930
+ ve()
931
+ ];
932
+ }
933
+ const dt = /* @__PURE__ */ b.baseTheme({
934
+ ".cm-foldPlaceholder": {
935
+ backgroundColor: "#eee",
936
+ border: "1px solid #ddd",
937
+ color: "#888",
938
+ borderRadius: ".2em",
939
+ margin: "0 1px",
940
+ padding: "0 1px",
941
+ cursor: "pointer"
942
+ },
943
+ ".cm-foldGutter span": {
944
+ padding: "0 1px",
945
+ cursor: "pointer"
946
+ }
947
+ });
948
+ class W {
949
+ constructor(e, t) {
950
+ this.specs = e;
951
+ let r;
952
+ function i(a) {
953
+ let l = ee.newName();
954
+ return (r || (r = /* @__PURE__ */ Object.create(null)))["." + l] = a, l;
955
+ }
956
+ const o = typeof t.all == "string" ? t.all : t.all ? i(t.all) : void 0, s = t.scope;
957
+ this.scope = s instanceof g ? (a) => a.prop(A) == s.data : s ? (a) => a == s : void 0, this.style = Le(e.map((a) => ({
958
+ tag: a.tag,
959
+ class: a.class || i(Object.assign({}, a, { tag: null }))
960
+ })), {
961
+ all: o
962
+ }).style, this.module = r ? new ee(r) : null, this.themeType = t.themeType;
963
+ }
964
+ /**
965
+ Create a highlighter style that associates the given styles to
966
+ the given tags. The specs must be objects that hold a style tag
967
+ or array of tags in their `tag` property, and either a single
968
+ `class` property providing a static CSS class (for highlighter
969
+ that rely on external styling), or a
970
+ [`style-mod`](https://github.com/marijnh/style-mod#documentation)-style
971
+ set of CSS properties (which define the styling for those tags).
972
+
973
+ The CSS rules created for a highlighter will be emitted in the
974
+ order of the spec's properties. That means that for elements that
975
+ have multiple tags associated with them, styles defined further
976
+ down in the list will have a higher CSS precedence than styles
977
+ defined earlier.
978
+ */
979
+ static define(e, t) {
980
+ return new W(e, t || {});
981
+ }
982
+ }
983
+ const J = /* @__PURE__ */ w.define(), Se = /* @__PURE__ */ w.define({
984
+ combine(n) {
985
+ return n.length ? [n[0]] : null;
986
+ }
987
+ });
988
+ function j(n) {
989
+ let e = n.facet(J);
990
+ return e.length ? e : n.facet(Se);
991
+ }
992
+ function qt(n, e) {
993
+ let t = [mt], r;
994
+ return n instanceof W && (n.module && t.push(b.styleModule.of(n.module)), r = n.themeType), e?.fallback ? t.push(Se.of(n)) : r ? t.push(J.computeN([b.darkTheme], (i) => i.facet(b.darkTheme) == (r == "dark") ? [n] : [])) : t.push(J.of(n)), t;
995
+ }
996
+ class pt {
997
+ constructor(e) {
998
+ this.markCache = /* @__PURE__ */ Object.create(null), this.tree = k(e.state), this.decorations = this.buildDeco(e, j(e.state)), this.decoratedTo = e.viewport.to;
999
+ }
1000
+ update(e) {
1001
+ let t = k(e.state), r = j(e.state), i = r != j(e.startState), { viewport: o } = e.view, s = e.changes.mapPos(this.decoratedTo, 1);
1002
+ t.length < o.to && !i && t.type == this.tree.type && s >= o.to ? (this.decorations = this.decorations.map(e.changes), this.decoratedTo = s) : (t != this.tree || e.viewportChanged || i) && (this.tree = t, this.decorations = this.buildDeco(e.view, r), this.decoratedTo = o.to);
1003
+ }
1004
+ buildDeco(e, t) {
1005
+ if (!t || !this.tree.length)
1006
+ return p.none;
1007
+ let r = new ae();
1008
+ for (let { from: i, to: o } of e.visibleRanges)
1009
+ He(this.tree, t, (s, a, l) => {
1010
+ r.add(s, a, this.markCache[l] || (this.markCache[l] = p.mark({ class: l })));
1011
+ }, i, o);
1012
+ return r.finish();
1013
+ }
1014
+ }
1015
+ const mt = /* @__PURE__ */ Ie.high(/* @__PURE__ */ Y.fromClass(pt, {
1016
+ decorations: (n) => n.decorations
1017
+ })), jt = /* @__PURE__ */ W.define([
1018
+ {
1019
+ tag: u.meta,
1020
+ color: "#404740"
1021
+ },
1022
+ {
1023
+ tag: u.link,
1024
+ textDecoration: "underline"
1025
+ },
1026
+ {
1027
+ tag: u.heading,
1028
+ textDecoration: "underline",
1029
+ fontWeight: "bold"
1030
+ },
1031
+ {
1032
+ tag: u.emphasis,
1033
+ fontStyle: "italic"
1034
+ },
1035
+ {
1036
+ tag: u.strong,
1037
+ fontWeight: "bold"
1038
+ },
1039
+ {
1040
+ tag: u.strikethrough,
1041
+ textDecoration: "line-through"
1042
+ },
1043
+ {
1044
+ tag: u.keyword,
1045
+ color: "#708"
1046
+ },
1047
+ {
1048
+ tag: [u.atom, u.bool, u.url, u.contentSeparator, u.labelName],
1049
+ color: "#219"
1050
+ },
1051
+ {
1052
+ tag: [u.literal, u.inserted],
1053
+ color: "#164"
1054
+ },
1055
+ {
1056
+ tag: [u.string, u.deleted],
1057
+ color: "#a11"
1058
+ },
1059
+ {
1060
+ tag: [u.regexp, u.escape, /* @__PURE__ */ u.special(u.string)],
1061
+ color: "#e40"
1062
+ },
1063
+ {
1064
+ tag: /* @__PURE__ */ u.definition(u.variableName),
1065
+ color: "#00f"
1066
+ },
1067
+ {
1068
+ tag: /* @__PURE__ */ u.local(u.variableName),
1069
+ color: "#30a"
1070
+ },
1071
+ {
1072
+ tag: [u.typeName, u.namespace],
1073
+ color: "#085"
1074
+ },
1075
+ {
1076
+ tag: u.className,
1077
+ color: "#167"
1078
+ },
1079
+ {
1080
+ tag: [/* @__PURE__ */ u.special(u.variableName), u.macroName],
1081
+ color: "#256"
1082
+ },
1083
+ {
1084
+ tag: /* @__PURE__ */ u.definition(u.propertyName),
1085
+ color: "#00c"
1086
+ },
1087
+ {
1088
+ tag: u.comment,
1089
+ color: "#940"
1090
+ },
1091
+ {
1092
+ tag: u.invalid,
1093
+ color: "#f00"
1094
+ }
1095
+ ]), gt = /* @__PURE__ */ b.baseTheme({
1096
+ "&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
1097
+ "&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
1098
+ }), Te = 1e4, Ce = "()[]{}", Ae = /* @__PURE__ */ w.define({
1099
+ combine(n) {
1100
+ return fe(n, {
1101
+ afterCursor: !0,
1102
+ brackets: Ce,
1103
+ maxScanDistance: Te,
1104
+ renderMatch: yt
1105
+ });
1106
+ }
1107
+ }), kt = /* @__PURE__ */ p.mark({ class: "cm-matchingBracket" }), bt = /* @__PURE__ */ p.mark({ class: "cm-nonmatchingBracket" });
1108
+ function yt(n) {
1109
+ let e = [], t = n.matched ? kt : bt;
1110
+ return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
1111
+ }
1112
+ const wt = /* @__PURE__ */ X.define({
1113
+ create() {
1114
+ return p.none;
1115
+ },
1116
+ update(n, e) {
1117
+ if (!e.docChanged && !e.selection)
1118
+ return n;
1119
+ let t = [], r = e.state.facet(Ae);
1120
+ for (let i of e.state.selection.ranges) {
1121
+ if (!i.empty)
1122
+ continue;
1123
+ let o = O(e.state, i.head, -1, r) || i.head > 0 && O(e.state, i.head - 1, 1, r) || r.afterCursor && (O(e.state, i.head, 1, r) || i.head < e.state.doc.length && O(e.state, i.head + 1, -1, r));
1124
+ o && (t = t.concat(r.renderMatch(o, e.state)));
1125
+ }
1126
+ return p.set(t, !0);
1127
+ },
1128
+ provide: (n) => b.decorations.from(n)
1129
+ }), vt = [
1130
+ wt,
1131
+ gt
1132
+ ];
1133
+ function zt(n = {}) {
1134
+ return [Ae.of(n), vt];
1135
+ }
1136
+ const xt = /* @__PURE__ */ new y();
1137
+ function V(n, e, t) {
1138
+ let r = n.prop(e < 0 ? y.openedBy : y.closedBy);
1139
+ if (r)
1140
+ return r;
1141
+ if (n.name.length == 1) {
1142
+ let i = t.indexOf(n.name);
1143
+ if (i > -1 && i % 2 == (e < 0 ? 1 : 0))
1144
+ return [t[i + e]];
1145
+ }
1146
+ return null;
1147
+ }
1148
+ function K(n) {
1149
+ let e = n.type.prop(xt);
1150
+ return e ? e(n.node) : n;
1151
+ }
1152
+ function O(n, e, t, r = {}) {
1153
+ let i = r.maxScanDistance || Te, o = r.brackets || Ce, s = k(n), a = s.resolveInner(e, t);
1154
+ for (let l = a; l; l = l.parent) {
1155
+ let f = V(l.type, t, o);
1156
+ if (f && l.from < l.to) {
1157
+ let c = K(l);
1158
+ if (c && (t > 0 ? e >= c.from && e < c.to : e > c.from && e <= c.to))
1159
+ return St(n, e, t, l, c, f, o);
1160
+ }
1161
+ }
1162
+ return Tt(n, e, t, s, a.type, i, o);
1163
+ }
1164
+ function St(n, e, t, r, i, o, s) {
1165
+ let a = r.parent, l = { from: i.from, to: i.to }, f = 0, c = a?.cursor();
1166
+ if (c && (t < 0 ? c.childBefore(r.from) : c.childAfter(r.to)))
1167
+ do
1168
+ if (t < 0 ? c.to <= r.from : c.from >= r.to) {
1169
+ if (f == 0 && o.indexOf(c.type.name) > -1 && c.from < c.to) {
1170
+ let h = K(c);
1171
+ return { start: l, end: h ? { from: h.from, to: h.to } : void 0, matched: !0 };
1172
+ } else if (V(c.type, t, s))
1173
+ f++;
1174
+ else if (V(c.type, -t, s)) {
1175
+ if (f == 0) {
1176
+ let h = K(c);
1177
+ return {
1178
+ start: l,
1179
+ end: h && h.from < h.to ? { from: h.from, to: h.to } : void 0,
1180
+ matched: !1
1181
+ };
1182
+ }
1183
+ f--;
1184
+ }
1185
+ }
1186
+ while (t < 0 ? c.prevSibling() : c.nextSibling());
1187
+ return { start: l, matched: !1 };
1188
+ }
1189
+ function Tt(n, e, t, r, i, o, s) {
1190
+ let a = t < 0 ? n.sliceDoc(e - 1, e) : n.sliceDoc(e, e + 1), l = s.indexOf(a);
1191
+ if (l < 0 || l % 2 == 0 != t > 0)
1192
+ return null;
1193
+ let f = { from: t < 0 ? e - 1 : e, to: t > 0 ? e + 1 : e }, c = n.doc.iterRange(e, t > 0 ? n.doc.length : 0), h = 0;
1194
+ for (let m = 0; !c.next().done && m <= o; ) {
1195
+ let d = c.value;
1196
+ t < 0 && (m += d.length);
1197
+ let S = e + m * t;
1198
+ for (let T = t > 0 ? 0 : d.length - 1, Pe = t > 0 ? d.length : -1; T != Pe; T += t) {
1199
+ let R = s.indexOf(d[T]);
1200
+ if (!(R < 0 || r.resolveInner(S + T, 1).type != i))
1201
+ if (R % 2 == 0 == t > 0)
1202
+ h++;
1203
+ else {
1204
+ if (h == 1)
1205
+ return { start: f, end: { from: S + T, to: S + T + 1 }, matched: R >> 1 == l >> 1 };
1206
+ h--;
1207
+ }
1208
+ }
1209
+ t > 0 && (m += d.length);
1210
+ }
1211
+ return c.done ? { start: f, matched: !1 } : null;
1212
+ }
1213
+ const Ct = /* @__PURE__ */ Object.create(null), oe = [Q.none], se = [], le = /* @__PURE__ */ Object.create(null), At = /* @__PURE__ */ Object.create(null);
1214
+ for (let [n, e] of [
1215
+ ["variable", "variableName"],
1216
+ ["variable-2", "variableName.special"],
1217
+ ["string-2", "string.special"],
1218
+ ["def", "variableName.definition"],
1219
+ ["tag", "tagName"],
1220
+ ["attribute", "attributeName"],
1221
+ ["type", "typeName"],
1222
+ ["builtin", "variableName.standard"],
1223
+ ["qualifier", "modifier"],
1224
+ ["error", "invalid"],
1225
+ ["header", "heading"],
1226
+ ["property", "propertyName"]
1227
+ ])
1228
+ At[n] = /* @__PURE__ */ Pt(Ct, e);
1229
+ function z(n, e) {
1230
+ se.indexOf(n) > -1 || (se.push(n), console.warn(e));
1231
+ }
1232
+ function Pt(n, e) {
1233
+ let t = [];
1234
+ for (let a of e.split(" ")) {
1235
+ let l = [];
1236
+ for (let f of a.split(".")) {
1237
+ let c = n[f] || u[f];
1238
+ c ? typeof c == "function" ? l.length ? l = l.map(c) : z(f, `Modifier ${f} used at start of tag`) : l.length ? z(f, `Tag ${f} used as modifier`) : l = Array.isArray(c) ? c : [c] : z(f, `Unknown highlighting tag ${f}`);
1239
+ }
1240
+ for (let f of l)
1241
+ t.push(f);
1242
+ }
1243
+ if (!t.length)
1244
+ return 0;
1245
+ let r = e.replace(/ /g, "_"), i = r + " " + t.map((a) => a.id), o = le[i];
1246
+ if (o)
1247
+ return o.id;
1248
+ let s = le[i] = Q.define({
1249
+ id: oe.length,
1250
+ name: r,
1251
+ props: [We({ [r]: t })]
1252
+ });
1253
+ return oe.push(s), s.id;
1254
+ }
1255
+ _.RTL, _.LTR;
1256
+ export {
1257
+ $e as DocInput,
1258
+ W as HighlightStyle,
1259
+ de as IndentContext,
1260
+ G as LRLanguage,
1261
+ g as Language,
1262
+ Et as LanguageSupport,
1263
+ N as ParseContext,
1264
+ Z as TreeIndentContext,
1265
+ zt as bracketMatching,
1266
+ xt as bracketMatchingHandle,
1267
+ ve as codeFolding,
1268
+ Ht as continuedIndent,
1269
+ jt as defaultHighlightStyle,
1270
+ Re as defineLanguageFacet,
1271
+ Ft as delimitedIndent,
1272
+ Lt as flatIndent,
1273
+ at as foldAll,
1274
+ st as foldCode,
1275
+ H as foldEffect,
1276
+ $t as foldGutter,
1277
+ Rt as foldInside,
1278
+ Ut as foldKeymap,
1279
+ nt as foldNodeProp,
1280
+ tt as foldService,
1281
+ x as foldState,
1282
+ E as foldable,
1283
+ ze as getIndentUnit,
1284
+ Je as getIndentation,
1285
+ Ve as indentNodeProp,
1286
+ Wt as indentOnInput,
1287
+ je as indentService,
1288
+ Ge as indentString,
1289
+ he as indentUnit,
1290
+ v as language,
1291
+ A as languageDataProp,
1292
+ O as matchBrackets,
1293
+ Ue as sublanguageProp,
1294
+ qt as syntaxHighlighting,
1295
+ k as syntaxTree,
1296
+ ft as unfoldAll,
1297
+ lt as unfoldCode,
1298
+ I as unfoldEffect
1299
+ };