react-schema-form 1.0.4 → 1.0.5

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 (122) hide show
  1. package/dist/apl-B2DGVGxc.js +76 -0
  2. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  3. package/dist/asn1-DF4fnRHj.js +93 -0
  4. package/dist/asterisk-DS281yxp.js +271 -0
  5. package/dist/brainfuck-C_p9pTT8.js +34 -0
  6. package/dist/clike-l4mx49Q1.js +621 -0
  7. package/dist/clojure-CCKyeQKf.js +800 -0
  8. package/dist/cmake-CuaCgAKt.js +28 -0
  9. package/dist/cobol-CJVkMW0i.js +73 -0
  10. package/dist/coffeescript-BVCvwO8I.js +179 -0
  11. package/dist/commonlisp-D_kxz07b.js +75 -0
  12. package/dist/crystal-D309uH6_.js +217 -0
  13. package/dist/css-bIlmDBTK.js +1560 -0
  14. package/dist/cypher-BMq4Fwjl.js +68 -0
  15. package/dist/d-BZcgY6La.js +127 -0
  16. package/dist/diff-Cg9d_RX2.js +18 -0
  17. package/dist/dockerfile-CFG_IPGn.js +194 -0
  18. package/dist/dtd-CtLokQ-U.js +84 -0
  19. package/dist/dylan-QYeExnWK.js +234 -0
  20. package/dist/ebnf-Xa2PN7SI.js +77 -0
  21. package/dist/ecl-CiXN-g_D.js +121 -0
  22. package/dist/eiffel-yQhjl4T1.js +110 -0
  23. package/dist/elm-CNT9vbN0.js +108 -0
  24. package/dist/erlang-CFOYdy9e.js +487 -0
  25. package/dist/factor-DJHfQ4a1.js +65 -0
  26. package/dist/fcl-CPC2WYrI.js +103 -0
  27. package/dist/forth-BmxRyE9S.js +60 -0
  28. package/dist/fortran-9bvPyrOW.js +442 -0
  29. package/dist/gas-BdfkXJT_.js +183 -0
  30. package/dist/gherkin-CJuwpceU.js +34 -0
  31. package/dist/groovy-DZeT_VM-.js +146 -0
  32. package/dist/haskell-Bvt3Qq1t.js +375 -0
  33. package/dist/haxe-pdDS1aE8.js +359 -0
  34. package/dist/http-D9LttvKF.js +44 -0
  35. package/dist/idl-B6TRFYjl.js +947 -0
  36. package/dist/index-BE87KcZQ.js +98 -0
  37. package/dist/index-BLB2mjTh.js +312 -0
  38. package/dist/index-Bar6lBni.js +75 -0
  39. package/dist/index-BzGQIlo_.js +134 -0
  40. package/dist/index-BzqHMC7H.js +58 -0
  41. package/dist/index-C1_9PR5w.js +156 -0
  42. package/dist/index-C8EGvqpJ.js +135 -0
  43. package/dist/index-CFDpG1dM.js +243 -0
  44. package/dist/index-Cjv9KcfW.js +93 -0
  45. package/dist/index-CvvBPxcf.js +341 -0
  46. package/dist/index-DDn1Bvsm.js +538 -0
  47. package/dist/index-DeMNkpAe.js +299 -0
  48. package/dist/index-DjyHTjks.js +265 -0
  49. package/dist/index-JL0W82NW.js +598 -0
  50. package/dist/index-RrAWWB2k.js +71 -0
  51. package/dist/index-kp5oFDKj.js +288 -0
  52. package/dist/javascript-CWGekh08.js +690 -0
  53. package/dist/jinja2-DnB6dQmV.js +154 -0
  54. package/dist/julia-DpvXAuO6.js +241 -0
  55. package/dist/livescript-CE_BxZmN.js +272 -0
  56. package/dist/lua-XplVlWi_.js +217 -0
  57. package/dist/main-gT5TlPcm.js +85834 -0
  58. package/dist/mathematica-jaRHnSxC.js +35 -0
  59. package/dist/mbox-BctzC1hL.js +76 -0
  60. package/dist/mirc-CFBPAOaF.js +72 -0
  61. package/dist/mllike-1yy7Y7jE.js +275 -0
  62. package/dist/modelica-vUgVs--1.js +93 -0
  63. package/dist/mscgen-Cpl0NYLN.js +104 -0
  64. package/dist/mumps-CQoS1kWX.js +25 -0
  65. package/dist/nginx-zDPm3Z74.js +89 -0
  66. package/dist/nsis-BtA0qkjU.js +62 -0
  67. package/dist/ntriples-CsNjv2QF.js +79 -0
  68. package/dist/octave-C8PmmSRH.js +143 -0
  69. package/dist/oz-Ce8aN8oE.js +151 -0
  70. package/dist/pascal-ixanSKUz.js +77 -0
  71. package/dist/perl-B4bSCe1C.js +915 -0
  72. package/dist/pig-D24Z8EXi.js +54 -0
  73. package/dist/powershell-DkYVfTzP.js +249 -0
  74. package/dist/properties-Dn9wna3M.js +26 -0
  75. package/dist/protobuf-BPIjwpzm.js +49 -0
  76. package/dist/pug-CW1q1xhQ.js +248 -0
  77. package/dist/puppet-nyd4dhjf.js +45 -0
  78. package/dist/python-B5QdSKoL.js +313 -0
  79. package/dist/q-DXjKs-tC.js +83 -0
  80. package/dist/r-Bz1d3XP0.js +104 -0
  81. package/dist/react-schema-form.js +7 -0
  82. package/dist/react-schema-form.umd.cjs +320 -0
  83. package/dist/rpm-IznJm2Xc.js +57 -0
  84. package/dist/ruby-CcYfvIk6.js +228 -0
  85. package/dist/sas-7E8yHoCW.js +105 -0
  86. package/dist/scheme-DjibxsNh.js +124 -0
  87. package/dist/shell-C0C2sNA_.js +182 -0
  88. package/dist/sieve-Bwz7vjP5.js +72 -0
  89. package/dist/simple-mode-HGTvdazT.js +88 -0
  90. package/dist/smalltalk-Bhddl2pB.js +48 -0
  91. package/dist/solr-BNlsLglM.js +41 -0
  92. package/dist/sparql-FarWu_Gb.js +197 -0
  93. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  94. package/dist/sql-uoWIYwDX.js +284 -0
  95. package/dist/stex-92raWT1r.js +129 -0
  96. package/dist/style.css +1 -0
  97. package/dist/stylus-DRcbY16X.js +250 -0
  98. package/dist/swift-DSxqR9R6.js +230 -0
  99. package/dist/tcl-xfoLljhY.js +81 -0
  100. package/dist/textile-D1AWE-pc.js +295 -0
  101. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  102. package/dist/tiki-D9z-T0ea.js +178 -0
  103. package/dist/toml-BHiuTcfn.js +49 -0
  104. package/dist/troff-D2UO-fKf.js +35 -0
  105. package/dist/ttcn-DmjTzZb6.js +125 -0
  106. package/dist/ttcn-cfg-B2U3U7dn.js +90 -0
  107. package/dist/turtle-xwJUxoPV.js +80 -0
  108. package/dist/vb-c2kQGd6-.js +74 -0
  109. package/dist/vbscript-Dz1TtKsy.js +324 -0
  110. package/dist/velocity-DJd0pTTC.js +96 -0
  111. package/dist/verilog-C4VGD9n1.js +263 -0
  112. package/dist/vhdl-T9HkrbI2.js +106 -0
  113. package/dist/vite.svg +1 -0
  114. package/dist/webidl-CjfDENEo.js +155 -0
  115. package/dist/xquery-xQxle02u.js +426 -0
  116. package/dist/yacas-C0absKBh.js +73 -0
  117. package/dist/z80-C8rPtw-0.js +61 -0
  118. package/package.json +43 -58
  119. package/dist/index.js +0 -2134
  120. package/dist/index.js.map +0 -1
  121. package/dist/index.modern.js +0 -2128
  122. package/dist/index.modern.js.map +0 -1
