Update Bot
This commit is contained in:
2
node_modules/esquery/README.md
generated
vendored
2
node_modules/esquery/README.md
generated
vendored
@@ -20,7 +20,7 @@ The following selectors are supported:
|
||||
* [adjacent sibling](http://dev.w3.org/csswg/selectors4/#adjacent-sibling-combinators): `node + adjacent`
|
||||
* [negation](http://dev.w3.org/csswg/selectors4/#negation-pseudo): `:not(ForStatement)`
|
||||
* [has](https://drafts.csswg.org/selectors-4/#has-pseudo): `:has(ForStatement)`, `:has(> ForStatement)`
|
||||
* [matches-any](http://dev.w3.org/csswg/selectors4/#matches): `:is([attr] > :first-child, :last-child)`
|
||||
* [matches-any](http://dev.w3.org/csswg/selectors4/#matches): `:matches([attr] > :first-child, :last-child)`
|
||||
* [subject indicator](http://dev.w3.org/csswg/selectors4/#subject): `!IfStatement > [name="foo"]`
|
||||
* class of AST node: `:statement`, `:expression`, `:declaration`, `:function`, or `:pattern`
|
||||
|
||||
|
||||
588
node_modules/esquery/dist/esquery.esm.js
generated
vendored
588
node_modules/esquery/dist/esquery.esm.js
generated
vendored
@@ -1,71 +1,72 @@
|
||||
function _arrayLikeToArray(r, a) {
|
||||
(null == a || a > r.length) && (a = r.length);
|
||||
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
||||
return n;
|
||||
}
|
||||
function _arrayWithHoles(r) {
|
||||
if (Array.isArray(r)) return r;
|
||||
}
|
||||
function _arrayWithoutHoles(r) {
|
||||
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
||||
}
|
||||
function _iterableToArray(r) {
|
||||
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
||||
}
|
||||
function _iterableToArrayLimit(r, l) {
|
||||
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
||||
if (null != t) {
|
||||
var e,
|
||||
n,
|
||||
i,
|
||||
u,
|
||||
a = [],
|
||||
f = !0,
|
||||
o = !1;
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
||||
if (null != _i) {
|
||||
var _s,
|
||||
_e,
|
||||
_x,
|
||||
_r,
|
||||
_arr = [],
|
||||
_n = !0,
|
||||
_d = !1;
|
||||
try {
|
||||
if (i = (t = t.call(r)).next, 0 === l) {
|
||||
if (Object(t) !== t) return;
|
||||
f = !1;
|
||||
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
||||
} catch (r) {
|
||||
o = !0, n = r;
|
||||
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
||||
if (Object(_i) !== _i) return;
|
||||
_n = !1;
|
||||
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
||||
} catch (err) {
|
||||
_d = !0, _e = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
||||
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
||||
} finally {
|
||||
if (o) throw n;
|
||||
if (_d) throw _e;
|
||||
}
|
||||
}
|
||||
return a;
|
||||
return _arr;
|
||||
}
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
function _typeof(obj) {
|
||||
"@babel/helpers - typeof";
|
||||
|
||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
||||
return typeof obj;
|
||||
} : function (obj) {
|
||||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||||
}, _typeof(obj);
|
||||
}
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
function _arrayWithHoles(arr) {
|
||||
if (Array.isArray(arr)) return arr;
|
||||
}
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
function _slicedToArray(r, e) {
|
||||
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
||||
}
|
||||
function _toConsumableArray(r) {
|
||||
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
||||
}
|
||||
function _typeof(o) {
|
||||
"@babel/helpers - typeof";
|
||||
|
||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
||||
return typeof o;
|
||||
} : function (o) {
|
||||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
||||
}, _typeof(o);
|
||||
}
|
||||
function _unsupportedIterableToArray(r, a) {
|
||||
if (r) {
|
||||
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
||||
var t = {}.toString.call(r).slice(8, -1);
|
||||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
||||
@@ -1070,26 +1071,15 @@ var parser = createCommonjsModule(function (module) {
|
||||
peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false),
|
||||
peg$c74 = "/",
|
||||
peg$c75 = peg$literalExpectation("/", false),
|
||||
peg$c76 = function peg$c76(pattern, flgs) {
|
||||
peg$c76 = /^[^\/]/,
|
||||
peg$c77 = peg$classExpectation(["/"], true, false),
|
||||
peg$c78 = function peg$c78(d, flgs) {
|
||||
return {
|
||||
type: 'regexp',
|
||||
value: new RegExp(pattern.join(''), flgs ? flgs.join('') : '')
|
||||
value: new RegExp(d.join(''), flgs ? flgs.join('') : '')
|
||||
};
|
||||
},
|
||||
peg$c77 = /^[^\]\\]/,
|
||||
peg$c78 = peg$classExpectation(["]", "\\"], true, false),
|
||||
peg$c79 = function peg$c79(cs) {
|
||||
return '[' + cs.join('') + ']';
|
||||
},
|
||||
peg$c80 = function peg$c80(a) {
|
||||
return '\\' + a;
|
||||
},
|
||||
peg$c81 = /^[^\/\\[]/,
|
||||
peg$c82 = peg$classExpectation(["/", "\\", "["], true, false),
|
||||
peg$c83 = function peg$c83(cs) {
|
||||
return cs.join('');
|
||||
},
|
||||
peg$c84 = function peg$c84(i, is) {
|
||||
peg$c79 = function peg$c79(i, is) {
|
||||
return {
|
||||
type: 'field',
|
||||
name: is.reduce(function (memo, p) {
|
||||
@@ -1097,55 +1087,53 @@ var parser = createCommonjsModule(function (module) {
|
||||
}, i)
|
||||
};
|
||||
},
|
||||
peg$c85 = ":not(",
|
||||
peg$c86 = peg$literalExpectation(":not(", false),
|
||||
peg$c87 = function peg$c87(ss) {
|
||||
peg$c80 = ":not(",
|
||||
peg$c81 = peg$literalExpectation(":not(", false),
|
||||
peg$c82 = function peg$c82(ss) {
|
||||
return {
|
||||
type: 'not',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c88 = ":matches(",
|
||||
peg$c89 = peg$literalExpectation(":matches(", false),
|
||||
peg$c90 = function peg$c90(ss) {
|
||||
peg$c83 = ":matches(",
|
||||
peg$c84 = peg$literalExpectation(":matches(", false),
|
||||
peg$c85 = function peg$c85(ss) {
|
||||
return {
|
||||
type: 'matches',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c91 = ":is(",
|
||||
peg$c92 = peg$literalExpectation(":is(", false),
|
||||
peg$c93 = ":has(",
|
||||
peg$c94 = peg$literalExpectation(":has(", false),
|
||||
peg$c95 = function peg$c95(ss) {
|
||||
peg$c86 = ":has(",
|
||||
peg$c87 = peg$literalExpectation(":has(", false),
|
||||
peg$c88 = function peg$c88(ss) {
|
||||
return {
|
||||
type: 'has',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c96 = ":first-child",
|
||||
peg$c97 = peg$literalExpectation(":first-child", false),
|
||||
peg$c98 = function peg$c98() {
|
||||
peg$c89 = ":first-child",
|
||||
peg$c90 = peg$literalExpectation(":first-child", false),
|
||||
peg$c91 = function peg$c91() {
|
||||
return nth(1);
|
||||
},
|
||||
peg$c99 = ":last-child",
|
||||
peg$c100 = peg$literalExpectation(":last-child", false),
|
||||
peg$c101 = function peg$c101() {
|
||||
peg$c92 = ":last-child",
|
||||
peg$c93 = peg$literalExpectation(":last-child", false),
|
||||
peg$c94 = function peg$c94() {
|
||||
return nthLast(1);
|
||||
},
|
||||
peg$c102 = ":nth-child(",
|
||||
peg$c103 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c104 = function peg$c104(n) {
|
||||
peg$c95 = ":nth-child(",
|
||||
peg$c96 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c97 = function peg$c97(n) {
|
||||
return nth(parseInt(n.join(''), 10));
|
||||
},
|
||||
peg$c105 = ":nth-last-child(",
|
||||
peg$c106 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c107 = function peg$c107(n) {
|
||||
peg$c98 = ":nth-last-child(",
|
||||
peg$c99 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c100 = function peg$c100(n) {
|
||||
return nthLast(parseInt(n.join(''), 10));
|
||||
},
|
||||
peg$c108 = ":",
|
||||
peg$c109 = peg$literalExpectation(":", false),
|
||||
peg$c110 = function peg$c110(c) {
|
||||
peg$c101 = ":",
|
||||
peg$c102 = peg$literalExpectation(":", false),
|
||||
peg$c103 = function peg$c103(c) {
|
||||
return {
|
||||
type: 'class',
|
||||
name: c
|
||||
@@ -1250,7 +1238,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsestart() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 0,
|
||||
var key = peg$currPos * 32 + 0,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1293,7 +1281,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parse_() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 1,
|
||||
var key = peg$currPos * 32 + 1,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1329,7 +1317,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseidentifierName() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 2,
|
||||
var key = peg$currPos * 32 + 2,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1374,7 +1362,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsebinaryOp() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 3,
|
||||
var key = peg$currPos * 32 + 3,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1504,7 +1492,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsehasSelectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
var key = peg$currPos * 36 + 4,
|
||||
var key = peg$currPos * 32 + 4,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1606,7 +1594,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseselectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
var key = peg$currPos * 36 + 5,
|
||||
var key = peg$currPos * 32 + 5,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1708,7 +1696,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsehasSelector() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 6,
|
||||
var key = peg$currPos * 32 + 6,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1740,7 +1728,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseselector() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 7,
|
||||
var key = peg$currPos * 32 + 7,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1802,7 +1790,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsesequence() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 8,
|
||||
var key = peg$currPos * 32 + 8,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1851,7 +1839,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseatom() {
|
||||
var s0;
|
||||
var key = peg$currPos * 36 + 9,
|
||||
var key = peg$currPos * 32 + 9,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1869,20 +1857,17 @@ var parser = createCommonjsModule(function (module) {
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsematches();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseis();
|
||||
s0 = peg$parsehas();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsehas();
|
||||
s0 = peg$parsefirstChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsefirstChild();
|
||||
s0 = peg$parselastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parselastChild();
|
||||
s0 = peg$parsenthChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthChild();
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1902,7 +1887,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsewildcard() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 10,
|
||||
var key = peg$currPos * 32 + 10,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1930,7 +1915,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseidentifier() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 11,
|
||||
var key = peg$currPos * 32 + 11,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1970,7 +1955,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseattr() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 12,
|
||||
var key = peg$currPos * 32 + 12,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2033,7 +2018,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseattrOps() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 13,
|
||||
var key = peg$currPos * 32 + 13,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2092,7 +2077,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseattrEqOps() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 14,
|
||||
var key = peg$currPos * 32 + 14,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2140,7 +2125,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseattrName() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 15,
|
||||
var key = peg$currPos * 32 + 15,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2218,7 +2203,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseattrValue() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 16,
|
||||
var key = peg$currPos * 32 + 16,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2317,7 +2302,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsestring() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 17,
|
||||
var key = peg$currPos * 32 + 17,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2581,7 +2566,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsenumber() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 18,
|
||||
var key = peg$currPos * 32 + 18,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2681,7 +2666,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsepath() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 19,
|
||||
var key = peg$currPos * 32 + 19,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2701,7 +2686,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsetype() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 20,
|
||||
var key = peg$currPos * 32 + 20,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2789,7 +2774,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseflags() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 21,
|
||||
var key = peg$currPos * 32 + 21,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2829,7 +2814,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseregex() {
|
||||
var s0, s1, s2, s3, s4;
|
||||
var key = peg$currPos * 36 + 22,
|
||||
var key = peg$currPos * 32 + 22,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2847,21 +2832,25 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c77);
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c77);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2884,7 +2873,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
s4 = null;
|
||||
}
|
||||
if (s4 !== peg$FAILED) {
|
||||
s1 = peg$c76(s2, s4);
|
||||
s1 = peg$c78(s2, s4);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2908,181 +2897,9 @@ var parser = createCommonjsModule(function (module) {
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_character_class() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 91) {
|
||||
s1 = peg$c31;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c32);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c78);
|
||||
}
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c78);
|
||||
}
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 93) {
|
||||
s3 = peg$c33;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c34);
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
s1 = peg$c79(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_escape() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 92) {
|
||||
s1 = peg$c52;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c53);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
if (input.length > peg$currPos) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c54);
|
||||
}
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
s1 = peg$c80(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_chars() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
s1 = [];
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c82);
|
||||
}
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
while (s2 !== peg$FAILED) {
|
||||
s1.push(s2);
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c82);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c83(s1);
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsefield() {
|
||||
var s0, s1, s2, s3, s4, s5, s6;
|
||||
var key = peg$currPos * 36 + 26,
|
||||
var key = peg$currPos * 32 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -3152,7 +2969,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
s1 = peg$c84(s2, s3);
|
||||
s1 = peg$c79(s2, s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3174,20 +2991,20 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsenegation() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 27,
|
||||
var key = peg$currPos * 32 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c85) {
|
||||
s1 = peg$c85;
|
||||
if (input.substr(peg$currPos, 5) === peg$c80) {
|
||||
s1 = peg$c80;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c86);
|
||||
peg$fail(peg$c81);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3207,7 +3024,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c87(s3);
|
||||
s1 = peg$c82(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3237,20 +3054,20 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsematches() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 28,
|
||||
var key = peg$currPos * 32 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 9) === peg$c88) {
|
||||
s1 = peg$c88;
|
||||
if (input.substr(peg$currPos, 9) === peg$c83) {
|
||||
s1 = peg$c83;
|
||||
peg$currPos += 9;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c89);
|
||||
peg$fail(peg$c84);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3270,70 +3087,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c90(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parseis() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 4) === peg$c91) {
|
||||
s1 = peg$c91;
|
||||
peg$currPos += 4;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c92);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s3 = peg$parseselectors();
|
||||
if (s3 !== peg$FAILED) {
|
||||
s4 = peg$parse_();
|
||||
if (s4 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 41) {
|
||||
s5 = peg$c69;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s5 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c70);
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c90(s3);
|
||||
s1 = peg$c85(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3363,20 +3117,20 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsehas() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 30,
|
||||
var key = peg$currPos * 32 + 26,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c93) {
|
||||
s1 = peg$c93;
|
||||
if (input.substr(peg$currPos, 5) === peg$c86) {
|
||||
s1 = peg$c86;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c94);
|
||||
peg$fail(peg$c87);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3396,7 +3150,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c95(s3);
|
||||
s1 = peg$c88(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3426,24 +3180,24 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsefirstChild() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 31,
|
||||
var key = peg$currPos * 32 + 27,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 12) === peg$c96) {
|
||||
s1 = peg$c96;
|
||||
if (input.substr(peg$currPos, 12) === peg$c89) {
|
||||
s1 = peg$c89;
|
||||
peg$currPos += 12;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c97);
|
||||
peg$fail(peg$c90);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c98();
|
||||
s1 = peg$c91();
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
@@ -3454,24 +3208,24 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parselastChild() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 32,
|
||||
var key = peg$currPos * 32 + 28,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c99) {
|
||||
s1 = peg$c99;
|
||||
if (input.substr(peg$currPos, 11) === peg$c92) {
|
||||
s1 = peg$c92;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c100);
|
||||
peg$fail(peg$c93);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c101();
|
||||
s1 = peg$c94();
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
@@ -3482,20 +3236,20 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsenthChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 33,
|
||||
var key = peg$currPos * 32 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c102) {
|
||||
s1 = peg$c102;
|
||||
if (input.substr(peg$currPos, 11) === peg$c95) {
|
||||
s1 = peg$c95;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c103);
|
||||
peg$fail(peg$c96);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3540,7 +3294,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c104(s3);
|
||||
s1 = peg$c97(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3570,20 +3324,20 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parsenthLastChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 34,
|
||||
var key = peg$currPos * 32 + 30,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 16) === peg$c105) {
|
||||
s1 = peg$c105;
|
||||
if (input.substr(peg$currPos, 16) === peg$c98) {
|
||||
s1 = peg$c98;
|
||||
peg$currPos += 16;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c106);
|
||||
peg$fail(peg$c99);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3628,7 +3382,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c107(s3);
|
||||
s1 = peg$c100(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3658,7 +3412,7 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
function peg$parseclass() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 35,
|
||||
var key = peg$currPos * 32 + 31,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -3666,18 +3420,18 @@ var parser = createCommonjsModule(function (module) {
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 58) {
|
||||
s1 = peg$c108;
|
||||
s1 = peg$c101;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c109);
|
||||
peg$fail(peg$c102);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parseidentifierName();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s1 = peg$c110(s2);
|
||||
s1 = peg$c103(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
|
||||
2
node_modules/esquery/dist/esquery.esm.min.js
generated
vendored
2
node_modules/esquery/dist/esquery.esm.min.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/esquery/dist/esquery.esm.min.js.map
generated
vendored
2
node_modules/esquery/dist/esquery.esm.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
588
node_modules/esquery/dist/esquery.js
generated
vendored
588
node_modules/esquery/dist/esquery.js
generated
vendored
@@ -4,74 +4,75 @@
|
||||
(global = global || self, global.esquery = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
function _arrayLikeToArray(r, a) {
|
||||
(null == a || a > r.length) && (a = r.length);
|
||||
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
||||
return n;
|
||||
}
|
||||
function _arrayWithHoles(r) {
|
||||
if (Array.isArray(r)) return r;
|
||||
}
|
||||
function _arrayWithoutHoles(r) {
|
||||
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
||||
}
|
||||
function _iterableToArray(r) {
|
||||
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
||||
}
|
||||
function _iterableToArrayLimit(r, l) {
|
||||
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
||||
if (null != t) {
|
||||
var e,
|
||||
n,
|
||||
i,
|
||||
u,
|
||||
a = [],
|
||||
f = !0,
|
||||
o = !1;
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
||||
if (null != _i) {
|
||||
var _s,
|
||||
_e,
|
||||
_x,
|
||||
_r,
|
||||
_arr = [],
|
||||
_n = !0,
|
||||
_d = !1;
|
||||
try {
|
||||
if (i = (t = t.call(r)).next, 0 === l) {
|
||||
if (Object(t) !== t) return;
|
||||
f = !1;
|
||||
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
||||
} catch (r) {
|
||||
o = !0, n = r;
|
||||
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
||||
if (Object(_i) !== _i) return;
|
||||
_n = !1;
|
||||
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
||||
} catch (err) {
|
||||
_d = !0, _e = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
||||
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
||||
} finally {
|
||||
if (o) throw n;
|
||||
if (_d) throw _e;
|
||||
}
|
||||
}
|
||||
return a;
|
||||
return _arr;
|
||||
}
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
function _typeof(obj) {
|
||||
"@babel/helpers - typeof";
|
||||
|
||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
||||
return typeof obj;
|
||||
} : function (obj) {
|
||||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||||
}, _typeof(obj);
|
||||
}
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
function _arrayWithHoles(arr) {
|
||||
if (Array.isArray(arr)) return arr;
|
||||
}
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
function _slicedToArray(r, e) {
|
||||
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
||||
}
|
||||
function _toConsumableArray(r) {
|
||||
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
||||
}
|
||||
function _typeof(o) {
|
||||
"@babel/helpers - typeof";
|
||||
|
||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
||||
return typeof o;
|
||||
} : function (o) {
|
||||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
||||
}, _typeof(o);
|
||||
}
|
||||
function _unsupportedIterableToArray(r, a) {
|
||||
if (r) {
|
||||
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
||||
var t = {}.toString.call(r).slice(8, -1);
|
||||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
||||
@@ -1076,26 +1077,15 @@
|
||||
peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false),
|
||||
peg$c74 = "/",
|
||||
peg$c75 = peg$literalExpectation("/", false),
|
||||
peg$c76 = function peg$c76(pattern, flgs) {
|
||||
peg$c76 = /^[^\/]/,
|
||||
peg$c77 = peg$classExpectation(["/"], true, false),
|
||||
peg$c78 = function peg$c78(d, flgs) {
|
||||
return {
|
||||
type: 'regexp',
|
||||
value: new RegExp(pattern.join(''), flgs ? flgs.join('') : '')
|
||||
value: new RegExp(d.join(''), flgs ? flgs.join('') : '')
|
||||
};
|
||||
},
|
||||
peg$c77 = /^[^\]\\]/,
|
||||
peg$c78 = peg$classExpectation(["]", "\\"], true, false),
|
||||
peg$c79 = function peg$c79(cs) {
|
||||
return '[' + cs.join('') + ']';
|
||||
},
|
||||
peg$c80 = function peg$c80(a) {
|
||||
return '\\' + a;
|
||||
},
|
||||
peg$c81 = /^[^\/\\[]/,
|
||||
peg$c82 = peg$classExpectation(["/", "\\", "["], true, false),
|
||||
peg$c83 = function peg$c83(cs) {
|
||||
return cs.join('');
|
||||
},
|
||||
peg$c84 = function peg$c84(i, is) {
|
||||
peg$c79 = function peg$c79(i, is) {
|
||||
return {
|
||||
type: 'field',
|
||||
name: is.reduce(function (memo, p) {
|
||||
@@ -1103,55 +1093,53 @@
|
||||
}, i)
|
||||
};
|
||||
},
|
||||
peg$c85 = ":not(",
|
||||
peg$c86 = peg$literalExpectation(":not(", false),
|
||||
peg$c87 = function peg$c87(ss) {
|
||||
peg$c80 = ":not(",
|
||||
peg$c81 = peg$literalExpectation(":not(", false),
|
||||
peg$c82 = function peg$c82(ss) {
|
||||
return {
|
||||
type: 'not',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c88 = ":matches(",
|
||||
peg$c89 = peg$literalExpectation(":matches(", false),
|
||||
peg$c90 = function peg$c90(ss) {
|
||||
peg$c83 = ":matches(",
|
||||
peg$c84 = peg$literalExpectation(":matches(", false),
|
||||
peg$c85 = function peg$c85(ss) {
|
||||
return {
|
||||
type: 'matches',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c91 = ":is(",
|
||||
peg$c92 = peg$literalExpectation(":is(", false),
|
||||
peg$c93 = ":has(",
|
||||
peg$c94 = peg$literalExpectation(":has(", false),
|
||||
peg$c95 = function peg$c95(ss) {
|
||||
peg$c86 = ":has(",
|
||||
peg$c87 = peg$literalExpectation(":has(", false),
|
||||
peg$c88 = function peg$c88(ss) {
|
||||
return {
|
||||
type: 'has',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c96 = ":first-child",
|
||||
peg$c97 = peg$literalExpectation(":first-child", false),
|
||||
peg$c98 = function peg$c98() {
|
||||
peg$c89 = ":first-child",
|
||||
peg$c90 = peg$literalExpectation(":first-child", false),
|
||||
peg$c91 = function peg$c91() {
|
||||
return nth(1);
|
||||
},
|
||||
peg$c99 = ":last-child",
|
||||
peg$c100 = peg$literalExpectation(":last-child", false),
|
||||
peg$c101 = function peg$c101() {
|
||||
peg$c92 = ":last-child",
|
||||
peg$c93 = peg$literalExpectation(":last-child", false),
|
||||
peg$c94 = function peg$c94() {
|
||||
return nthLast(1);
|
||||
},
|
||||
peg$c102 = ":nth-child(",
|
||||
peg$c103 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c104 = function peg$c104(n) {
|
||||
peg$c95 = ":nth-child(",
|
||||
peg$c96 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c97 = function peg$c97(n) {
|
||||
return nth(parseInt(n.join(''), 10));
|
||||
},
|
||||
peg$c105 = ":nth-last-child(",
|
||||
peg$c106 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c107 = function peg$c107(n) {
|
||||
peg$c98 = ":nth-last-child(",
|
||||
peg$c99 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c100 = function peg$c100(n) {
|
||||
return nthLast(parseInt(n.join(''), 10));
|
||||
},
|
||||
peg$c108 = ":",
|
||||
peg$c109 = peg$literalExpectation(":", false),
|
||||
peg$c110 = function peg$c110(c) {
|
||||
peg$c101 = ":",
|
||||
peg$c102 = peg$literalExpectation(":", false),
|
||||
peg$c103 = function peg$c103(c) {
|
||||
return {
|
||||
type: 'class',
|
||||
name: c
|
||||
@@ -1256,7 +1244,7 @@
|
||||
}
|
||||
function peg$parsestart() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 0,
|
||||
var key = peg$currPos * 32 + 0,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1299,7 +1287,7 @@
|
||||
}
|
||||
function peg$parse_() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 1,
|
||||
var key = peg$currPos * 32 + 1,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1335,7 +1323,7 @@
|
||||
}
|
||||
function peg$parseidentifierName() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 2,
|
||||
var key = peg$currPos * 32 + 2,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1380,7 +1368,7 @@
|
||||
}
|
||||
function peg$parsebinaryOp() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 3,
|
||||
var key = peg$currPos * 32 + 3,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1510,7 +1498,7 @@
|
||||
}
|
||||
function peg$parsehasSelectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
var key = peg$currPos * 36 + 4,
|
||||
var key = peg$currPos * 32 + 4,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1612,7 +1600,7 @@
|
||||
}
|
||||
function peg$parseselectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
var key = peg$currPos * 36 + 5,
|
||||
var key = peg$currPos * 32 + 5,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1714,7 +1702,7 @@
|
||||
}
|
||||
function peg$parsehasSelector() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 6,
|
||||
var key = peg$currPos * 32 + 6,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1746,7 +1734,7 @@
|
||||
}
|
||||
function peg$parseselector() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 7,
|
||||
var key = peg$currPos * 32 + 7,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1808,7 +1796,7 @@
|
||||
}
|
||||
function peg$parsesequence() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 8,
|
||||
var key = peg$currPos * 32 + 8,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1857,7 +1845,7 @@
|
||||
}
|
||||
function peg$parseatom() {
|
||||
var s0;
|
||||
var key = peg$currPos * 36 + 9,
|
||||
var key = peg$currPos * 32 + 9,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1875,20 +1863,17 @@
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsematches();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseis();
|
||||
s0 = peg$parsehas();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsehas();
|
||||
s0 = peg$parsefirstChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsefirstChild();
|
||||
s0 = peg$parselastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parselastChild();
|
||||
s0 = peg$parsenthChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthChild();
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1908,7 +1893,7 @@
|
||||
}
|
||||
function peg$parsewildcard() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 10,
|
||||
var key = peg$currPos * 32 + 10,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1936,7 +1921,7 @@
|
||||
}
|
||||
function peg$parseidentifier() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 11,
|
||||
var key = peg$currPos * 32 + 11,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1976,7 +1961,7 @@
|
||||
}
|
||||
function peg$parseattr() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 12,
|
||||
var key = peg$currPos * 32 + 12,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2039,7 +2024,7 @@
|
||||
}
|
||||
function peg$parseattrOps() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 13,
|
||||
var key = peg$currPos * 32 + 13,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2098,7 +2083,7 @@
|
||||
}
|
||||
function peg$parseattrEqOps() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 14,
|
||||
var key = peg$currPos * 32 + 14,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2146,7 +2131,7 @@
|
||||
}
|
||||
function peg$parseattrName() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 15,
|
||||
var key = peg$currPos * 32 + 15,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2224,7 +2209,7 @@
|
||||
}
|
||||
function peg$parseattrValue() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 16,
|
||||
var key = peg$currPos * 32 + 16,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2323,7 +2308,7 @@
|
||||
}
|
||||
function peg$parsestring() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 17,
|
||||
var key = peg$currPos * 32 + 17,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2587,7 +2572,7 @@
|
||||
}
|
||||
function peg$parsenumber() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 18,
|
||||
var key = peg$currPos * 32 + 18,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2687,7 +2672,7 @@
|
||||
}
|
||||
function peg$parsepath() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 19,
|
||||
var key = peg$currPos * 32 + 19,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2707,7 +2692,7 @@
|
||||
}
|
||||
function peg$parsetype() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 20,
|
||||
var key = peg$currPos * 32 + 20,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2795,7 +2780,7 @@
|
||||
}
|
||||
function peg$parseflags() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 21,
|
||||
var key = peg$currPos * 32 + 21,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2835,7 +2820,7 @@
|
||||
}
|
||||
function peg$parseregex() {
|
||||
var s0, s1, s2, s3, s4;
|
||||
var key = peg$currPos * 36 + 22,
|
||||
var key = peg$currPos * 32 + 22,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2853,21 +2838,25 @@
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c77);
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c77);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2890,7 +2879,7 @@
|
||||
s4 = null;
|
||||
}
|
||||
if (s4 !== peg$FAILED) {
|
||||
s1 = peg$c76(s2, s4);
|
||||
s1 = peg$c78(s2, s4);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2914,181 +2903,9 @@
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_character_class() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 91) {
|
||||
s1 = peg$c31;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c32);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c78);
|
||||
}
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c78);
|
||||
}
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 93) {
|
||||
s3 = peg$c33;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c34);
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
s1 = peg$c79(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_escape() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 92) {
|
||||
s1 = peg$c52;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c53);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
if (input.length > peg$currPos) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c54);
|
||||
}
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
s1 = peg$c80(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_chars() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
s1 = [];
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c82);
|
||||
}
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
while (s2 !== peg$FAILED) {
|
||||
s1.push(s2);
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c82);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c83(s1);
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsefield() {
|
||||
var s0, s1, s2, s3, s4, s5, s6;
|
||||
var key = peg$currPos * 36 + 26,
|
||||
var key = peg$currPos * 32 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -3158,7 +2975,7 @@
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
s1 = peg$c84(s2, s3);
|
||||
s1 = peg$c79(s2, s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3180,20 +2997,20 @@
|
||||
}
|
||||
function peg$parsenegation() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 27,
|
||||
var key = peg$currPos * 32 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c85) {
|
||||
s1 = peg$c85;
|
||||
if (input.substr(peg$currPos, 5) === peg$c80) {
|
||||
s1 = peg$c80;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c86);
|
||||
peg$fail(peg$c81);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3213,7 +3030,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c87(s3);
|
||||
s1 = peg$c82(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3243,20 +3060,20 @@
|
||||
}
|
||||
function peg$parsematches() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 28,
|
||||
var key = peg$currPos * 32 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 9) === peg$c88) {
|
||||
s1 = peg$c88;
|
||||
if (input.substr(peg$currPos, 9) === peg$c83) {
|
||||
s1 = peg$c83;
|
||||
peg$currPos += 9;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c89);
|
||||
peg$fail(peg$c84);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3276,70 +3093,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c90(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parseis() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 4) === peg$c91) {
|
||||
s1 = peg$c91;
|
||||
peg$currPos += 4;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c92);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s3 = peg$parseselectors();
|
||||
if (s3 !== peg$FAILED) {
|
||||
s4 = peg$parse_();
|
||||
if (s4 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 41) {
|
||||
s5 = peg$c69;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s5 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c70);
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c90(s3);
|
||||
s1 = peg$c85(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3369,20 +3123,20 @@
|
||||
}
|
||||
function peg$parsehas() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 30,
|
||||
var key = peg$currPos * 32 + 26,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c93) {
|
||||
s1 = peg$c93;
|
||||
if (input.substr(peg$currPos, 5) === peg$c86) {
|
||||
s1 = peg$c86;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c94);
|
||||
peg$fail(peg$c87);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3402,7 +3156,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c95(s3);
|
||||
s1 = peg$c88(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3432,24 +3186,24 @@
|
||||
}
|
||||
function peg$parsefirstChild() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 31,
|
||||
var key = peg$currPos * 32 + 27,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 12) === peg$c96) {
|
||||
s1 = peg$c96;
|
||||
if (input.substr(peg$currPos, 12) === peg$c89) {
|
||||
s1 = peg$c89;
|
||||
peg$currPos += 12;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c97);
|
||||
peg$fail(peg$c90);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c98();
|
||||
s1 = peg$c91();
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
@@ -3460,24 +3214,24 @@
|
||||
}
|
||||
function peg$parselastChild() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 32,
|
||||
var key = peg$currPos * 32 + 28,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c99) {
|
||||
s1 = peg$c99;
|
||||
if (input.substr(peg$currPos, 11) === peg$c92) {
|
||||
s1 = peg$c92;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c100);
|
||||
peg$fail(peg$c93);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c101();
|
||||
s1 = peg$c94();
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
@@ -3488,20 +3242,20 @@
|
||||
}
|
||||
function peg$parsenthChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 33,
|
||||
var key = peg$currPos * 32 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c102) {
|
||||
s1 = peg$c102;
|
||||
if (input.substr(peg$currPos, 11) === peg$c95) {
|
||||
s1 = peg$c95;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c103);
|
||||
peg$fail(peg$c96);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3546,7 +3300,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c104(s3);
|
||||
s1 = peg$c97(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3576,20 +3330,20 @@
|
||||
}
|
||||
function peg$parsenthLastChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 34,
|
||||
var key = peg$currPos * 32 + 30,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 16) === peg$c105) {
|
||||
s1 = peg$c105;
|
||||
if (input.substr(peg$currPos, 16) === peg$c98) {
|
||||
s1 = peg$c98;
|
||||
peg$currPos += 16;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c106);
|
||||
peg$fail(peg$c99);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -3634,7 +3388,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c107(s3);
|
||||
s1 = peg$c100(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -3664,7 +3418,7 @@
|
||||
}
|
||||
function peg$parseclass() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 35,
|
||||
var key = peg$currPos * 32 + 31,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -3672,18 +3426,18 @@
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 58) {
|
||||
s1 = peg$c108;
|
||||
s1 = peg$c101;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c109);
|
||||
peg$fail(peg$c102);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parseidentifierName();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s1 = peg$c110(s2);
|
||||
s1 = peg$c103(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
|
||||
588
node_modules/esquery/dist/esquery.lite.js
generated
vendored
588
node_modules/esquery/dist/esquery.lite.js
generated
vendored
@@ -6,74 +6,75 @@
|
||||
|
||||
estraverse = estraverse && Object.prototype.hasOwnProperty.call(estraverse, 'default') ? estraverse['default'] : estraverse;
|
||||
|
||||
function _arrayLikeToArray(r, a) {
|
||||
(null == a || a > r.length) && (a = r.length);
|
||||
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
||||
return n;
|
||||
}
|
||||
function _arrayWithHoles(r) {
|
||||
if (Array.isArray(r)) return r;
|
||||
}
|
||||
function _arrayWithoutHoles(r) {
|
||||
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
||||
}
|
||||
function _iterableToArray(r) {
|
||||
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
||||
}
|
||||
function _iterableToArrayLimit(r, l) {
|
||||
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
||||
if (null != t) {
|
||||
var e,
|
||||
n,
|
||||
i,
|
||||
u,
|
||||
a = [],
|
||||
f = !0,
|
||||
o = !1;
|
||||
function _iterableToArrayLimit(arr, i) {
|
||||
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
||||
if (null != _i) {
|
||||
var _s,
|
||||
_e,
|
||||
_x,
|
||||
_r,
|
||||
_arr = [],
|
||||
_n = !0,
|
||||
_d = !1;
|
||||
try {
|
||||
if (i = (t = t.call(r)).next, 0 === l) {
|
||||
if (Object(t) !== t) return;
|
||||
f = !1;
|
||||
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
||||
} catch (r) {
|
||||
o = !0, n = r;
|
||||
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
||||
if (Object(_i) !== _i) return;
|
||||
_n = !1;
|
||||
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
||||
} catch (err) {
|
||||
_d = !0, _e = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
||||
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
||||
} finally {
|
||||
if (o) throw n;
|
||||
if (_d) throw _e;
|
||||
}
|
||||
}
|
||||
return a;
|
||||
return _arr;
|
||||
}
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
function _typeof(obj) {
|
||||
"@babel/helpers - typeof";
|
||||
|
||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
||||
return typeof obj;
|
||||
} : function (obj) {
|
||||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
||||
}, _typeof(obj);
|
||||
}
|
||||
function _slicedToArray(arr, i) {
|
||||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
||||
}
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
function _arrayWithHoles(arr) {
|
||||
if (Array.isArray(arr)) return arr;
|
||||
}
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (!o) return;
|
||||
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor) n = o.constructor.name;
|
||||
if (n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
if (len == null || len > arr.length) len = arr.length;
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
function _slicedToArray(r, e) {
|
||||
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
||||
}
|
||||
function _toConsumableArray(r) {
|
||||
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
||||
}
|
||||
function _typeof(o) {
|
||||
"@babel/helpers - typeof";
|
||||
|
||||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
||||
return typeof o;
|
||||
} : function (o) {
|
||||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
||||
}, _typeof(o);
|
||||
}
|
||||
function _unsupportedIterableToArray(r, a) {
|
||||
if (r) {
|
||||
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
||||
var t = {}.toString.call(r).slice(8, -1);
|
||||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
||||
}
|
||||
function _nonIterableRest() {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
}
|
||||
|
||||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
||||
@@ -366,26 +367,15 @@
|
||||
peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false),
|
||||
peg$c74 = "/",
|
||||
peg$c75 = peg$literalExpectation("/", false),
|
||||
peg$c76 = function peg$c76(pattern, flgs) {
|
||||
peg$c76 = /^[^\/]/,
|
||||
peg$c77 = peg$classExpectation(["/"], true, false),
|
||||
peg$c78 = function peg$c78(d, flgs) {
|
||||
return {
|
||||
type: 'regexp',
|
||||
value: new RegExp(pattern.join(''), flgs ? flgs.join('') : '')
|
||||
value: new RegExp(d.join(''), flgs ? flgs.join('') : '')
|
||||
};
|
||||
},
|
||||
peg$c77 = /^[^\]\\]/,
|
||||
peg$c78 = peg$classExpectation(["]", "\\"], true, false),
|
||||
peg$c79 = function peg$c79(cs) {
|
||||
return '[' + cs.join('') + ']';
|
||||
},
|
||||
peg$c80 = function peg$c80(a) {
|
||||
return '\\' + a;
|
||||
},
|
||||
peg$c81 = /^[^\/\\[]/,
|
||||
peg$c82 = peg$classExpectation(["/", "\\", "["], true, false),
|
||||
peg$c83 = function peg$c83(cs) {
|
||||
return cs.join('');
|
||||
},
|
||||
peg$c84 = function peg$c84(i, is) {
|
||||
peg$c79 = function peg$c79(i, is) {
|
||||
return {
|
||||
type: 'field',
|
||||
name: is.reduce(function (memo, p) {
|
||||
@@ -393,55 +383,53 @@
|
||||
}, i)
|
||||
};
|
||||
},
|
||||
peg$c85 = ":not(",
|
||||
peg$c86 = peg$literalExpectation(":not(", false),
|
||||
peg$c87 = function peg$c87(ss) {
|
||||
peg$c80 = ":not(",
|
||||
peg$c81 = peg$literalExpectation(":not(", false),
|
||||
peg$c82 = function peg$c82(ss) {
|
||||
return {
|
||||
type: 'not',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c88 = ":matches(",
|
||||
peg$c89 = peg$literalExpectation(":matches(", false),
|
||||
peg$c90 = function peg$c90(ss) {
|
||||
peg$c83 = ":matches(",
|
||||
peg$c84 = peg$literalExpectation(":matches(", false),
|
||||
peg$c85 = function peg$c85(ss) {
|
||||
return {
|
||||
type: 'matches',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c91 = ":is(",
|
||||
peg$c92 = peg$literalExpectation(":is(", false),
|
||||
peg$c93 = ":has(",
|
||||
peg$c94 = peg$literalExpectation(":has(", false),
|
||||
peg$c95 = function peg$c95(ss) {
|
||||
peg$c86 = ":has(",
|
||||
peg$c87 = peg$literalExpectation(":has(", false),
|
||||
peg$c88 = function peg$c88(ss) {
|
||||
return {
|
||||
type: 'has',
|
||||
selectors: ss
|
||||
};
|
||||
},
|
||||
peg$c96 = ":first-child",
|
||||
peg$c97 = peg$literalExpectation(":first-child", false),
|
||||
peg$c98 = function peg$c98() {
|
||||
peg$c89 = ":first-child",
|
||||
peg$c90 = peg$literalExpectation(":first-child", false),
|
||||
peg$c91 = function peg$c91() {
|
||||
return nth(1);
|
||||
},
|
||||
peg$c99 = ":last-child",
|
||||
peg$c100 = peg$literalExpectation(":last-child", false),
|
||||
peg$c101 = function peg$c101() {
|
||||
peg$c92 = ":last-child",
|
||||
peg$c93 = peg$literalExpectation(":last-child", false),
|
||||
peg$c94 = function peg$c94() {
|
||||
return nthLast(1);
|
||||
},
|
||||
peg$c102 = ":nth-child(",
|
||||
peg$c103 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c104 = function peg$c104(n) {
|
||||
peg$c95 = ":nth-child(",
|
||||
peg$c96 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c97 = function peg$c97(n) {
|
||||
return nth(parseInt(n.join(''), 10));
|
||||
},
|
||||
peg$c105 = ":nth-last-child(",
|
||||
peg$c106 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c107 = function peg$c107(n) {
|
||||
peg$c98 = ":nth-last-child(",
|
||||
peg$c99 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c100 = function peg$c100(n) {
|
||||
return nthLast(parseInt(n.join(''), 10));
|
||||
},
|
||||
peg$c108 = ":",
|
||||
peg$c109 = peg$literalExpectation(":", false),
|
||||
peg$c110 = function peg$c110(c) {
|
||||
peg$c101 = ":",
|
||||
peg$c102 = peg$literalExpectation(":", false),
|
||||
peg$c103 = function peg$c103(c) {
|
||||
return {
|
||||
type: 'class',
|
||||
name: c
|
||||
@@ -546,7 +534,7 @@
|
||||
}
|
||||
function peg$parsestart() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 0,
|
||||
var key = peg$currPos * 32 + 0,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -589,7 +577,7 @@
|
||||
}
|
||||
function peg$parse_() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 1,
|
||||
var key = peg$currPos * 32 + 1,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -625,7 +613,7 @@
|
||||
}
|
||||
function peg$parseidentifierName() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 2,
|
||||
var key = peg$currPos * 32 + 2,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -670,7 +658,7 @@
|
||||
}
|
||||
function peg$parsebinaryOp() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 3,
|
||||
var key = peg$currPos * 32 + 3,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -800,7 +788,7 @@
|
||||
}
|
||||
function peg$parsehasSelectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
var key = peg$currPos * 36 + 4,
|
||||
var key = peg$currPos * 32 + 4,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -902,7 +890,7 @@
|
||||
}
|
||||
function peg$parseselectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
var key = peg$currPos * 36 + 5,
|
||||
var key = peg$currPos * 32 + 5,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1004,7 +992,7 @@
|
||||
}
|
||||
function peg$parsehasSelector() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 6,
|
||||
var key = peg$currPos * 32 + 6,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1036,7 +1024,7 @@
|
||||
}
|
||||
function peg$parseselector() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 7,
|
||||
var key = peg$currPos * 32 + 7,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1098,7 +1086,7 @@
|
||||
}
|
||||
function peg$parsesequence() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 8,
|
||||
var key = peg$currPos * 32 + 8,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1147,7 +1135,7 @@
|
||||
}
|
||||
function peg$parseatom() {
|
||||
var s0;
|
||||
var key = peg$currPos * 36 + 9,
|
||||
var key = peg$currPos * 32 + 9,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1165,20 +1153,17 @@
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsematches();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseis();
|
||||
s0 = peg$parsehas();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsehas();
|
||||
s0 = peg$parsefirstChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsefirstChild();
|
||||
s0 = peg$parselastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parselastChild();
|
||||
s0 = peg$parsenthChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthChild();
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1198,7 +1183,7 @@
|
||||
}
|
||||
function peg$parsewildcard() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 10,
|
||||
var key = peg$currPos * 32 + 10,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1226,7 +1211,7 @@
|
||||
}
|
||||
function peg$parseidentifier() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 11,
|
||||
var key = peg$currPos * 32 + 11,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1266,7 +1251,7 @@
|
||||
}
|
||||
function peg$parseattr() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 12,
|
||||
var key = peg$currPos * 32 + 12,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1329,7 +1314,7 @@
|
||||
}
|
||||
function peg$parseattrOps() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 13,
|
||||
var key = peg$currPos * 32 + 13,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1388,7 +1373,7 @@
|
||||
}
|
||||
function peg$parseattrEqOps() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 14,
|
||||
var key = peg$currPos * 32 + 14,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1436,7 +1421,7 @@
|
||||
}
|
||||
function peg$parseattrName() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 15,
|
||||
var key = peg$currPos * 32 + 15,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1514,7 +1499,7 @@
|
||||
}
|
||||
function peg$parseattrValue() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 16,
|
||||
var key = peg$currPos * 32 + 16,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1613,7 +1598,7 @@
|
||||
}
|
||||
function peg$parsestring() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 17,
|
||||
var key = peg$currPos * 32 + 17,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1877,7 +1862,7 @@
|
||||
}
|
||||
function peg$parsenumber() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 18,
|
||||
var key = peg$currPos * 32 + 18,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1977,7 +1962,7 @@
|
||||
}
|
||||
function peg$parsepath() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 19,
|
||||
var key = peg$currPos * 32 + 19,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -1997,7 +1982,7 @@
|
||||
}
|
||||
function peg$parsetype() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 20,
|
||||
var key = peg$currPos * 32 + 20,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2085,7 +2070,7 @@
|
||||
}
|
||||
function peg$parseflags() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 21,
|
||||
var key = peg$currPos * 32 + 21,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2125,7 +2110,7 @@
|
||||
}
|
||||
function peg$parseregex() {
|
||||
var s0, s1, s2, s3, s4;
|
||||
var key = peg$currPos * 36 + 22,
|
||||
var key = peg$currPos * 32 + 22,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2143,21 +2128,25 @@
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c77);
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c77);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2180,7 +2169,7 @@
|
||||
s4 = null;
|
||||
}
|
||||
if (s4 !== peg$FAILED) {
|
||||
s1 = peg$c76(s2, s4);
|
||||
s1 = peg$c78(s2, s4);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2204,181 +2193,9 @@
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_character_class() {
|
||||
var s0, s1, s2, s3;
|
||||
var key = peg$currPos * 36 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 91) {
|
||||
s1 = peg$c31;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c32);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c78);
|
||||
}
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c78);
|
||||
}
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 93) {
|
||||
s3 = peg$c33;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c34);
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
s1 = peg$c79(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_escape() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 92) {
|
||||
s1 = peg$c52;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c53);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
if (input.length > peg$currPos) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c54);
|
||||
}
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
s1 = peg$c80(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsere_chars() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
s1 = [];
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c82);
|
||||
}
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
while (s2 !== peg$FAILED) {
|
||||
s1.push(s2);
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c82);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c83(s1);
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parsefield() {
|
||||
var s0, s1, s2, s3, s4, s5, s6;
|
||||
var key = peg$currPos * 36 + 26,
|
||||
var key = peg$currPos * 32 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2448,7 +2265,7 @@
|
||||
}
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
s1 = peg$c84(s2, s3);
|
||||
s1 = peg$c79(s2, s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2470,20 +2287,20 @@
|
||||
}
|
||||
function peg$parsenegation() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 27,
|
||||
var key = peg$currPos * 32 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c85) {
|
||||
s1 = peg$c85;
|
||||
if (input.substr(peg$currPos, 5) === peg$c80) {
|
||||
s1 = peg$c80;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c86);
|
||||
peg$fail(peg$c81);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -2503,7 +2320,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c87(s3);
|
||||
s1 = peg$c82(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2533,20 +2350,20 @@
|
||||
}
|
||||
function peg$parsematches() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 28,
|
||||
var key = peg$currPos * 32 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 9) === peg$c88) {
|
||||
s1 = peg$c88;
|
||||
if (input.substr(peg$currPos, 9) === peg$c83) {
|
||||
s1 = peg$c83;
|
||||
peg$currPos += 9;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c89);
|
||||
peg$fail(peg$c84);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -2566,70 +2383,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c90(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
peg$resultsCache[key] = {
|
||||
nextPos: peg$currPos,
|
||||
result: s0
|
||||
};
|
||||
return s0;
|
||||
}
|
||||
function peg$parseis() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 4) === peg$c91) {
|
||||
s1 = peg$c91;
|
||||
peg$currPos += 4;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c92);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s3 = peg$parseselectors();
|
||||
if (s3 !== peg$FAILED) {
|
||||
s4 = peg$parse_();
|
||||
if (s4 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 41) {
|
||||
s5 = peg$c69;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s5 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c70);
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c90(s3);
|
||||
s1 = peg$c85(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2659,20 +2413,20 @@
|
||||
}
|
||||
function peg$parsehas() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 30,
|
||||
var key = peg$currPos * 32 + 26,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c93) {
|
||||
s1 = peg$c93;
|
||||
if (input.substr(peg$currPos, 5) === peg$c86) {
|
||||
s1 = peg$c86;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c94);
|
||||
peg$fail(peg$c87);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -2692,7 +2446,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c95(s3);
|
||||
s1 = peg$c88(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2722,24 +2476,24 @@
|
||||
}
|
||||
function peg$parsefirstChild() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 31,
|
||||
var key = peg$currPos * 32 + 27,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 12) === peg$c96) {
|
||||
s1 = peg$c96;
|
||||
if (input.substr(peg$currPos, 12) === peg$c89) {
|
||||
s1 = peg$c89;
|
||||
peg$currPos += 12;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c97);
|
||||
peg$fail(peg$c90);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c98();
|
||||
s1 = peg$c91();
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
@@ -2750,24 +2504,24 @@
|
||||
}
|
||||
function peg$parselastChild() {
|
||||
var s0, s1;
|
||||
var key = peg$currPos * 36 + 32,
|
||||
var key = peg$currPos * 32 + 28,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c99) {
|
||||
s1 = peg$c99;
|
||||
if (input.substr(peg$currPos, 11) === peg$c92) {
|
||||
s1 = peg$c92;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c100);
|
||||
peg$fail(peg$c93);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s1 = peg$c101();
|
||||
s1 = peg$c94();
|
||||
}
|
||||
s0 = s1;
|
||||
peg$resultsCache[key] = {
|
||||
@@ -2778,20 +2532,20 @@
|
||||
}
|
||||
function peg$parsenthChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 33,
|
||||
var key = peg$currPos * 32 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c102) {
|
||||
s1 = peg$c102;
|
||||
if (input.substr(peg$currPos, 11) === peg$c95) {
|
||||
s1 = peg$c95;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c103);
|
||||
peg$fail(peg$c96);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -2836,7 +2590,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c104(s3);
|
||||
s1 = peg$c97(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2866,20 +2620,20 @@
|
||||
}
|
||||
function peg$parsenthLastChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
var key = peg$currPos * 36 + 34,
|
||||
var key = peg$currPos * 32 + 30,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
return cached.result;
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 16) === peg$c105) {
|
||||
s1 = peg$c105;
|
||||
if (input.substr(peg$currPos, 16) === peg$c98) {
|
||||
s1 = peg$c98;
|
||||
peg$currPos += 16;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c106);
|
||||
peg$fail(peg$c99);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
@@ -2924,7 +2678,7 @@
|
||||
}
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
s1 = peg$c107(s3);
|
||||
s1 = peg$c100(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2954,7 +2708,7 @@
|
||||
}
|
||||
function peg$parseclass() {
|
||||
var s0, s1, s2;
|
||||
var key = peg$currPos * 36 + 35,
|
||||
var key = peg$currPos * 32 + 31,
|
||||
cached = peg$resultsCache[key];
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
@@ -2962,18 +2716,18 @@
|
||||
}
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 58) {
|
||||
s1 = peg$c108;
|
||||
s1 = peg$c101;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
{
|
||||
peg$fail(peg$c109);
|
||||
peg$fail(peg$c102);
|
||||
}
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parseidentifierName();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s1 = peg$c110(s2);
|
||||
s1 = peg$c103(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
|
||||
2
node_modules/esquery/dist/esquery.lite.min.js
generated
vendored
2
node_modules/esquery/dist/esquery.lite.min.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/esquery/dist/esquery.lite.min.js.map
generated
vendored
2
node_modules/esquery/dist/esquery.lite.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/esquery/dist/esquery.min.js
generated
vendored
2
node_modules/esquery/dist/esquery.min.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/esquery/dist/esquery.min.js.map
generated
vendored
2
node_modules/esquery/dist/esquery.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/esquery/package.json
generated
vendored
2
node_modules/esquery/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "esquery",
|
||||
"version": "1.7.0",
|
||||
"version": "1.6.0",
|
||||
"author": "Joel Feenstra <jrfeenst+esquery@gmail.com>",
|
||||
"contributors": [],
|
||||
"description": "A query library for ECMAScript AST using a CSS selector like query language.",
|
||||
|
||||
471
node_modules/esquery/parser.js
generated
vendored
471
node_modules/esquery/parser.js
generated
vendored
@@ -248,47 +248,38 @@
|
||||
peg$c73 = peg$classExpectation(["i", "m", "s", "u"], false, false),
|
||||
peg$c74 = "/",
|
||||
peg$c75 = peg$literalExpectation("/", false),
|
||||
peg$c76 = function(pattern, flgs) {
|
||||
return {
|
||||
type: 'regexp', value: new RegExp(pattern.join(''), flgs ? flgs.join('') : '')
|
||||
};
|
||||
peg$c76 = /^[^\/]/,
|
||||
peg$c77 = peg$classExpectation(["/"], true, false),
|
||||
peg$c78 = function(d, flgs) { return {
|
||||
type: 'regexp', value: new RegExp(d.join(''), flgs ? flgs.join('') : '') };
|
||||
},
|
||||
peg$c77 = /^[^\]\\]/,
|
||||
peg$c78 = peg$classExpectation(["]", "\\"], true, false),
|
||||
peg$c79 = function(cs) { return '[' + cs.join('') + ']'; },
|
||||
peg$c80 = function(a) { return '\\' + a; },
|
||||
peg$c81 = /^[^\/\\[]/,
|
||||
peg$c82 = peg$classExpectation(["/", "\\", "["], true, false),
|
||||
peg$c83 = function(cs) { return cs.join(''); },
|
||||
peg$c84 = function(i, is) {
|
||||
peg$c79 = function(i, is) {
|
||||
return { type: 'field', name: is.reduce(function(memo, p){ return memo + p[0] + p[1]; }, i)};
|
||||
},
|
||||
peg$c85 = ":not(",
|
||||
peg$c86 = peg$literalExpectation(":not(", false),
|
||||
peg$c87 = function(ss) { return { type: 'not', selectors: ss }; },
|
||||
peg$c88 = ":matches(",
|
||||
peg$c89 = peg$literalExpectation(":matches(", false),
|
||||
peg$c90 = function(ss) { return { type: 'matches', selectors: ss }; },
|
||||
peg$c91 = ":is(",
|
||||
peg$c92 = peg$literalExpectation(":is(", false),
|
||||
peg$c93 = ":has(",
|
||||
peg$c94 = peg$literalExpectation(":has(", false),
|
||||
peg$c95 = function(ss) { return { type: 'has', selectors: ss }; },
|
||||
peg$c96 = ":first-child",
|
||||
peg$c97 = peg$literalExpectation(":first-child", false),
|
||||
peg$c98 = function() { return nth(1); },
|
||||
peg$c99 = ":last-child",
|
||||
peg$c100 = peg$literalExpectation(":last-child", false),
|
||||
peg$c101 = function() { return nthLast(1); },
|
||||
peg$c102 = ":nth-child(",
|
||||
peg$c103 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c104 = function(n) { return nth(parseInt(n.join(''), 10)); },
|
||||
peg$c105 = ":nth-last-child(",
|
||||
peg$c106 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c107 = function(n) { return nthLast(parseInt(n.join(''), 10)); },
|
||||
peg$c108 = ":",
|
||||
peg$c109 = peg$literalExpectation(":", false),
|
||||
peg$c110 = function(c) {
|
||||
peg$c80 = ":not(",
|
||||
peg$c81 = peg$literalExpectation(":not(", false),
|
||||
peg$c82 = function(ss) { return { type: 'not', selectors: ss }; },
|
||||
peg$c83 = ":matches(",
|
||||
peg$c84 = peg$literalExpectation(":matches(", false),
|
||||
peg$c85 = function(ss) { return { type: 'matches', selectors: ss }; },
|
||||
peg$c86 = ":has(",
|
||||
peg$c87 = peg$literalExpectation(":has(", false),
|
||||
peg$c88 = function(ss) { return { type: 'has', selectors: ss }; },
|
||||
peg$c89 = ":first-child",
|
||||
peg$c90 = peg$literalExpectation(":first-child", false),
|
||||
peg$c91 = function() { return nth(1); },
|
||||
peg$c92 = ":last-child",
|
||||
peg$c93 = peg$literalExpectation(":last-child", false),
|
||||
peg$c94 = function() { return nthLast(1); },
|
||||
peg$c95 = ":nth-child(",
|
||||
peg$c96 = peg$literalExpectation(":nth-child(", false),
|
||||
peg$c97 = function(n) { return nth(parseInt(n.join(''), 10)); },
|
||||
peg$c98 = ":nth-last-child(",
|
||||
peg$c99 = peg$literalExpectation(":nth-last-child(", false),
|
||||
peg$c100 = function(n) { return nthLast(parseInt(n.join(''), 10)); },
|
||||
peg$c101 = ":",
|
||||
peg$c102 = peg$literalExpectation(":", false),
|
||||
peg$c103 = function(c) {
|
||||
return { type: 'class', name: c };
|
||||
},
|
||||
|
||||
@@ -433,7 +424,7 @@
|
||||
function peg$parsestart() {
|
||||
var s0, s1, s2, s3;
|
||||
|
||||
var key = peg$currPos * 36 + 0,
|
||||
var key = peg$currPos * 32 + 0,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -482,7 +473,7 @@
|
||||
function peg$parse_() {
|
||||
var s0, s1;
|
||||
|
||||
var key = peg$currPos * 36 + 1,
|
||||
var key = peg$currPos * 32 + 1,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -518,7 +509,7 @@
|
||||
function peg$parseidentifierName() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 2,
|
||||
var key = peg$currPos * 32 + 2,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -564,7 +555,7 @@
|
||||
function peg$parsebinaryOp() {
|
||||
var s0, s1, s2, s3;
|
||||
|
||||
var key = peg$currPos * 36 + 3,
|
||||
var key = peg$currPos * 32 + 3,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -694,7 +685,7 @@
|
||||
function peg$parsehasSelectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
|
||||
var key = peg$currPos * 36 + 4,
|
||||
var key = peg$currPos * 32 + 4,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -797,7 +788,7 @@
|
||||
function peg$parseselectors() {
|
||||
var s0, s1, s2, s3, s4, s5, s6, s7;
|
||||
|
||||
var key = peg$currPos * 36 + 5,
|
||||
var key = peg$currPos * 32 + 5,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -900,7 +891,7 @@
|
||||
function peg$parsehasSelector() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 6,
|
||||
var key = peg$currPos * 32 + 6,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -937,7 +928,7 @@
|
||||
function peg$parseselector() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 7,
|
||||
var key = peg$currPos * 32 + 7,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1004,7 +995,7 @@
|
||||
function peg$parsesequence() {
|
||||
var s0, s1, s2, s3;
|
||||
|
||||
var key = peg$currPos * 36 + 8,
|
||||
var key = peg$currPos * 32 + 8,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1056,7 +1047,7 @@
|
||||
function peg$parseatom() {
|
||||
var s0;
|
||||
|
||||
var key = peg$currPos * 36 + 9,
|
||||
var key = peg$currPos * 32 + 9,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1077,20 +1068,17 @@
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsematches();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseis();
|
||||
s0 = peg$parsehas();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsehas();
|
||||
s0 = peg$parsefirstChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsefirstChild();
|
||||
s0 = peg$parselastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parselastChild();
|
||||
s0 = peg$parsenthChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthChild();
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parsenthLastChild();
|
||||
if (s0 === peg$FAILED) {
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
s0 = peg$parseclass();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1111,7 +1099,7 @@
|
||||
function peg$parsewildcard() {
|
||||
var s0, s1;
|
||||
|
||||
var key = peg$currPos * 36 + 10,
|
||||
var key = peg$currPos * 32 + 10,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1142,7 +1130,7 @@
|
||||
function peg$parseidentifier() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 11,
|
||||
var key = peg$currPos * 32 + 11,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1185,7 +1173,7 @@
|
||||
function peg$parseattr() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 12,
|
||||
var key = peg$currPos * 32 + 12,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1249,7 +1237,7 @@
|
||||
function peg$parseattrOps() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 13,
|
||||
var key = peg$currPos * 32 + 13,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1307,7 +1295,7 @@
|
||||
function peg$parseattrEqOps() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 14,
|
||||
var key = peg$currPos * 32 + 14,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1356,7 +1344,7 @@
|
||||
function peg$parseattrName() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 15,
|
||||
var key = peg$currPos * 32 + 15,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1435,7 +1423,7 @@
|
||||
function peg$parseattrValue() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 16,
|
||||
var key = peg$currPos * 32 + 16,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1541,7 +1529,7 @@
|
||||
function peg$parsestring() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 17,
|
||||
var key = peg$currPos * 32 + 17,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1783,7 +1771,7 @@
|
||||
function peg$parsenumber() {
|
||||
var s0, s1, s2, s3;
|
||||
|
||||
var key = peg$currPos * 36 + 18,
|
||||
var key = peg$currPos * 32 + 18,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1878,7 +1866,7 @@
|
||||
function peg$parsepath() {
|
||||
var s0, s1;
|
||||
|
||||
var key = peg$currPos * 36 + 19,
|
||||
var key = peg$currPos * 32 + 19,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1903,7 +1891,7 @@
|
||||
function peg$parsetype() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 20,
|
||||
var key = peg$currPos * 32 + 20,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -1988,7 +1976,7 @@
|
||||
function peg$parseflags() {
|
||||
var s0, s1;
|
||||
|
||||
var key = peg$currPos * 36 + 21,
|
||||
var key = peg$currPos * 32 + 21,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2028,7 +2016,7 @@
|
||||
function peg$parseregex() {
|
||||
var s0, s1, s2, s3, s4;
|
||||
|
||||
var key = peg$currPos * 36 + 22,
|
||||
var key = peg$currPos * 32 + 22,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2047,22 +2035,22 @@
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
}
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c77); }
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
s3 = peg$parsere_character_class();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_chars();
|
||||
}
|
||||
if (peg$c76.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c77); }
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -2083,7 +2071,7 @@
|
||||
}
|
||||
if (s4 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c76(s2, s4);
|
||||
s1 = peg$c78(s2, s4);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2107,181 +2095,10 @@
|
||||
return s0;
|
||||
}
|
||||
|
||||
function peg$parsere_character_class() {
|
||||
var s0, s1, s2, s3;
|
||||
|
||||
var key = peg$currPos * 36 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
|
||||
return cached.result;
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 91) {
|
||||
s1 = peg$c31;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c32); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = [];
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c78); }
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
while (s3 !== peg$FAILED) {
|
||||
s2.push(s3);
|
||||
if (peg$c77.test(input.charAt(peg$currPos))) {
|
||||
s3 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c78); }
|
||||
}
|
||||
if (s3 === peg$FAILED) {
|
||||
s3 = peg$parsere_escape();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 93) {
|
||||
s3 = peg$c33;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s3 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c34); }
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c79(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
|
||||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
|
||||
|
||||
return s0;
|
||||
}
|
||||
|
||||
function peg$parsere_escape() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
|
||||
return cached.result;
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 92) {
|
||||
s1 = peg$c52;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c53); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
if (input.length > peg$currPos) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c54); }
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c80(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
|
||||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
|
||||
|
||||
return s0;
|
||||
}
|
||||
|
||||
function peg$parsere_chars() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
|
||||
return cached.result;
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
s1 = [];
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c82); }
|
||||
}
|
||||
if (s2 !== peg$FAILED) {
|
||||
while (s2 !== peg$FAILED) {
|
||||
s1.push(s2);
|
||||
if (peg$c81.test(input.charAt(peg$currPos))) {
|
||||
s2 = input.charAt(peg$currPos);
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s2 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c82); }
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c83(s1);
|
||||
}
|
||||
s0 = s1;
|
||||
|
||||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
|
||||
|
||||
return s0;
|
||||
}
|
||||
|
||||
function peg$parsefield() {
|
||||
var s0, s1, s2, s3, s4, s5, s6;
|
||||
|
||||
var key = peg$currPos * 36 + 26,
|
||||
var key = peg$currPos * 32 + 23,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2349,7 +2166,7 @@
|
||||
}
|
||||
if (s3 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c84(s2, s3);
|
||||
s1 = peg$c79(s2, s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2372,7 +2189,7 @@
|
||||
function peg$parsenegation() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 27,
|
||||
var key = peg$currPos * 32 + 24,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2382,12 +2199,12 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c85) {
|
||||
s1 = peg$c85;
|
||||
if (input.substr(peg$currPos, 5) === peg$c80) {
|
||||
s1 = peg$c80;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c86); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c81); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
@@ -2405,7 +2222,7 @@
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c87(s3);
|
||||
s1 = peg$c82(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2436,7 +2253,7 @@
|
||||
function peg$parsematches() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 28,
|
||||
var key = peg$currPos * 32 + 25,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2446,12 +2263,12 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 9) === peg$c88) {
|
||||
s1 = peg$c88;
|
||||
if (input.substr(peg$currPos, 9) === peg$c83) {
|
||||
s1 = peg$c83;
|
||||
peg$currPos += 9;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c89); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c84); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
@@ -2469,71 +2286,7 @@
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c90(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
s0 = peg$FAILED;
|
||||
}
|
||||
|
||||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 };
|
||||
|
||||
return s0;
|
||||
}
|
||||
|
||||
function peg$parseis() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
peg$currPos = cached.nextPos;
|
||||
|
||||
return cached.result;
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 4) === peg$c91) {
|
||||
s1 = peg$c91;
|
||||
peg$currPos += 4;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c92); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
if (s2 !== peg$FAILED) {
|
||||
s3 = peg$parseselectors();
|
||||
if (s3 !== peg$FAILED) {
|
||||
s4 = peg$parse_();
|
||||
if (s4 !== peg$FAILED) {
|
||||
if (input.charCodeAt(peg$currPos) === 41) {
|
||||
s5 = peg$c69;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s5 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c70); }
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c90(s3);
|
||||
s1 = peg$c85(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2564,7 +2317,7 @@
|
||||
function peg$parsehas() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 30,
|
||||
var key = peg$currPos * 32 + 26,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2574,12 +2327,12 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 5) === peg$c93) {
|
||||
s1 = peg$c93;
|
||||
if (input.substr(peg$currPos, 5) === peg$c86) {
|
||||
s1 = peg$c86;
|
||||
peg$currPos += 5;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c94); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c87); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
@@ -2597,7 +2350,7 @@
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c95(s3);
|
||||
s1 = peg$c88(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2628,7 +2381,7 @@
|
||||
function peg$parsefirstChild() {
|
||||
var s0, s1;
|
||||
|
||||
var key = peg$currPos * 36 + 31,
|
||||
var key = peg$currPos * 32 + 27,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2638,16 +2391,16 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 12) === peg$c96) {
|
||||
s1 = peg$c96;
|
||||
if (input.substr(peg$currPos, 12) === peg$c89) {
|
||||
s1 = peg$c89;
|
||||
peg$currPos += 12;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c97); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c90); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c98();
|
||||
s1 = peg$c91();
|
||||
}
|
||||
s0 = s1;
|
||||
|
||||
@@ -2659,7 +2412,7 @@
|
||||
function peg$parselastChild() {
|
||||
var s0, s1;
|
||||
|
||||
var key = peg$currPos * 36 + 32,
|
||||
var key = peg$currPos * 32 + 28,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2669,16 +2422,16 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c99) {
|
||||
s1 = peg$c99;
|
||||
if (input.substr(peg$currPos, 11) === peg$c92) {
|
||||
s1 = peg$c92;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c100); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c93); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c101();
|
||||
s1 = peg$c94();
|
||||
}
|
||||
s0 = s1;
|
||||
|
||||
@@ -2690,7 +2443,7 @@
|
||||
function peg$parsenthChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 33,
|
||||
var key = peg$currPos * 32 + 29,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2700,12 +2453,12 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 11) === peg$c102) {
|
||||
s1 = peg$c102;
|
||||
if (input.substr(peg$currPos, 11) === peg$c95) {
|
||||
s1 = peg$c95;
|
||||
peg$currPos += 11;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c103); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c96); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
@@ -2744,7 +2497,7 @@
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c104(s3);
|
||||
s1 = peg$c97(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2775,7 +2528,7 @@
|
||||
function peg$parsenthLastChild() {
|
||||
var s0, s1, s2, s3, s4, s5;
|
||||
|
||||
var key = peg$currPos * 36 + 34,
|
||||
var key = peg$currPos * 32 + 30,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2785,12 +2538,12 @@
|
||||
}
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.substr(peg$currPos, 16) === peg$c105) {
|
||||
s1 = peg$c105;
|
||||
if (input.substr(peg$currPos, 16) === peg$c98) {
|
||||
s1 = peg$c98;
|
||||
peg$currPos += 16;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c106); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c99); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parse_();
|
||||
@@ -2829,7 +2582,7 @@
|
||||
}
|
||||
if (s5 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c107(s3);
|
||||
s1 = peg$c100(s3);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
@@ -2860,7 +2613,7 @@
|
||||
function peg$parseclass() {
|
||||
var s0, s1, s2;
|
||||
|
||||
var key = peg$currPos * 36 + 35,
|
||||
var key = peg$currPos * 32 + 31,
|
||||
cached = peg$resultsCache[key];
|
||||
|
||||
if (cached) {
|
||||
@@ -2871,17 +2624,17 @@
|
||||
|
||||
s0 = peg$currPos;
|
||||
if (input.charCodeAt(peg$currPos) === 58) {
|
||||
s1 = peg$c108;
|
||||
s1 = peg$c101;
|
||||
peg$currPos++;
|
||||
} else {
|
||||
s1 = peg$FAILED;
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c109); }
|
||||
if (peg$silentFails === 0) { peg$fail(peg$c102); }
|
||||
}
|
||||
if (s1 !== peg$FAILED) {
|
||||
s2 = peg$parseidentifierName();
|
||||
if (s2 !== peg$FAILED) {
|
||||
peg$savedPos = s0;
|
||||
s1 = peg$c110(s2);
|
||||
s1 = peg$c103(s2);
|
||||
s0 = s1;
|
||||
} else {
|
||||
peg$currPos = s0;
|
||||
|
||||
Reference in New Issue
Block a user