@aleph-alpha/chat-kit 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/{CkHistory.vue_vue_type_script_setup_true_lang-D9Ph9eYp.js → CkHistory.vue_vue_type_script_setup_true_lang-Cr8vF94e.js} +214 -107
  2. package/dist/apl-fqmucPXA.js +140 -0
  3. package/dist/asciiarmor-DucZyvP0.js +56 -0
  4. package/dist/asn1-BnOEsgAm.js +144 -0
  5. package/dist/asterisk-QAlztEwS.js +345 -0
  6. package/dist/brainfuck-DZVCuF_t.js +53 -0
  7. package/dist/chat-kit.css +1166 -1
  8. package/dist/clike-CTYGlS6x.js +799 -0
  9. package/dist/clojure-BhXMqnxz.js +849 -0
  10. package/dist/cmake-BGaNd9E7.js +71 -0
  11. package/dist/cobol-4yqQntpt.js +120 -0
  12. package/dist/coffeescript-D2dXvhEc.js +308 -0
  13. package/dist/commonlisp-CF_VNHQR.js +130 -0
  14. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts +41 -0
  15. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.d.ts.map +1 -0
  16. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts +26 -0
  17. package/dist/components/base/CkMilkdownEditor/CkMilkdownEditor.vue.d.ts.map +1 -0
  18. package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts +20 -0
  19. package/dist/components/base/CkMilkdownEditor/codeMirrorTheme.d.ts.map +1 -0
  20. package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts +42 -0
  21. package/dist/components/base/CkMilkdownEditor/createCrepeEditor.d.ts.map +1 -0
  22. package/dist/components/base/CkMilkdownEditor/crepeIcons.d.ts +33 -0
  23. package/dist/components/base/CkMilkdownEditor/crepeIcons.d.ts.map +1 -0
  24. package/dist/components/base/CkMilkdownEditor/index.d.ts +3 -0
  25. package/dist/components/base/CkMilkdownEditor/index.d.ts.map +1 -0
  26. package/dist/components/base/CkMilkdownEditor/markdownClassAttrs.d.ts +16 -0
  27. package/dist/components/base/CkMilkdownEditor/markdownClassAttrs.d.ts.map +1 -0
  28. package/dist/components/base/CkMilkdownEditor/types.d.ts +98 -0
  29. package/dist/components/base/CkMilkdownEditor/types.d.ts.map +1 -0
  30. package/dist/components/base/index.d.ts +2 -0
  31. package/dist/components/base/index.d.ts.map +1 -1
  32. package/dist/components/index.d.ts +2 -2
  33. package/dist/components/index.d.ts.map +1 -1
  34. package/dist/components/index.js +12 -11
  35. package/dist/createCrepeEditor-CFbvSH3s.js +74141 -0
  36. package/dist/crystal-DyuLTqLs.js +398 -0
  37. package/dist/css-DkSyTW67.js +1772 -0
  38. package/dist/cypher-Dlu_3r4V.js +121 -0
  39. package/dist/d-UURgV0Ux.js +179 -0
  40. package/dist/diff-B_Bi2Crb.js +25 -0
  41. package/dist/dockerfile-Bvk733Ga.js +201 -0
  42. package/dist/dtd-Dy74G54E.js +114 -0
  43. package/dist/dylan-TSb-Nfix.js +314 -0
  44. package/dist/ebnf-4fKAGW3a.js +140 -0
  45. package/dist/ecl-B59qGGVg.js +178 -0
  46. package/dist/eiffel-Dze7nlu3.js +134 -0
  47. package/dist/elm-DG7jkhNZ.js +176 -0
  48. package/dist/erlang-BO6gOnGA.js +674 -0
  49. package/dist/factor-CMxFHDqz.js +65 -0
  50. package/dist/fcl-CDDUNjTj.js +141 -0
  51. package/dist/forth-B9D2JCeE.js +116 -0
  52. package/dist/fortran-CAG2BFbe.js +467 -0
  53. package/dist/gas-0Aw8zDr5.js +293 -0
  54. package/dist/gherkin-DhZlEZiy.js +115 -0
  55. package/dist/groovy-CpwJiBl7.js +223 -0
  56. package/dist/handlers/index.js +1 -1
  57. package/dist/handlers/useChatKitLabels.d.ts +27 -0
  58. package/dist/handlers/useChatKitLabels.d.ts.map +1 -1
  59. package/dist/haskell-ySd-OUo8.js +459 -0
  60. package/dist/haxe-7MlzfeYV.js +514 -0
  61. package/dist/http-BqypyemW.js +79 -0
  62. package/dist/idl-4HIGJlDI.js +985 -0
  63. package/dist/index-A5rWjRtZ.js +689 -0
  64. package/dist/index-B0ldhzaj.js +385 -0
  65. package/dist/index-BVOjyn3y.js +2490 -0
  66. package/dist/index-BWvkps_G.js +309 -0
  67. package/dist/index-BaS8OW8V.js +151 -0
  68. package/dist/index-BlHHEbV-.js +406 -0
  69. package/dist/index-BoqzHVNB.js +82 -0
  70. package/dist/index-C6zYjwIQ.js +704 -0
  71. package/dist/index-CMJGuXap.js +330 -0
  72. package/dist/index-CRfGWVdQ.js +116 -0
  73. package/dist/index-C_gTb50u.js +81 -0
  74. package/dist/index-DSU7cBGz.js +178 -0
  75. package/dist/index-DSq3gvqU.js +1767 -0
  76. package/dist/index-Da3777l2.js +289 -0
  77. package/dist/index-DdlzabmR.js +1021 -0
  78. package/dist/index-DhY_9bdS.js +61 -0
  79. package/dist/index-Dm6C1blN.js +1052 -0
  80. package/dist/index-Tj3pzx-E.js +327 -0
  81. package/dist/index-ZeRS5rER.js +97 -0
  82. package/dist/index-gzleljO6.js +157 -0
  83. package/dist/index-naWlQpaL.js +642 -0
  84. package/dist/index-sKO1lHHC.js +312 -0
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +14 -13
  88. package/dist/javascript-Bt8B7yTi.js +992 -0
  89. package/dist/julia-Bs6JJhYG.js +407 -0
  90. package/dist/livescript-DmzgM3Yt.js +296 -0
  91. package/dist/lua-Cvg8VrAA.js +256 -0
  92. package/dist/mathematica-DNLOL9PQ.js +110 -0
  93. package/dist/mbox-Ga7d4MMN.js +117 -0
  94. package/dist/mirc-Dma3B8rS.js +107 -0
  95. package/dist/mllike-DHn7xckP.js +334 -0
  96. package/dist/modelica-0d55jYY0.js +147 -0
  97. package/dist/mscgen-DdqZYINH.js +135 -0
  98. package/dist/mumps-Btr8VblO.js +93 -0
  99. package/dist/nginx-DTDtBDVN.js +141 -0
  100. package/dist/nsis-CyKBdPWp.js +62 -0
  101. package/dist/ntriples-CvgOYMpL.js +153 -0
  102. package/dist/octave-DYBj3-tl.js +200 -0
  103. package/dist/oz-R_e8WMIi.js +231 -0
  104. package/dist/pascal-GD8iposT.js +105 -0
  105. package/dist/perl-DL9mHpoi.js +1105 -0
  106. package/dist/pig-C_4T4YIV.js +101 -0
  107. package/dist/powershell-B0suO7Vd.js +328 -0
  108. package/dist/properties-BR-vP1aU.js +58 -0
  109. package/dist/protobuf-BxgpyhoW.js +77 -0
  110. package/dist/pug-vHnWR0UE.js +405 -0
  111. package/dist/puppet-Bdao66PW.js +137 -0
  112. package/dist/python-BFGRmuZ9.js +426 -0
  113. package/dist/q-CrbCVq4a.js +131 -0
  114. package/dist/r-V7nswm59.js +170 -0
  115. package/dist/rpm-C-DLY-If.js +109 -0
  116. package/dist/ruby-CQTpZw6f.js +331 -0
  117. package/dist/sas-D2UG-yhZ.js +207 -0
  118. package/dist/scheme-BKzrkGJD.js +222 -0
  119. package/dist/shell-BlsXDxCn.js +222 -0
  120. package/dist/sieve-CjwBwOY5.js +135 -0
  121. package/dist/simple-mode-DMneyfDu.js +130 -0
  122. package/dist/smalltalk-BOIGQuhN.js +121 -0
  123. package/dist/solr-CwD7U71z.js +69 -0
  124. package/dist/sparql-DYskk2vE.js +249 -0
  125. package/dist/spreadsheet-Bgtt3oLP.js +87 -0
  126. package/dist/sql-Cei9CMfk.js +342 -0
  127. package/dist/stex-C1nZSzAw.js +230 -0
  128. package/dist/stylus-BkS-boTH.js +565 -0
  129. package/dist/swift-FRZi1uvB.js +291 -0
  130. package/dist/tcl-CUcaCdmq.js +114 -0
  131. package/dist/textile-BnFpjsrl.js +414 -0
  132. package/dist/tiddlywiki-CjprD-Qp.js +218 -0
  133. package/dist/tiki-DK9DOeWn.js +268 -0
  134. package/dist/toml-BOuWGMcf.js +76 -0
  135. package/dist/troff-E1bJ0PPL.js +61 -0
  136. package/dist/ttcn-cfg-Dc39-fIP.js +133 -0
  137. package/dist/ttcn-tKd4HLu4.js +192 -0
  138. package/dist/turtle-Dq7-1WAf.js +124 -0
  139. package/dist/{useChatKitLabels-368lodS5.js → useChatKitLabels-Ww1Q7xUr.js} +25 -2
  140. package/dist/vb-Dp90gtsv.js +196 -0
  141. package/dist/vbscript-Bfn8O8I7.js +478 -0
  142. package/dist/velocity-BwIZK1TH.js +149 -0
  143. package/dist/verilog-CnT9bMk0.js +429 -0
  144. package/dist/vhdl-DCkMIyT9.js +158 -0
  145. package/dist/webidl-BTLTThCm.js +204 -0
  146. package/dist/xquery-BrBUuxMR.js +525 -0
  147. package/dist/yacas-b5lAVEIl.js +130 -0
  148. package/dist/z80-ClgwfNdB.js +92 -0
  149. package/package.json +10 -4
  150. package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.spec.ts +221 -0
  151. package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.stories.ts +274 -0
  152. package/src/components/base/CkMilkdownEditor/CkMilkdownEditor.vue +151 -0
  153. package/src/components/base/CkMilkdownEditor/codeMirrorTheme.ts +132 -0
  154. package/src/components/base/CkMilkdownEditor/createCrepeEditor.ts +192 -0
  155. package/src/components/base/CkMilkdownEditor/crepeIcons.ts +77 -0
  156. package/src/components/base/CkMilkdownEditor/index.ts +2 -0
  157. package/src/components/base/CkMilkdownEditor/markdownClassAttrs.ts +64 -0
  158. package/src/components/base/CkMilkdownEditor/milkdown-theme.css +441 -0
  159. package/src/components/base/CkMilkdownEditor/types.ts +100 -0
  160. package/src/components/base/CkPromptInputDisclaimer/CkPromptInputDisclaimer.stories.ts +2 -2
  161. package/src/components/base/index.ts +6 -0
  162. package/src/components/index.ts +4 -0
  163. package/src/handlers/useChatKitLabels.ts +27 -0
  164. package/src/index.ts +4 -0