@@ -0,0 +1,106 @@
1
+ function f(e) {
2
+ for (var t = {}, n = e.split(","), r = 0; r < n.length; ++r) {
3
+ var i = n[r].toUpperCase(), l = n[r].charAt(0).toUpperCase() + n[r].slice(1);
4
+ t[n[r]] = !0, t[i] = !0, t[l] = !0;
5
+ }
6
+ return t;
7
+ }
8
+ function p(e) {
9
+ return e.eatWhile(/[\w\$_]/), "meta";
10
+ }
11
+ var k = f("null"), s = { "`": p, $: p }, g = !1, y = f("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"), v = f("architecture,entity,begin,case,port,else,elsif,end,for,function,if"), d = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/, o;
12
+ function c(e, t) {
13
+ var n = e.next();
14
+ if (s[n]) {
15
+ var r = s[n](e, t);
16
+ if (r !== !1) return r;
17
+ }
18
+ if (n == '"')
19
+ return t.tokenize = m(n), t.tokenize(e, t);
20
+ if (n == "'")
21
+ return t.tokenize = b(n), t.tokenize(e, t);
22
+ if (/[\[\]{}\(\),;\:\.]/.test(n))
23
+ return o = n, null;
24
+ if (/[\d']/.test(n))
25
+ return e.eatWhile(/[\w\.']/), "number";
26
+ if (n == "-" && e.eat("-"))
27
+ return e.skipToEnd(), "comment";
28
+ if (d.test(n))
29
+ return e.eatWhile(d), "operator";
30
+ e.eatWhile(/[\w\$_]/);
31
+ var i = e.current();
32
+ return y.propertyIsEnumerable(i.toLowerCase()) ? (v.propertyIsEnumerable(i) && (o = "newstatement"), "keyword") : k.propertyIsEnumerable(i) ? "atom" : "variable";
33
+ }
34
+ function b(e) {
35
+ return function(t, n) {
36
+ for (var r = !1, i, l = !1; (i = t.next()) != null; ) {
37
+ if (i == e && !r) {
38
+ l = !0;
39
+ break;
40
+ }
41
+ r = !r && i == "--";
42
+ }
43
+ return (l || !(r || g)) && (n.tokenize = c), "string";
44
+ };
45
+ }
46
+ function m(e) {
47
+ return function(t, n) {
48
+ for (var r = !1, i, l = !1; (i = t.next()) != null; ) {
49
+ if (i == e && !r) {
50
+ l = !0;
51
+ break;
52
+ }
53
+ r = !r && i == "--";
54
+ }
55
+ return (l || !(r || g)) && (n.tokenize = c), "string.special";
56
+ };
57
+ }
58
+ function h(e, t, n, r, i) {
59
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
60
+ }
61
+ function a(e, t, n) {
62
+ return e.context = new h(e.indented, t, n, null, e.context);
63
+ }
64
+ function u(e) {
65
+ var t = e.context.type;
66
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
67
+ }
68
+ const w = {
69
+ name: "vhdl",
70
+ startState: function(e) {
71
+ return {
72
+ tokenize: null,
73
+ context: new h(-e, 0, "top", !1),
74
+ indented: 0,
75
+ startOfLine: !0
76
+ };
77
+ },
78
+ token: function(e, t) {
79
+ var n = t.context;
80
+ if (e.sol() && (n.align == null && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
81
+ o = null;
82
+ var r = (t.tokenize || c)(e, t);
83
+ if (r == "comment" || r == "meta") return r;
84
+ if (n.align == null && (n.align = !0), (o == ";" || o == ":") && n.type == "statement") u(t);
85
+ else if (o == "{") a(t, e.column(), "}");
86
+ else if (o == "[") a(t, e.column(), "]");
87
+ else if (o == "(") a(t, e.column(), ")");
88
+ else if (o == "}") {
89
+ for (; n.type == "statement"; ) n = u(t);
90
+ for (n.type == "}" && (n = u(t)); n.type == "statement"; ) n = u(t);
91
+ } else o == n.type ? u(t) : (n.type == "}" || n.type == "top" || n.type == "statement" && o == "newstatement") && a(t, e.column(), "statement");
92
+ return t.startOfLine = !1, r;
93
+ },
94
+ indent: function(e, t, n) {
95
+ if (e.tokenize != c && e.tokenize != null) return 0;
96
+ var r = t && t.charAt(0), i = e.context, l = r == i.type;
97
+ return i.type == "statement" ? i.indented + (r == "{" ? 0 : n.unit) : i.align ? i.column + (l ? 0 : 1) : i.indented + (l ? 0 : n.unit);
98
+ },
99
+ languageData: {
100
+ indentOnInput: /^\s*[{}]$/,
101
+ commentTokens: { line: "--" }
102
+ }
103
+ };
104
+ export {
105
+ w as vhdl
106
+ };
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1,155 @@
1
+ function a(e) {
2
+ return new RegExp("^((" + e.join(")|(") + "))\\b");
3
+ }
4
+ var l = [
5
+ "Clamp",
6
+ "Constructor",
7
+ "EnforceRange",
8
+ "Exposed",
9
+ "ImplicitThis",
10
+ "Global",
11
+ "PrimaryGlobal",
12
+ "LegacyArrayClass",
13
+ "LegacyUnenumerableNamedProperties",
14
+ "LenientThis",
15
+ "NamedConstructor",
16
+ "NewObject",
17
+ "NoInterfaceObject",
18
+ "OverrideBuiltins",
19
+ "PutForwards",
20
+ "Replaceable",
21
+ "SameObject",
22
+ "TreatNonObjectAsNull",
23
+ "TreatNullAs",
24
+ "EmptyString",
25
+ "Unforgeable",
26
+ "Unscopeable"
27
+ ], u = a(l), o = [
28
+ "unsigned",
29
+ "short",
30
+ "long",
31
+ // UnsignedIntegerType
32
+ "unrestricted",
33
+ "float",
34
+ "double",
35
+ // UnrestrictedFloatType
36
+ "boolean",
37
+ "byte",
38
+ "octet",
39
+ // Rest of PrimitiveType
40
+ "Promise",
41
+ // PromiseType
42
+ "ArrayBuffer",
43
+ "DataView",
44
+ "Int8Array",
45
+ "Int16Array",
46
+ "Int32Array",
47
+ "Uint8Array",
48
+ "Uint16Array",
49
+ "Uint32Array",
50
+ "Uint8ClampedArray",
51
+ "Float32Array",
52
+ "Float64Array",
53
+ // BufferRelatedType
54
+ "ByteString",
55
+ "DOMString",
56
+ "USVString",
57
+ "sequence",
58
+ "object",
59
+ "RegExp",
60
+ "Error",
61
+ "DOMException",
62
+ "FrozenArray",
63
+ // Rest of NonAnyType
64
+ "any",
65
+ // Rest of SingleType
66
+ "void"
67
+ // Rest of ReturnType
68
+ ], m = a(o), c = [
69
+ "attribute",
70
+ "callback",
71
+ "const",
72
+ "deleter",
73
+ "dictionary",
74
+ "enum",
75
+ "getter",
76
+ "implements",
77
+ "inherit",
78
+ "interface",
79
+ "iterable",
80
+ "legacycaller",
81
+ "maplike",
82
+ "partial",
83
+ "required",
84
+ "serializer",
85
+ "setlike",
86
+ "setter",
87
+ "static",
88
+ "stringifier",
89
+ "typedef",
90
+ // ArgumentNameKeyword except
91
+ // "unrestricted"
92
+ "optional",
93
+ "readonly",
94
+ "or"
95
+ ], s = a(c), f = [
96
+ "true",
97
+ "false",
98
+ // BooleanLiteral
99
+ "Infinity",
100
+ "NaN",
101
+ // FloatLiteral
102
+ "null"
103
+ // Rest of ConstValue
104
+ ], y = a(f), d = ["callback", "dictionary", "enum", "interface"], p = a(d), b = ["typedef"], v = a(b), A = /^[:<=>?]/, g = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/, h = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/, i = /^_?[A-Za-z][0-9A-Z_a-z-]*/, D = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, k = /^"[^"]*"/, E = /^\/\*.*?\*\//, C = /^\/\*.*/, w = /^.*?\*\//;
105
+ function N(e, r) {
106
+ if (e.eatSpace()) return null;
107
+ if (r.inComment)
108
+ return e.match(w) ? (r.inComment = !1, "comment") : (e.skipToEnd(), "comment");
109
+ if (e.match("//"))
110
+ return e.skipToEnd(), "comment";
111
+ if (e.match(E)) return "comment";
112
+ if (e.match(C))
113
+ return r.inComment = !0, "comment";
114
+ if (e.match(/^-?[0-9\.]/, !1) && (e.match(g) || e.match(h)))
115
+ return "number";
116
+ if (e.match(k)) return "string";
117
+ if (r.startDef && e.match(i)) return "def";
118
+ if (r.endDef && e.match(D))
119
+ return r.endDef = !1, "def";
120
+ if (e.match(s)) return "keyword";
121
+ if (e.match(m)) {
122
+ var t = r.lastToken, n = (e.match(/^\s*(.+?)\b/, !1) || [])[1];
123
+ return t === ":" || t === "implements" || n === "implements" || n === "=" ? "builtin" : "type";
124
+ }
125
+ return e.match(u) ? "builtin" : e.match(y) ? "atom" : e.match(i) ? "variable" : e.match(A) ? "operator" : (e.next(), null);
126
+ }
127
+ const S = {
128
+ name: "webidl",
129
+ startState: function() {
130
+ return {
131
+ // Is in multiline comment
132
+ inComment: !1,
133
+ // Last non-whitespace, matched token
134
+ lastToken: "",
135
+ // Next token is a definition
136
+ startDef: !1,
137
+ // Last token of the statement is a definition
138
+ endDef: !1
139
+ };
140
+ },
141
+ token: function(e, r) {
142
+ var t = N(e, r);
143
+ if (t) {
144
+ var n = e.current();
145
+ r.lastToken = n, t === "keyword" ? (r.startDef = p.test(n), r.endDef = r.endDef || v.test(n)) : r.startDef = !1;
146
+ }
147
+ return t;
148
+ },
149
+ languageData: {
150
+ autocomplete: l.concat(o).concat(c).concat(f)
151
+ }
152
+ };
153
+ export {
154
+ S as webIDL
155
+ };
@@ -0,0 +1,426 @@
1
+ var h = function() {
2
+ function e(z) {
3
+ return { type: z, style: "keyword" };
4
+ }
5
+ for (var n = e("operator"), t = { type: "atom", style: "atom" }, i = { type: "punctuation", style: null }, c = { type: "axis_specifier", style: "qualifier" }, a = {
6
+ ",": i
7
+ }, g = [
8
+ "after",
9
+ "all",
10
+ "allowing",
11
+ "ancestor",
12
+ "ancestor-or-self",
13
+ "any",
14
+ "array",
15
+ "as",
16
+ "ascending",
17
+ "at",
18
+ "attribute",
19
+ "base-uri",
20
+ "before",
21
+ "boundary-space",
22
+ "by",
23
+ "case",
24
+ "cast",
25
+ "castable",
26
+ "catch",
27
+ "child",
28
+ "collation",
29
+ "comment",
30
+ "construction",
31
+ "contains",
32
+ "content",
33
+ "context",
34
+ "copy",
35
+ "copy-namespaces",
36
+ "count",
37
+ "decimal-format",
38
+ "declare",
39
+ "default",
40
+ "delete",
41
+ "descendant",
42
+ "descendant-or-self",
43
+ "descending",
44
+ "diacritics",
45
+ "different",
46
+ "distance",
47
+ "document",
48
+ "document-node",
49
+ "element",
50
+ "else",
51
+ "empty",
52
+ "empty-sequence",
53
+ "encoding",
54
+ "end",
55
+ "entire",
56
+ "every",
57
+ "exactly",
58
+ "except",
59
+ "external",
60
+ "first",
61
+ "following",
62
+ "following-sibling",
63
+ "for",
64
+ "from",
65
+ "ftand",
66
+ "ftnot",
67
+ "ft-option",
68
+ "ftor",
69
+ "function",
70
+ "fuzzy",
71
+ "greatest",
72
+ "group",
73
+ "if",
74
+ "import",
75
+ "in",
76
+ "inherit",
77
+ "insensitive",
78
+ "insert",
79
+ "instance",
80
+ "intersect",
81
+ "into",
82
+ "invoke",
83
+ "is",
84
+ "item",
85
+ "language",
86
+ "last",
87
+ "lax",
88
+ "least",
89
+ "let",
90
+ "levels",
91
+ "lowercase",
92
+ "map",
93
+ "modify",
94
+ "module",
95
+ "most",
96
+ "namespace",
97
+ "next",
98
+ "no",
99
+ "node",
100
+ "nodes",
101
+ "no-inherit",
102
+ "no-preserve",
103
+ "not",
104
+ "occurs",
105
+ "of",
106
+ "only",
107
+ "option",
108
+ "order",
109
+ "ordered",
110
+ "ordering",
111
+ "paragraph",
112
+ "paragraphs",
113
+ "parent",
114
+ "phrase",
115
+ "preceding",
116
+ "preceding-sibling",
117
+ "preserve",
118
+ "previous",
119
+ "processing-instruction",
120
+ "relationship",
121
+ "rename",
122
+ "replace",
123
+ "return",
124
+ "revalidation",
125
+ "same",
126
+ "satisfies",
127
+ "schema",
128
+ "schema-attribute",
129
+ "schema-element",
130
+ "score",
131
+ "self",
132
+ "sensitive",
133
+ "sentence",
134
+ "sentences",
135
+ "sequence",
136
+ "skip",
137
+ "sliding",
138
+ "some",
139
+ "stable",
140
+ "start",
141
+ "stemming",
142
+ "stop",
143
+ "strict",
144
+ "strip",
145
+ "switch",
146
+ "text",
147
+ "then",
148
+ "thesaurus",
149
+ "times",
150
+ "to",
151
+ "transform",
152
+ "treat",
153
+ "try",
154
+ "tumbling",
155
+ "type",
156
+ "typeswitch",
157
+ "union",
158
+ "unordered",
159
+ "update",
160
+ "updating",
161
+ "uppercase",
162
+ "using",
163
+ "validate",
164
+ "value",
165
+ "variable",
166
+ "version",
167
+ "weight",
168
+ "when",
169
+ "where",
170
+ "wildcards",
171
+ "window",
172
+ "with",
173
+ "without",
174
+ "word",
175
+ "words",
176
+ "xquery"
177
+ ], r = 0, o = g.length; r < o; r++)
178
+ a[g[r]] = e(g[r]);
179
+ for (var d = [
180
+ "xs:anyAtomicType",
181
+ "xs:anySimpleType",
182
+ "xs:anyType",
183
+ "xs:anyURI",
184
+ "xs:base64Binary",
185
+ "xs:boolean",
186
+ "xs:byte",
187
+ "xs:date",
188
+ "xs:dateTime",
189
+ "xs:dateTimeStamp",
190
+ "xs:dayTimeDuration",
191
+ "xs:decimal",
192
+ "xs:double",
193
+ "xs:duration",
194
+ "xs:ENTITIES",
195
+ "xs:ENTITY",
196
+ "xs:float",
197
+ "xs:gDay",
198
+ "xs:gMonth",
199
+ "xs:gMonthDay",
200
+ "xs:gYear",
201
+ "xs:gYearMonth",
202
+ "xs:hexBinary",
203
+ "xs:ID",
204
+ "xs:IDREF",
205
+ "xs:IDREFS",
206
+ "xs:int",
207
+ "xs:integer",
208
+ "xs:item",
209
+ "xs:java",
210
+ "xs:language",
211
+ "xs:long",
212
+ "xs:Name",
213
+ "xs:NCName",
214
+ "xs:negativeInteger",
215
+ "xs:NMTOKEN",
216
+ "xs:NMTOKENS",
217
+ "xs:nonNegativeInteger",
218
+ "xs:nonPositiveInteger",
219
+ "xs:normalizedString",
220
+ "xs:NOTATION",
221
+ "xs:numeric",
222
+ "xs:positiveInteger",
223
+ "xs:precisionDecimal",
224
+ "xs:QName",
225
+ "xs:short",
226
+ "xs:string",
227
+ "xs:time",
228
+ "xs:token",
229
+ "xs:unsignedByte",
230
+ "xs:unsignedInt",
231
+ "xs:unsignedLong",
232
+ "xs:unsignedShort",
233
+ "xs:untyped",
234
+ "xs:untypedAtomic",
235
+ "xs:yearMonthDuration"
236
+ ], r = 0, o = d.length; r < o; r++)
237
+ a[d[r]] = t;
238
+ for (var f = ["eq", "ne", "lt", "le", "gt", "ge", ":=", "=", ">", ">=", "<", "<=", ".", "|", "?", "and", "or", "div", "idiv", "mod", "*", "/", "+", "-"], r = 0, o = f.length; r < o; r++)
239
+ a[f[r]] = n;
240
+ for (var m = [
241
+ "self::",
242
+ "attribute::",
243
+ "child::",
244
+ "descendant::",
245
+ "descendant-or-self::",
246
+ "parent::",
247
+ "ancestor::",
248
+ "ancestor-or-self::",
249
+ "following::",
250
+ "preceding::",
251
+ "following-sibling::",
252
+ "preceding-sibling::"
253
+ ], r = 0, o = m.length; r < o; r++)
254
+ a[m[r]] = c;
255
+ return a;
256
+ }();
257
+ function p(e, n, t) {
258
+ return n.tokenize = t, t(e, n);
259
+ }
260
+ function u(e, n) {
261
+ var t = e.next(), i = !1, c = _(e);
262
+ if (t == "<") {
263
+ if (e.match("!--", !0))
264
+ return p(e, n, S);
265
+ if (e.match("![CDATA", !1))
266
+ return n.tokenize = N, "tag";
267
+ if (e.match("?", !1))
268
+ return p(e, n, E);
269
+ var a = e.eat("/");
270
+ e.eatSpace();
271
+ for (var g = "", r; r = e.eat(/[^\s\u00a0=<>\"\'\/?]/); ) g += r;
272
+ return p(e, n, T(g, a));
273
+ } else {
274
+ if (t == "{")
275
+ return s(n, { type: "codeblock" }), null;
276
+ if (t == "}")
277
+ return l(n), null;
278
+ if (b(n))
279
+ return t == ">" ? "tag" : t == "/" && e.eat(">") ? (l(n), "tag") : "variable";
280
+ if (/\d/.test(t))
281
+ return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/), "atom";
282
+ if (t === "(" && e.eat(":"))
283
+ return s(n, { type: "comment" }), p(e, n, w);
284
+ if (!c && (t === '"' || t === "'"))
285
+ return p(e, n, v(t));
286
+ if (t === "$")
287
+ return p(e, n, I);
288
+ if (t === ":" && e.eat("="))
289
+ return "keyword";
290
+ if (t === "(")
291
+ return s(n, { type: "paren" }), null;
292
+ if (t === ")")
293
+ return l(n), null;
294
+ if (t === "[")
295
+ return s(n, { type: "bracket" }), null;
296
+ if (t === "]")
297
+ return l(n), null;
298
+ var o = h.propertyIsEnumerable(t) && h[t];
299
+ if (c && t === '"') for (; e.next() !== '"'; )
300
+ ;
301
+ if (c && t === "'") for (; e.next() !== "'"; )
302
+ ;
303
+ o || e.eatWhile(/[\w\$_-]/);
304
+ var d = e.eat(":");
305
+ !e.eat(":") && d && e.eatWhile(/[\w\$_-]/), e.match(/^[ \t]*\(/, !1) && (i = !0);
306
+ var f = e.current();
307
+ return o = h.propertyIsEnumerable(f) && h[f], i && !o && (o = { type: "function_call", style: "def" }), A(n) ? (l(n), "variable") : ((f == "element" || f == "attribute" || o.type == "axis_specifier") && s(n, { type: "xmlconstructor" }), o ? o.style : "variable");
308
+ }
309
+ }
310
+ function w(e, n) {
311
+ for (var t = !1, i = !1, c = 0, a; a = e.next(); ) {
312
+ if (a == ")" && t)
313
+ if (c > 0)
314
+ c--;
315
+ else {
316
+ l(n);
317
+ break;
318
+ }
319
+ else a == ":" && i && c++;
320
+ t = a == ":", i = a == "(";
321
+ }
322
+ return "comment";
323
+ }
324
+ function v(e, n) {
325
+ return function(t, i) {
326
+ var c;
327
+ if (D(i) && t.current() == e)
328
+ return l(i), n && (i.tokenize = n), "string";
329
+ if (s(i, { type: "string", name: e, tokenize: v(e, n) }), t.match("{", !1) && x(i))
330
+ return i.tokenize = u, "string";
331
+ for (; c = t.next(); )
332
+ if (c == e) {
333
+ l(i), n && (i.tokenize = n);
334
+ break;
335
+ } else if (t.match("{", !1) && x(i))
336
+ return i.tokenize = u, "string";
337
+ return "string";
338
+ };
339
+ }
340
+ function I(e, n) {
341
+ var t = /[\w\$_-]/;
342
+ if (e.eat('"')) {
343
+ for (; e.next() !== '"'; )
344
+ ;
345
+ e.eat(":");
346
+ } else
347
+ e.eatWhile(t), e.match(":=", !1) || e.eat(":");
348
+ return e.eatWhile(t), n.tokenize = u, "variable";
349
+ }
350
+ function T(e, n) {
351
+ return function(t, i) {
352
+ if (t.eatSpace(), n && t.eat(">"))
353
+ return l(i), i.tokenize = u, "tag";
354
+ if (t.eat("/") || s(i, { type: "tag", name: e, tokenize: u }), t.eat(">"))
355
+ i.tokenize = u;
356
+ else
357
+ return i.tokenize = k, "tag";
358
+ return "tag";
359
+ };
360
+ }
361
+ function k(e, n) {
362
+ var t = e.next();
363
+ return t == "/" && e.eat(">") ? (x(n) && l(n), b(n) && l(n), "tag") : t == ">" ? (x(n) && l(n), "tag") : t == "=" ? null : t == '"' || t == "'" ? p(e, n, v(t, k)) : (x(n) || s(n, { type: "attribute", tokenize: k }), e.eat(/[a-zA-Z_:]/), e.eatWhile(/[-a-zA-Z0-9_:.]/), e.eatSpace(), (e.match(">", !1) || e.match("/", !1)) && (l(n), n.tokenize = u), "attribute");
364
+ }
365
+ function S(e, n) {
366
+ for (var t; t = e.next(); )
367
+ if (t == "-" && e.match("->", !0))
368
+ return n.tokenize = u, "comment";
369
+ }
370
+ function N(e, n) {
371
+ for (var t; t = e.next(); )
372
+ if (t == "]" && e.match("]", !0))
373
+ return n.tokenize = u, "comment";
374
+ }
375
+ function E(e, n) {
376
+ for (var t; t = e.next(); )
377
+ if (t == "?" && e.match(">", !0))
378
+ return n.tokenize = u, "processingInstruction";
379
+ }
380
+ function b(e) {
381
+ return y(e, "tag");
382
+ }
383
+ function x(e) {
384
+ return y(e, "attribute");
385
+ }
386
+ function A(e) {
387
+ return y(e, "xmlconstructor");
388
+ }
389
+ function D(e) {
390
+ return y(e, "string");
391
+ }
392
+ function _(e) {
393
+ return e.current() === '"' ? e.match(/^[^\"]+\"\:/, !1) : e.current() === "'" ? e.match(/^[^\"]+\'\:/, !1) : !1;
394
+ }
395
+ function y(e, n) {
396
+ return e.stack.length && e.stack[e.stack.length - 1].type == n;
397
+ }
398
+ function s(e, n) {
399
+ e.stack.push(n);
400
+ }
401
+ function l(e) {
402
+ e.stack.pop();
403
+ var n = e.stack.length && e.stack[e.stack.length - 1].tokenize;
404
+ e.tokenize = n || u;
405
+ }
406
+ const C = {
407
+ name: "xquery",
408
+ startState: function() {
409
+ return {
410
+ tokenize: u,
411
+ cc: [],
412
+ stack: []
413
+ };
414
+ },
415
+ token: function(e, n) {
416
+ if (e.eatSpace()) return null;
417
+ var t = n.tokenize(e, n);
418
+ return t;
419
+ },
420
+ languageData: {
421
+ commentTokens: { block: { open: "(:", close: ":)" } }
422
+ }
423
+ };
424
+ export {
425
+ C as xQuery
426
+ };