stepzen-graphiql 2.1.1 → 2.1.3-experimental.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 (112) hide show
  1. package/README.md +5 -0
  2. package/dist/babel-D4jPkB8I.js +15 -0
  3. package/dist/babel-JpECBl9w.mjs +7255 -0
  4. package/dist/components/ExplorerPage/ExplorerPage.d.ts +1 -1
  5. package/dist/components/ExplorerPage/GraphiQLInterface.d.ts +15 -6
  6. package/dist/components/ExplorerPage/Snippets.d.ts +0 -2
  7. package/dist/components/ExplorerPage/clearResponse.d.ts +1 -1
  8. package/dist/components/ExplorerPage/clearTooltip.d.ts +1 -1
  9. package/dist/estree-C0Hb5Q7V.mjs +4528 -0
  10. package/dist/estree-U7n5DgHH.js +44 -0
  11. package/dist/graphql-BTSjQZiC.js +28 -0
  12. package/dist/graphql-CBsByfto.js +28 -0
  13. package/dist/graphql-DDJE6tIl.mjs +157 -0
  14. package/dist/graphql-DrfUc9jr.mjs +1256 -0
  15. package/dist/graphql-DrfV554J.js +6 -0
  16. package/dist/graphql-QzAQRYwl.mjs +1221 -0
  17. package/dist/graphqlMode-DN1ezrYh.js +1 -0
  18. package/dist/graphqlMode-vV8mnLBW.mjs +262 -0
  19. package/dist/index-CjC6wsAG.js +1 -0
  20. package/dist/index-RniHQi68.mjs +84805 -0
  21. package/dist/index-gvW0eRXD.js +687 -0
  22. package/dist/index-tHknWeFg.mjs +295 -0
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +1 -1
  25. package/dist/jsonMode-BW-tqoSY.js +15 -0
  26. package/dist/jsonMode-Cj0cONq6.mjs +2002 -0
  27. package/dist/lib/graphiql-helpers.d.ts +2 -2
  28. package/dist/lite-Dpvo4tIS.js +1 -0
  29. package/dist/lite-hj39DC-n.mjs +135 -0
  30. package/dist/monaco-editor-C-pj7hSk.mjs +17 -0
  31. package/dist/monaco-editor-CBZFMjO6.js +1 -0
  32. package/dist/mouseTarget-C-J1vBNL.mjs +9353 -0
  33. package/dist/mouseTarget-S3azYj9_.js +9 -0
  34. package/dist/standalone-BhI0QomE.mjs +2458 -0
  35. package/dist/standalone-YWSF5RH2.js +29 -0
  36. package/dist/style.css +2 -2
  37. package/dist/style2.css +1 -0
  38. package/dist/toggleHighContrast-BK2acAo4.mjs +97805 -0
  39. package/dist/toggleHighContrast-MyO5wNxT.js +726 -0
  40. package/package.json +13 -15
  41. package/dist/Range-CPFFy5pj.mjs +0 -26
  42. package/dist/Range-CUfOrqgY.js +0 -1
  43. package/dist/SchemaReference-DNGK8Gti.mjs +0 -146
  44. package/dist/SchemaReference-PZPPI4-g.js +0 -1
  45. package/dist/brace-fold-DFRMFuzG.mjs +0 -122
  46. package/dist/brace-fold-QYFeMqi4.js +0 -1
  47. package/dist/closebrackets-5W81jIxx.js +0 -2
  48. package/dist/closebrackets-BJdKNrct.mjs +0 -165
  49. package/dist/codemirror-CK47QajN.mjs +0 -27
  50. package/dist/codemirror-DMBo1i5w.js +0 -24
  51. package/dist/codemirror-DgPcZxSc.mjs +0 -6121
  52. package/dist/codemirror-P5arRD-4.js +0 -1
  53. package/dist/comment-DZX4WUX2.js +0 -2
  54. package/dist/comment-DaZ9yeFw.mjs +0 -150
  55. package/dist/dialog-BWHlvTdM.js +0 -1
  56. package/dist/dialog-BvB91RPq.mjs +0 -26
  57. package/dist/dialog-Ci1bnuc2.mjs +0 -74
  58. package/dist/dialog-Dh2DOTOu.js +0 -1
  59. package/dist/foldgutter-CEPGXQXV.mjs +0 -238
  60. package/dist/foldgutter-lfb5vdue.js +0 -1
  61. package/dist/forEachState-DA54msa8.mjs +0 -11
  62. package/dist/forEachState-DY_pA9Bd.js +0 -1
  63. package/dist/hint-BImUj9vL.mjs +0 -24
  64. package/dist/hint-BYh7bCzG.js +0 -1
  65. package/dist/hint-CeNacopx.mjs +0 -123
  66. package/dist/hint-Cqs-Eq99.js +0 -1
  67. package/dist/index-BXTilrNr.mjs +0 -11
  68. package/dist/index-BqePscbb.js +0 -1
  69. package/dist/index-Of0v8HXf.js +0 -650
  70. package/dist/index-c_h-B3RW.mjs +0 -89430
  71. package/dist/info-DKGfeFeR.mjs +0 -99
  72. package/dist/info-addon-0QldEyjg.js +0 -1
  73. package/dist/info-addon-BQBJGmtN.mjs +0 -66
  74. package/dist/info-euxfaXDv.js +0 -1
  75. package/dist/javascript-BMRweX7z.js +0 -1
  76. package/dist/javascript-CEIhlHWT.mjs +0 -26
  77. package/dist/javascript-RO_jaPiE.mjs +0 -707
  78. package/dist/javascript-poxRzxcy.js +0 -1
  79. package/dist/jsx-BY-uBax7.js +0 -1
  80. package/dist/jsx-CZtHOvZL.mjs +0 -414
  81. package/dist/jump-Bn-VPPJQ.js +0 -1
  82. package/dist/jump-BrK8-pOa.mjs +0 -85
  83. package/dist/jump-to-line-V4vHDeSQ.mjs +0 -61
  84. package/dist/jump-to-line-Zpc7tkYy.js +0 -1
  85. package/dist/lint-BBDtrEaL.js +0 -1
  86. package/dist/lint-BEn4QK3F.mjs +0 -216
  87. package/dist/lint-BgrfL8k7.js +0 -1
  88. package/dist/lint-CiQwkfWf.mjs +0 -112
  89. package/dist/lint-DxY_4HRh.js +0 -6
  90. package/dist/lint-naD3ldhf.mjs +0 -272
  91. package/dist/matchbrackets-BB4g2Y6d.mjs +0 -87
  92. package/dist/matchbrackets-DPv_MB7c.js +0 -1
  93. package/dist/matchbrackets-DhN7zJoS.js +0 -1
  94. package/dist/matchbrackets-eKECiv9B.mjs +0 -26
  95. package/dist/mode-CgGO246j.js +0 -1
  96. package/dist/mode-CwlRWrPi.mjs +0 -73
  97. package/dist/mode-DyP1DXNa.js +0 -1
  98. package/dist/mode-indent-9VnFlqY-.mjs +0 -8
  99. package/dist/mode-indent-m3TP74Ia.js +0 -1
  100. package/dist/mode-kdpxZ9Hq.mjs +0 -25
  101. package/dist/mode-r_2HfIrS.js +0 -1
  102. package/dist/mode-xgi1fEzL.mjs +0 -64
  103. package/dist/search-BuLFIkN5.mjs +0 -268
  104. package/dist/search-CclAH4eV.js +0 -2
  105. package/dist/searchcursor-B9F32jvl.mjs +0 -26
  106. package/dist/searchcursor-CV26OekK.js +0 -1
  107. package/dist/searchcursor-DHtNMOPb.mjs +0 -239
  108. package/dist/searchcursor-eGwb3e2h.js +0 -7
  109. package/dist/show-hint-BfWoiGzQ.mjs +0 -357
  110. package/dist/show-hint-CQ_VjC6w.js +0 -1
  111. package/dist/sublime-C6Rg9CL1.mjs +0 -563
  112. package/dist/sublime-DFk-sDtd.js +0 -6