@@ -0,0 +1,406 @@
1
+ import { L as LRParser, E as ExternalTokenizer, C as ContextTracker } from "./index-DSq3gvqU.js";
2
+ import { s as styleTags, t as tags, a as LanguageSupport, p as parseMixed, L as LRLanguage, i as indentNodeProp, h as delimitedIndent, f as foldNodeProp, j as foldInside } from "./createCrepeEditor-CFbvSH3s.js";
3
+ const blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47;
4
+ const type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4;
5
+ class Context {
6
+ constructor(parent, depth, type) {
7
+ this.parent = parent;
8
+ this.depth = depth;
9
+ this.type = type;
10
+ this.hash = (parent ? parent.hash + parent.hash << 8 : 0) + depth + (depth << 4) + type;
11
+ }
12
+ }
13
+ Context.top = new Context(null, -1, type_Top);
14
+ function findColumn(input, pos) {
15
+ for (let col = 0, p = pos - input.pos - 1; ; p--, col++) {
16
+ let ch = input.peek(p);
17
+ if (isBreakSpace(ch) || ch == -1) return col;
18
+ }
19
+ }
20
+ function isNonBreakSpace(ch) {
21
+ return ch == 32 || ch == 9;
22
+ }
23
+ function isBreakSpace(ch) {
24
+ return ch == 10 || ch == 13;
25
+ }
26
+ function isSpace(ch) {
27
+ return isNonBreakSpace(ch) || isBreakSpace(ch);
28
+ }
29
+ function isSep(ch) {
30
+ return ch < 0 || isSpace(ch);
31
+ }
32
+ const indentation = new ContextTracker({
33
+ start: Context.top,
34
+ reduce(context, term) {
35
+ return context.type == type_Flow && (term == FlowSequence || term == FlowMapping) ? context.parent : context;
36
+ },
37
+ shift(context, term, stack, input) {
38
+ if (term == sequenceStartMark)
39
+ return new Context(context, findColumn(input, input.pos), type_Seq);
40
+ if (term == mapStartMark || term == explicitMapStartMark)
41
+ return new Context(context, findColumn(input, input.pos), type_Map);
42
+ if (term == blockEnd)
43
+ return context.parent;
44
+ if (term == BracketL || term == BraceL)
45
+ return new Context(context, 0, type_Flow);
46
+ if (term == BlockLiteralContent && context.type == type_Lit)
47
+ return context.parent;
48
+ if (term == BlockLiteralHeader) {
49
+ let indent = /[1-9]/.exec(input.read(input.pos, stack.pos));
50
+ if (indent) return new Context(context, context.depth + +indent[0], type_Lit);
51
+ }
52
+ return context;
53
+ },
54
+ hash(context) {
55
+ return context.hash;
56
+ }
57
+ });
58
+ function three(input, ch, off = 0) {
59
+ return input.peek(off) == ch && input.peek(off + 1) == ch && input.peek(off + 2) == ch && isSep(input.peek(off + 3));
60
+ }
61
+ const newlines = new ExternalTokenizer((input, stack) => {
62
+ if (input.next == -1 && stack.canShift(eof))
63
+ return input.acceptToken(eof);
64
+ let prev = input.peek(-1);
65
+ if ((isBreakSpace(prev) || prev < 0) && stack.context.type != type_Flow) {
66
+ if (three(
67
+ input,
68
+ 45
69
+ /* '-' */
70
+ )) {
71
+ if (stack.canShift(blockEnd)) input.acceptToken(blockEnd);
72
+ else return input.acceptToken(DirectiveEnd, 3);
73
+ }
74
+ if (three(
75
+ input,
76
+ 46
77
+ /* '.' */
78
+ )) {
79
+ if (stack.canShift(blockEnd)) input.acceptToken(blockEnd);
80
+ else return input.acceptToken(DocEnd, 3);
81
+ }
82
+ let depth = 0;
83
+ while (input.next == 32) {
84
+ depth++;
85
+ input.advance();
86
+ }
87
+ if ((depth < stack.context.depth || depth == stack.context.depth && stack.context.type == type_Seq && (input.next != 45 || !isSep(input.peek(1)))) && // Not blank
88
+ input.next != -1 && !isBreakSpace(input.next) && input.next != 35)
89
+ input.acceptToken(blockEnd, -depth);
90
+ }
91
+ }, { contextual: true });
92
+ const blockMark = new ExternalTokenizer((input, stack) => {
93
+ if (stack.context.type == type_Flow) {
94
+ if (input.next == 63) {
95
+ input.advance();
96
+ if (isSep(input.next)) input.acceptToken(flowMapMark);
97
+ }
98
+ return;
99
+ }
100
+ if (input.next == 45) {
101
+ input.advance();
102
+ if (isSep(input.next))
103
+ input.acceptToken(stack.context.type == type_Seq && stack.context.depth == findColumn(input, input.pos - 1) ? sequenceContinueMark : sequenceStartMark);
104
+ } else if (input.next == 63) {
105
+ input.advance();
106
+ if (isSep(input.next))
107
+ input.acceptToken(stack.context.type == type_Map && stack.context.depth == findColumn(input, input.pos - 1) ? explicitMapContinueMark : explicitMapStartMark);
108
+ } else {
109
+ let start = input.pos;
110
+ for (; ; ) {
111
+ if (isNonBreakSpace(input.next)) {
112
+ if (input.pos == start) return;
113
+ input.advance();
114
+ } else if (input.next == 33) {
115
+ readTag(input);
116
+ } else if (input.next == 38) {
117
+ readAnchor(input);
118
+ } else if (input.next == 42) {
119
+ readAnchor(input);
120
+ break;
121
+ } else if (input.next == 39 || input.next == 34) {
122
+ if (readQuoted(input, true)) break;
123
+ return;
124
+ } else if (input.next == 91 || input.next == 123) {
125
+ if (!scanBrackets(input)) return;
126
+ break;
127
+ } else {
128
+ readPlain(input, true, false, 0);
129
+ break;
130
+ }
131
+ }
132
+ while (isNonBreakSpace(input.next)) input.advance();
133
+ if (input.next == 58) {
134
+ if (input.pos == start && stack.canShift(Colon)) return;
135
+ let after = input.peek(1);
136
+ if (isSep(after))
137
+ input.acceptTokenTo(stack.context.type == type_Map && stack.context.depth == findColumn(input, start) ? mapContinueMark : mapStartMark, start);
138
+ }
139
+ }
140
+ }, { contextual: true });
141
+ function uriChar(ch) {
142
+ return ch > 32 && ch < 127 && ch != 34 && ch != 37 && ch != 44 && ch != 60 && ch != 62 && ch != 92 && ch != 94 && ch != 96 && ch != 123 && ch != 124 && ch != 125;
143
+ }
144
+ function hexChar(ch) {
145
+ return ch >= 48 && ch <= 57 || ch >= 97 && ch <= 102 || ch >= 65 && ch <= 70;
146
+ }
147
+ function readUriChar(input, quoted) {
148
+ if (input.next == 37) {
149
+ input.advance();
150
+ if (hexChar(input.next)) input.advance();
151
+ if (hexChar(input.next)) input.advance();
152
+ return true;
153
+ } else if (uriChar(input.next) || quoted && input.next == 44) {
154
+ input.advance();
155
+ return true;
156
+ }
157
+ return false;
158
+ }
159
+ function readTag(input) {
160
+ input.advance();
161
+ if (input.next == 60) {
162
+ input.advance();
163
+ for (; ; ) {
164
+ if (!readUriChar(input, true)) {
165
+ if (input.next == 62) input.advance();
166
+ break;
167
+ }
168
+ }
169
+ } else {
170
+ while (readUriChar(input, false)) {
171
+ }
172
+ }
173
+ }
174
+ function readAnchor(input) {
175
+ input.advance();
176
+ while (!isSep(input.next) && charTag(input.next) != "f") input.advance();
177
+ }
178
+ function readQuoted(input, scan) {
179
+ let quote = input.next, lineBreak = false, start = input.pos;
180
+ input.advance();
181
+ for (; ; ) {
182
+ let ch = input.next;
183
+ if (ch < 0) break;
184
+ input.advance();
185
+ if (ch == quote) {
186
+ if (ch == 39) {
187
+ if (input.next == 39) input.advance();
188
+ else break;
189
+ } else {
190
+ break;
191
+ }
192
+ } else if (ch == 92 && quote == 34) {
193
+ if (input.next >= 0) input.advance();
194
+ } else if (isBreakSpace(ch)) {
195
+ if (scan) return false;
196
+ lineBreak = true;
197
+ } else if (scan && input.pos >= start + 1024) {
198
+ return false;
199
+ }
200
+ }
201
+ return !lineBreak;
202
+ }
203
+ function scanBrackets(input) {
204
+ for (let stack = [], end = input.pos + 1024; ; ) {
205
+ if (input.next == 91 || input.next == 123) {
206
+ stack.push(input.next);
207
+ input.advance();
208
+ } else if (input.next == 39 || input.next == 34) {
209
+ if (!readQuoted(input, true)) return false;
210
+ } else if (input.next == 93 || input.next == 125) {
211
+ if (stack[stack.length - 1] != input.next - 2) return false;
212
+ stack.pop();
213
+ input.advance();
214
+ if (!stack.length) return true;
215
+ } else if (input.next < 0 || input.pos > end || isBreakSpace(input.next)) {
216
+ return false;
217
+ } else {
218
+ input.advance();
219
+ }
220
+ }
221
+ }
222
+ const charTable = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";
223
+ function charTag(ch) {
224
+ if (ch < 33) return "u";
225
+ if (ch > 125) return "s";
226
+ return charTable[ch - 33];
227
+ }
228
+ function isSafe(ch, inFlow) {
229
+ let tag = charTag(ch);
230
+ return tag != "u" && !(inFlow && tag == "f");
231
+ }
232
+ function readPlain(input, scan, inFlow, indent) {
233
+ if (charTag(input.next) == "s" || (input.next == 63 || input.next == 58 || input.next == 45) && isSafe(input.peek(1), inFlow)) {
234
+ input.advance();
235
+ } else {
236
+ return false;
237
+ }
238
+ let start = input.pos;
239
+ for (; ; ) {
240
+ let next = input.next, off = 0, lineIndent = indent + 1;
241
+ while (isSpace(next)) {
242
+ if (isBreakSpace(next)) {
243
+ if (scan) return false;
244
+ lineIndent = 0;
245
+ } else {
246
+ lineIndent++;
247
+ }
248
+ next = input.peek(++off);
249
+ }
250
+ let safe = next >= 0 && (next == 58 ? isSafe(input.peek(off + 1), inFlow) : next == 35 ? input.peek(off - 1) != 32 : isSafe(next, inFlow));
251
+ if (!safe || !inFlow && lineIndent <= indent || lineIndent == 0 && !inFlow && (three(input, 45, off) || three(input, 46, off)))
252
+ break;
253
+ if (scan && charTag(next) == "f") return false;
254
+ for (let i = off; i >= 0; i--) input.advance();
255
+ if (scan && input.pos > start + 1024) return false;
256
+ }
257
+ return true;
258
+ }
259
+ const literals = new ExternalTokenizer((input, stack) => {
260
+ if (input.next == 33) {
261
+ readTag(input);
262
+ input.acceptToken(Tag);
263
+ } else if (input.next == 38 || input.next == 42) {
264
+ let token = input.next == 38 ? Anchor : Alias;
265
+ readAnchor(input);
266
+ input.acceptToken(token);
267
+ } else if (input.next == 39 || input.next == 34) {
268
+ readQuoted(input, false);
269
+ input.acceptToken(QuotedLiteral);
270
+ } else if (readPlain(input, false, stack.context.type == type_Flow, stack.context.depth)) {
271
+ input.acceptToken(Literal);
272
+ }
273
+ });
274
+ const blockLiteral = new ExternalTokenizer((input, stack) => {
275
+ let indent = stack.context.type == type_Lit ? stack.context.depth : -1, upto = input.pos;
276
+ scan: for (; ; ) {
277
+ let depth = 0, next = input.next;
278
+ while (next == 32) next = input.peek(++depth);
279
+ if (!depth && (three(input, 45, depth) || three(input, 46, depth))) break;
280
+ if (!isBreakSpace(next)) {
281
+ if (indent < 0) indent = Math.max(stack.context.depth + 1, depth);
282
+ if (depth < indent) break;
283
+ }
284
+ for (; ; ) {
285
+ if (input.next < 0) break scan;
286
+ let isBreak = isBreakSpace(input.next);
287
+ input.advance();
288
+ if (isBreak) continue scan;
289
+ upto = input.pos;
290
+ }
291
+ }
292
+ input.acceptTokenTo(BlockLiteralContent, upto);
293
+ });
294
+ const yamlHighlighting = styleTags({
295
+ DirectiveName: tags.keyword,
296
+ DirectiveContent: tags.attributeValue,
297
+ "DirectiveEnd DocEnd": tags.meta,
298
+ QuotedLiteral: tags.string,
299
+ BlockLiteralHeader: tags.special(tags.string),
300
+ BlockLiteralContent: tags.content,
301
+ Literal: tags.content,
302
+ "Key/Literal Key/QuotedLiteral": tags.definition(tags.propertyName),
303
+ "Anchor Alias": tags.labelName,
304
+ Tag: tags.typeName,
305
+ Comment: tags.lineComment,
306
+ ": , -": tags.separator,
307
+ "?": tags.punctuation,
308
+ "[ ]": tags.squareBracket,
309
+ "{ }": tags.brace
310
+ });
311
+ const parser$1 = LRParser.deserialize({
312
+ version: 14,
313
+ states: "5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO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W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",
316
+ nodeNames: "⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",
317
+ maxTerm: 74,
318
+ context: indentation,
319
+ nodeProps: [
320
+ ["isolate", -3, 8, 9, 14, ""],
321
+ ["openedBy", 18, "[", 32, "{"],
322
+ ["closedBy", 19, "]", 33, "}"]
323
+ ],
324
+ propSources: [yamlHighlighting],
325
+ skippedNodes: [0],
326
+ repeatNodeCount: 6,
327
+ tokenData: "-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT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`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",
335
+ stateData: "!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",
336
+ goto: "vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",
337
+ nodeNames: "⚠ Document Frontmatter DashLine FrontmatterContent Body",
338
+ maxTerm: 10,
339
+ skippedNodes: [0],
340
+ repeatNodeCount: 2,
341
+ tokenData: "$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",
342
+ tokenizers: [0],
343
+ topRules: { "Document": [0, 1] },
344
+ tokenPrec: 67
345
+ });
346
+ const yamlLanguage = /* @__PURE__ */ LRLanguage.define({
347
+ name: "yaml",
348
+ parser: /* @__PURE__ */ parser$1.configure({
349
+ props: [
350
+ /* @__PURE__ */ indentNodeProp.add({
351
+ Stream: (cx) => {
352
+ for (let before = cx.node.resolve(cx.pos, -1); before && before.to >= cx.pos; before = before.parent) {
353
+ if (before.name == "BlockLiteralContent" && before.from < before.to)
354
+ return cx.baseIndentFor(before);
355
+ if (before.name == "BlockLiteral")
356
+ return cx.baseIndentFor(before) + cx.unit;
357
+ if (before.name == "BlockSequence" || before.name == "BlockMapping")
358
+ return cx.column(before.firstChild.from, 1);
359
+ if (before.name == "QuotedLiteral")
360
+ return null;
361
+ if (before.name == "Literal") {
362
+ let col = cx.column(before.from, 1);
363
+ if (col == cx.lineIndent(before.from, 1))
364
+ return col;
365
+ if (before.to > cx.pos)
366
+ return null;
367
+ }
368
+ }
369
+ return null;
370
+ },
371
+ FlowMapping: /* @__PURE__ */ delimitedIndent({ closing: "}" }),
372
+ FlowSequence: /* @__PURE__ */ delimitedIndent({ closing: "]" })
373
+ }),
374
+ /* @__PURE__ */ foldNodeProp.add({
375
+ "FlowMapping FlowSequence": foldInside,
376
+ "Item Pair BlockLiteral": (node, state) => ({ from: state.doc.lineAt(node.from).to, to: node.to })
377
+ })
378
+ ]
379
+ }),
380
+ languageData: {
381
+ commentTokens: { line: "#" },
382
+ indentOnInput: /^\s*[\]\}]$/
383
+ }
384
+ });
385
+ function yaml() {
386
+ return new LanguageSupport(yamlLanguage);
387
+ }
388
+ const frontmatterLanguage = /* @__PURE__ */ LRLanguage.define({
389
+ name: "yaml-frontmatter",
390
+ parser: /* @__PURE__ */ parser.configure({
391
+ props: [/* @__PURE__ */ styleTags({ DashLine: tags.meta })]
392
+ })
393
+ });
394
+ function yamlFrontmatter(config) {
395
+ let { language, support } = config.content instanceof LanguageSupport ? config.content : { language: config.content, support: [] };
396
+ return new LanguageSupport(frontmatterLanguage.configure({
397
+ wrap: parseMixed((node) => {
398
+ return node.name == "FrontmatterContent" ? { parser: yamlLanguage.parser } : node.name == "Body" ? { parser: language.parser } : null;
399
+ })
400
+ }), support);
401
+ }
402
+ export {
403
+ yaml,
404
+ yamlFrontmatter,
405
+ yamlLanguage
406
+ };
@@ -0,0 +1,82 @@
1
+ import { L as LRParser } from "./index-DSq3gvqU.js";
2
+ import { s as styleTags, t as tags, a as LanguageSupport, L as LRLanguage, i as indentNodeProp, c as continuedIndent, f as foldNodeProp, j as foldInside } from "./createCrepeEditor-CFbvSH3s.js";
3
+ const jsonHighlighting = styleTags({
4
+ String: tags.string,
5
+ Number: tags.number,
6
+ "True False": tags.bool,
7
+ PropertyName: tags.propertyName,
8
+ Null: tags.null,
9
+ ", :": tags.separator,
10
+ "[ ]": tags.squareBracket,
11
+ "{ }": tags.brace
12
+ });
13
+ const parser = LRParser.deserialize({
14
+ version: 14,
15
+ states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
16
+ stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
17
+ goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
18
+ nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
19
+ maxTerm: 25,
20
+ nodeProps: [
21
+ ["isolate", -2, 6, 11, ""],
22
+ ["openedBy", 7, "{", 14, "["],
23
+ ["closedBy", 8, "}", 15, "]"]
24
+ ],
25
+ propSources: [jsonHighlighting],
26
+ skippedNodes: [0],
27
+ repeatNodeCount: 2,
28
+ tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
29
+ tokenizers: [0],
30
+ topRules: { "JsonText": [0, 1] },
31
+ tokenPrec: 0
32
+ });
33
+ const jsonParseLinter = () => (view) => {
34
+ try {
35
+ JSON.parse(view.state.doc.toString());
36
+ } catch (e) {
37
+ if (!(e instanceof SyntaxError))
38
+ throw e;
39
+ const pos = getErrorPosition(e, view.state.doc);
40
+ return [{
41
+ from: pos,
42
+ message: e.message,
43
+ severity: "error",
44
+ to: pos
45
+ }];
46
+ }
47
+ return [];
48
+ };
49
+ function getErrorPosition(error, doc) {
50
+ let m;
51
+ if (m = error.message.match(/at position (\d+)/))
52
+ return Math.min(+m[1], doc.length);
53
+ if (m = error.message.match(/at line (\d+) column (\d+)/))
54
+ return Math.min(doc.line(+m[1]).from + +m[2] - 1, doc.length);
55
+ return 0;
56
+ }
57
+ const jsonLanguage = /* @__PURE__ */ LRLanguage.define({
58
+ name: "json",
59
+ parser: /* @__PURE__ */ parser.configure({
60
+ props: [
61
+ /* @__PURE__ */ indentNodeProp.add({
62
+ Object: /* @__PURE__ */ continuedIndent({ except: /^\s*\}/ }),
63
+ Array: /* @__PURE__ */ continuedIndent({ except: /^\s*\]/ })
64
+ }),
65
+ /* @__PURE__ */ foldNodeProp.add({
66
+ "Object Array": foldInside
67
+ })
68
+ ]
69
+ }),
70
+ languageData: {
71
+ closeBrackets: { brackets: ["[", "{", '"'] },
72
+ indentOnInput: /^\s*[\}\]]$/
73
+ }
74
+ });
75
+ function json() {
76
+ return new LanguageSupport(jsonLanguage);
77
+ }
78
+ export {
79
+ json,
80
+ jsonLanguage,
81
+ jsonParseLinter
82
+ };