@@ -1,707 +0,0 @@
1
- import { r as we } from "./codemirror-DgPcZxSc.mjs";
2
- var Nr = { exports: {} }, Br;
3
- function ge() {
4
- return Br || (Br = 1, function(xe, he) {
5
- (function(x) {
6
- x(we());
7
- })(function(x) {
8
- x.defineMode("javascript", function(Jr, g) {
9
- var N = Jr.indentUnit, br = g.statementIndent, X = g.jsonld, z = g.json || X, wr = g.trackScope !== !1, p = g.typescript, Y = g.wordCharacters || /[\w$\xa1-\uffff]/, xr = function() {
10
- function r(v) {
11
- return { type: v, style: "keyword" };
12
- }
13
- var e = r("keyword a"), t = r("keyword b"), f = r("keyword c"), u = r("keyword d"), l = r("operator"), m = { type: "atom", style: "atom" };
14
- return {
15
- if: r("if"),
16
- while: e,
17
- with: e,
18
- else: t,
19
- do: t,
20
- try: t,
21
- finally: t,
22
- return: u,
23
- break: u,
24
- continue: u,
25
- new: r("new"),
26
- delete: f,
27
- void: f,
28
- throw: f,
29
- debugger: r("debugger"),
30
- var: r("var"),
31
- const: r("var"),
32
- let: r("var"),
33
- function: r("function"),
34
- catch: r("catch"),
35
- for: r("for"),
36
- switch: r("switch"),
37
- case: r("case"),
38
- default: r("default"),
39
- in: l,
40
- typeof: l,
41
- instanceof: l,
42
- true: m,
43
- false: m,
44
- null: m,
45
- undefined: m,
46
- NaN: m,
47
- Infinity: m,
48
- this: r("this"),
49
- class: r("class"),
50
- super: r("atom"),
51
- yield: f,
52
- export: r("export"),
53
- import: r("import"),
54
- extends: f,
55
- await: f
56
- };
57
- }(), hr = /[+\-*&%=<>!?|~^@]/, Fr = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
58
- function Pr(r) {
59
- for (var e = !1, t, f = !1; (t = r.next()) != null; ) {
60
- if (!e) {
61
- if (t == "/" && !f) return;
62
- t == "[" ? f = !0 : f && t == "]" && (f = !1);
63
- }
64
- e = !e && t == "\\";
65
- }
66
- }
67
- var Q, Z;
68
- function b(r, e, t) {
69
- return Q = r, Z = t, e;
70
- }
71
- function _(r, e) {
72
- var t = r.next();
73
- if (t == '"' || t == "'")
74
- return e.tokenize = Rr(t), e.tokenize(r, e);
75
- if (t == "." && r.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))
76
- return b("number", "number");
77
- if (t == "." && r.match(".."))
78
- return b("spread", "meta");
79
- if (/[\[\]{}\(\),;\:\.]/.test(t))
80
- return b(t);
81
- if (t == "=" && r.eat(">"))
82
- return b("=>", "operator");
83
- if (t == "0" && r.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))
84
- return b("number", "number");
85
- if (/\d/.test(t))
86
- return r.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/), b("number", "number");
87
- if (t == "/")
88
- return r.eat("*") ? (e.tokenize = C, C(r, e)) : r.eat("/") ? (r.skipToEnd(), b("comment", "comment")) : Or(r, e, 1) ? (Pr(r), r.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/), b("regexp", "string-2")) : (r.eat("="), b("operator", "operator", r.current()));
89
- if (t == "`")
90
- return e.tokenize = U, U(r, e);
91
- if (t == "#" && r.peek() == "!")
92
- return r.skipToEnd(), b("meta", "meta");
93
- if (t == "#" && r.eatWhile(Y))
94
- return b("variable", "property");
95
- if (t == "<" && r.match("!--") || t == "-" && r.match("->") && !/\S/.test(r.string.slice(0, r.start)))
96
- return r.skipToEnd(), b("comment", "comment");
97
- if (hr.test(t))
98
- return (t != ">" || !e.lexical || e.lexical.type != ">") && (r.eat("=") ? (t == "!" || t == "=") && r.eat("=") : /[<>*+\-|&?]/.test(t) && (r.eat(t), t == ">" && r.eat(t))), t == "?" && r.eat(".") ? b(".") : b("operator", "operator", r.current());
99
- if (Y.test(t)) {
100
- r.eatWhile(Y);
101
- var f = r.current();
102
- if (e.lastType != ".") {
103
- if (xr.propertyIsEnumerable(f)) {
104
- var u = xr[f];
105
- return b(u.type, u.style, f);
106
- }
107
- if (f == "async" && r.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, !1))
108
- return b("async", "keyword", f);
109
- }
110
- return b("variable", "variable", f);
111
- }
112
- }
113
- function Rr(r) {
114
- return function(e, t) {
115
- var f = !1, u;
116
- if (X && e.peek() == "@" && e.match(Fr))
117
- return t.tokenize = _, b("jsonld-keyword", "meta");
118
- for (; (u = e.next()) != null && !(u == r && !f); )
119
- f = !f && u == "\\";
120
- return f || (t.tokenize = _), b("string", "string");
121
- };
122
- }
123
- function C(r, e) {
124
- for (var t = !1, f; f = r.next(); ) {
125
- if (f == "/" && t) {
126
- e.tokenize = _;
127
- break;
128
- }
129
- t = f == "*";
130
- }
131
- return b("comment", "comment");
132
- }
133
- function U(r, e) {
134
- for (var t = !1, f; (f = r.next()) != null; ) {
135
- if (!t && (f == "`" || f == "$" && r.eat("{"))) {
136
- e.tokenize = _;
137
- break;
138
- }
139
- t = !t && f == "\\";
140
- }
141
- return b("quasi", "string-2", r.current());
142
- }
143
- var Lr = "([{}])";
144
- function or(r, e) {
145
- e.fatArrowAt && (e.fatArrowAt = null);
146
- var t = r.string.indexOf("=>", r.start);
147
- if (!(t < 0)) {
148
- if (p) {
149
- var f = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(r.string.slice(r.start, t));
150
- f && (t = f.index);
151
- }
152
- for (var u = 0, l = !1, m = t - 1; m >= 0; --m) {
153
- var v = r.string.charAt(m), T = Lr.indexOf(v);
154
- if (T >= 0 && T < 3) {
155
- if (!u) {
156
- ++m;
157
- break;
158
- }
159
- if (--u == 0) {
160
- v == "(" && (l = !0);
161
- break;
162
- }
163
- } else if (T >= 3 && T < 6)
164
- ++u;
165
- else if (Y.test(v))
166
- l = !0;
167
- else if (/["'\/`]/.test(v))
168
- for (; ; --m) {
169
- if (m == 0) return;
170
- var be = r.string.charAt(m - 1);
171
- if (be == v && r.string.charAt(m - 2) != "\\") {
172
- m--;
173
- break;
174
- }
175
- }
176
- else if (l && !u) {
177
- ++m;
178
- break;
179
- }
180
- }
181
- l && !u && (e.fatArrowAt = m);
182
- }
183
- }
184
- var Qr = {
185
- atom: !0,
186
- number: !0,
187
- variable: !0,
188
- string: !0,
189
- regexp: !0,
190
- this: !0,
191
- import: !0,
192
- "jsonld-keyword": !0
193
- };
194
- function vr(r, e, t, f, u, l) {
195
- this.indented = r, this.column = e, this.type = t, this.prev = u, this.info = l, f != null && (this.align = f);
196
- }
197
- function Ur(r, e) {
198
- if (!wr) return !1;
199
- for (var t = r.localVars; t; t = t.next)
200
- if (t.name == e) return !0;
201
- for (var f = r.context; f; f = f.prev)
202
- for (var t = f.vars; t; t = t.next)
203
- if (t.name == e) return !0;
204
- }
205
- function gr(r, e, t, f, u) {
206
- var l = r.cc;
207
- for (i.state = r, i.stream = u, i.marked = null, i.cc = l, i.style = e, r.lexical.hasOwnProperty("align") || (r.lexical.align = !0); ; ) {
208
- var m = l.length ? l.pop() : z ? k : w;
209
- if (m(t, f)) {
210
- for (; l.length && l[l.length - 1].lex; )
211
- l.pop()();
212
- return i.marked ? i.marked : t == "variable" && Ur(r, f) ? "variable-2" : e;
213
- }
214
- }
215
- }
216
- var i = { state: null, marked: null, cc: null };
217
- function o() {
218
- for (var r = arguments.length - 1; r >= 0; r--) i.cc.push(arguments[r]);
219
- }
220
- function n() {
221
- return o.apply(null, arguments), !0;
222
- }
223
- function sr(r, e) {
224
- for (var t = e; t; t = t.next) if (t.name == r) return !0;
225
- return !1;
226
- }
227
- function B(r) {
228
- var e = i.state;
229
- if (i.marked = "def", !!wr) {
230
- if (e.context) {
231
- if (e.lexical.info == "var" && e.context && e.context.block) {
232
- var t = yr(r, e.context);
233
- if (t != null) {
234
- e.context = t;
235
- return;
236
- }
237
- } else if (!sr(r, e.localVars)) {
238
- e.localVars = new D(r, e.localVars);
239
- return;
240
- }
241
- }
242
- g.globalVars && !sr(r, e.globalVars) && (e.globalVars = new D(r, e.globalVars));
243
- }
244
- }
245
- function yr(r, e) {
246
- if (e)
247
- if (e.block) {
248
- var t = yr(r, e.prev);
249
- return t ? t == e.prev ? e : new W(t, e.vars, !0) : null;
250
- } else return sr(r, e.vars) ? e : new W(e.prev, new D(r, e.vars), !1);
251
- else return null;
252
- }
253
- function rr(r) {
254
- return r == "public" || r == "private" || r == "protected" || r == "abstract" || r == "readonly";
255
- }
256
- function W(r, e, t) {
257
- this.prev = r, this.vars = e, this.block = t;
258
- }
259
- function D(r, e) {
260
- this.name = r, this.next = e;
261
- }
262
- var Wr = new D("this", new D("arguments", null));
263
- function M() {
264
- i.state.context = new W(i.state.context, i.state.localVars, !1), i.state.localVars = Wr;
265
- }
266
- function er() {
267
- i.state.context = new W(i.state.context, i.state.localVars, !0), i.state.localVars = null;
268
- }
269
- M.lex = er.lex = !0;
270
- function j() {
271
- i.state.localVars = i.state.context.vars, i.state.context = i.state.context.prev;
272
- }
273
- j.lex = !0;
274
- function s(r, e) {
275
- var t = function() {
276
- var f = i.state, u = f.indented;
277
- if (f.lexical.type == "stat") u = f.lexical.indented;
278
- else for (var l = f.lexical; l && l.type == ")" && l.align; l = l.prev)
279
- u = l.indented;
280
- f.lexical = new vr(u, i.stream.column(), r, null, f.lexical, e);
281
- };
282
- return t.lex = !0, t;
283
- }
284
- function a() {
285
- var r = i.state;
286
- r.lexical.prev && (r.lexical.type == ")" && (r.indented = r.lexical.indented), r.lexical = r.lexical.prev);
287
- }
288
- a.lex = !0;
289
- function c(r) {
290
- function e(t) {
291
- return t == r ? n() : r == ";" || t == "}" || t == ")" || t == "]" ? o() : n(e);
292
- }
293
- return e;
294
- }
295
- function w(r, e) {
296
- return r == "var" ? n(s("vardef", e), pr, c(";"), a) : r == "keyword a" ? n(s("form"), cr, w, a) : r == "keyword b" ? n(s("form"), w, a) : r == "keyword d" ? i.stream.match(/^\s*$/, !1) ? n() : n(s("stat"), J, c(";"), a) : r == "debugger" ? n(c(";")) : r == "{" ? n(s("}"), er, ir, a, j) : r == ";" ? n() : r == "if" ? (i.state.lexical.info == "else" && i.state.cc[i.state.cc.length - 1] == a && i.state.cc.pop()(), n(s("form"), cr, w, a, Ar)) : r == "function" ? n(S) : r == "for" ? n(s("form"), er, Sr, w, j, a) : r == "class" || p && e == "interface" ? (i.marked = "keyword", n(s("form", r == "class" ? r : e), _r, a)) : r == "variable" ? p && e == "declare" ? (i.marked = "keyword", n(w)) : p && (e == "module" || e == "enum" || e == "type") && i.stream.match(/^\s*\w/, !1) ? (i.marked = "keyword", e == "enum" ? n($r) : e == "type" ? n(zr, c("operator"), d, c(";")) : n(s("form"), E, c("{"), s("}"), ir, a, a)) : p && e == "namespace" ? (i.marked = "keyword", n(s("form"), k, w, a)) : p && e == "abstract" ? (i.marked = "keyword", n(w)) : n(s("stat"), Yr) : r == "switch" ? n(
297
- s("form"),
298
- cr,
299
- c("{"),
300
- s("}", "switch"),
301
- er,
302
- ir,
303
- a,
304
- a,
305
- j
306
- ) : r == "case" ? n(k, c(":")) : r == "default" ? n(c(":")) : r == "catch" ? n(s("form"), M, Dr, w, a, j) : r == "export" ? n(s("stat"), ce, a) : r == "import" ? n(s("stat"), le, a) : r == "async" ? n(w) : e == "@" ? n(k, w) : o(s("stat"), k, c(";"), a);
307
- }
308
- function Dr(r) {
309
- if (r == "(") return n(O, c(")"));
310
- }
311
- function k(r, e) {
312
- return jr(r, e, !1);
313
- }
314
- function y(r, e) {
315
- return jr(r, e, !0);
316
- }
317
- function cr(r) {
318
- return r != "(" ? o() : n(s(")"), J, c(")"), a);
319
- }
320
- function jr(r, e, t) {
321
- if (i.state.fatArrowAt == i.stream.start) {
322
- var f = t ? Tr : Er;
323
- if (r == "(") return n(M, s(")"), h(O, ")"), a, c("=>"), f, j);
324
- if (r == "variable") return o(M, E, c("=>"), f, j);
325
- }
326
- var u = t ? F : q;
327
- return Qr.hasOwnProperty(r) ? n(u) : r == "function" ? n(S, u) : r == "class" || p && e == "interface" ? (i.marked = "keyword", n(s("form"), se, a)) : r == "keyword c" || r == "async" ? n(t ? y : k) : r == "(" ? n(s(")"), J, c(")"), a, u) : r == "operator" || r == "spread" ? n(t ? y : k) : r == "[" ? n(s("]"), me, a, u) : r == "{" ? K(tr, "}", null, u) : r == "quasi" ? o(nr, u) : r == "new" ? n(Hr(t)) : n();
328
- }
329
- function J(r) {
330
- return r.match(/[;\}\)\],]/) ? o() : o(k);
331
- }
332
- function q(r, e) {
333
- return r == "," ? n(J) : F(r, e, !1);
334
- }
335
- function F(r, e, t) {
336
- var f = t == !1 ? q : F, u = t == !1 ? k : y;
337
- if (r == "=>") return n(M, t ? Tr : Er, j);
338
- if (r == "operator")
339
- return /\+\+|--/.test(e) || p && e == "!" ? n(f) : p && e == "<" && i.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, !1) ? n(s(">"), h(d, ">"), a, f) : e == "?" ? n(k, c(":"), u) : n(u);
340
- if (r == "quasi")
341
- return o(nr, f);
342
- if (r != ";") {
343
- if (r == "(") return K(y, ")", "call", f);
344
- if (r == ".") return n(Zr, f);
345
- if (r == "[") return n(s("]"), J, c("]"), a, f);
346
- if (p && e == "as")
347
- return i.marked = "keyword", n(d, f);
348
- if (r == "regexp")
349
- return i.state.lastType = i.marked = "operator", i.stream.backUp(i.stream.pos - i.stream.start - 1), n(u);
350
- }
351
- }
352
- function nr(r, e) {
353
- return r != "quasi" ? o() : e.slice(e.length - 2) != "${" ? n(nr) : n(J, Kr);
354
- }
355
- function Kr(r) {
356
- if (r == "}")
357
- return i.marked = "string-2", i.state.tokenize = U, n(nr);
358
- }
359
- function Er(r) {
360
- return or(i.stream, i.state), o(r == "{" ? w : k);
361
- }
362
- function Tr(r) {
363
- return or(i.stream, i.state), o(r == "{" ? w : y);
364
- }
365
- function Hr(r) {
366
- return function(e) {
367
- return e == "." ? n(r ? Xr : Gr) : e == "variable" && p ? n(ie, r ? F : q) : o(r ? y : k);
368
- };
369
- }
370
- function Gr(r, e) {
371
- if (e == "target")
372
- return i.marked = "keyword", n(q);
373
- }
374
- function Xr(r, e) {
375
- if (e == "target")
376
- return i.marked = "keyword", n(F);
377
- }
378
- function Yr(r) {
379
- return r == ":" ? n(a, w) : o(q, c(";"), a);
380
- }
381
- function Zr(r) {
382
- if (r == "variable")
383
- return i.marked = "property", n();
384
- }
385
- function tr(r, e) {
386
- if (r == "async")
387
- return i.marked = "property", n(tr);
388
- if (r == "variable" || i.style == "keyword") {
389
- if (i.marked = "property", e == "get" || e == "set") return n(Cr);
390
- var t;
391
- return p && i.state.fatArrowAt == i.stream.start && (t = i.stream.match(/^\s*:\s*/, !1)) && (i.state.fatArrowAt = i.stream.pos + t[0].length), n($);
392
- } else {
393
- if (r == "number" || r == "string")
394
- return i.marked = X ? "property" : i.style + " property", n($);
395
- if (r == "jsonld-keyword")
396
- return n($);
397
- if (p && rr(e))
398
- return i.marked = "keyword", n(tr);
399
- if (r == "[")
400
- return n(k, P, c("]"), $);
401
- if (r == "spread")
402
- return n(y, $);
403
- if (e == "*")
404
- return i.marked = "keyword", n(tr);
405
- if (r == ":")
406
- return o($);
407
- }
408
- }
409
- function Cr(r) {
410
- return r != "variable" ? o($) : (i.marked = "property", n(S));
411
- }
412
- function $(r) {
413
- if (r == ":") return n(y);
414
- if (r == "(") return o(S);
415
- }
416
- function h(r, e, t) {
417
- function f(u, l) {
418
- if (t ? t.indexOf(u) > -1 : u == ",") {
419
- var m = i.state.lexical;
420
- return m.info == "call" && (m.pos = (m.pos || 0) + 1), n(function(v, T) {
421
- return v == e || T == e ? o() : o(r);
422
- }, f);
423
- }
424
- return u == e || l == e ? n() : t && t.indexOf(";") > -1 ? o(r) : n(c(e));
425
- }
426
- return function(u, l) {
427
- return u == e || l == e ? n() : o(r, f);
428
- };
429
- }
430
- function K(r, e, t) {
431
- for (var f = 3; f < arguments.length; f++)
432
- i.cc.push(arguments[f]);
433
- return n(s(e, t), h(r, e), a);
434
- }
435
- function ir(r) {
436
- return r == "}" ? n() : o(w, ir);
437
- }
438
- function P(r, e) {
439
- if (p) {
440
- if (r == ":") return n(d);
441
- if (e == "?") return n(P);
442
- }
443
- }
444
- function re(r, e) {
445
- if (p && (r == ":" || e == "in")) return n(d);
446
- }
447
- function Vr(r) {
448
- if (p && r == ":")
449
- return i.stream.match(/^\s*\w+\s+is\b/, !1) ? n(k, ee, d) : n(d);
450
- }
451
- function ee(r, e) {
452
- if (e == "is")
453
- return i.marked = "keyword", n();
454
- }
455
- function d(r, e) {
456
- if (e == "keyof" || e == "typeof" || e == "infer" || e == "readonly")
457
- return i.marked = "keyword", n(e == "typeof" ? y : d);
458
- if (r == "variable" || e == "void")
459
- return i.marked = "type", n(V);
460
- if (e == "|" || e == "&") return n(d);
461
- if (r == "string" || r == "number" || r == "atom") return n(V);
462
- if (r == "[") return n(s("]"), h(d, "]", ","), a, V);
463
- if (r == "{") return n(s("}"), lr, a, V);
464
- if (r == "(") return n(h(mr, ")"), ne, V);
465
- if (r == "<") return n(h(d, ">"), d);
466
- if (r == "quasi")
467
- return o(dr, V);
468
- }
469
- function ne(r) {
470
- if (r == "=>") return n(d);
471
- }
472
- function lr(r) {
473
- return r.match(/[\}\)\]]/) ? n() : r == "," || r == ";" ? n(lr) : o(H, lr);
474
- }
475
- function H(r, e) {
476
- if (r == "variable" || i.style == "keyword")
477
- return i.marked = "property", n(H);
478
- if (e == "?" || r == "number" || r == "string")
479
- return n(H);
480
- if (r == ":")
481
- return n(d);
482
- if (r == "[")
483
- return n(c("variable"), re, c("]"), H);
484
- if (r == "(")
485
- return o(L, H);
486
- if (!r.match(/[;\}\)\],]/))
487
- return n();
488
- }
489
- function dr(r, e) {
490
- return r != "quasi" ? o() : e.slice(e.length - 2) != "${" ? n(dr) : n(d, te);
491
- }
492
- function te(r) {
493
- if (r == "}")
494
- return i.marked = "string-2", i.state.tokenize = U, n(dr);
495
- }
496
- function mr(r, e) {
497
- return r == "variable" && i.stream.match(/^\s*[?:]/, !1) || e == "?" ? n(mr) : r == ":" ? n(d) : r == "spread" ? n(mr) : o(d);
498
- }
499
- function V(r, e) {
500
- if (e == "<") return n(s(">"), h(d, ">"), a, V);
501
- if (e == "|" || r == "." || e == "&") return n(d);
502
- if (r == "[") return n(d, c("]"), V);
503
- if (e == "extends" || e == "implements")
504
- return i.marked = "keyword", n(d);
505
- if (e == "?") return n(d, c(":"), d);
506
- }
507
- function ie(r, e) {
508
- if (e == "<") return n(s(">"), h(d, ">"), a, V);
509
- }
510
- function fr() {
511
- return o(d, fe);
512
- }
513
- function fe(r, e) {
514
- if (e == "=") return n(d);
515
- }
516
- function pr(r, e) {
517
- return e == "enum" ? (i.marked = "keyword", n($r)) : o(E, P, A, ue);
518
- }
519
- function E(r, e) {
520
- if (p && rr(e))
521
- return i.marked = "keyword", n(E);
522
- if (r == "variable")
523
- return B(e), n();
524
- if (r == "spread") return n(E);
525
- if (r == "[") return K(ae, "]");
526
- if (r == "{") return K(Ir, "}");
527
- }
528
- function Ir(r, e) {
529
- return r == "variable" && !i.stream.match(/^\s*:/, !1) ? (B(e), n(A)) : (r == "variable" && (i.marked = "property"), r == "spread" ? n(E) : r == "}" ? o() : r == "[" ? n(k, c("]"), c(":"), Ir) : n(c(":"), E, A));
530
- }
531
- function ae() {
532
- return o(E, A);
533
- }
534
- function A(r, e) {
535
- if (e == "=") return n(y);
536
- }
537
- function ue(r) {
538
- if (r == ",") return n(pr);
539
- }
540
- function Ar(r, e) {
541
- if (r == "keyword b" && e == "else") return n(s("form", "else"), w, a);
542
- }
543
- function Sr(r, e) {
544
- if (e == "await") return n(Sr);
545
- if (r == "(") return n(s(")"), oe, a);
546
- }
547
- function oe(r) {
548
- return r == "var" ? n(pr, R) : r == "variable" ? n(R) : o(R);
549
- }
550
- function R(r, e) {
551
- return r == ")" ? n() : r == ";" ? n(R) : e == "in" || e == "of" ? (i.marked = "keyword", n(k, R)) : o(k, R);
552
- }
553
- function S(r, e) {
554
- if (e == "*")
555
- return i.marked = "keyword", n(S);
556
- if (r == "variable")
557
- return B(e), n(S);
558
- if (r == "(") return n(M, s(")"), h(O, ")"), a, Vr, w, j);
559
- if (p && e == "<") return n(s(">"), h(fr, ">"), a, S);
560
- }
561
- function L(r, e) {
562
- if (e == "*")
563
- return i.marked = "keyword", n(L);
564
- if (r == "variable")
565
- return B(e), n(L);
566
- if (r == "(") return n(M, s(")"), h(O, ")"), a, Vr, j);
567
- if (p && e == "<") return n(s(">"), h(fr, ">"), a, L);
568
- }
569
- function zr(r, e) {
570
- if (r == "keyword" || r == "variable")
571
- return i.marked = "type", n(zr);
572
- if (e == "<")
573
- return n(s(">"), h(fr, ">"), a);
574
- }
575
- function O(r, e) {
576
- return e == "@" && n(k, O), r == "spread" ? n(O) : p && rr(e) ? (i.marked = "keyword", n(O)) : p && r == "this" ? n(P, A) : o(E, P, A);
577
- }
578
- function se(r, e) {
579
- return r == "variable" ? _r(r, e) : ar(r, e);
580
- }
581
- function _r(r, e) {
582
- if (r == "variable")
583
- return B(e), n(ar);
584
- }
585
- function ar(r, e) {
586
- if (e == "<") return n(s(">"), h(fr, ">"), a, ar);
587
- if (e == "extends" || e == "implements" || p && r == ",")
588
- return e == "implements" && (i.marked = "keyword"), n(p ? d : k, ar);
589
- if (r == "{") return n(s("}"), I, a);
590
- }
591
- function I(r, e) {
592
- if (r == "async" || r == "variable" && (e == "static" || e == "get" || e == "set" || p && rr(e)) && i.stream.match(/^\s+#?[\w$\xa1-\uffff]/, !1))
593
- return i.marked = "keyword", n(I);
594
- if (r == "variable" || i.style == "keyword")
595
- return i.marked = "property", n(G, I);
596
- if (r == "number" || r == "string") return n(G, I);
597
- if (r == "[")
598
- return n(k, P, c("]"), G, I);
599
- if (e == "*")
600
- return i.marked = "keyword", n(I);
601
- if (p && r == "(") return o(L, I);
602
- if (r == ";" || r == ",") return n(I);
603
- if (r == "}") return n();
604
- if (e == "@") return n(k, I);
605
- }
606
- function G(r, e) {
607
- if (e == "!" || e == "?") return n(G);
608
- if (r == ":") return n(d, A);
609
- if (e == "=") return n(y);
610
- var t = i.state.lexical.prev, f = t && t.info == "interface";
611
- return o(f ? L : S);
612
- }
613
- function ce(r, e) {
614
- return e == "*" ? (i.marked = "keyword", n(kr, c(";"))) : e == "default" ? (i.marked = "keyword", n(k, c(";"))) : r == "{" ? n(h(Mr, "}"), kr, c(";")) : o(w);
615
- }
616
- function Mr(r, e) {
617
- if (e == "as")
618
- return i.marked = "keyword", n(c("variable"));
619
- if (r == "variable") return o(y, Mr);
620
- }
621
- function le(r) {
622
- return r == "string" ? n() : r == "(" ? o(k) : r == "." ? o(q) : o(ur, qr, kr);
623
- }
624
- function ur(r, e) {
625
- return r == "{" ? K(ur, "}") : (r == "variable" && B(e), e == "*" && (i.marked = "keyword"), n(de));
626
- }
627
- function qr(r) {
628
- if (r == ",") return n(ur, qr);
629
- }
630
- function de(r, e) {
631
- if (e == "as")
632
- return i.marked = "keyword", n(ur);
633
- }
634
- function kr(r, e) {
635
- if (e == "from")
636
- return i.marked = "keyword", n(k);
637
- }
638
- function me(r) {
639
- return r == "]" ? n() : o(h(y, "]"));
640
- }
641
- function $r() {
642
- return o(s("form"), E, c("{"), s("}"), h(pe, "}"), a, a);
643
- }
644
- function pe() {
645
- return o(E, A);
646
- }
647
- function ke(r, e) {
648
- return r.lastType == "operator" || r.lastType == "," || hr.test(e.charAt(0)) || /[,.]/.test(e.charAt(0));
649
- }
650
- function Or(r, e, t) {
651
- return e.tokenize == _ && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType) || e.lastType == "quasi" && /\{\s*$/.test(r.string.slice(0, r.pos - (t || 0)));
652
- }
653
- return {
654
- startState: function(r) {
655
- var e = {
656
- tokenize: _,
657
- lastType: "sof",
658
- cc: [],
659
- lexical: new vr((r || 0) - N, 0, "block", !1),
660
- localVars: g.localVars,
661
- context: g.localVars && new W(null, null, !1),
662
- indented: r || 0
663
- };
664
- return g.globalVars && typeof g.globalVars == "object" && (e.globalVars = g.globalVars), e;
665
- },
666
- token: function(r, e) {
667
- if (r.sol() && (e.lexical.hasOwnProperty("align") || (e.lexical.align = !1), e.indented = r.indentation(), or(r, e)), e.tokenize != C && r.eatSpace()) return null;
668
- var t = e.tokenize(r, e);
669
- return Q == "comment" ? t : (e.lastType = Q == "operator" && (Z == "++" || Z == "--") ? "incdec" : Q, gr(e, t, Q, Z, r));
670
- },
671
- indent: function(r, e) {
672
- if (r.tokenize == C || r.tokenize == U) return x.Pass;
673
- if (r.tokenize != _) return 0;
674
- var t = e && e.charAt(0), f = r.lexical, u;
675
- if (!/^\s*else\b/.test(e)) for (var l = r.cc.length - 1; l >= 0; --l) {
676
- var m = r.cc[l];
677
- if (m == a) f = f.prev;
678
- else if (m != Ar && m != j) break;
679
- }
680
- for (; (f.type == "stat" || f.type == "form") && (t == "}" || (u = r.cc[r.cc.length - 1]) && (u == q || u == F) && !/^[,\.=+\-*:?[\(]/.test(e)); )
681
- f = f.prev;
682
- br && f.type == ")" && f.prev.type == "stat" && (f = f.prev);
683
- var v = f.type, T = t == v;
684
- return v == "vardef" ? f.indented + (r.lastType == "operator" || r.lastType == "," ? f.info.length + 1 : 0) : v == "form" && t == "{" ? f.indented : v == "form" ? f.indented + N : v == "stat" ? f.indented + (ke(r, e) ? br || N : 0) : f.info == "switch" && !T && g.doubleIndentSwitch != !1 ? f.indented + (/^(?:case|default)\b/.test(e) ? N : 2 * N) : f.align ? f.column + (T ? 0 : 1) : f.indented + (T ? 0 : N);
685
- },
686
- electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
687
- blockCommentStart: z ? null : "/*",
688
- blockCommentEnd: z ? null : "*/",
689
- blockCommentContinue: z ? null : " * ",
690
- lineComment: z ? null : "//",
691
- fold: "brace",
692
- closeBrackets: "()[]{}''\"\"``",
693
- helperType: z ? "json" : "javascript",
694
- jsonldMode: X,
695
- jsonMode: z,
696
- expressionAllowed: Or,
697
- skipExpression: function(r) {
698
- gr(r, "atom", "atom", "true", new x.StringStream("", 2, null));
699
- }
700
- };
701
- }), x.registerHelper("wordChars", "javascript", /[\w$]/), x.defineMIME("text/javascript", "javascript"), x.defineMIME("text/ecmascript", "javascript"), x.defineMIME("application/javascript", "javascript"), x.defineMIME("application/x-javascript", "javascript"), x.defineMIME("application/ecmascript", "javascript"), x.defineMIME("application/json", { name: "javascript", json: !0 }), x.defineMIME("application/x-json", { name: "javascript", json: !0 }), x.defineMIME("application/manifest+json", { name: "javascript", json: !0 }), x.defineMIME("application/ld+json", { name: "javascript", jsonld: !0 }), x.defineMIME("text/typescript", { name: "javascript", typescript: !0 }), x.defineMIME("application/typescript", { name: "javascript", typescript: !0 });
702
- });
703
- }()), Nr.exports;
704
- }
705
- export {
706
- ge as r
707
- };