@speclynx/apidom-ns-openapi-3-1 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -321,7 +321,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
321
321
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
322
322
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
323
323
|
/* harmony export */ });
|
|
324
|
-
/* harmony import */ var _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
324
|
+
/* harmony import */ var _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89627);
|
|
325
325
|
|
|
326
326
|
class JSONPointerEvaluateError extends _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
327
327
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPointerEvaluateError);
|
|
@@ -429,6 +429,94 @@ class SecurityScheme extends _speclynx_apidom_ns_openapi_3_0__WEBPACK_IMPORTED_M
|
|
|
429
429
|
|
|
430
430
|
/***/ }),
|
|
431
431
|
|
|
432
|
+
/***/ 1257:
|
|
433
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
434
|
+
|
|
435
|
+
__webpack_require__.r(__webpack_exports__);
|
|
436
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
437
|
+
/* harmony export */ decodeDoubleQuotedString: () => (/* binding */ decodeDoubleQuotedString),
|
|
438
|
+
/* harmony export */ decodeInteger: () => (/* binding */ decodeInteger),
|
|
439
|
+
/* harmony export */ decodeJSONValue: () => (/* binding */ decodeJSONValue),
|
|
440
|
+
/* harmony export */ decodeSingleQuotedString: () => (/* binding */ decodeSingleQuotedString)
|
|
441
|
+
/* harmony export */ });
|
|
442
|
+
const decodeDoubleQuotedString = str => {
|
|
443
|
+
return decodeJSONValue(`"${str}"`);
|
|
444
|
+
};
|
|
445
|
+
const decodeSingleQuotedString = str => {
|
|
446
|
+
// Decode single-quoted string escape sequences into raw text, then let JSON.stringify
|
|
447
|
+
// produce a correctly escaped double-quoted JSON string.
|
|
448
|
+
let decoded = '';
|
|
449
|
+
for (let i = 0; i < str.length; i++) {
|
|
450
|
+
const ch = str[i];
|
|
451
|
+
if (ch === '\\') {
|
|
452
|
+
i++;
|
|
453
|
+
if (i >= str.length) {
|
|
454
|
+
// Trailing backslash, treat it as a literal backslash
|
|
455
|
+
decoded += '\\';
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
const esc = str[i];
|
|
459
|
+
switch (esc) {
|
|
460
|
+
case 'n':
|
|
461
|
+
decoded += '\n';
|
|
462
|
+
break;
|
|
463
|
+
case 'r':
|
|
464
|
+
decoded += '\r';
|
|
465
|
+
break;
|
|
466
|
+
case 't':
|
|
467
|
+
decoded += '\t';
|
|
468
|
+
break;
|
|
469
|
+
case 'b':
|
|
470
|
+
decoded += '\b';
|
|
471
|
+
break;
|
|
472
|
+
case 'f':
|
|
473
|
+
decoded += '\f';
|
|
474
|
+
break;
|
|
475
|
+
case '/':
|
|
476
|
+
decoded += '/';
|
|
477
|
+
break;
|
|
478
|
+
case '\\':
|
|
479
|
+
decoded += '\\';
|
|
480
|
+
break;
|
|
481
|
+
case "'":
|
|
482
|
+
decoded += "'";
|
|
483
|
+
break;
|
|
484
|
+
case '"':
|
|
485
|
+
decoded += '"';
|
|
486
|
+
break;
|
|
487
|
+
case 'u':
|
|
488
|
+
{
|
|
489
|
+
// Unicode escape \uXXXX - grammar guarantees exactly 4 hex digits
|
|
490
|
+
const hex = str.slice(i + 1, i + 5);
|
|
491
|
+
decoded += String.fromCharCode(parseInt(hex, 16));
|
|
492
|
+
i += 4;
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
default:
|
|
496
|
+
// Unrecognized escape, keep the escaped character literally
|
|
497
|
+
decoded += esc;
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
} else {
|
|
501
|
+
decoded += ch;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
// Use JSON.stringify to produce a valid JSON string literal
|
|
505
|
+
return decodeJSONValue(JSON.stringify(decoded));
|
|
506
|
+
};
|
|
507
|
+
const decodeInteger = str => {
|
|
508
|
+
const value = parseInt(str, 10);
|
|
509
|
+
if (!Number.isSafeInteger(value)) {
|
|
510
|
+
throw new RangeError(`Integer value out of safe range [-(2^53)+1, (2^53)-1], got: ${str}`);
|
|
511
|
+
}
|
|
512
|
+
return value;
|
|
513
|
+
};
|
|
514
|
+
const decodeJSONValue = str => {
|
|
515
|
+
return JSON.parse(str);
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
/***/ }),
|
|
519
|
+
|
|
432
520
|
/***/ 1448:
|
|
433
521
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
434
522
|
|
|
@@ -1501,6 +1589,63 @@ class ParentSchemaAwareVisitor {
|
|
|
1501
1589
|
|
|
1502
1590
|
/***/ }),
|
|
1503
1591
|
|
|
1592
|
+
/***/ 4766:
|
|
1593
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1594
|
+
|
|
1595
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1596
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1597
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1598
|
+
/* harmony export */ });
|
|
1599
|
+
/* harmony import */ var _escape_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(26938);
|
|
1600
|
+
/* harmony import */ var _errors_JSONPathCompileError_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62977);
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* Compiles an array of selectors into a normalized JSONPath.
|
|
1605
|
+
* Follows RFC 9535 Section 2.7 normalized path format.
|
|
1606
|
+
*
|
|
1607
|
+
* @param {Array<string|number>} selectors - Array of name selectors (strings) or index selectors (numbers)
|
|
1608
|
+
* @returns {string} A normalized JSONPath string
|
|
1609
|
+
* @throws {JSONPathCompileError} If selectors is not an array or contains invalid selector types
|
|
1610
|
+
*
|
|
1611
|
+
* @example
|
|
1612
|
+
* compile(['a', 'b', 1]) // returns "$['a']['b'][1]"
|
|
1613
|
+
* compile([]) // returns "$"
|
|
1614
|
+
* compile(['foo', 0, 'bar']) // returns "$['foo'][0]['bar']"
|
|
1615
|
+
*/
|
|
1616
|
+
const compile = selectors => {
|
|
1617
|
+
if (!Array.isArray(selectors)) {
|
|
1618
|
+
throw new _errors_JSONPathCompileError_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](`Selectors must be an array, got: ${typeof selectors}`, {
|
|
1619
|
+
selectors
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
try {
|
|
1623
|
+
const segments = selectors.map(selector => {
|
|
1624
|
+
if (typeof selector === 'string') {
|
|
1625
|
+
// Name selector: escape and wrap in single quotes
|
|
1626
|
+
return `['${(0,_escape_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(selector)}']`;
|
|
1627
|
+
}
|
|
1628
|
+
if (typeof selector === 'number') {
|
|
1629
|
+
// Index selector: must be a non-negative safe integer (RFC 9535 Section 2.1)
|
|
1630
|
+
if (!Number.isSafeInteger(selector) || selector < 0) {
|
|
1631
|
+
throw new TypeError(`Index selector must be a non-negative safe integer, got: ${selector}`);
|
|
1632
|
+
}
|
|
1633
|
+
return `[${selector}]`;
|
|
1634
|
+
}
|
|
1635
|
+
throw new TypeError(`Selector must be a string or non-negative integer, got: ${typeof selector}`);
|
|
1636
|
+
});
|
|
1637
|
+
return `$${segments.join('')}`;
|
|
1638
|
+
} catch (error) {
|
|
1639
|
+
throw new _errors_JSONPathCompileError_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]('Failed to compile normalized JSONPath', {
|
|
1640
|
+
cause: error,
|
|
1641
|
+
selectors
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1645
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (compile);
|
|
1646
|
+
|
|
1647
|
+
/***/ }),
|
|
1648
|
+
|
|
1504
1649
|
/***/ 4793:
|
|
1505
1650
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1506
1651
|
|
|
@@ -2257,6 +2402,57 @@ const parse = (jsonPointer, {
|
|
|
2257
2402
|
|
|
2258
2403
|
/***/ }),
|
|
2259
2404
|
|
|
2405
|
+
/***/ 8789:
|
|
2406
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2407
|
+
|
|
2408
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2409
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2410
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2411
|
+
/* harmony export */ });
|
|
2412
|
+
/* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
|
|
2413
|
+
/* harmony import */ var _trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67724);
|
|
2414
|
+
/* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28186);
|
|
2415
|
+
/* harmony import */ var _translators_ASTTranslator_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(96998);
|
|
2416
|
+
/* harmony import */ var _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92639);
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
const grammar = new _grammar_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]();
|
|
2423
|
+
const parse = (jsonPath, {
|
|
2424
|
+
normalized = false,
|
|
2425
|
+
stats = false,
|
|
2426
|
+
trace = false,
|
|
2427
|
+
translator = new _translators_ASTTranslator_index_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]()
|
|
2428
|
+
} = {}) => {
|
|
2429
|
+
if (typeof jsonPath !== 'string') {
|
|
2430
|
+
throw new TypeError('JSONPath must be a string');
|
|
2431
|
+
}
|
|
2432
|
+
try {
|
|
2433
|
+
const parser = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Parser();
|
|
2434
|
+
if (translator) parser.ast = translator;
|
|
2435
|
+
if (stats) parser.stats = new apg_lite__WEBPACK_IMPORTED_MODULE_0__.Stats();
|
|
2436
|
+
if (trace) parser.trace = new _trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
|
2437
|
+
const startRule = normalized ? 'normalized-path' : 'jsonpath-query';
|
|
2438
|
+
const result = parser.parse(grammar, startRule, jsonPath);
|
|
2439
|
+
return {
|
|
2440
|
+
result,
|
|
2441
|
+
tree: result.success && translator ? parser.ast.getTree() : undefined,
|
|
2442
|
+
stats: parser.stats,
|
|
2443
|
+
trace: parser.trace
|
|
2444
|
+
};
|
|
2445
|
+
} catch (error) {
|
|
2446
|
+
throw new _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]('Unexpected error during JSONPath parsing', {
|
|
2447
|
+
cause: error,
|
|
2448
|
+
jsonPath
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
};
|
|
2452
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (parse);
|
|
2453
|
+
|
|
2454
|
+
/***/ }),
|
|
2455
|
+
|
|
2260
2456
|
/***/ 8867:
|
|
2261
2457
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2262
2458
|
|
|
@@ -3172,46 +3368,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3172
3368
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3173
3369
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3174
3370
|
/* harmony export */ });
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
super(message, options);
|
|
3178
|
-
this.name = this.constructor.name;
|
|
3179
|
-
if (typeof message === 'string') {
|
|
3180
|
-
this.message = message;
|
|
3181
|
-
}
|
|
3182
|
-
if (typeof Error.captureStackTrace === 'function') {
|
|
3183
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3184
|
-
} else {
|
|
3185
|
-
this.stack = new Error(message).stack;
|
|
3186
|
-
}
|
|
3371
|
+
/* harmony import */ var _elements_nces_OperationServers_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36882);
|
|
3372
|
+
/* harmony import */ var _ServersVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61965);
|
|
3187
3373
|
|
|
3188
|
-
/**
|
|
3189
|
-
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
3190
|
-
* Node.js is >= 16.9.0 supports error causes natively.
|
|
3191
|
-
*/
|
|
3192
|
-
if (options != null && typeof options === 'object' && Object.prototype.hasOwnProperty.call(options, 'cause') && !('cause' in this)) {
|
|
3193
|
-
const {
|
|
3194
|
-
cause
|
|
3195
|
-
} = options;
|
|
3196
|
-
this.cause = cause;
|
|
3197
|
-
if (cause instanceof Error && 'stack' in cause) {
|
|
3198
|
-
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
3374
|
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
} = options;
|
|
3210
|
-
Object.assign(this, causelessOptions);
|
|
3211
|
-
}
|
|
3375
|
+
/**
|
|
3376
|
+
* @public
|
|
3377
|
+
*/
|
|
3378
|
+
class ServersVisitor extends _ServersVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
3379
|
+
constructor(options) {
|
|
3380
|
+
super(options);
|
|
3381
|
+
this.element = new _elements_nces_OperationServers_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]();
|
|
3212
3382
|
}
|
|
3213
3383
|
}
|
|
3214
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
3384
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ServersVisitor);
|
|
3215
3385
|
|
|
3216
3386
|
/***/ }),
|
|
3217
3387
|
|
|
@@ -3678,6 +3848,62 @@ class ParametersVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_1__.BaseSpec
|
|
|
3678
3848
|
|
|
3679
3849
|
/***/ }),
|
|
3680
3850
|
|
|
3851
|
+
/***/ 13222:
|
|
3852
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3853
|
+
|
|
3854
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3855
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3856
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3857
|
+
/* harmony export */ });
|
|
3858
|
+
/* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
|
|
3859
|
+
/* harmony import */ var _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92639);
|
|
3860
|
+
|
|
3861
|
+
|
|
3862
|
+
const cst = nodeType => {
|
|
3863
|
+
return (state, chars, phraseIndex, phraseLength, data) => {
|
|
3864
|
+
var _data$options, _data$options2;
|
|
3865
|
+
if (!(typeof data === 'object' && data !== null && !Array.isArray(data))) {
|
|
3866
|
+
throw new _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]("parser's user data must be an object");
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
// drop the empty nodes
|
|
3870
|
+
if ((_data$options = data.options) !== null && _data$options !== void 0 && _data$options.optimize && phraseLength === 0 && (_data$options2 = data.options) !== null && _data$options2 !== void 0 && (_data$options2 = _data$options2.droppableTypes) !== null && _data$options2 !== void 0 && _data$options2.includes(nodeType)) {
|
|
3871
|
+
return;
|
|
3872
|
+
}
|
|
3873
|
+
if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_PRE) {
|
|
3874
|
+
const node = {
|
|
3875
|
+
type: nodeType,
|
|
3876
|
+
text: apg_lite__WEBPACK_IMPORTED_MODULE_0__.utilities.charsToString(chars, phraseIndex, phraseLength),
|
|
3877
|
+
start: phraseIndex,
|
|
3878
|
+
length: phraseLength,
|
|
3879
|
+
children: []
|
|
3880
|
+
};
|
|
3881
|
+
if (data.stack.length > 0) {
|
|
3882
|
+
var _data$options3, _data$options4;
|
|
3883
|
+
const parent = data.stack[data.stack.length - 1];
|
|
3884
|
+
const prevSibling = parent.children[parent.children.length - 1];
|
|
3885
|
+
const isTextNodeWithinTextNode = parent.type === 'text' && node.type === 'text';
|
|
3886
|
+
const shouldCollapse = ((_data$options3 = data.options) === null || _data$options3 === void 0 ? void 0 : _data$options3.optimize) && ((_data$options4 = data.options) === null || _data$options4 === void 0 || (_data$options4 = _data$options4.collapsibleTypes) === null || _data$options4 === void 0 ? void 0 : _data$options4.includes(node.type)) && (prevSibling === null || prevSibling === void 0 ? void 0 : prevSibling.type) === node.type;
|
|
3887
|
+
if (shouldCollapse) {
|
|
3888
|
+
prevSibling.text += node.text;
|
|
3889
|
+
prevSibling.length += node.length;
|
|
3890
|
+
} else if (!isTextNodeWithinTextNode) {
|
|
3891
|
+
parent.children.push(node);
|
|
3892
|
+
}
|
|
3893
|
+
} else {
|
|
3894
|
+
data.root = node;
|
|
3895
|
+
}
|
|
3896
|
+
data.stack.push(node);
|
|
3897
|
+
}
|
|
3898
|
+
if (state === apg_lite__WEBPACK_IMPORTED_MODULE_0__.identifiers.SEM_POST) {
|
|
3899
|
+
data.stack.pop();
|
|
3900
|
+
}
|
|
3901
|
+
};
|
|
3902
|
+
};
|
|
3903
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cst);
|
|
3904
|
+
|
|
3905
|
+
/***/ }),
|
|
3906
|
+
|
|
3681
3907
|
/***/ 13461:
|
|
3682
3908
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
3683
3909
|
|
|
@@ -7019,6 +7245,131 @@ var stubUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(void 0);
|
|
|
7019
7245
|
|
|
7020
7246
|
/***/ }),
|
|
7021
7247
|
|
|
7248
|
+
/***/ 23449:
|
|
7249
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
7250
|
+
|
|
7251
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7252
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7253
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7254
|
+
/* harmony export */ });
|
|
7255
|
+
/* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
|
|
7256
|
+
/* harmony import */ var _callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13222);
|
|
7257
|
+
|
|
7258
|
+
|
|
7259
|
+
class CSTTranslator extends apg_lite__WEBPACK_IMPORTED_MODULE_0__.Ast {
|
|
7260
|
+
constructor() {
|
|
7261
|
+
super();
|
|
7262
|
+
|
|
7263
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1
|
|
7264
|
+
this.callbacks['jsonpath-query'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('jsonpath-query');
|
|
7265
|
+
this.callbacks['segments'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('segments');
|
|
7266
|
+
this.callbacks['B'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7267
|
+
this.callbacks['S'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7268
|
+
|
|
7269
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1
|
|
7270
|
+
this.callbacks['root-identifier'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('root-identifier');
|
|
7271
|
+
|
|
7272
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.3
|
|
7273
|
+
this.callbacks['selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('selector');
|
|
7274
|
+
|
|
7275
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1
|
|
7276
|
+
this.callbacks['name-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('name-selector');
|
|
7277
|
+
this.callbacks['string-literal'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('string-literal');
|
|
7278
|
+
this.callbacks['double-quoted'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('double-quoted');
|
|
7279
|
+
this.callbacks['single-quoted'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('single-quoted');
|
|
7280
|
+
|
|
7281
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1
|
|
7282
|
+
this.callbacks['wildcard-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('wildcard-selector');
|
|
7283
|
+
|
|
7284
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1
|
|
7285
|
+
this.callbacks['index-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('index-selector');
|
|
7286
|
+
|
|
7287
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1
|
|
7288
|
+
this.callbacks['slice-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('slice-selector');
|
|
7289
|
+
this.callbacks['start'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('start');
|
|
7290
|
+
this.callbacks['end'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('end');
|
|
7291
|
+
this.callbacks['step'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('step');
|
|
7292
|
+
|
|
7293
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1
|
|
7294
|
+
this.callbacks['filter-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('filter-selector');
|
|
7295
|
+
this.callbacks['logical-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('logical-expr');
|
|
7296
|
+
this.callbacks['logical-or-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('logical-or-expr');
|
|
7297
|
+
this.callbacks['logical-and-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('logical-and-expr');
|
|
7298
|
+
this.callbacks['basic-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('basic-expr');
|
|
7299
|
+
this.callbacks['paren-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('paren-expr');
|
|
7300
|
+
this.callbacks['logical-not-op'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('logical-not-op');
|
|
7301
|
+
this.callbacks['test-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('test-expr');
|
|
7302
|
+
this.callbacks['filter-query'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('filter-query');
|
|
7303
|
+
this.callbacks['rel-query'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('rel-query');
|
|
7304
|
+
this.callbacks['current-node-identifier'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('current-node-identifier');
|
|
7305
|
+
this.callbacks['comparison-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('comparison-expr');
|
|
7306
|
+
this.callbacks['literal'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('literal');
|
|
7307
|
+
this.callbacks['comparable'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('comparable');
|
|
7308
|
+
this.callbacks['comparison-op'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('comparison-op');
|
|
7309
|
+
this.callbacks['singular-query'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('singular-query');
|
|
7310
|
+
this.callbacks['rel-singular-query'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('rel-singular-query');
|
|
7311
|
+
this.callbacks['abs-singular-query'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('abs-singular-query');
|
|
7312
|
+
this.callbacks['singular-query-segments'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('singular-query-segments');
|
|
7313
|
+
this.callbacks['name-segment'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('name-segment');
|
|
7314
|
+
this.callbacks['index-segment'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('index-segment');
|
|
7315
|
+
this.callbacks['number'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('number');
|
|
7316
|
+
this.callbacks['true'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('true');
|
|
7317
|
+
this.callbacks['false'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('false');
|
|
7318
|
+
this.callbacks['null'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('null');
|
|
7319
|
+
|
|
7320
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.4
|
|
7321
|
+
this.callbacks['function-name'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('function-name');
|
|
7322
|
+
this.callbacks['function-expr'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('function-expr');
|
|
7323
|
+
this.callbacks['function-argument'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('function-argument');
|
|
7324
|
+
|
|
7325
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.5
|
|
7326
|
+
this.callbacks['segment'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('segment');
|
|
7327
|
+
|
|
7328
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1
|
|
7329
|
+
this.callbacks['child-segment'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('child-segment');
|
|
7330
|
+
this.callbacks['bracketed-selection'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('bracketed-selection');
|
|
7331
|
+
this.callbacks['member-name-shorthand'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('member-name-shorthand');
|
|
7332
|
+
|
|
7333
|
+
// https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1
|
|
7334
|
+
this.callbacks['descendant-segment'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('descendant-segment');
|
|
7335
|
+
|
|
7336
|
+
// https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths
|
|
7337
|
+
this.callbacks['normalized-path'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('normalized-path');
|
|
7338
|
+
this.callbacks['normal-index-segment'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('normal-index-segment');
|
|
7339
|
+
this.callbacks['normal-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('normal-selector');
|
|
7340
|
+
this.callbacks['normal-name-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('normal-name-selector');
|
|
7341
|
+
this.callbacks['normal-index-selector'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('normal-index-selector');
|
|
7342
|
+
this.callbacks['normal-single-quoted'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('normal-single-quoted');
|
|
7343
|
+
|
|
7344
|
+
// Surrogate named rules
|
|
7345
|
+
this.callbacks['dot-prefix'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7346
|
+
this.callbacks['double-dot-prefix'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7347
|
+
this.callbacks['left-bracket'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7348
|
+
this.callbacks['right-bracket'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7349
|
+
this.callbacks['comma'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7350
|
+
this.callbacks['colon'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7351
|
+
this.callbacks['dquote'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7352
|
+
this.callbacks['squote'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7353
|
+
this.callbacks['questionmark'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7354
|
+
this.callbacks['disjunction'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7355
|
+
this.callbacks['conjunction'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7356
|
+
this.callbacks['left-paren'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7357
|
+
this.callbacks['right-paren'] = (0,_callbacks_cst_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])('text');
|
|
7358
|
+
}
|
|
7359
|
+
getTree() {
|
|
7360
|
+
const data = {
|
|
7361
|
+
stack: [],
|
|
7362
|
+
root: null
|
|
7363
|
+
};
|
|
7364
|
+
this.translate(data);
|
|
7365
|
+
delete data.stack;
|
|
7366
|
+
return data;
|
|
7367
|
+
}
|
|
7368
|
+
}
|
|
7369
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CSTTranslator);
|
|
7370
|
+
|
|
7371
|
+
/***/ }),
|
|
7372
|
+
|
|
7022
7373
|
/***/ 23496:
|
|
7023
7374
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7024
7375
|
|
|
@@ -7862,7 +8213,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7862
8213
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7863
8214
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7864
8215
|
/* harmony export */ });
|
|
7865
|
-
/* harmony import */ var _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8216
|
+
/* harmony import */ var _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89627);
|
|
7866
8217
|
|
|
7867
8218
|
class JSONPointerParseError extends _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
7868
8219
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPointerParseError);
|
|
@@ -7958,6 +8309,71 @@ var _isArguments = /*#__PURE__*/function () {
|
|
|
7958
8309
|
|
|
7959
8310
|
/***/ }),
|
|
7960
8311
|
|
|
8312
|
+
/***/ 26938:
|
|
8313
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
8314
|
+
|
|
8315
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8316
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8317
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8318
|
+
/* harmony export */ });
|
|
8319
|
+
/**
|
|
8320
|
+
* Escapes a string for use in a normalized JSONPath name selector.
|
|
8321
|
+
* Follows RFC 9535 Section 2.7 escaping rules for single-quoted strings.
|
|
8322
|
+
*
|
|
8323
|
+
* @param {string} selector - The string to escape
|
|
8324
|
+
* @returns {string} The escaped string (without surrounding quotes)
|
|
8325
|
+
*/
|
|
8326
|
+
const escape = selector => {
|
|
8327
|
+
if (typeof selector !== 'string') {
|
|
8328
|
+
throw new TypeError('Selector must be a string');
|
|
8329
|
+
}
|
|
8330
|
+
let escaped = '';
|
|
8331
|
+
for (const char of selector) {
|
|
8332
|
+
const codePoint = char.codePointAt(0);
|
|
8333
|
+
switch (codePoint) {
|
|
8334
|
+
case 0x08:
|
|
8335
|
+
// backspace
|
|
8336
|
+
escaped += '\\b';
|
|
8337
|
+
break;
|
|
8338
|
+
case 0x09:
|
|
8339
|
+
// horizontal tab
|
|
8340
|
+
escaped += '\\t';
|
|
8341
|
+
break;
|
|
8342
|
+
case 0x0a:
|
|
8343
|
+
// line feed
|
|
8344
|
+
escaped += '\\n';
|
|
8345
|
+
break;
|
|
8346
|
+
case 0x0c:
|
|
8347
|
+
// form feed
|
|
8348
|
+
escaped += '\\f';
|
|
8349
|
+
break;
|
|
8350
|
+
case 0x0d:
|
|
8351
|
+
// carriage return
|
|
8352
|
+
escaped += '\\r';
|
|
8353
|
+
break;
|
|
8354
|
+
case 0x27:
|
|
8355
|
+
// apostrophe '
|
|
8356
|
+
escaped += "\\'";
|
|
8357
|
+
break;
|
|
8358
|
+
case 0x5c:
|
|
8359
|
+
// backslash \
|
|
8360
|
+
escaped += '\\\\';
|
|
8361
|
+
break;
|
|
8362
|
+
default:
|
|
8363
|
+
// Other control characters (U+0000-U+001F except those handled above)
|
|
8364
|
+
if (codePoint <= 0x1f) {
|
|
8365
|
+
escaped += `\\u${codePoint.toString(16).padStart(4, '0')}`;
|
|
8366
|
+
} else {
|
|
8367
|
+
escaped += char;
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
8370
|
+
}
|
|
8371
|
+
return escaped;
|
|
8372
|
+
};
|
|
8373
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (escape);
|
|
8374
|
+
|
|
8375
|
+
/***/ }),
|
|
8376
|
+
|
|
7961
8377
|
/***/ 27112:
|
|
7962
8378
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7963
8379
|
|
|
@@ -8885,27 +9301,2872 @@ class StringElement extends _Element_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
|
8885
9301
|
}
|
|
8886
9302
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StringElement);
|
|
8887
9303
|
|
|
8888
|
-
/***/ }),
|
|
9304
|
+
/***/ }),
|
|
9305
|
+
|
|
9306
|
+
/***/ 28152:
|
|
9307
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
9308
|
+
|
|
9309
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9310
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9311
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
9312
|
+
/* harmony export */ });
|
|
9313
|
+
/* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3664);
|
|
9314
|
+
|
|
9315
|
+
/**
|
|
9316
|
+
* @public
|
|
9317
|
+
*/
|
|
9318
|
+
class $RefVisitor extends _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
9319
|
+
StringElement(path) {
|
|
9320
|
+
super.enter(path);
|
|
9321
|
+
this.element.classes.push('reference-value');
|
|
9322
|
+
}
|
|
9323
|
+
}
|
|
9324
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ($RefVisitor);
|
|
9325
|
+
|
|
9326
|
+
/***/ }),
|
|
9327
|
+
|
|
9328
|
+
/***/ 28186:
|
|
9329
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
9330
|
+
|
|
9331
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9332
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9333
|
+
/* harmony export */ "default": () => (/* binding */ grammar)
|
|
9334
|
+
/* harmony export */ });
|
|
9335
|
+
// copyright: Copyright (c) 2024 Lowell D. Thomas, all rights reserved<br>
|
|
9336
|
+
// license: BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)<br>
|
|
9337
|
+
//
|
|
9338
|
+
// Generated by apg-js, Version 4.4.0 [apg-js](https://github.com/ldthomas/apg-js)
|
|
9339
|
+
function grammar() {
|
|
9340
|
+
// ```
|
|
9341
|
+
// SUMMARY
|
|
9342
|
+
// rules = 91
|
|
9343
|
+
// udts = 0
|
|
9344
|
+
// opcodes = 423
|
|
9345
|
+
// --- ABNF original opcodes
|
|
9346
|
+
// ALT = 41
|
|
9347
|
+
// CAT = 60
|
|
9348
|
+
// REP = 32
|
|
9349
|
+
// RNM = 178
|
|
9350
|
+
// TLS = 64
|
|
9351
|
+
// TBS = 28
|
|
9352
|
+
// TRG = 20
|
|
9353
|
+
// --- SABNF superset opcodes
|
|
9354
|
+
// UDT = 0
|
|
9355
|
+
// AND = 0
|
|
9356
|
+
// NOT = 0
|
|
9357
|
+
// characters = [9 - 1114111]
|
|
9358
|
+
// ```
|
|
9359
|
+
/* OBJECT IDENTIFIER (for internal parser use) */
|
|
9360
|
+
this.grammarObject = 'grammarObject';
|
|
9361
|
+
|
|
9362
|
+
/* RULES */
|
|
9363
|
+
this.rules = [];
|
|
9364
|
+
this.rules[0] = {
|
|
9365
|
+
name: 'jsonpath-query',
|
|
9366
|
+
lower: 'jsonpath-query',
|
|
9367
|
+
index: 0,
|
|
9368
|
+
isBkr: false
|
|
9369
|
+
};
|
|
9370
|
+
this.rules[1] = {
|
|
9371
|
+
name: 'segments',
|
|
9372
|
+
lower: 'segments',
|
|
9373
|
+
index: 1,
|
|
9374
|
+
isBkr: false
|
|
9375
|
+
};
|
|
9376
|
+
this.rules[2] = {
|
|
9377
|
+
name: 'B',
|
|
9378
|
+
lower: 'b',
|
|
9379
|
+
index: 2,
|
|
9380
|
+
isBkr: false
|
|
9381
|
+
};
|
|
9382
|
+
this.rules[3] = {
|
|
9383
|
+
name: 'S',
|
|
9384
|
+
lower: 's',
|
|
9385
|
+
index: 3,
|
|
9386
|
+
isBkr: false
|
|
9387
|
+
};
|
|
9388
|
+
this.rules[4] = {
|
|
9389
|
+
name: 'root-identifier',
|
|
9390
|
+
lower: 'root-identifier',
|
|
9391
|
+
index: 4,
|
|
9392
|
+
isBkr: false
|
|
9393
|
+
};
|
|
9394
|
+
this.rules[5] = {
|
|
9395
|
+
name: 'selector',
|
|
9396
|
+
lower: 'selector',
|
|
9397
|
+
index: 5,
|
|
9398
|
+
isBkr: false
|
|
9399
|
+
};
|
|
9400
|
+
this.rules[6] = {
|
|
9401
|
+
name: 'name-selector',
|
|
9402
|
+
lower: 'name-selector',
|
|
9403
|
+
index: 6,
|
|
9404
|
+
isBkr: false
|
|
9405
|
+
};
|
|
9406
|
+
this.rules[7] = {
|
|
9407
|
+
name: 'string-literal',
|
|
9408
|
+
lower: 'string-literal',
|
|
9409
|
+
index: 7,
|
|
9410
|
+
isBkr: false
|
|
9411
|
+
};
|
|
9412
|
+
this.rules[8] = {
|
|
9413
|
+
name: 'double-quoted',
|
|
9414
|
+
lower: 'double-quoted',
|
|
9415
|
+
index: 8,
|
|
9416
|
+
isBkr: false
|
|
9417
|
+
};
|
|
9418
|
+
this.rules[9] = {
|
|
9419
|
+
name: 'single-quoted',
|
|
9420
|
+
lower: 'single-quoted',
|
|
9421
|
+
index: 9,
|
|
9422
|
+
isBkr: false
|
|
9423
|
+
};
|
|
9424
|
+
this.rules[10] = {
|
|
9425
|
+
name: 'ESC',
|
|
9426
|
+
lower: 'esc',
|
|
9427
|
+
index: 10,
|
|
9428
|
+
isBkr: false
|
|
9429
|
+
};
|
|
9430
|
+
this.rules[11] = {
|
|
9431
|
+
name: 'unescaped',
|
|
9432
|
+
lower: 'unescaped',
|
|
9433
|
+
index: 11,
|
|
9434
|
+
isBkr: false
|
|
9435
|
+
};
|
|
9436
|
+
this.rules[12] = {
|
|
9437
|
+
name: 'escapable',
|
|
9438
|
+
lower: 'escapable',
|
|
9439
|
+
index: 12,
|
|
9440
|
+
isBkr: false
|
|
9441
|
+
};
|
|
9442
|
+
this.rules[13] = {
|
|
9443
|
+
name: 'hexchar',
|
|
9444
|
+
lower: 'hexchar',
|
|
9445
|
+
index: 13,
|
|
9446
|
+
isBkr: false
|
|
9447
|
+
};
|
|
9448
|
+
this.rules[14] = {
|
|
9449
|
+
name: 'non-surrogate',
|
|
9450
|
+
lower: 'non-surrogate',
|
|
9451
|
+
index: 14,
|
|
9452
|
+
isBkr: false
|
|
9453
|
+
};
|
|
9454
|
+
this.rules[15] = {
|
|
9455
|
+
name: 'high-surrogate',
|
|
9456
|
+
lower: 'high-surrogate',
|
|
9457
|
+
index: 15,
|
|
9458
|
+
isBkr: false
|
|
9459
|
+
};
|
|
9460
|
+
this.rules[16] = {
|
|
9461
|
+
name: 'low-surrogate',
|
|
9462
|
+
lower: 'low-surrogate',
|
|
9463
|
+
index: 16,
|
|
9464
|
+
isBkr: false
|
|
9465
|
+
};
|
|
9466
|
+
this.rules[17] = {
|
|
9467
|
+
name: 'HEXDIG',
|
|
9468
|
+
lower: 'hexdig',
|
|
9469
|
+
index: 17,
|
|
9470
|
+
isBkr: false
|
|
9471
|
+
};
|
|
9472
|
+
this.rules[18] = {
|
|
9473
|
+
name: 'wildcard-selector',
|
|
9474
|
+
lower: 'wildcard-selector',
|
|
9475
|
+
index: 18,
|
|
9476
|
+
isBkr: false
|
|
9477
|
+
};
|
|
9478
|
+
this.rules[19] = {
|
|
9479
|
+
name: 'index-selector',
|
|
9480
|
+
lower: 'index-selector',
|
|
9481
|
+
index: 19,
|
|
9482
|
+
isBkr: false
|
|
9483
|
+
};
|
|
9484
|
+
this.rules[20] = {
|
|
9485
|
+
name: 'int',
|
|
9486
|
+
lower: 'int',
|
|
9487
|
+
index: 20,
|
|
9488
|
+
isBkr: false
|
|
9489
|
+
};
|
|
9490
|
+
this.rules[21] = {
|
|
9491
|
+
name: 'DIGIT1',
|
|
9492
|
+
lower: 'digit1',
|
|
9493
|
+
index: 21,
|
|
9494
|
+
isBkr: false
|
|
9495
|
+
};
|
|
9496
|
+
this.rules[22] = {
|
|
9497
|
+
name: 'slice-selector',
|
|
9498
|
+
lower: 'slice-selector',
|
|
9499
|
+
index: 22,
|
|
9500
|
+
isBkr: false
|
|
9501
|
+
};
|
|
9502
|
+
this.rules[23] = {
|
|
9503
|
+
name: 'start',
|
|
9504
|
+
lower: 'start',
|
|
9505
|
+
index: 23,
|
|
9506
|
+
isBkr: false
|
|
9507
|
+
};
|
|
9508
|
+
this.rules[24] = {
|
|
9509
|
+
name: 'end',
|
|
9510
|
+
lower: 'end',
|
|
9511
|
+
index: 24,
|
|
9512
|
+
isBkr: false
|
|
9513
|
+
};
|
|
9514
|
+
this.rules[25] = {
|
|
9515
|
+
name: 'step',
|
|
9516
|
+
lower: 'step',
|
|
9517
|
+
index: 25,
|
|
9518
|
+
isBkr: false
|
|
9519
|
+
};
|
|
9520
|
+
this.rules[26] = {
|
|
9521
|
+
name: 'filter-selector',
|
|
9522
|
+
lower: 'filter-selector',
|
|
9523
|
+
index: 26,
|
|
9524
|
+
isBkr: false
|
|
9525
|
+
};
|
|
9526
|
+
this.rules[27] = {
|
|
9527
|
+
name: 'logical-expr',
|
|
9528
|
+
lower: 'logical-expr',
|
|
9529
|
+
index: 27,
|
|
9530
|
+
isBkr: false
|
|
9531
|
+
};
|
|
9532
|
+
this.rules[28] = {
|
|
9533
|
+
name: 'logical-or-expr',
|
|
9534
|
+
lower: 'logical-or-expr',
|
|
9535
|
+
index: 28,
|
|
9536
|
+
isBkr: false
|
|
9537
|
+
};
|
|
9538
|
+
this.rules[29] = {
|
|
9539
|
+
name: 'logical-and-expr',
|
|
9540
|
+
lower: 'logical-and-expr',
|
|
9541
|
+
index: 29,
|
|
9542
|
+
isBkr: false
|
|
9543
|
+
};
|
|
9544
|
+
this.rules[30] = {
|
|
9545
|
+
name: 'basic-expr',
|
|
9546
|
+
lower: 'basic-expr',
|
|
9547
|
+
index: 30,
|
|
9548
|
+
isBkr: false
|
|
9549
|
+
};
|
|
9550
|
+
this.rules[31] = {
|
|
9551
|
+
name: 'paren-expr',
|
|
9552
|
+
lower: 'paren-expr',
|
|
9553
|
+
index: 31,
|
|
9554
|
+
isBkr: false
|
|
9555
|
+
};
|
|
9556
|
+
this.rules[32] = {
|
|
9557
|
+
name: 'logical-not-op',
|
|
9558
|
+
lower: 'logical-not-op',
|
|
9559
|
+
index: 32,
|
|
9560
|
+
isBkr: false
|
|
9561
|
+
};
|
|
9562
|
+
this.rules[33] = {
|
|
9563
|
+
name: 'test-expr',
|
|
9564
|
+
lower: 'test-expr',
|
|
9565
|
+
index: 33,
|
|
9566
|
+
isBkr: false
|
|
9567
|
+
};
|
|
9568
|
+
this.rules[34] = {
|
|
9569
|
+
name: 'filter-query',
|
|
9570
|
+
lower: 'filter-query',
|
|
9571
|
+
index: 34,
|
|
9572
|
+
isBkr: false
|
|
9573
|
+
};
|
|
9574
|
+
this.rules[35] = {
|
|
9575
|
+
name: 'rel-query',
|
|
9576
|
+
lower: 'rel-query',
|
|
9577
|
+
index: 35,
|
|
9578
|
+
isBkr: false
|
|
9579
|
+
};
|
|
9580
|
+
this.rules[36] = {
|
|
9581
|
+
name: 'current-node-identifier',
|
|
9582
|
+
lower: 'current-node-identifier',
|
|
9583
|
+
index: 36,
|
|
9584
|
+
isBkr: false
|
|
9585
|
+
};
|
|
9586
|
+
this.rules[37] = {
|
|
9587
|
+
name: 'comparison-expr',
|
|
9588
|
+
lower: 'comparison-expr',
|
|
9589
|
+
index: 37,
|
|
9590
|
+
isBkr: false
|
|
9591
|
+
};
|
|
9592
|
+
this.rules[38] = {
|
|
9593
|
+
name: 'literal',
|
|
9594
|
+
lower: 'literal',
|
|
9595
|
+
index: 38,
|
|
9596
|
+
isBkr: false
|
|
9597
|
+
};
|
|
9598
|
+
this.rules[39] = {
|
|
9599
|
+
name: 'comparable',
|
|
9600
|
+
lower: 'comparable',
|
|
9601
|
+
index: 39,
|
|
9602
|
+
isBkr: false
|
|
9603
|
+
};
|
|
9604
|
+
this.rules[40] = {
|
|
9605
|
+
name: 'comparison-op',
|
|
9606
|
+
lower: 'comparison-op',
|
|
9607
|
+
index: 40,
|
|
9608
|
+
isBkr: false
|
|
9609
|
+
};
|
|
9610
|
+
this.rules[41] = {
|
|
9611
|
+
name: 'singular-query',
|
|
9612
|
+
lower: 'singular-query',
|
|
9613
|
+
index: 41,
|
|
9614
|
+
isBkr: false
|
|
9615
|
+
};
|
|
9616
|
+
this.rules[42] = {
|
|
9617
|
+
name: 'rel-singular-query',
|
|
9618
|
+
lower: 'rel-singular-query',
|
|
9619
|
+
index: 42,
|
|
9620
|
+
isBkr: false
|
|
9621
|
+
};
|
|
9622
|
+
this.rules[43] = {
|
|
9623
|
+
name: 'abs-singular-query',
|
|
9624
|
+
lower: 'abs-singular-query',
|
|
9625
|
+
index: 43,
|
|
9626
|
+
isBkr: false
|
|
9627
|
+
};
|
|
9628
|
+
this.rules[44] = {
|
|
9629
|
+
name: 'singular-query-segments',
|
|
9630
|
+
lower: 'singular-query-segments',
|
|
9631
|
+
index: 44,
|
|
9632
|
+
isBkr: false
|
|
9633
|
+
};
|
|
9634
|
+
this.rules[45] = {
|
|
9635
|
+
name: 'name-segment',
|
|
9636
|
+
lower: 'name-segment',
|
|
9637
|
+
index: 45,
|
|
9638
|
+
isBkr: false
|
|
9639
|
+
};
|
|
9640
|
+
this.rules[46] = {
|
|
9641
|
+
name: 'index-segment',
|
|
9642
|
+
lower: 'index-segment',
|
|
9643
|
+
index: 46,
|
|
9644
|
+
isBkr: false
|
|
9645
|
+
};
|
|
9646
|
+
this.rules[47] = {
|
|
9647
|
+
name: 'number',
|
|
9648
|
+
lower: 'number',
|
|
9649
|
+
index: 47,
|
|
9650
|
+
isBkr: false
|
|
9651
|
+
};
|
|
9652
|
+
this.rules[48] = {
|
|
9653
|
+
name: 'frac',
|
|
9654
|
+
lower: 'frac',
|
|
9655
|
+
index: 48,
|
|
9656
|
+
isBkr: false
|
|
9657
|
+
};
|
|
9658
|
+
this.rules[49] = {
|
|
9659
|
+
name: 'exp',
|
|
9660
|
+
lower: 'exp',
|
|
9661
|
+
index: 49,
|
|
9662
|
+
isBkr: false
|
|
9663
|
+
};
|
|
9664
|
+
this.rules[50] = {
|
|
9665
|
+
name: 'true',
|
|
9666
|
+
lower: 'true',
|
|
9667
|
+
index: 50,
|
|
9668
|
+
isBkr: false
|
|
9669
|
+
};
|
|
9670
|
+
this.rules[51] = {
|
|
9671
|
+
name: 'false',
|
|
9672
|
+
lower: 'false',
|
|
9673
|
+
index: 51,
|
|
9674
|
+
isBkr: false
|
|
9675
|
+
};
|
|
9676
|
+
this.rules[52] = {
|
|
9677
|
+
name: 'null',
|
|
9678
|
+
lower: 'null',
|
|
9679
|
+
index: 52,
|
|
9680
|
+
isBkr: false
|
|
9681
|
+
};
|
|
9682
|
+
this.rules[53] = {
|
|
9683
|
+
name: 'function-name',
|
|
9684
|
+
lower: 'function-name',
|
|
9685
|
+
index: 53,
|
|
9686
|
+
isBkr: false
|
|
9687
|
+
};
|
|
9688
|
+
this.rules[54] = {
|
|
9689
|
+
name: 'function-name-first',
|
|
9690
|
+
lower: 'function-name-first',
|
|
9691
|
+
index: 54,
|
|
9692
|
+
isBkr: false
|
|
9693
|
+
};
|
|
9694
|
+
this.rules[55] = {
|
|
9695
|
+
name: 'function-name-char',
|
|
9696
|
+
lower: 'function-name-char',
|
|
9697
|
+
index: 55,
|
|
9698
|
+
isBkr: false
|
|
9699
|
+
};
|
|
9700
|
+
this.rules[56] = {
|
|
9701
|
+
name: 'LCALPHA',
|
|
9702
|
+
lower: 'lcalpha',
|
|
9703
|
+
index: 56,
|
|
9704
|
+
isBkr: false
|
|
9705
|
+
};
|
|
9706
|
+
this.rules[57] = {
|
|
9707
|
+
name: 'function-expr',
|
|
9708
|
+
lower: 'function-expr',
|
|
9709
|
+
index: 57,
|
|
9710
|
+
isBkr: false
|
|
9711
|
+
};
|
|
9712
|
+
this.rules[58] = {
|
|
9713
|
+
name: 'function-argument',
|
|
9714
|
+
lower: 'function-argument',
|
|
9715
|
+
index: 58,
|
|
9716
|
+
isBkr: false
|
|
9717
|
+
};
|
|
9718
|
+
this.rules[59] = {
|
|
9719
|
+
name: 'segment',
|
|
9720
|
+
lower: 'segment',
|
|
9721
|
+
index: 59,
|
|
9722
|
+
isBkr: false
|
|
9723
|
+
};
|
|
9724
|
+
this.rules[60] = {
|
|
9725
|
+
name: 'child-segment',
|
|
9726
|
+
lower: 'child-segment',
|
|
9727
|
+
index: 60,
|
|
9728
|
+
isBkr: false
|
|
9729
|
+
};
|
|
9730
|
+
this.rules[61] = {
|
|
9731
|
+
name: 'bracketed-selection',
|
|
9732
|
+
lower: 'bracketed-selection',
|
|
9733
|
+
index: 61,
|
|
9734
|
+
isBkr: false
|
|
9735
|
+
};
|
|
9736
|
+
this.rules[62] = {
|
|
9737
|
+
name: 'member-name-shorthand',
|
|
9738
|
+
lower: 'member-name-shorthand',
|
|
9739
|
+
index: 62,
|
|
9740
|
+
isBkr: false
|
|
9741
|
+
};
|
|
9742
|
+
this.rules[63] = {
|
|
9743
|
+
name: 'name-first',
|
|
9744
|
+
lower: 'name-first',
|
|
9745
|
+
index: 63,
|
|
9746
|
+
isBkr: false
|
|
9747
|
+
};
|
|
9748
|
+
this.rules[64] = {
|
|
9749
|
+
name: 'name-char',
|
|
9750
|
+
lower: 'name-char',
|
|
9751
|
+
index: 64,
|
|
9752
|
+
isBkr: false
|
|
9753
|
+
};
|
|
9754
|
+
this.rules[65] = {
|
|
9755
|
+
name: 'DIGIT',
|
|
9756
|
+
lower: 'digit',
|
|
9757
|
+
index: 65,
|
|
9758
|
+
isBkr: false
|
|
9759
|
+
};
|
|
9760
|
+
this.rules[66] = {
|
|
9761
|
+
name: 'ALPHA',
|
|
9762
|
+
lower: 'alpha',
|
|
9763
|
+
index: 66,
|
|
9764
|
+
isBkr: false
|
|
9765
|
+
};
|
|
9766
|
+
this.rules[67] = {
|
|
9767
|
+
name: 'descendant-segment',
|
|
9768
|
+
lower: 'descendant-segment',
|
|
9769
|
+
index: 67,
|
|
9770
|
+
isBkr: false
|
|
9771
|
+
};
|
|
9772
|
+
this.rules[68] = {
|
|
9773
|
+
name: 'normalized-path',
|
|
9774
|
+
lower: 'normalized-path',
|
|
9775
|
+
index: 68,
|
|
9776
|
+
isBkr: false
|
|
9777
|
+
};
|
|
9778
|
+
this.rules[69] = {
|
|
9779
|
+
name: 'normal-index-segment',
|
|
9780
|
+
lower: 'normal-index-segment',
|
|
9781
|
+
index: 69,
|
|
9782
|
+
isBkr: false
|
|
9783
|
+
};
|
|
9784
|
+
this.rules[70] = {
|
|
9785
|
+
name: 'normal-selector',
|
|
9786
|
+
lower: 'normal-selector',
|
|
9787
|
+
index: 70,
|
|
9788
|
+
isBkr: false
|
|
9789
|
+
};
|
|
9790
|
+
this.rules[71] = {
|
|
9791
|
+
name: 'normal-name-selector',
|
|
9792
|
+
lower: 'normal-name-selector',
|
|
9793
|
+
index: 71,
|
|
9794
|
+
isBkr: false
|
|
9795
|
+
};
|
|
9796
|
+
this.rules[72] = {
|
|
9797
|
+
name: 'normal-single-quoted',
|
|
9798
|
+
lower: 'normal-single-quoted',
|
|
9799
|
+
index: 72,
|
|
9800
|
+
isBkr: false
|
|
9801
|
+
};
|
|
9802
|
+
this.rules[73] = {
|
|
9803
|
+
name: 'normal-unescaped',
|
|
9804
|
+
lower: 'normal-unescaped',
|
|
9805
|
+
index: 73,
|
|
9806
|
+
isBkr: false
|
|
9807
|
+
};
|
|
9808
|
+
this.rules[74] = {
|
|
9809
|
+
name: 'normal-escapable',
|
|
9810
|
+
lower: 'normal-escapable',
|
|
9811
|
+
index: 74,
|
|
9812
|
+
isBkr: false
|
|
9813
|
+
};
|
|
9814
|
+
this.rules[75] = {
|
|
9815
|
+
name: 'normal-hexchar',
|
|
9816
|
+
lower: 'normal-hexchar',
|
|
9817
|
+
index: 75,
|
|
9818
|
+
isBkr: false
|
|
9819
|
+
};
|
|
9820
|
+
this.rules[76] = {
|
|
9821
|
+
name: 'normal-HEXDIG',
|
|
9822
|
+
lower: 'normal-hexdig',
|
|
9823
|
+
index: 76,
|
|
9824
|
+
isBkr: false
|
|
9825
|
+
};
|
|
9826
|
+
this.rules[77] = {
|
|
9827
|
+
name: 'normal-index-selector',
|
|
9828
|
+
lower: 'normal-index-selector',
|
|
9829
|
+
index: 77,
|
|
9830
|
+
isBkr: false
|
|
9831
|
+
};
|
|
9832
|
+
this.rules[78] = {
|
|
9833
|
+
name: 'dot-prefix',
|
|
9834
|
+
lower: 'dot-prefix',
|
|
9835
|
+
index: 78,
|
|
9836
|
+
isBkr: false
|
|
9837
|
+
};
|
|
9838
|
+
this.rules[79] = {
|
|
9839
|
+
name: 'double-dot-prefix',
|
|
9840
|
+
lower: 'double-dot-prefix',
|
|
9841
|
+
index: 79,
|
|
9842
|
+
isBkr: false
|
|
9843
|
+
};
|
|
9844
|
+
this.rules[80] = {
|
|
9845
|
+
name: 'left-bracket',
|
|
9846
|
+
lower: 'left-bracket',
|
|
9847
|
+
index: 80,
|
|
9848
|
+
isBkr: false
|
|
9849
|
+
};
|
|
9850
|
+
this.rules[81] = {
|
|
9851
|
+
name: 'right-bracket',
|
|
9852
|
+
lower: 'right-bracket',
|
|
9853
|
+
index: 81,
|
|
9854
|
+
isBkr: false
|
|
9855
|
+
};
|
|
9856
|
+
this.rules[82] = {
|
|
9857
|
+
name: 'left-paren',
|
|
9858
|
+
lower: 'left-paren',
|
|
9859
|
+
index: 82,
|
|
9860
|
+
isBkr: false
|
|
9861
|
+
};
|
|
9862
|
+
this.rules[83] = {
|
|
9863
|
+
name: 'right-paren',
|
|
9864
|
+
lower: 'right-paren',
|
|
9865
|
+
index: 83,
|
|
9866
|
+
isBkr: false
|
|
9867
|
+
};
|
|
9868
|
+
this.rules[84] = {
|
|
9869
|
+
name: 'comma',
|
|
9870
|
+
lower: 'comma',
|
|
9871
|
+
index: 84,
|
|
9872
|
+
isBkr: false
|
|
9873
|
+
};
|
|
9874
|
+
this.rules[85] = {
|
|
9875
|
+
name: 'colon',
|
|
9876
|
+
lower: 'colon',
|
|
9877
|
+
index: 85,
|
|
9878
|
+
isBkr: false
|
|
9879
|
+
};
|
|
9880
|
+
this.rules[86] = {
|
|
9881
|
+
name: 'dquote',
|
|
9882
|
+
lower: 'dquote',
|
|
9883
|
+
index: 86,
|
|
9884
|
+
isBkr: false
|
|
9885
|
+
};
|
|
9886
|
+
this.rules[87] = {
|
|
9887
|
+
name: 'squote',
|
|
9888
|
+
lower: 'squote',
|
|
9889
|
+
index: 87,
|
|
9890
|
+
isBkr: false
|
|
9891
|
+
};
|
|
9892
|
+
this.rules[88] = {
|
|
9893
|
+
name: 'questionmark',
|
|
9894
|
+
lower: 'questionmark',
|
|
9895
|
+
index: 88,
|
|
9896
|
+
isBkr: false
|
|
9897
|
+
};
|
|
9898
|
+
this.rules[89] = {
|
|
9899
|
+
name: 'disjunction',
|
|
9900
|
+
lower: 'disjunction',
|
|
9901
|
+
index: 89,
|
|
9902
|
+
isBkr: false
|
|
9903
|
+
};
|
|
9904
|
+
this.rules[90] = {
|
|
9905
|
+
name: 'conjunction',
|
|
9906
|
+
lower: 'conjunction',
|
|
9907
|
+
index: 90,
|
|
9908
|
+
isBkr: false
|
|
9909
|
+
};
|
|
9910
|
+
|
|
9911
|
+
/* UDTS */
|
|
9912
|
+
this.udts = [];
|
|
9913
|
+
|
|
9914
|
+
/* OPCODES */
|
|
9915
|
+
/* jsonpath-query */
|
|
9916
|
+
this.rules[0].opcodes = [];
|
|
9917
|
+
this.rules[0].opcodes[0] = {
|
|
9918
|
+
type: 2,
|
|
9919
|
+
children: [1, 2]
|
|
9920
|
+
}; // CAT
|
|
9921
|
+
this.rules[0].opcodes[1] = {
|
|
9922
|
+
type: 4,
|
|
9923
|
+
index: 4
|
|
9924
|
+
}; // RNM(root-identifier)
|
|
9925
|
+
this.rules[0].opcodes[2] = {
|
|
9926
|
+
type: 4,
|
|
9927
|
+
index: 1
|
|
9928
|
+
}; // RNM(segments)
|
|
9929
|
+
|
|
9930
|
+
/* segments */
|
|
9931
|
+
this.rules[1].opcodes = [];
|
|
9932
|
+
this.rules[1].opcodes[0] = {
|
|
9933
|
+
type: 3,
|
|
9934
|
+
min: 0,
|
|
9935
|
+
max: Infinity
|
|
9936
|
+
}; // REP
|
|
9937
|
+
this.rules[1].opcodes[1] = {
|
|
9938
|
+
type: 2,
|
|
9939
|
+
children: [2, 3]
|
|
9940
|
+
}; // CAT
|
|
9941
|
+
this.rules[1].opcodes[2] = {
|
|
9942
|
+
type: 4,
|
|
9943
|
+
index: 3
|
|
9944
|
+
}; // RNM(S)
|
|
9945
|
+
this.rules[1].opcodes[3] = {
|
|
9946
|
+
type: 4,
|
|
9947
|
+
index: 59
|
|
9948
|
+
}; // RNM(segment)
|
|
9949
|
+
|
|
9950
|
+
/* B */
|
|
9951
|
+
this.rules[2].opcodes = [];
|
|
9952
|
+
this.rules[2].opcodes[0] = {
|
|
9953
|
+
type: 1,
|
|
9954
|
+
children: [1, 2, 3, 4]
|
|
9955
|
+
}; // ALT
|
|
9956
|
+
this.rules[2].opcodes[1] = {
|
|
9957
|
+
type: 6,
|
|
9958
|
+
string: [32]
|
|
9959
|
+
}; // TBS
|
|
9960
|
+
this.rules[2].opcodes[2] = {
|
|
9961
|
+
type: 6,
|
|
9962
|
+
string: [9]
|
|
9963
|
+
}; // TBS
|
|
9964
|
+
this.rules[2].opcodes[3] = {
|
|
9965
|
+
type: 6,
|
|
9966
|
+
string: [10]
|
|
9967
|
+
}; // TBS
|
|
9968
|
+
this.rules[2].opcodes[4] = {
|
|
9969
|
+
type: 6,
|
|
9970
|
+
string: [13]
|
|
9971
|
+
}; // TBS
|
|
9972
|
+
|
|
9973
|
+
/* S */
|
|
9974
|
+
this.rules[3].opcodes = [];
|
|
9975
|
+
this.rules[3].opcodes[0] = {
|
|
9976
|
+
type: 3,
|
|
9977
|
+
min: 0,
|
|
9978
|
+
max: Infinity
|
|
9979
|
+
}; // REP
|
|
9980
|
+
this.rules[3].opcodes[1] = {
|
|
9981
|
+
type: 4,
|
|
9982
|
+
index: 2
|
|
9983
|
+
}; // RNM(B)
|
|
9984
|
+
|
|
9985
|
+
/* root-identifier */
|
|
9986
|
+
this.rules[4].opcodes = [];
|
|
9987
|
+
this.rules[4].opcodes[0] = {
|
|
9988
|
+
type: 7,
|
|
9989
|
+
string: [36]
|
|
9990
|
+
}; // TLS
|
|
9991
|
+
|
|
9992
|
+
/* selector */
|
|
9993
|
+
this.rules[5].opcodes = [];
|
|
9994
|
+
this.rules[5].opcodes[0] = {
|
|
9995
|
+
type: 1,
|
|
9996
|
+
children: [1, 2, 3, 4, 5]
|
|
9997
|
+
}; // ALT
|
|
9998
|
+
this.rules[5].opcodes[1] = {
|
|
9999
|
+
type: 4,
|
|
10000
|
+
index: 6
|
|
10001
|
+
}; // RNM(name-selector)
|
|
10002
|
+
this.rules[5].opcodes[2] = {
|
|
10003
|
+
type: 4,
|
|
10004
|
+
index: 18
|
|
10005
|
+
}; // RNM(wildcard-selector)
|
|
10006
|
+
this.rules[5].opcodes[3] = {
|
|
10007
|
+
type: 4,
|
|
10008
|
+
index: 22
|
|
10009
|
+
}; // RNM(slice-selector)
|
|
10010
|
+
this.rules[5].opcodes[4] = {
|
|
10011
|
+
type: 4,
|
|
10012
|
+
index: 19
|
|
10013
|
+
}; // RNM(index-selector)
|
|
10014
|
+
this.rules[5].opcodes[5] = {
|
|
10015
|
+
type: 4,
|
|
10016
|
+
index: 26
|
|
10017
|
+
}; // RNM(filter-selector)
|
|
10018
|
+
|
|
10019
|
+
/* name-selector */
|
|
10020
|
+
this.rules[6].opcodes = [];
|
|
10021
|
+
this.rules[6].opcodes[0] = {
|
|
10022
|
+
type: 4,
|
|
10023
|
+
index: 7
|
|
10024
|
+
}; // RNM(string-literal)
|
|
10025
|
+
|
|
10026
|
+
/* string-literal */
|
|
10027
|
+
this.rules[7].opcodes = [];
|
|
10028
|
+
this.rules[7].opcodes[0] = {
|
|
10029
|
+
type: 1,
|
|
10030
|
+
children: [1, 6]
|
|
10031
|
+
}; // ALT
|
|
10032
|
+
this.rules[7].opcodes[1] = {
|
|
10033
|
+
type: 2,
|
|
10034
|
+
children: [2, 3, 5]
|
|
10035
|
+
}; // CAT
|
|
10036
|
+
this.rules[7].opcodes[2] = {
|
|
10037
|
+
type: 4,
|
|
10038
|
+
index: 86
|
|
10039
|
+
}; // RNM(dquote)
|
|
10040
|
+
this.rules[7].opcodes[3] = {
|
|
10041
|
+
type: 3,
|
|
10042
|
+
min: 0,
|
|
10043
|
+
max: Infinity
|
|
10044
|
+
}; // REP
|
|
10045
|
+
this.rules[7].opcodes[4] = {
|
|
10046
|
+
type: 4,
|
|
10047
|
+
index: 8
|
|
10048
|
+
}; // RNM(double-quoted)
|
|
10049
|
+
this.rules[7].opcodes[5] = {
|
|
10050
|
+
type: 4,
|
|
10051
|
+
index: 86
|
|
10052
|
+
}; // RNM(dquote)
|
|
10053
|
+
this.rules[7].opcodes[6] = {
|
|
10054
|
+
type: 2,
|
|
10055
|
+
children: [7, 8, 10]
|
|
10056
|
+
}; // CAT
|
|
10057
|
+
this.rules[7].opcodes[7] = {
|
|
10058
|
+
type: 4,
|
|
10059
|
+
index: 87
|
|
10060
|
+
}; // RNM(squote)
|
|
10061
|
+
this.rules[7].opcodes[8] = {
|
|
10062
|
+
type: 3,
|
|
10063
|
+
min: 0,
|
|
10064
|
+
max: Infinity
|
|
10065
|
+
}; // REP
|
|
10066
|
+
this.rules[7].opcodes[9] = {
|
|
10067
|
+
type: 4,
|
|
10068
|
+
index: 9
|
|
10069
|
+
}; // RNM(single-quoted)
|
|
10070
|
+
this.rules[7].opcodes[10] = {
|
|
10071
|
+
type: 4,
|
|
10072
|
+
index: 87
|
|
10073
|
+
}; // RNM(squote)
|
|
10074
|
+
|
|
10075
|
+
/* double-quoted */
|
|
10076
|
+
this.rules[8].opcodes = [];
|
|
10077
|
+
this.rules[8].opcodes[0] = {
|
|
10078
|
+
type: 1,
|
|
10079
|
+
children: [1, 2, 3, 6]
|
|
10080
|
+
}; // ALT
|
|
10081
|
+
this.rules[8].opcodes[1] = {
|
|
10082
|
+
type: 4,
|
|
10083
|
+
index: 11
|
|
10084
|
+
}; // RNM(unescaped)
|
|
10085
|
+
this.rules[8].opcodes[2] = {
|
|
10086
|
+
type: 6,
|
|
10087
|
+
string: [39]
|
|
10088
|
+
}; // TBS
|
|
10089
|
+
this.rules[8].opcodes[3] = {
|
|
10090
|
+
type: 2,
|
|
10091
|
+
children: [4, 5]
|
|
10092
|
+
}; // CAT
|
|
10093
|
+
this.rules[8].opcodes[4] = {
|
|
10094
|
+
type: 4,
|
|
10095
|
+
index: 10
|
|
10096
|
+
}; // RNM(ESC)
|
|
10097
|
+
this.rules[8].opcodes[5] = {
|
|
10098
|
+
type: 6,
|
|
10099
|
+
string: [34]
|
|
10100
|
+
}; // TBS
|
|
10101
|
+
this.rules[8].opcodes[6] = {
|
|
10102
|
+
type: 2,
|
|
10103
|
+
children: [7, 8]
|
|
10104
|
+
}; // CAT
|
|
10105
|
+
this.rules[8].opcodes[7] = {
|
|
10106
|
+
type: 4,
|
|
10107
|
+
index: 10
|
|
10108
|
+
}; // RNM(ESC)
|
|
10109
|
+
this.rules[8].opcodes[8] = {
|
|
10110
|
+
type: 4,
|
|
10111
|
+
index: 12
|
|
10112
|
+
}; // RNM(escapable)
|
|
10113
|
+
|
|
10114
|
+
/* single-quoted */
|
|
10115
|
+
this.rules[9].opcodes = [];
|
|
10116
|
+
this.rules[9].opcodes[0] = {
|
|
10117
|
+
type: 1,
|
|
10118
|
+
children: [1, 2, 3, 6]
|
|
10119
|
+
}; // ALT
|
|
10120
|
+
this.rules[9].opcodes[1] = {
|
|
10121
|
+
type: 4,
|
|
10122
|
+
index: 11
|
|
10123
|
+
}; // RNM(unescaped)
|
|
10124
|
+
this.rules[9].opcodes[2] = {
|
|
10125
|
+
type: 6,
|
|
10126
|
+
string: [34]
|
|
10127
|
+
}; // TBS
|
|
10128
|
+
this.rules[9].opcodes[3] = {
|
|
10129
|
+
type: 2,
|
|
10130
|
+
children: [4, 5]
|
|
10131
|
+
}; // CAT
|
|
10132
|
+
this.rules[9].opcodes[4] = {
|
|
10133
|
+
type: 4,
|
|
10134
|
+
index: 10
|
|
10135
|
+
}; // RNM(ESC)
|
|
10136
|
+
this.rules[9].opcodes[5] = {
|
|
10137
|
+
type: 6,
|
|
10138
|
+
string: [39]
|
|
10139
|
+
}; // TBS
|
|
10140
|
+
this.rules[9].opcodes[6] = {
|
|
10141
|
+
type: 2,
|
|
10142
|
+
children: [7, 8]
|
|
10143
|
+
}; // CAT
|
|
10144
|
+
this.rules[9].opcodes[7] = {
|
|
10145
|
+
type: 4,
|
|
10146
|
+
index: 10
|
|
10147
|
+
}; // RNM(ESC)
|
|
10148
|
+
this.rules[9].opcodes[8] = {
|
|
10149
|
+
type: 4,
|
|
10150
|
+
index: 12
|
|
10151
|
+
}; // RNM(escapable)
|
|
10152
|
+
|
|
10153
|
+
/* ESC */
|
|
10154
|
+
this.rules[10].opcodes = [];
|
|
10155
|
+
this.rules[10].opcodes[0] = {
|
|
10156
|
+
type: 6,
|
|
10157
|
+
string: [92]
|
|
10158
|
+
}; // TBS
|
|
10159
|
+
|
|
10160
|
+
/* unescaped */
|
|
10161
|
+
this.rules[11].opcodes = [];
|
|
10162
|
+
this.rules[11].opcodes[0] = {
|
|
10163
|
+
type: 1,
|
|
10164
|
+
children: [1, 2, 3, 4, 5]
|
|
10165
|
+
}; // ALT
|
|
10166
|
+
this.rules[11].opcodes[1] = {
|
|
10167
|
+
type: 5,
|
|
10168
|
+
min: 32,
|
|
10169
|
+
max: 33
|
|
10170
|
+
}; // TRG
|
|
10171
|
+
this.rules[11].opcodes[2] = {
|
|
10172
|
+
type: 5,
|
|
10173
|
+
min: 35,
|
|
10174
|
+
max: 38
|
|
10175
|
+
}; // TRG
|
|
10176
|
+
this.rules[11].opcodes[3] = {
|
|
10177
|
+
type: 5,
|
|
10178
|
+
min: 40,
|
|
10179
|
+
max: 91
|
|
10180
|
+
}; // TRG
|
|
10181
|
+
this.rules[11].opcodes[4] = {
|
|
10182
|
+
type: 5,
|
|
10183
|
+
min: 93,
|
|
10184
|
+
max: 55295
|
|
10185
|
+
}; // TRG
|
|
10186
|
+
this.rules[11].opcodes[5] = {
|
|
10187
|
+
type: 5,
|
|
10188
|
+
min: 57344,
|
|
10189
|
+
max: 1114111
|
|
10190
|
+
}; // TRG
|
|
10191
|
+
|
|
10192
|
+
/* escapable */
|
|
10193
|
+
this.rules[12].opcodes = [];
|
|
10194
|
+
this.rules[12].opcodes[0] = {
|
|
10195
|
+
type: 1,
|
|
10196
|
+
children: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
10197
|
+
}; // ALT
|
|
10198
|
+
this.rules[12].opcodes[1] = {
|
|
10199
|
+
type: 6,
|
|
10200
|
+
string: [98]
|
|
10201
|
+
}; // TBS
|
|
10202
|
+
this.rules[12].opcodes[2] = {
|
|
10203
|
+
type: 6,
|
|
10204
|
+
string: [102]
|
|
10205
|
+
}; // TBS
|
|
10206
|
+
this.rules[12].opcodes[3] = {
|
|
10207
|
+
type: 6,
|
|
10208
|
+
string: [110]
|
|
10209
|
+
}; // TBS
|
|
10210
|
+
this.rules[12].opcodes[4] = {
|
|
10211
|
+
type: 6,
|
|
10212
|
+
string: [114]
|
|
10213
|
+
}; // TBS
|
|
10214
|
+
this.rules[12].opcodes[5] = {
|
|
10215
|
+
type: 6,
|
|
10216
|
+
string: [116]
|
|
10217
|
+
}; // TBS
|
|
10218
|
+
this.rules[12].opcodes[6] = {
|
|
10219
|
+
type: 7,
|
|
10220
|
+
string: [47]
|
|
10221
|
+
}; // TLS
|
|
10222
|
+
this.rules[12].opcodes[7] = {
|
|
10223
|
+
type: 7,
|
|
10224
|
+
string: [92]
|
|
10225
|
+
}; // TLS
|
|
10226
|
+
this.rules[12].opcodes[8] = {
|
|
10227
|
+
type: 2,
|
|
10228
|
+
children: [9, 10]
|
|
10229
|
+
}; // CAT
|
|
10230
|
+
this.rules[12].opcodes[9] = {
|
|
10231
|
+
type: 6,
|
|
10232
|
+
string: [117]
|
|
10233
|
+
}; // TBS
|
|
10234
|
+
this.rules[12].opcodes[10] = {
|
|
10235
|
+
type: 4,
|
|
10236
|
+
index: 13
|
|
10237
|
+
}; // RNM(hexchar)
|
|
10238
|
+
|
|
10239
|
+
/* hexchar */
|
|
10240
|
+
this.rules[13].opcodes = [];
|
|
10241
|
+
this.rules[13].opcodes[0] = {
|
|
10242
|
+
type: 1,
|
|
10243
|
+
children: [1, 2]
|
|
10244
|
+
}; // ALT
|
|
10245
|
+
this.rules[13].opcodes[1] = {
|
|
10246
|
+
type: 4,
|
|
10247
|
+
index: 14
|
|
10248
|
+
}; // RNM(non-surrogate)
|
|
10249
|
+
this.rules[13].opcodes[2] = {
|
|
10250
|
+
type: 2,
|
|
10251
|
+
children: [3, 4, 5, 6]
|
|
10252
|
+
}; // CAT
|
|
10253
|
+
this.rules[13].opcodes[3] = {
|
|
10254
|
+
type: 4,
|
|
10255
|
+
index: 15
|
|
10256
|
+
}; // RNM(high-surrogate)
|
|
10257
|
+
this.rules[13].opcodes[4] = {
|
|
10258
|
+
type: 7,
|
|
10259
|
+
string: [92]
|
|
10260
|
+
}; // TLS
|
|
10261
|
+
this.rules[13].opcodes[5] = {
|
|
10262
|
+
type: 6,
|
|
10263
|
+
string: [117]
|
|
10264
|
+
}; // TBS
|
|
10265
|
+
this.rules[13].opcodes[6] = {
|
|
10266
|
+
type: 4,
|
|
10267
|
+
index: 16
|
|
10268
|
+
}; // RNM(low-surrogate)
|
|
10269
|
+
|
|
10270
|
+
/* non-surrogate */
|
|
10271
|
+
this.rules[14].opcodes = [];
|
|
10272
|
+
this.rules[14].opcodes[0] = {
|
|
10273
|
+
type: 1,
|
|
10274
|
+
children: [1, 11]
|
|
10275
|
+
}; // ALT
|
|
10276
|
+
this.rules[14].opcodes[1] = {
|
|
10277
|
+
type: 2,
|
|
10278
|
+
children: [2, 9]
|
|
10279
|
+
}; // CAT
|
|
10280
|
+
this.rules[14].opcodes[2] = {
|
|
10281
|
+
type: 1,
|
|
10282
|
+
children: [3, 4, 5, 6, 7, 8]
|
|
10283
|
+
}; // ALT
|
|
10284
|
+
this.rules[14].opcodes[3] = {
|
|
10285
|
+
type: 4,
|
|
10286
|
+
index: 65
|
|
10287
|
+
}; // RNM(DIGIT)
|
|
10288
|
+
this.rules[14].opcodes[4] = {
|
|
10289
|
+
type: 7,
|
|
10290
|
+
string: [97]
|
|
10291
|
+
}; // TLS
|
|
10292
|
+
this.rules[14].opcodes[5] = {
|
|
10293
|
+
type: 7,
|
|
10294
|
+
string: [98]
|
|
10295
|
+
}; // TLS
|
|
10296
|
+
this.rules[14].opcodes[6] = {
|
|
10297
|
+
type: 7,
|
|
10298
|
+
string: [99]
|
|
10299
|
+
}; // TLS
|
|
10300
|
+
this.rules[14].opcodes[7] = {
|
|
10301
|
+
type: 7,
|
|
10302
|
+
string: [101]
|
|
10303
|
+
}; // TLS
|
|
10304
|
+
this.rules[14].opcodes[8] = {
|
|
10305
|
+
type: 7,
|
|
10306
|
+
string: [102]
|
|
10307
|
+
}; // TLS
|
|
10308
|
+
this.rules[14].opcodes[9] = {
|
|
10309
|
+
type: 3,
|
|
10310
|
+
min: 3,
|
|
10311
|
+
max: 3
|
|
10312
|
+
}; // REP
|
|
10313
|
+
this.rules[14].opcodes[10] = {
|
|
10314
|
+
type: 4,
|
|
10315
|
+
index: 17
|
|
10316
|
+
}; // RNM(HEXDIG)
|
|
10317
|
+
this.rules[14].opcodes[11] = {
|
|
10318
|
+
type: 2,
|
|
10319
|
+
children: [12, 13, 14]
|
|
10320
|
+
}; // CAT
|
|
10321
|
+
this.rules[14].opcodes[12] = {
|
|
10322
|
+
type: 7,
|
|
10323
|
+
string: [100]
|
|
10324
|
+
}; // TLS
|
|
10325
|
+
this.rules[14].opcodes[13] = {
|
|
10326
|
+
type: 5,
|
|
10327
|
+
min: 48,
|
|
10328
|
+
max: 55
|
|
10329
|
+
}; // TRG
|
|
10330
|
+
this.rules[14].opcodes[14] = {
|
|
10331
|
+
type: 3,
|
|
10332
|
+
min: 2,
|
|
10333
|
+
max: 2
|
|
10334
|
+
}; // REP
|
|
10335
|
+
this.rules[14].opcodes[15] = {
|
|
10336
|
+
type: 4,
|
|
10337
|
+
index: 17
|
|
10338
|
+
}; // RNM(HEXDIG)
|
|
10339
|
+
|
|
10340
|
+
/* high-surrogate */
|
|
10341
|
+
this.rules[15].opcodes = [];
|
|
10342
|
+
this.rules[15].opcodes[0] = {
|
|
10343
|
+
type: 2,
|
|
10344
|
+
children: [1, 2, 7]
|
|
10345
|
+
}; // CAT
|
|
10346
|
+
this.rules[15].opcodes[1] = {
|
|
10347
|
+
type: 7,
|
|
10348
|
+
string: [100]
|
|
10349
|
+
}; // TLS
|
|
10350
|
+
this.rules[15].opcodes[2] = {
|
|
10351
|
+
type: 1,
|
|
10352
|
+
children: [3, 4, 5, 6]
|
|
10353
|
+
}; // ALT
|
|
10354
|
+
this.rules[15].opcodes[3] = {
|
|
10355
|
+
type: 7,
|
|
10356
|
+
string: [56]
|
|
10357
|
+
}; // TLS
|
|
10358
|
+
this.rules[15].opcodes[4] = {
|
|
10359
|
+
type: 7,
|
|
10360
|
+
string: [57]
|
|
10361
|
+
}; // TLS
|
|
10362
|
+
this.rules[15].opcodes[5] = {
|
|
10363
|
+
type: 7,
|
|
10364
|
+
string: [97]
|
|
10365
|
+
}; // TLS
|
|
10366
|
+
this.rules[15].opcodes[6] = {
|
|
10367
|
+
type: 7,
|
|
10368
|
+
string: [98]
|
|
10369
|
+
}; // TLS
|
|
10370
|
+
this.rules[15].opcodes[7] = {
|
|
10371
|
+
type: 3,
|
|
10372
|
+
min: 2,
|
|
10373
|
+
max: 2
|
|
10374
|
+
}; // REP
|
|
10375
|
+
this.rules[15].opcodes[8] = {
|
|
10376
|
+
type: 4,
|
|
10377
|
+
index: 17
|
|
10378
|
+
}; // RNM(HEXDIG)
|
|
10379
|
+
|
|
10380
|
+
/* low-surrogate */
|
|
10381
|
+
this.rules[16].opcodes = [];
|
|
10382
|
+
this.rules[16].opcodes[0] = {
|
|
10383
|
+
type: 2,
|
|
10384
|
+
children: [1, 2, 7]
|
|
10385
|
+
}; // CAT
|
|
10386
|
+
this.rules[16].opcodes[1] = {
|
|
10387
|
+
type: 7,
|
|
10388
|
+
string: [100]
|
|
10389
|
+
}; // TLS
|
|
10390
|
+
this.rules[16].opcodes[2] = {
|
|
10391
|
+
type: 1,
|
|
10392
|
+
children: [3, 4, 5, 6]
|
|
10393
|
+
}; // ALT
|
|
10394
|
+
this.rules[16].opcodes[3] = {
|
|
10395
|
+
type: 7,
|
|
10396
|
+
string: [99]
|
|
10397
|
+
}; // TLS
|
|
10398
|
+
this.rules[16].opcodes[4] = {
|
|
10399
|
+
type: 7,
|
|
10400
|
+
string: [100]
|
|
10401
|
+
}; // TLS
|
|
10402
|
+
this.rules[16].opcodes[5] = {
|
|
10403
|
+
type: 7,
|
|
10404
|
+
string: [101]
|
|
10405
|
+
}; // TLS
|
|
10406
|
+
this.rules[16].opcodes[6] = {
|
|
10407
|
+
type: 7,
|
|
10408
|
+
string: [102]
|
|
10409
|
+
}; // TLS
|
|
10410
|
+
this.rules[16].opcodes[7] = {
|
|
10411
|
+
type: 3,
|
|
10412
|
+
min: 2,
|
|
10413
|
+
max: 2
|
|
10414
|
+
}; // REP
|
|
10415
|
+
this.rules[16].opcodes[8] = {
|
|
10416
|
+
type: 4,
|
|
10417
|
+
index: 17
|
|
10418
|
+
}; // RNM(HEXDIG)
|
|
10419
|
+
|
|
10420
|
+
/* HEXDIG */
|
|
10421
|
+
this.rules[17].opcodes = [];
|
|
10422
|
+
this.rules[17].opcodes[0] = {
|
|
10423
|
+
type: 1,
|
|
10424
|
+
children: [1, 2, 3, 4, 5, 6, 7]
|
|
10425
|
+
}; // ALT
|
|
10426
|
+
this.rules[17].opcodes[1] = {
|
|
10427
|
+
type: 4,
|
|
10428
|
+
index: 65
|
|
10429
|
+
}; // RNM(DIGIT)
|
|
10430
|
+
this.rules[17].opcodes[2] = {
|
|
10431
|
+
type: 7,
|
|
10432
|
+
string: [97]
|
|
10433
|
+
}; // TLS
|
|
10434
|
+
this.rules[17].opcodes[3] = {
|
|
10435
|
+
type: 7,
|
|
10436
|
+
string: [98]
|
|
10437
|
+
}; // TLS
|
|
10438
|
+
this.rules[17].opcodes[4] = {
|
|
10439
|
+
type: 7,
|
|
10440
|
+
string: [99]
|
|
10441
|
+
}; // TLS
|
|
10442
|
+
this.rules[17].opcodes[5] = {
|
|
10443
|
+
type: 7,
|
|
10444
|
+
string: [100]
|
|
10445
|
+
}; // TLS
|
|
10446
|
+
this.rules[17].opcodes[6] = {
|
|
10447
|
+
type: 7,
|
|
10448
|
+
string: [101]
|
|
10449
|
+
}; // TLS
|
|
10450
|
+
this.rules[17].opcodes[7] = {
|
|
10451
|
+
type: 7,
|
|
10452
|
+
string: [102]
|
|
10453
|
+
}; // TLS
|
|
10454
|
+
|
|
10455
|
+
/* wildcard-selector */
|
|
10456
|
+
this.rules[18].opcodes = [];
|
|
10457
|
+
this.rules[18].opcodes[0] = {
|
|
10458
|
+
type: 7,
|
|
10459
|
+
string: [42]
|
|
10460
|
+
}; // TLS
|
|
10461
|
+
|
|
10462
|
+
/* index-selector */
|
|
10463
|
+
this.rules[19].opcodes = [];
|
|
10464
|
+
this.rules[19].opcodes[0] = {
|
|
10465
|
+
type: 4,
|
|
10466
|
+
index: 20
|
|
10467
|
+
}; // RNM(int)
|
|
10468
|
+
|
|
10469
|
+
/* int */
|
|
10470
|
+
this.rules[20].opcodes = [];
|
|
10471
|
+
this.rules[20].opcodes[0] = {
|
|
10472
|
+
type: 1,
|
|
10473
|
+
children: [1, 2]
|
|
10474
|
+
}; // ALT
|
|
10475
|
+
this.rules[20].opcodes[1] = {
|
|
10476
|
+
type: 7,
|
|
10477
|
+
string: [48]
|
|
10478
|
+
}; // TLS
|
|
10479
|
+
this.rules[20].opcodes[2] = {
|
|
10480
|
+
type: 2,
|
|
10481
|
+
children: [3, 5, 6]
|
|
10482
|
+
}; // CAT
|
|
10483
|
+
this.rules[20].opcodes[3] = {
|
|
10484
|
+
type: 3,
|
|
10485
|
+
min: 0,
|
|
10486
|
+
max: 1
|
|
10487
|
+
}; // REP
|
|
10488
|
+
this.rules[20].opcodes[4] = {
|
|
10489
|
+
type: 7,
|
|
10490
|
+
string: [45]
|
|
10491
|
+
}; // TLS
|
|
10492
|
+
this.rules[20].opcodes[5] = {
|
|
10493
|
+
type: 4,
|
|
10494
|
+
index: 21
|
|
10495
|
+
}; // RNM(DIGIT1)
|
|
10496
|
+
this.rules[20].opcodes[6] = {
|
|
10497
|
+
type: 3,
|
|
10498
|
+
min: 0,
|
|
10499
|
+
max: Infinity
|
|
10500
|
+
}; // REP
|
|
10501
|
+
this.rules[20].opcodes[7] = {
|
|
10502
|
+
type: 4,
|
|
10503
|
+
index: 65
|
|
10504
|
+
}; // RNM(DIGIT)
|
|
10505
|
+
|
|
10506
|
+
/* DIGIT1 */
|
|
10507
|
+
this.rules[21].opcodes = [];
|
|
10508
|
+
this.rules[21].opcodes[0] = {
|
|
10509
|
+
type: 5,
|
|
10510
|
+
min: 49,
|
|
10511
|
+
max: 57
|
|
10512
|
+
}; // TRG
|
|
10513
|
+
|
|
10514
|
+
/* slice-selector */
|
|
10515
|
+
this.rules[22].opcodes = [];
|
|
10516
|
+
this.rules[22].opcodes[0] = {
|
|
10517
|
+
type: 2,
|
|
10518
|
+
children: [1, 5, 6, 7, 11]
|
|
10519
|
+
}; // CAT
|
|
10520
|
+
this.rules[22].opcodes[1] = {
|
|
10521
|
+
type: 3,
|
|
10522
|
+
min: 0,
|
|
10523
|
+
max: 1
|
|
10524
|
+
}; // REP
|
|
10525
|
+
this.rules[22].opcodes[2] = {
|
|
10526
|
+
type: 2,
|
|
10527
|
+
children: [3, 4]
|
|
10528
|
+
}; // CAT
|
|
10529
|
+
this.rules[22].opcodes[3] = {
|
|
10530
|
+
type: 4,
|
|
10531
|
+
index: 23
|
|
10532
|
+
}; // RNM(start)
|
|
10533
|
+
this.rules[22].opcodes[4] = {
|
|
10534
|
+
type: 4,
|
|
10535
|
+
index: 3
|
|
10536
|
+
}; // RNM(S)
|
|
10537
|
+
this.rules[22].opcodes[5] = {
|
|
10538
|
+
type: 4,
|
|
10539
|
+
index: 85
|
|
10540
|
+
}; // RNM(colon)
|
|
10541
|
+
this.rules[22].opcodes[6] = {
|
|
10542
|
+
type: 4,
|
|
10543
|
+
index: 3
|
|
10544
|
+
}; // RNM(S)
|
|
10545
|
+
this.rules[22].opcodes[7] = {
|
|
10546
|
+
type: 3,
|
|
10547
|
+
min: 0,
|
|
10548
|
+
max: 1
|
|
10549
|
+
}; // REP
|
|
10550
|
+
this.rules[22].opcodes[8] = {
|
|
10551
|
+
type: 2,
|
|
10552
|
+
children: [9, 10]
|
|
10553
|
+
}; // CAT
|
|
10554
|
+
this.rules[22].opcodes[9] = {
|
|
10555
|
+
type: 4,
|
|
10556
|
+
index: 24
|
|
10557
|
+
}; // RNM(end)
|
|
10558
|
+
this.rules[22].opcodes[10] = {
|
|
10559
|
+
type: 4,
|
|
10560
|
+
index: 3
|
|
10561
|
+
}; // RNM(S)
|
|
10562
|
+
this.rules[22].opcodes[11] = {
|
|
10563
|
+
type: 3,
|
|
10564
|
+
min: 0,
|
|
10565
|
+
max: 1
|
|
10566
|
+
}; // REP
|
|
10567
|
+
this.rules[22].opcodes[12] = {
|
|
10568
|
+
type: 2,
|
|
10569
|
+
children: [13, 14]
|
|
10570
|
+
}; // CAT
|
|
10571
|
+
this.rules[22].opcodes[13] = {
|
|
10572
|
+
type: 4,
|
|
10573
|
+
index: 85
|
|
10574
|
+
}; // RNM(colon)
|
|
10575
|
+
this.rules[22].opcodes[14] = {
|
|
10576
|
+
type: 3,
|
|
10577
|
+
min: 0,
|
|
10578
|
+
max: 1
|
|
10579
|
+
}; // REP
|
|
10580
|
+
this.rules[22].opcodes[15] = {
|
|
10581
|
+
type: 2,
|
|
10582
|
+
children: [16, 17]
|
|
10583
|
+
}; // CAT
|
|
10584
|
+
this.rules[22].opcodes[16] = {
|
|
10585
|
+
type: 4,
|
|
10586
|
+
index: 3
|
|
10587
|
+
}; // RNM(S)
|
|
10588
|
+
this.rules[22].opcodes[17] = {
|
|
10589
|
+
type: 4,
|
|
10590
|
+
index: 25
|
|
10591
|
+
}; // RNM(step)
|
|
10592
|
+
|
|
10593
|
+
/* start */
|
|
10594
|
+
this.rules[23].opcodes = [];
|
|
10595
|
+
this.rules[23].opcodes[0] = {
|
|
10596
|
+
type: 4,
|
|
10597
|
+
index: 20
|
|
10598
|
+
}; // RNM(int)
|
|
10599
|
+
|
|
10600
|
+
/* end */
|
|
10601
|
+
this.rules[24].opcodes = [];
|
|
10602
|
+
this.rules[24].opcodes[0] = {
|
|
10603
|
+
type: 4,
|
|
10604
|
+
index: 20
|
|
10605
|
+
}; // RNM(int)
|
|
10606
|
+
|
|
10607
|
+
/* step */
|
|
10608
|
+
this.rules[25].opcodes = [];
|
|
10609
|
+
this.rules[25].opcodes[0] = {
|
|
10610
|
+
type: 4,
|
|
10611
|
+
index: 20
|
|
10612
|
+
}; // RNM(int)
|
|
10613
|
+
|
|
10614
|
+
/* filter-selector */
|
|
10615
|
+
this.rules[26].opcodes = [];
|
|
10616
|
+
this.rules[26].opcodes[0] = {
|
|
10617
|
+
type: 2,
|
|
10618
|
+
children: [1, 2, 3]
|
|
10619
|
+
}; // CAT
|
|
10620
|
+
this.rules[26].opcodes[1] = {
|
|
10621
|
+
type: 4,
|
|
10622
|
+
index: 88
|
|
10623
|
+
}; // RNM(questionmark)
|
|
10624
|
+
this.rules[26].opcodes[2] = {
|
|
10625
|
+
type: 4,
|
|
10626
|
+
index: 3
|
|
10627
|
+
}; // RNM(S)
|
|
10628
|
+
this.rules[26].opcodes[3] = {
|
|
10629
|
+
type: 4,
|
|
10630
|
+
index: 27
|
|
10631
|
+
}; // RNM(logical-expr)
|
|
10632
|
+
|
|
10633
|
+
/* logical-expr */
|
|
10634
|
+
this.rules[27].opcodes = [];
|
|
10635
|
+
this.rules[27].opcodes[0] = {
|
|
10636
|
+
type: 4,
|
|
10637
|
+
index: 28
|
|
10638
|
+
}; // RNM(logical-or-expr)
|
|
10639
|
+
|
|
10640
|
+
/* logical-or-expr */
|
|
10641
|
+
this.rules[28].opcodes = [];
|
|
10642
|
+
this.rules[28].opcodes[0] = {
|
|
10643
|
+
type: 2,
|
|
10644
|
+
children: [1, 2]
|
|
10645
|
+
}; // CAT
|
|
10646
|
+
this.rules[28].opcodes[1] = {
|
|
10647
|
+
type: 4,
|
|
10648
|
+
index: 29
|
|
10649
|
+
}; // RNM(logical-and-expr)
|
|
10650
|
+
this.rules[28].opcodes[2] = {
|
|
10651
|
+
type: 3,
|
|
10652
|
+
min: 0,
|
|
10653
|
+
max: Infinity
|
|
10654
|
+
}; // REP
|
|
10655
|
+
this.rules[28].opcodes[3] = {
|
|
10656
|
+
type: 2,
|
|
10657
|
+
children: [4, 5, 6, 7]
|
|
10658
|
+
}; // CAT
|
|
10659
|
+
this.rules[28].opcodes[4] = {
|
|
10660
|
+
type: 4,
|
|
10661
|
+
index: 3
|
|
10662
|
+
}; // RNM(S)
|
|
10663
|
+
this.rules[28].opcodes[5] = {
|
|
10664
|
+
type: 4,
|
|
10665
|
+
index: 89
|
|
10666
|
+
}; // RNM(disjunction)
|
|
10667
|
+
this.rules[28].opcodes[6] = {
|
|
10668
|
+
type: 4,
|
|
10669
|
+
index: 3
|
|
10670
|
+
}; // RNM(S)
|
|
10671
|
+
this.rules[28].opcodes[7] = {
|
|
10672
|
+
type: 4,
|
|
10673
|
+
index: 29
|
|
10674
|
+
}; // RNM(logical-and-expr)
|
|
10675
|
+
|
|
10676
|
+
/* logical-and-expr */
|
|
10677
|
+
this.rules[29].opcodes = [];
|
|
10678
|
+
this.rules[29].opcodes[0] = {
|
|
10679
|
+
type: 2,
|
|
10680
|
+
children: [1, 2]
|
|
10681
|
+
}; // CAT
|
|
10682
|
+
this.rules[29].opcodes[1] = {
|
|
10683
|
+
type: 4,
|
|
10684
|
+
index: 30
|
|
10685
|
+
}; // RNM(basic-expr)
|
|
10686
|
+
this.rules[29].opcodes[2] = {
|
|
10687
|
+
type: 3,
|
|
10688
|
+
min: 0,
|
|
10689
|
+
max: Infinity
|
|
10690
|
+
}; // REP
|
|
10691
|
+
this.rules[29].opcodes[3] = {
|
|
10692
|
+
type: 2,
|
|
10693
|
+
children: [4, 5, 6, 7]
|
|
10694
|
+
}; // CAT
|
|
10695
|
+
this.rules[29].opcodes[4] = {
|
|
10696
|
+
type: 4,
|
|
10697
|
+
index: 3
|
|
10698
|
+
}; // RNM(S)
|
|
10699
|
+
this.rules[29].opcodes[5] = {
|
|
10700
|
+
type: 4,
|
|
10701
|
+
index: 90
|
|
10702
|
+
}; // RNM(conjunction)
|
|
10703
|
+
this.rules[29].opcodes[6] = {
|
|
10704
|
+
type: 4,
|
|
10705
|
+
index: 3
|
|
10706
|
+
}; // RNM(S)
|
|
10707
|
+
this.rules[29].opcodes[7] = {
|
|
10708
|
+
type: 4,
|
|
10709
|
+
index: 30
|
|
10710
|
+
}; // RNM(basic-expr)
|
|
10711
|
+
|
|
10712
|
+
/* basic-expr */
|
|
10713
|
+
this.rules[30].opcodes = [];
|
|
10714
|
+
this.rules[30].opcodes[0] = {
|
|
10715
|
+
type: 1,
|
|
10716
|
+
children: [1, 2, 3]
|
|
10717
|
+
}; // ALT
|
|
10718
|
+
this.rules[30].opcodes[1] = {
|
|
10719
|
+
type: 4,
|
|
10720
|
+
index: 31
|
|
10721
|
+
}; // RNM(paren-expr)
|
|
10722
|
+
this.rules[30].opcodes[2] = {
|
|
10723
|
+
type: 4,
|
|
10724
|
+
index: 37
|
|
10725
|
+
}; // RNM(comparison-expr)
|
|
10726
|
+
this.rules[30].opcodes[3] = {
|
|
10727
|
+
type: 4,
|
|
10728
|
+
index: 33
|
|
10729
|
+
}; // RNM(test-expr)
|
|
10730
|
+
|
|
10731
|
+
/* paren-expr */
|
|
10732
|
+
this.rules[31].opcodes = [];
|
|
10733
|
+
this.rules[31].opcodes[0] = {
|
|
10734
|
+
type: 2,
|
|
10735
|
+
children: [1, 5, 6, 7, 8, 9]
|
|
10736
|
+
}; // CAT
|
|
10737
|
+
this.rules[31].opcodes[1] = {
|
|
10738
|
+
type: 3,
|
|
10739
|
+
min: 0,
|
|
10740
|
+
max: 1
|
|
10741
|
+
}; // REP
|
|
10742
|
+
this.rules[31].opcodes[2] = {
|
|
10743
|
+
type: 2,
|
|
10744
|
+
children: [3, 4]
|
|
10745
|
+
}; // CAT
|
|
10746
|
+
this.rules[31].opcodes[3] = {
|
|
10747
|
+
type: 4,
|
|
10748
|
+
index: 32
|
|
10749
|
+
}; // RNM(logical-not-op)
|
|
10750
|
+
this.rules[31].opcodes[4] = {
|
|
10751
|
+
type: 4,
|
|
10752
|
+
index: 3
|
|
10753
|
+
}; // RNM(S)
|
|
10754
|
+
this.rules[31].opcodes[5] = {
|
|
10755
|
+
type: 4,
|
|
10756
|
+
index: 82
|
|
10757
|
+
}; // RNM(left-paren)
|
|
10758
|
+
this.rules[31].opcodes[6] = {
|
|
10759
|
+
type: 4,
|
|
10760
|
+
index: 3
|
|
10761
|
+
}; // RNM(S)
|
|
10762
|
+
this.rules[31].opcodes[7] = {
|
|
10763
|
+
type: 4,
|
|
10764
|
+
index: 27
|
|
10765
|
+
}; // RNM(logical-expr)
|
|
10766
|
+
this.rules[31].opcodes[8] = {
|
|
10767
|
+
type: 4,
|
|
10768
|
+
index: 3
|
|
10769
|
+
}; // RNM(S)
|
|
10770
|
+
this.rules[31].opcodes[9] = {
|
|
10771
|
+
type: 4,
|
|
10772
|
+
index: 83
|
|
10773
|
+
}; // RNM(right-paren)
|
|
10774
|
+
|
|
10775
|
+
/* logical-not-op */
|
|
10776
|
+
this.rules[32].opcodes = [];
|
|
10777
|
+
this.rules[32].opcodes[0] = {
|
|
10778
|
+
type: 7,
|
|
10779
|
+
string: [33]
|
|
10780
|
+
}; // TLS
|
|
10781
|
+
|
|
10782
|
+
/* test-expr */
|
|
10783
|
+
this.rules[33].opcodes = [];
|
|
10784
|
+
this.rules[33].opcodes[0] = {
|
|
10785
|
+
type: 2,
|
|
10786
|
+
children: [1, 5]
|
|
10787
|
+
}; // CAT
|
|
10788
|
+
this.rules[33].opcodes[1] = {
|
|
10789
|
+
type: 3,
|
|
10790
|
+
min: 0,
|
|
10791
|
+
max: 1
|
|
10792
|
+
}; // REP
|
|
10793
|
+
this.rules[33].opcodes[2] = {
|
|
10794
|
+
type: 2,
|
|
10795
|
+
children: [3, 4]
|
|
10796
|
+
}; // CAT
|
|
10797
|
+
this.rules[33].opcodes[3] = {
|
|
10798
|
+
type: 4,
|
|
10799
|
+
index: 32
|
|
10800
|
+
}; // RNM(logical-not-op)
|
|
10801
|
+
this.rules[33].opcodes[4] = {
|
|
10802
|
+
type: 4,
|
|
10803
|
+
index: 3
|
|
10804
|
+
}; // RNM(S)
|
|
10805
|
+
this.rules[33].opcodes[5] = {
|
|
10806
|
+
type: 1,
|
|
10807
|
+
children: [6, 7]
|
|
10808
|
+
}; // ALT
|
|
10809
|
+
this.rules[33].opcodes[6] = {
|
|
10810
|
+
type: 4,
|
|
10811
|
+
index: 34
|
|
10812
|
+
}; // RNM(filter-query)
|
|
10813
|
+
this.rules[33].opcodes[7] = {
|
|
10814
|
+
type: 4,
|
|
10815
|
+
index: 57
|
|
10816
|
+
}; // RNM(function-expr)
|
|
10817
|
+
|
|
10818
|
+
/* filter-query */
|
|
10819
|
+
this.rules[34].opcodes = [];
|
|
10820
|
+
this.rules[34].opcodes[0] = {
|
|
10821
|
+
type: 1,
|
|
10822
|
+
children: [1, 2]
|
|
10823
|
+
}; // ALT
|
|
10824
|
+
this.rules[34].opcodes[1] = {
|
|
10825
|
+
type: 4,
|
|
10826
|
+
index: 35
|
|
10827
|
+
}; // RNM(rel-query)
|
|
10828
|
+
this.rules[34].opcodes[2] = {
|
|
10829
|
+
type: 4,
|
|
10830
|
+
index: 0
|
|
10831
|
+
}; // RNM(jsonpath-query)
|
|
10832
|
+
|
|
10833
|
+
/* rel-query */
|
|
10834
|
+
this.rules[35].opcodes = [];
|
|
10835
|
+
this.rules[35].opcodes[0] = {
|
|
10836
|
+
type: 2,
|
|
10837
|
+
children: [1, 2]
|
|
10838
|
+
}; // CAT
|
|
10839
|
+
this.rules[35].opcodes[1] = {
|
|
10840
|
+
type: 4,
|
|
10841
|
+
index: 36
|
|
10842
|
+
}; // RNM(current-node-identifier)
|
|
10843
|
+
this.rules[35].opcodes[2] = {
|
|
10844
|
+
type: 4,
|
|
10845
|
+
index: 1
|
|
10846
|
+
}; // RNM(segments)
|
|
10847
|
+
|
|
10848
|
+
/* current-node-identifier */
|
|
10849
|
+
this.rules[36].opcodes = [];
|
|
10850
|
+
this.rules[36].opcodes[0] = {
|
|
10851
|
+
type: 7,
|
|
10852
|
+
string: [64]
|
|
10853
|
+
}; // TLS
|
|
10854
|
+
|
|
10855
|
+
/* comparison-expr */
|
|
10856
|
+
this.rules[37].opcodes = [];
|
|
10857
|
+
this.rules[37].opcodes[0] = {
|
|
10858
|
+
type: 2,
|
|
10859
|
+
children: [1, 2, 3, 4, 5]
|
|
10860
|
+
}; // CAT
|
|
10861
|
+
this.rules[37].opcodes[1] = {
|
|
10862
|
+
type: 4,
|
|
10863
|
+
index: 39
|
|
10864
|
+
}; // RNM(comparable)
|
|
10865
|
+
this.rules[37].opcodes[2] = {
|
|
10866
|
+
type: 4,
|
|
10867
|
+
index: 3
|
|
10868
|
+
}; // RNM(S)
|
|
10869
|
+
this.rules[37].opcodes[3] = {
|
|
10870
|
+
type: 4,
|
|
10871
|
+
index: 40
|
|
10872
|
+
}; // RNM(comparison-op)
|
|
10873
|
+
this.rules[37].opcodes[4] = {
|
|
10874
|
+
type: 4,
|
|
10875
|
+
index: 3
|
|
10876
|
+
}; // RNM(S)
|
|
10877
|
+
this.rules[37].opcodes[5] = {
|
|
10878
|
+
type: 4,
|
|
10879
|
+
index: 39
|
|
10880
|
+
}; // RNM(comparable)
|
|
10881
|
+
|
|
10882
|
+
/* literal */
|
|
10883
|
+
this.rules[38].opcodes = [];
|
|
10884
|
+
this.rules[38].opcodes[0] = {
|
|
10885
|
+
type: 1,
|
|
10886
|
+
children: [1, 2, 3, 4, 5]
|
|
10887
|
+
}; // ALT
|
|
10888
|
+
this.rules[38].opcodes[1] = {
|
|
10889
|
+
type: 4,
|
|
10890
|
+
index: 47
|
|
10891
|
+
}; // RNM(number)
|
|
10892
|
+
this.rules[38].opcodes[2] = {
|
|
10893
|
+
type: 4,
|
|
10894
|
+
index: 7
|
|
10895
|
+
}; // RNM(string-literal)
|
|
10896
|
+
this.rules[38].opcodes[3] = {
|
|
10897
|
+
type: 4,
|
|
10898
|
+
index: 50
|
|
10899
|
+
}; // RNM(true)
|
|
10900
|
+
this.rules[38].opcodes[4] = {
|
|
10901
|
+
type: 4,
|
|
10902
|
+
index: 51
|
|
10903
|
+
}; // RNM(false)
|
|
10904
|
+
this.rules[38].opcodes[5] = {
|
|
10905
|
+
type: 4,
|
|
10906
|
+
index: 52
|
|
10907
|
+
}; // RNM(null)
|
|
10908
|
+
|
|
10909
|
+
/* comparable */
|
|
10910
|
+
this.rules[39].opcodes = [];
|
|
10911
|
+
this.rules[39].opcodes[0] = {
|
|
10912
|
+
type: 1,
|
|
10913
|
+
children: [1, 2, 3]
|
|
10914
|
+
}; // ALT
|
|
10915
|
+
this.rules[39].opcodes[1] = {
|
|
10916
|
+
type: 4,
|
|
10917
|
+
index: 41
|
|
10918
|
+
}; // RNM(singular-query)
|
|
10919
|
+
this.rules[39].opcodes[2] = {
|
|
10920
|
+
type: 4,
|
|
10921
|
+
index: 57
|
|
10922
|
+
}; // RNM(function-expr)
|
|
10923
|
+
this.rules[39].opcodes[3] = {
|
|
10924
|
+
type: 4,
|
|
10925
|
+
index: 38
|
|
10926
|
+
}; // RNM(literal)
|
|
10927
|
+
|
|
10928
|
+
/* comparison-op */
|
|
10929
|
+
this.rules[40].opcodes = [];
|
|
10930
|
+
this.rules[40].opcodes[0] = {
|
|
10931
|
+
type: 1,
|
|
10932
|
+
children: [1, 2, 3, 4, 5, 6]
|
|
10933
|
+
}; // ALT
|
|
10934
|
+
this.rules[40].opcodes[1] = {
|
|
10935
|
+
type: 7,
|
|
10936
|
+
string: [61, 61]
|
|
10937
|
+
}; // TLS
|
|
10938
|
+
this.rules[40].opcodes[2] = {
|
|
10939
|
+
type: 7,
|
|
10940
|
+
string: [33, 61]
|
|
10941
|
+
}; // TLS
|
|
10942
|
+
this.rules[40].opcodes[3] = {
|
|
10943
|
+
type: 7,
|
|
10944
|
+
string: [60, 61]
|
|
10945
|
+
}; // TLS
|
|
10946
|
+
this.rules[40].opcodes[4] = {
|
|
10947
|
+
type: 7,
|
|
10948
|
+
string: [62, 61]
|
|
10949
|
+
}; // TLS
|
|
10950
|
+
this.rules[40].opcodes[5] = {
|
|
10951
|
+
type: 7,
|
|
10952
|
+
string: [60]
|
|
10953
|
+
}; // TLS
|
|
10954
|
+
this.rules[40].opcodes[6] = {
|
|
10955
|
+
type: 7,
|
|
10956
|
+
string: [62]
|
|
10957
|
+
}; // TLS
|
|
10958
|
+
|
|
10959
|
+
/* singular-query */
|
|
10960
|
+
this.rules[41].opcodes = [];
|
|
10961
|
+
this.rules[41].opcodes[0] = {
|
|
10962
|
+
type: 1,
|
|
10963
|
+
children: [1, 2]
|
|
10964
|
+
}; // ALT
|
|
10965
|
+
this.rules[41].opcodes[1] = {
|
|
10966
|
+
type: 4,
|
|
10967
|
+
index: 42
|
|
10968
|
+
}; // RNM(rel-singular-query)
|
|
10969
|
+
this.rules[41].opcodes[2] = {
|
|
10970
|
+
type: 4,
|
|
10971
|
+
index: 43
|
|
10972
|
+
}; // RNM(abs-singular-query)
|
|
10973
|
+
|
|
10974
|
+
/* rel-singular-query */
|
|
10975
|
+
this.rules[42].opcodes = [];
|
|
10976
|
+
this.rules[42].opcodes[0] = {
|
|
10977
|
+
type: 2,
|
|
10978
|
+
children: [1, 2]
|
|
10979
|
+
}; // CAT
|
|
10980
|
+
this.rules[42].opcodes[1] = {
|
|
10981
|
+
type: 4,
|
|
10982
|
+
index: 36
|
|
10983
|
+
}; // RNM(current-node-identifier)
|
|
10984
|
+
this.rules[42].opcodes[2] = {
|
|
10985
|
+
type: 4,
|
|
10986
|
+
index: 44
|
|
10987
|
+
}; // RNM(singular-query-segments)
|
|
10988
|
+
|
|
10989
|
+
/* abs-singular-query */
|
|
10990
|
+
this.rules[43].opcodes = [];
|
|
10991
|
+
this.rules[43].opcodes[0] = {
|
|
10992
|
+
type: 2,
|
|
10993
|
+
children: [1, 2]
|
|
10994
|
+
}; // CAT
|
|
10995
|
+
this.rules[43].opcodes[1] = {
|
|
10996
|
+
type: 4,
|
|
10997
|
+
index: 4
|
|
10998
|
+
}; // RNM(root-identifier)
|
|
10999
|
+
this.rules[43].opcodes[2] = {
|
|
11000
|
+
type: 4,
|
|
11001
|
+
index: 44
|
|
11002
|
+
}; // RNM(singular-query-segments)
|
|
11003
|
+
|
|
11004
|
+
/* singular-query-segments */
|
|
11005
|
+
this.rules[44].opcodes = [];
|
|
11006
|
+
this.rules[44].opcodes[0] = {
|
|
11007
|
+
type: 3,
|
|
11008
|
+
min: 0,
|
|
11009
|
+
max: Infinity
|
|
11010
|
+
}; // REP
|
|
11011
|
+
this.rules[44].opcodes[1] = {
|
|
11012
|
+
type: 2,
|
|
11013
|
+
children: [2, 3]
|
|
11014
|
+
}; // CAT
|
|
11015
|
+
this.rules[44].opcodes[2] = {
|
|
11016
|
+
type: 4,
|
|
11017
|
+
index: 3
|
|
11018
|
+
}; // RNM(S)
|
|
11019
|
+
this.rules[44].opcodes[3] = {
|
|
11020
|
+
type: 1,
|
|
11021
|
+
children: [4, 5]
|
|
11022
|
+
}; // ALT
|
|
11023
|
+
this.rules[44].opcodes[4] = {
|
|
11024
|
+
type: 4,
|
|
11025
|
+
index: 45
|
|
11026
|
+
}; // RNM(name-segment)
|
|
11027
|
+
this.rules[44].opcodes[5] = {
|
|
11028
|
+
type: 4,
|
|
11029
|
+
index: 46
|
|
11030
|
+
}; // RNM(index-segment)
|
|
11031
|
+
|
|
11032
|
+
/* name-segment */
|
|
11033
|
+
this.rules[45].opcodes = [];
|
|
11034
|
+
this.rules[45].opcodes[0] = {
|
|
11035
|
+
type: 1,
|
|
11036
|
+
children: [1, 5]
|
|
11037
|
+
}; // ALT
|
|
11038
|
+
this.rules[45].opcodes[1] = {
|
|
11039
|
+
type: 2,
|
|
11040
|
+
children: [2, 3, 4]
|
|
11041
|
+
}; // CAT
|
|
11042
|
+
this.rules[45].opcodes[2] = {
|
|
11043
|
+
type: 4,
|
|
11044
|
+
index: 80
|
|
11045
|
+
}; // RNM(left-bracket)
|
|
11046
|
+
this.rules[45].opcodes[3] = {
|
|
11047
|
+
type: 4,
|
|
11048
|
+
index: 6
|
|
11049
|
+
}; // RNM(name-selector)
|
|
11050
|
+
this.rules[45].opcodes[4] = {
|
|
11051
|
+
type: 4,
|
|
11052
|
+
index: 81
|
|
11053
|
+
}; // RNM(right-bracket)
|
|
11054
|
+
this.rules[45].opcodes[5] = {
|
|
11055
|
+
type: 2,
|
|
11056
|
+
children: [6, 7]
|
|
11057
|
+
}; // CAT
|
|
11058
|
+
this.rules[45].opcodes[6] = {
|
|
11059
|
+
type: 4,
|
|
11060
|
+
index: 78
|
|
11061
|
+
}; // RNM(dot-prefix)
|
|
11062
|
+
this.rules[45].opcodes[7] = {
|
|
11063
|
+
type: 4,
|
|
11064
|
+
index: 62
|
|
11065
|
+
}; // RNM(member-name-shorthand)
|
|
11066
|
+
|
|
11067
|
+
/* index-segment */
|
|
11068
|
+
this.rules[46].opcodes = [];
|
|
11069
|
+
this.rules[46].opcodes[0] = {
|
|
11070
|
+
type: 2,
|
|
11071
|
+
children: [1, 2, 3]
|
|
11072
|
+
}; // CAT
|
|
11073
|
+
this.rules[46].opcodes[1] = {
|
|
11074
|
+
type: 4,
|
|
11075
|
+
index: 80
|
|
11076
|
+
}; // RNM(left-bracket)
|
|
11077
|
+
this.rules[46].opcodes[2] = {
|
|
11078
|
+
type: 4,
|
|
11079
|
+
index: 19
|
|
11080
|
+
}; // RNM(index-selector)
|
|
11081
|
+
this.rules[46].opcodes[3] = {
|
|
11082
|
+
type: 4,
|
|
11083
|
+
index: 81
|
|
11084
|
+
}; // RNM(right-bracket)
|
|
11085
|
+
|
|
11086
|
+
/* number */
|
|
11087
|
+
this.rules[47].opcodes = [];
|
|
11088
|
+
this.rules[47].opcodes[0] = {
|
|
11089
|
+
type: 2,
|
|
11090
|
+
children: [1, 4, 6]
|
|
11091
|
+
}; // CAT
|
|
11092
|
+
this.rules[47].opcodes[1] = {
|
|
11093
|
+
type: 1,
|
|
11094
|
+
children: [2, 3]
|
|
11095
|
+
}; // ALT
|
|
11096
|
+
this.rules[47].opcodes[2] = {
|
|
11097
|
+
type: 4,
|
|
11098
|
+
index: 20
|
|
11099
|
+
}; // RNM(int)
|
|
11100
|
+
this.rules[47].opcodes[3] = {
|
|
11101
|
+
type: 7,
|
|
11102
|
+
string: [45, 48]
|
|
11103
|
+
}; // TLS
|
|
11104
|
+
this.rules[47].opcodes[4] = {
|
|
11105
|
+
type: 3,
|
|
11106
|
+
min: 0,
|
|
11107
|
+
max: 1
|
|
11108
|
+
}; // REP
|
|
11109
|
+
this.rules[47].opcodes[5] = {
|
|
11110
|
+
type: 4,
|
|
11111
|
+
index: 48
|
|
11112
|
+
}; // RNM(frac)
|
|
11113
|
+
this.rules[47].opcodes[6] = {
|
|
11114
|
+
type: 3,
|
|
11115
|
+
min: 0,
|
|
11116
|
+
max: 1
|
|
11117
|
+
}; // REP
|
|
11118
|
+
this.rules[47].opcodes[7] = {
|
|
11119
|
+
type: 4,
|
|
11120
|
+
index: 49
|
|
11121
|
+
}; // RNM(exp)
|
|
11122
|
+
|
|
11123
|
+
/* frac */
|
|
11124
|
+
this.rules[48].opcodes = [];
|
|
11125
|
+
this.rules[48].opcodes[0] = {
|
|
11126
|
+
type: 2,
|
|
11127
|
+
children: [1, 2]
|
|
11128
|
+
}; // CAT
|
|
11129
|
+
this.rules[48].opcodes[1] = {
|
|
11130
|
+
type: 7,
|
|
11131
|
+
string: [46]
|
|
11132
|
+
}; // TLS
|
|
11133
|
+
this.rules[48].opcodes[2] = {
|
|
11134
|
+
type: 3,
|
|
11135
|
+
min: 1,
|
|
11136
|
+
max: Infinity
|
|
11137
|
+
}; // REP
|
|
11138
|
+
this.rules[48].opcodes[3] = {
|
|
11139
|
+
type: 4,
|
|
11140
|
+
index: 65
|
|
11141
|
+
}; // RNM(DIGIT)
|
|
11142
|
+
|
|
11143
|
+
/* exp */
|
|
11144
|
+
this.rules[49].opcodes = [];
|
|
11145
|
+
this.rules[49].opcodes[0] = {
|
|
11146
|
+
type: 2,
|
|
11147
|
+
children: [1, 2, 6]
|
|
11148
|
+
}; // CAT
|
|
11149
|
+
this.rules[49].opcodes[1] = {
|
|
11150
|
+
type: 7,
|
|
11151
|
+
string: [101]
|
|
11152
|
+
}; // TLS
|
|
11153
|
+
this.rules[49].opcodes[2] = {
|
|
11154
|
+
type: 3,
|
|
11155
|
+
min: 0,
|
|
11156
|
+
max: 1
|
|
11157
|
+
}; // REP
|
|
11158
|
+
this.rules[49].opcodes[3] = {
|
|
11159
|
+
type: 1,
|
|
11160
|
+
children: [4, 5]
|
|
11161
|
+
}; // ALT
|
|
11162
|
+
this.rules[49].opcodes[4] = {
|
|
11163
|
+
type: 7,
|
|
11164
|
+
string: [45]
|
|
11165
|
+
}; // TLS
|
|
11166
|
+
this.rules[49].opcodes[5] = {
|
|
11167
|
+
type: 7,
|
|
11168
|
+
string: [43]
|
|
11169
|
+
}; // TLS
|
|
11170
|
+
this.rules[49].opcodes[6] = {
|
|
11171
|
+
type: 3,
|
|
11172
|
+
min: 1,
|
|
11173
|
+
max: Infinity
|
|
11174
|
+
}; // REP
|
|
11175
|
+
this.rules[49].opcodes[7] = {
|
|
11176
|
+
type: 4,
|
|
11177
|
+
index: 65
|
|
11178
|
+
}; // RNM(DIGIT)
|
|
11179
|
+
|
|
11180
|
+
/* true */
|
|
11181
|
+
this.rules[50].opcodes = [];
|
|
11182
|
+
this.rules[50].opcodes[0] = {
|
|
11183
|
+
type: 6,
|
|
11184
|
+
string: [116, 114, 117, 101]
|
|
11185
|
+
}; // TBS
|
|
11186
|
+
|
|
11187
|
+
/* false */
|
|
11188
|
+
this.rules[51].opcodes = [];
|
|
11189
|
+
this.rules[51].opcodes[0] = {
|
|
11190
|
+
type: 6,
|
|
11191
|
+
string: [102, 97, 108, 115, 101]
|
|
11192
|
+
}; // TBS
|
|
11193
|
+
|
|
11194
|
+
/* null */
|
|
11195
|
+
this.rules[52].opcodes = [];
|
|
11196
|
+
this.rules[52].opcodes[0] = {
|
|
11197
|
+
type: 6,
|
|
11198
|
+
string: [110, 117, 108, 108]
|
|
11199
|
+
}; // TBS
|
|
11200
|
+
|
|
11201
|
+
/* function-name */
|
|
11202
|
+
this.rules[53].opcodes = [];
|
|
11203
|
+
this.rules[53].opcodes[0] = {
|
|
11204
|
+
type: 2,
|
|
11205
|
+
children: [1, 2]
|
|
11206
|
+
}; // CAT
|
|
11207
|
+
this.rules[53].opcodes[1] = {
|
|
11208
|
+
type: 4,
|
|
11209
|
+
index: 54
|
|
11210
|
+
}; // RNM(function-name-first)
|
|
11211
|
+
this.rules[53].opcodes[2] = {
|
|
11212
|
+
type: 3,
|
|
11213
|
+
min: 0,
|
|
11214
|
+
max: Infinity
|
|
11215
|
+
}; // REP
|
|
11216
|
+
this.rules[53].opcodes[3] = {
|
|
11217
|
+
type: 4,
|
|
11218
|
+
index: 55
|
|
11219
|
+
}; // RNM(function-name-char)
|
|
11220
|
+
|
|
11221
|
+
/* function-name-first */
|
|
11222
|
+
this.rules[54].opcodes = [];
|
|
11223
|
+
this.rules[54].opcodes[0] = {
|
|
11224
|
+
type: 4,
|
|
11225
|
+
index: 56
|
|
11226
|
+
}; // RNM(LCALPHA)
|
|
11227
|
+
|
|
11228
|
+
/* function-name-char */
|
|
11229
|
+
this.rules[55].opcodes = [];
|
|
11230
|
+
this.rules[55].opcodes[0] = {
|
|
11231
|
+
type: 1,
|
|
11232
|
+
children: [1, 2, 3]
|
|
11233
|
+
}; // ALT
|
|
11234
|
+
this.rules[55].opcodes[1] = {
|
|
11235
|
+
type: 4,
|
|
11236
|
+
index: 54
|
|
11237
|
+
}; // RNM(function-name-first)
|
|
11238
|
+
this.rules[55].opcodes[2] = {
|
|
11239
|
+
type: 7,
|
|
11240
|
+
string: [95]
|
|
11241
|
+
}; // TLS
|
|
11242
|
+
this.rules[55].opcodes[3] = {
|
|
11243
|
+
type: 4,
|
|
11244
|
+
index: 65
|
|
11245
|
+
}; // RNM(DIGIT)
|
|
11246
|
+
|
|
11247
|
+
/* LCALPHA */
|
|
11248
|
+
this.rules[56].opcodes = [];
|
|
11249
|
+
this.rules[56].opcodes[0] = {
|
|
11250
|
+
type: 5,
|
|
11251
|
+
min: 97,
|
|
11252
|
+
max: 122
|
|
11253
|
+
}; // TRG
|
|
11254
|
+
|
|
11255
|
+
/* function-expr */
|
|
11256
|
+
this.rules[57].opcodes = [];
|
|
11257
|
+
this.rules[57].opcodes[0] = {
|
|
11258
|
+
type: 2,
|
|
11259
|
+
children: [1, 2, 3, 4, 13, 14]
|
|
11260
|
+
}; // CAT
|
|
11261
|
+
this.rules[57].opcodes[1] = {
|
|
11262
|
+
type: 4,
|
|
11263
|
+
index: 53
|
|
11264
|
+
}; // RNM(function-name)
|
|
11265
|
+
this.rules[57].opcodes[2] = {
|
|
11266
|
+
type: 4,
|
|
11267
|
+
index: 82
|
|
11268
|
+
}; // RNM(left-paren)
|
|
11269
|
+
this.rules[57].opcodes[3] = {
|
|
11270
|
+
type: 4,
|
|
11271
|
+
index: 3
|
|
11272
|
+
}; // RNM(S)
|
|
11273
|
+
this.rules[57].opcodes[4] = {
|
|
11274
|
+
type: 3,
|
|
11275
|
+
min: 0,
|
|
11276
|
+
max: 1
|
|
11277
|
+
}; // REP
|
|
11278
|
+
this.rules[57].opcodes[5] = {
|
|
11279
|
+
type: 2,
|
|
11280
|
+
children: [6, 7]
|
|
11281
|
+
}; // CAT
|
|
11282
|
+
this.rules[57].opcodes[6] = {
|
|
11283
|
+
type: 4,
|
|
11284
|
+
index: 58
|
|
11285
|
+
}; // RNM(function-argument)
|
|
11286
|
+
this.rules[57].opcodes[7] = {
|
|
11287
|
+
type: 3,
|
|
11288
|
+
min: 0,
|
|
11289
|
+
max: Infinity
|
|
11290
|
+
}; // REP
|
|
11291
|
+
this.rules[57].opcodes[8] = {
|
|
11292
|
+
type: 2,
|
|
11293
|
+
children: [9, 10, 11, 12]
|
|
11294
|
+
}; // CAT
|
|
11295
|
+
this.rules[57].opcodes[9] = {
|
|
11296
|
+
type: 4,
|
|
11297
|
+
index: 3
|
|
11298
|
+
}; // RNM(S)
|
|
11299
|
+
this.rules[57].opcodes[10] = {
|
|
11300
|
+
type: 4,
|
|
11301
|
+
index: 84
|
|
11302
|
+
}; // RNM(comma)
|
|
11303
|
+
this.rules[57].opcodes[11] = {
|
|
11304
|
+
type: 4,
|
|
11305
|
+
index: 3
|
|
11306
|
+
}; // RNM(S)
|
|
11307
|
+
this.rules[57].opcodes[12] = {
|
|
11308
|
+
type: 4,
|
|
11309
|
+
index: 58
|
|
11310
|
+
}; // RNM(function-argument)
|
|
11311
|
+
this.rules[57].opcodes[13] = {
|
|
11312
|
+
type: 4,
|
|
11313
|
+
index: 3
|
|
11314
|
+
}; // RNM(S)
|
|
11315
|
+
this.rules[57].opcodes[14] = {
|
|
11316
|
+
type: 4,
|
|
11317
|
+
index: 83
|
|
11318
|
+
}; // RNM(right-paren)
|
|
11319
|
+
|
|
11320
|
+
/* function-argument */
|
|
11321
|
+
this.rules[58].opcodes = [];
|
|
11322
|
+
this.rules[58].opcodes[0] = {
|
|
11323
|
+
type: 1,
|
|
11324
|
+
children: [1, 2, 3, 4]
|
|
11325
|
+
}; // ALT
|
|
11326
|
+
this.rules[58].opcodes[1] = {
|
|
11327
|
+
type: 4,
|
|
11328
|
+
index: 27
|
|
11329
|
+
}; // RNM(logical-expr)
|
|
11330
|
+
this.rules[58].opcodes[2] = {
|
|
11331
|
+
type: 4,
|
|
11332
|
+
index: 34
|
|
11333
|
+
}; // RNM(filter-query)
|
|
11334
|
+
this.rules[58].opcodes[3] = {
|
|
11335
|
+
type: 4,
|
|
11336
|
+
index: 57
|
|
11337
|
+
}; // RNM(function-expr)
|
|
11338
|
+
this.rules[58].opcodes[4] = {
|
|
11339
|
+
type: 4,
|
|
11340
|
+
index: 38
|
|
11341
|
+
}; // RNM(literal)
|
|
11342
|
+
|
|
11343
|
+
/* segment */
|
|
11344
|
+
this.rules[59].opcodes = [];
|
|
11345
|
+
this.rules[59].opcodes[0] = {
|
|
11346
|
+
type: 1,
|
|
11347
|
+
children: [1, 2]
|
|
11348
|
+
}; // ALT
|
|
11349
|
+
this.rules[59].opcodes[1] = {
|
|
11350
|
+
type: 4,
|
|
11351
|
+
index: 60
|
|
11352
|
+
}; // RNM(child-segment)
|
|
11353
|
+
this.rules[59].opcodes[2] = {
|
|
11354
|
+
type: 4,
|
|
11355
|
+
index: 67
|
|
11356
|
+
}; // RNM(descendant-segment)
|
|
11357
|
+
|
|
11358
|
+
/* child-segment */
|
|
11359
|
+
this.rules[60].opcodes = [];
|
|
11360
|
+
this.rules[60].opcodes[0] = {
|
|
11361
|
+
type: 1,
|
|
11362
|
+
children: [1, 2]
|
|
11363
|
+
}; // ALT
|
|
11364
|
+
this.rules[60].opcodes[1] = {
|
|
11365
|
+
type: 4,
|
|
11366
|
+
index: 61
|
|
11367
|
+
}; // RNM(bracketed-selection)
|
|
11368
|
+
this.rules[60].opcodes[2] = {
|
|
11369
|
+
type: 2,
|
|
11370
|
+
children: [3, 4]
|
|
11371
|
+
}; // CAT
|
|
11372
|
+
this.rules[60].opcodes[3] = {
|
|
11373
|
+
type: 4,
|
|
11374
|
+
index: 78
|
|
11375
|
+
}; // RNM(dot-prefix)
|
|
11376
|
+
this.rules[60].opcodes[4] = {
|
|
11377
|
+
type: 1,
|
|
11378
|
+
children: [5, 6]
|
|
11379
|
+
}; // ALT
|
|
11380
|
+
this.rules[60].opcodes[5] = {
|
|
11381
|
+
type: 4,
|
|
11382
|
+
index: 18
|
|
11383
|
+
}; // RNM(wildcard-selector)
|
|
11384
|
+
this.rules[60].opcodes[6] = {
|
|
11385
|
+
type: 4,
|
|
11386
|
+
index: 62
|
|
11387
|
+
}; // RNM(member-name-shorthand)
|
|
11388
|
+
|
|
11389
|
+
/* bracketed-selection */
|
|
11390
|
+
this.rules[61].opcodes = [];
|
|
11391
|
+
this.rules[61].opcodes[0] = {
|
|
11392
|
+
type: 2,
|
|
11393
|
+
children: [1, 2, 3, 4, 10, 11]
|
|
11394
|
+
}; // CAT
|
|
11395
|
+
this.rules[61].opcodes[1] = {
|
|
11396
|
+
type: 4,
|
|
11397
|
+
index: 80
|
|
11398
|
+
}; // RNM(left-bracket)
|
|
11399
|
+
this.rules[61].opcodes[2] = {
|
|
11400
|
+
type: 4,
|
|
11401
|
+
index: 3
|
|
11402
|
+
}; // RNM(S)
|
|
11403
|
+
this.rules[61].opcodes[3] = {
|
|
11404
|
+
type: 4,
|
|
11405
|
+
index: 5
|
|
11406
|
+
}; // RNM(selector)
|
|
11407
|
+
this.rules[61].opcodes[4] = {
|
|
11408
|
+
type: 3,
|
|
11409
|
+
min: 0,
|
|
11410
|
+
max: Infinity
|
|
11411
|
+
}; // REP
|
|
11412
|
+
this.rules[61].opcodes[5] = {
|
|
11413
|
+
type: 2,
|
|
11414
|
+
children: [6, 7, 8, 9]
|
|
11415
|
+
}; // CAT
|
|
11416
|
+
this.rules[61].opcodes[6] = {
|
|
11417
|
+
type: 4,
|
|
11418
|
+
index: 3
|
|
11419
|
+
}; // RNM(S)
|
|
11420
|
+
this.rules[61].opcodes[7] = {
|
|
11421
|
+
type: 4,
|
|
11422
|
+
index: 84
|
|
11423
|
+
}; // RNM(comma)
|
|
11424
|
+
this.rules[61].opcodes[8] = {
|
|
11425
|
+
type: 4,
|
|
11426
|
+
index: 3
|
|
11427
|
+
}; // RNM(S)
|
|
11428
|
+
this.rules[61].opcodes[9] = {
|
|
11429
|
+
type: 4,
|
|
11430
|
+
index: 5
|
|
11431
|
+
}; // RNM(selector)
|
|
11432
|
+
this.rules[61].opcodes[10] = {
|
|
11433
|
+
type: 4,
|
|
11434
|
+
index: 3
|
|
11435
|
+
}; // RNM(S)
|
|
11436
|
+
this.rules[61].opcodes[11] = {
|
|
11437
|
+
type: 4,
|
|
11438
|
+
index: 81
|
|
11439
|
+
}; // RNM(right-bracket)
|
|
11440
|
+
|
|
11441
|
+
/* member-name-shorthand */
|
|
11442
|
+
this.rules[62].opcodes = [];
|
|
11443
|
+
this.rules[62].opcodes[0] = {
|
|
11444
|
+
type: 2,
|
|
11445
|
+
children: [1, 2]
|
|
11446
|
+
}; // CAT
|
|
11447
|
+
this.rules[62].opcodes[1] = {
|
|
11448
|
+
type: 4,
|
|
11449
|
+
index: 63
|
|
11450
|
+
}; // RNM(name-first)
|
|
11451
|
+
this.rules[62].opcodes[2] = {
|
|
11452
|
+
type: 3,
|
|
11453
|
+
min: 0,
|
|
11454
|
+
max: Infinity
|
|
11455
|
+
}; // REP
|
|
11456
|
+
this.rules[62].opcodes[3] = {
|
|
11457
|
+
type: 4,
|
|
11458
|
+
index: 64
|
|
11459
|
+
}; // RNM(name-char)
|
|
11460
|
+
|
|
11461
|
+
/* name-first */
|
|
11462
|
+
this.rules[63].opcodes = [];
|
|
11463
|
+
this.rules[63].opcodes[0] = {
|
|
11464
|
+
type: 1,
|
|
11465
|
+
children: [1, 2, 3, 4]
|
|
11466
|
+
}; // ALT
|
|
11467
|
+
this.rules[63].opcodes[1] = {
|
|
11468
|
+
type: 4,
|
|
11469
|
+
index: 66
|
|
11470
|
+
}; // RNM(ALPHA)
|
|
11471
|
+
this.rules[63].opcodes[2] = {
|
|
11472
|
+
type: 7,
|
|
11473
|
+
string: [95]
|
|
11474
|
+
}; // TLS
|
|
11475
|
+
this.rules[63].opcodes[3] = {
|
|
11476
|
+
type: 5,
|
|
11477
|
+
min: 128,
|
|
11478
|
+
max: 55295
|
|
11479
|
+
}; // TRG
|
|
11480
|
+
this.rules[63].opcodes[4] = {
|
|
11481
|
+
type: 5,
|
|
11482
|
+
min: 57344,
|
|
11483
|
+
max: 1114111
|
|
11484
|
+
}; // TRG
|
|
11485
|
+
|
|
11486
|
+
/* name-char */
|
|
11487
|
+
this.rules[64].opcodes = [];
|
|
11488
|
+
this.rules[64].opcodes[0] = {
|
|
11489
|
+
type: 1,
|
|
11490
|
+
children: [1, 2]
|
|
11491
|
+
}; // ALT
|
|
11492
|
+
this.rules[64].opcodes[1] = {
|
|
11493
|
+
type: 4,
|
|
11494
|
+
index: 63
|
|
11495
|
+
}; // RNM(name-first)
|
|
11496
|
+
this.rules[64].opcodes[2] = {
|
|
11497
|
+
type: 4,
|
|
11498
|
+
index: 65
|
|
11499
|
+
}; // RNM(DIGIT)
|
|
11500
|
+
|
|
11501
|
+
/* DIGIT */
|
|
11502
|
+
this.rules[65].opcodes = [];
|
|
11503
|
+
this.rules[65].opcodes[0] = {
|
|
11504
|
+
type: 5,
|
|
11505
|
+
min: 48,
|
|
11506
|
+
max: 57
|
|
11507
|
+
}; // TRG
|
|
11508
|
+
|
|
11509
|
+
/* ALPHA */
|
|
11510
|
+
this.rules[66].opcodes = [];
|
|
11511
|
+
this.rules[66].opcodes[0] = {
|
|
11512
|
+
type: 1,
|
|
11513
|
+
children: [1, 2]
|
|
11514
|
+
}; // ALT
|
|
11515
|
+
this.rules[66].opcodes[1] = {
|
|
11516
|
+
type: 5,
|
|
11517
|
+
min: 65,
|
|
11518
|
+
max: 90
|
|
11519
|
+
}; // TRG
|
|
11520
|
+
this.rules[66].opcodes[2] = {
|
|
11521
|
+
type: 5,
|
|
11522
|
+
min: 97,
|
|
11523
|
+
max: 122
|
|
11524
|
+
}; // TRG
|
|
11525
|
+
|
|
11526
|
+
/* descendant-segment */
|
|
11527
|
+
this.rules[67].opcodes = [];
|
|
11528
|
+
this.rules[67].opcodes[0] = {
|
|
11529
|
+
type: 2,
|
|
11530
|
+
children: [1, 2]
|
|
11531
|
+
}; // CAT
|
|
11532
|
+
this.rules[67].opcodes[1] = {
|
|
11533
|
+
type: 4,
|
|
11534
|
+
index: 79
|
|
11535
|
+
}; // RNM(double-dot-prefix)
|
|
11536
|
+
this.rules[67].opcodes[2] = {
|
|
11537
|
+
type: 1,
|
|
11538
|
+
children: [3, 4, 5]
|
|
11539
|
+
}; // ALT
|
|
11540
|
+
this.rules[67].opcodes[3] = {
|
|
11541
|
+
type: 4,
|
|
11542
|
+
index: 61
|
|
11543
|
+
}; // RNM(bracketed-selection)
|
|
11544
|
+
this.rules[67].opcodes[4] = {
|
|
11545
|
+
type: 4,
|
|
11546
|
+
index: 18
|
|
11547
|
+
}; // RNM(wildcard-selector)
|
|
11548
|
+
this.rules[67].opcodes[5] = {
|
|
11549
|
+
type: 4,
|
|
11550
|
+
index: 62
|
|
11551
|
+
}; // RNM(member-name-shorthand)
|
|
11552
|
+
|
|
11553
|
+
/* normalized-path */
|
|
11554
|
+
this.rules[68].opcodes = [];
|
|
11555
|
+
this.rules[68].opcodes[0] = {
|
|
11556
|
+
type: 2,
|
|
11557
|
+
children: [1, 2]
|
|
11558
|
+
}; // CAT
|
|
11559
|
+
this.rules[68].opcodes[1] = {
|
|
11560
|
+
type: 4,
|
|
11561
|
+
index: 4
|
|
11562
|
+
}; // RNM(root-identifier)
|
|
11563
|
+
this.rules[68].opcodes[2] = {
|
|
11564
|
+
type: 3,
|
|
11565
|
+
min: 0,
|
|
11566
|
+
max: Infinity
|
|
11567
|
+
}; // REP
|
|
11568
|
+
this.rules[68].opcodes[3] = {
|
|
11569
|
+
type: 4,
|
|
11570
|
+
index: 69
|
|
11571
|
+
}; // RNM(normal-index-segment)
|
|
11572
|
+
|
|
11573
|
+
/* normal-index-segment */
|
|
11574
|
+
this.rules[69].opcodes = [];
|
|
11575
|
+
this.rules[69].opcodes[0] = {
|
|
11576
|
+
type: 2,
|
|
11577
|
+
children: [1, 2, 3]
|
|
11578
|
+
}; // CAT
|
|
11579
|
+
this.rules[69].opcodes[1] = {
|
|
11580
|
+
type: 4,
|
|
11581
|
+
index: 80
|
|
11582
|
+
}; // RNM(left-bracket)
|
|
11583
|
+
this.rules[69].opcodes[2] = {
|
|
11584
|
+
type: 4,
|
|
11585
|
+
index: 70
|
|
11586
|
+
}; // RNM(normal-selector)
|
|
11587
|
+
this.rules[69].opcodes[3] = {
|
|
11588
|
+
type: 4,
|
|
11589
|
+
index: 81
|
|
11590
|
+
}; // RNM(right-bracket)
|
|
11591
|
+
|
|
11592
|
+
/* normal-selector */
|
|
11593
|
+
this.rules[70].opcodes = [];
|
|
11594
|
+
this.rules[70].opcodes[0] = {
|
|
11595
|
+
type: 1,
|
|
11596
|
+
children: [1, 2]
|
|
11597
|
+
}; // ALT
|
|
11598
|
+
this.rules[70].opcodes[1] = {
|
|
11599
|
+
type: 4,
|
|
11600
|
+
index: 71
|
|
11601
|
+
}; // RNM(normal-name-selector)
|
|
11602
|
+
this.rules[70].opcodes[2] = {
|
|
11603
|
+
type: 4,
|
|
11604
|
+
index: 77
|
|
11605
|
+
}; // RNM(normal-index-selector)
|
|
11606
|
+
|
|
11607
|
+
/* normal-name-selector */
|
|
11608
|
+
this.rules[71].opcodes = [];
|
|
11609
|
+
this.rules[71].opcodes[0] = {
|
|
11610
|
+
type: 2,
|
|
11611
|
+
children: [1, 2, 4]
|
|
11612
|
+
}; // CAT
|
|
11613
|
+
this.rules[71].opcodes[1] = {
|
|
11614
|
+
type: 4,
|
|
11615
|
+
index: 87
|
|
11616
|
+
}; // RNM(squote)
|
|
11617
|
+
this.rules[71].opcodes[2] = {
|
|
11618
|
+
type: 3,
|
|
11619
|
+
min: 0,
|
|
11620
|
+
max: Infinity
|
|
11621
|
+
}; // REP
|
|
11622
|
+
this.rules[71].opcodes[3] = {
|
|
11623
|
+
type: 4,
|
|
11624
|
+
index: 72
|
|
11625
|
+
}; // RNM(normal-single-quoted)
|
|
11626
|
+
this.rules[71].opcodes[4] = {
|
|
11627
|
+
type: 4,
|
|
11628
|
+
index: 87
|
|
11629
|
+
}; // RNM(squote)
|
|
11630
|
+
|
|
11631
|
+
/* normal-single-quoted */
|
|
11632
|
+
this.rules[72].opcodes = [];
|
|
11633
|
+
this.rules[72].opcodes[0] = {
|
|
11634
|
+
type: 1,
|
|
11635
|
+
children: [1, 2]
|
|
11636
|
+
}; // ALT
|
|
11637
|
+
this.rules[72].opcodes[1] = {
|
|
11638
|
+
type: 4,
|
|
11639
|
+
index: 73
|
|
11640
|
+
}; // RNM(normal-unescaped)
|
|
11641
|
+
this.rules[72].opcodes[2] = {
|
|
11642
|
+
type: 2,
|
|
11643
|
+
children: [3, 4]
|
|
11644
|
+
}; // CAT
|
|
11645
|
+
this.rules[72].opcodes[3] = {
|
|
11646
|
+
type: 4,
|
|
11647
|
+
index: 10
|
|
11648
|
+
}; // RNM(ESC)
|
|
11649
|
+
this.rules[72].opcodes[4] = {
|
|
11650
|
+
type: 4,
|
|
11651
|
+
index: 74
|
|
11652
|
+
}; // RNM(normal-escapable)
|
|
11653
|
+
|
|
11654
|
+
/* normal-unescaped */
|
|
11655
|
+
this.rules[73].opcodes = [];
|
|
11656
|
+
this.rules[73].opcodes[0] = {
|
|
11657
|
+
type: 1,
|
|
11658
|
+
children: [1, 2, 3, 4]
|
|
11659
|
+
}; // ALT
|
|
11660
|
+
this.rules[73].opcodes[1] = {
|
|
11661
|
+
type: 5,
|
|
11662
|
+
min: 32,
|
|
11663
|
+
max: 38
|
|
11664
|
+
}; // TRG
|
|
11665
|
+
this.rules[73].opcodes[2] = {
|
|
11666
|
+
type: 5,
|
|
11667
|
+
min: 40,
|
|
11668
|
+
max: 91
|
|
11669
|
+
}; // TRG
|
|
11670
|
+
this.rules[73].opcodes[3] = {
|
|
11671
|
+
type: 5,
|
|
11672
|
+
min: 93,
|
|
11673
|
+
max: 55295
|
|
11674
|
+
}; // TRG
|
|
11675
|
+
this.rules[73].opcodes[4] = {
|
|
11676
|
+
type: 5,
|
|
11677
|
+
min: 57344,
|
|
11678
|
+
max: 1114111
|
|
11679
|
+
}; // TRG
|
|
11680
|
+
|
|
11681
|
+
/* normal-escapable */
|
|
11682
|
+
this.rules[74].opcodes = [];
|
|
11683
|
+
this.rules[74].opcodes[0] = {
|
|
11684
|
+
type: 1,
|
|
11685
|
+
children: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
11686
|
+
}; // ALT
|
|
11687
|
+
this.rules[74].opcodes[1] = {
|
|
11688
|
+
type: 6,
|
|
11689
|
+
string: [98]
|
|
11690
|
+
}; // TBS
|
|
11691
|
+
this.rules[74].opcodes[2] = {
|
|
11692
|
+
type: 6,
|
|
11693
|
+
string: [102]
|
|
11694
|
+
}; // TBS
|
|
11695
|
+
this.rules[74].opcodes[3] = {
|
|
11696
|
+
type: 6,
|
|
11697
|
+
string: [110]
|
|
11698
|
+
}; // TBS
|
|
11699
|
+
this.rules[74].opcodes[4] = {
|
|
11700
|
+
type: 6,
|
|
11701
|
+
string: [114]
|
|
11702
|
+
}; // TBS
|
|
11703
|
+
this.rules[74].opcodes[5] = {
|
|
11704
|
+
type: 6,
|
|
11705
|
+
string: [116]
|
|
11706
|
+
}; // TBS
|
|
11707
|
+
this.rules[74].opcodes[6] = {
|
|
11708
|
+
type: 7,
|
|
11709
|
+
string: [39]
|
|
11710
|
+
}; // TLS
|
|
11711
|
+
this.rules[74].opcodes[7] = {
|
|
11712
|
+
type: 7,
|
|
11713
|
+
string: [92]
|
|
11714
|
+
}; // TLS
|
|
11715
|
+
this.rules[74].opcodes[8] = {
|
|
11716
|
+
type: 2,
|
|
11717
|
+
children: [9, 10]
|
|
11718
|
+
}; // CAT
|
|
11719
|
+
this.rules[74].opcodes[9] = {
|
|
11720
|
+
type: 6,
|
|
11721
|
+
string: [117]
|
|
11722
|
+
}; // TBS
|
|
11723
|
+
this.rules[74].opcodes[10] = {
|
|
11724
|
+
type: 4,
|
|
11725
|
+
index: 75
|
|
11726
|
+
}; // RNM(normal-hexchar)
|
|
11727
|
+
|
|
11728
|
+
/* normal-hexchar */
|
|
11729
|
+
this.rules[75].opcodes = [];
|
|
11730
|
+
this.rules[75].opcodes[0] = {
|
|
11731
|
+
type: 2,
|
|
11732
|
+
children: [1, 2, 3]
|
|
11733
|
+
}; // CAT
|
|
11734
|
+
this.rules[75].opcodes[1] = {
|
|
11735
|
+
type: 7,
|
|
11736
|
+
string: [48]
|
|
11737
|
+
}; // TLS
|
|
11738
|
+
this.rules[75].opcodes[2] = {
|
|
11739
|
+
type: 7,
|
|
11740
|
+
string: [48]
|
|
11741
|
+
}; // TLS
|
|
11742
|
+
this.rules[75].opcodes[3] = {
|
|
11743
|
+
type: 1,
|
|
11744
|
+
children: [4, 7, 10, 13]
|
|
11745
|
+
}; // ALT
|
|
11746
|
+
this.rules[75].opcodes[4] = {
|
|
11747
|
+
type: 2,
|
|
11748
|
+
children: [5, 6]
|
|
11749
|
+
}; // CAT
|
|
11750
|
+
this.rules[75].opcodes[5] = {
|
|
11751
|
+
type: 7,
|
|
11752
|
+
string: [48]
|
|
11753
|
+
}; // TLS
|
|
11754
|
+
this.rules[75].opcodes[6] = {
|
|
11755
|
+
type: 5,
|
|
11756
|
+
min: 48,
|
|
11757
|
+
max: 55
|
|
11758
|
+
}; // TRG
|
|
11759
|
+
this.rules[75].opcodes[7] = {
|
|
11760
|
+
type: 2,
|
|
11761
|
+
children: [8, 9]
|
|
11762
|
+
}; // CAT
|
|
11763
|
+
this.rules[75].opcodes[8] = {
|
|
11764
|
+
type: 7,
|
|
11765
|
+
string: [48]
|
|
11766
|
+
}; // TLS
|
|
11767
|
+
this.rules[75].opcodes[9] = {
|
|
11768
|
+
type: 6,
|
|
11769
|
+
string: [98]
|
|
11770
|
+
}; // TBS
|
|
11771
|
+
this.rules[75].opcodes[10] = {
|
|
11772
|
+
type: 2,
|
|
11773
|
+
children: [11, 12]
|
|
11774
|
+
}; // CAT
|
|
11775
|
+
this.rules[75].opcodes[11] = {
|
|
11776
|
+
type: 7,
|
|
11777
|
+
string: [48]
|
|
11778
|
+
}; // TLS
|
|
11779
|
+
this.rules[75].opcodes[12] = {
|
|
11780
|
+
type: 5,
|
|
11781
|
+
min: 101,
|
|
11782
|
+
max: 102
|
|
11783
|
+
}; // TRG
|
|
11784
|
+
this.rules[75].opcodes[13] = {
|
|
11785
|
+
type: 2,
|
|
11786
|
+
children: [14, 15]
|
|
11787
|
+
}; // CAT
|
|
11788
|
+
this.rules[75].opcodes[14] = {
|
|
11789
|
+
type: 7,
|
|
11790
|
+
string: [49]
|
|
11791
|
+
}; // TLS
|
|
11792
|
+
this.rules[75].opcodes[15] = {
|
|
11793
|
+
type: 4,
|
|
11794
|
+
index: 76
|
|
11795
|
+
}; // RNM(normal-HEXDIG)
|
|
11796
|
+
|
|
11797
|
+
/* normal-HEXDIG */
|
|
11798
|
+
this.rules[76].opcodes = [];
|
|
11799
|
+
this.rules[76].opcodes[0] = {
|
|
11800
|
+
type: 1,
|
|
11801
|
+
children: [1, 2]
|
|
11802
|
+
}; // ALT
|
|
11803
|
+
this.rules[76].opcodes[1] = {
|
|
11804
|
+
type: 4,
|
|
11805
|
+
index: 65
|
|
11806
|
+
}; // RNM(DIGIT)
|
|
11807
|
+
this.rules[76].opcodes[2] = {
|
|
11808
|
+
type: 5,
|
|
11809
|
+
min: 97,
|
|
11810
|
+
max: 102
|
|
11811
|
+
}; // TRG
|
|
11812
|
+
|
|
11813
|
+
/* normal-index-selector */
|
|
11814
|
+
this.rules[77].opcodes = [];
|
|
11815
|
+
this.rules[77].opcodes[0] = {
|
|
11816
|
+
type: 1,
|
|
11817
|
+
children: [1, 2]
|
|
11818
|
+
}; // ALT
|
|
11819
|
+
this.rules[77].opcodes[1] = {
|
|
11820
|
+
type: 7,
|
|
11821
|
+
string: [48]
|
|
11822
|
+
}; // TLS
|
|
11823
|
+
this.rules[77].opcodes[2] = {
|
|
11824
|
+
type: 2,
|
|
11825
|
+
children: [3, 4]
|
|
11826
|
+
}; // CAT
|
|
11827
|
+
this.rules[77].opcodes[3] = {
|
|
11828
|
+
type: 4,
|
|
11829
|
+
index: 21
|
|
11830
|
+
}; // RNM(DIGIT1)
|
|
11831
|
+
this.rules[77].opcodes[4] = {
|
|
11832
|
+
type: 3,
|
|
11833
|
+
min: 0,
|
|
11834
|
+
max: Infinity
|
|
11835
|
+
}; // REP
|
|
11836
|
+
this.rules[77].opcodes[5] = {
|
|
11837
|
+
type: 4,
|
|
11838
|
+
index: 65
|
|
11839
|
+
}; // RNM(DIGIT)
|
|
11840
|
+
|
|
11841
|
+
/* dot-prefix */
|
|
11842
|
+
this.rules[78].opcodes = [];
|
|
11843
|
+
this.rules[78].opcodes[0] = {
|
|
11844
|
+
type: 7,
|
|
11845
|
+
string: [46]
|
|
11846
|
+
}; // TLS
|
|
11847
|
+
|
|
11848
|
+
/* double-dot-prefix */
|
|
11849
|
+
this.rules[79].opcodes = [];
|
|
11850
|
+
this.rules[79].opcodes[0] = {
|
|
11851
|
+
type: 7,
|
|
11852
|
+
string: [46, 46]
|
|
11853
|
+
}; // TLS
|
|
11854
|
+
|
|
11855
|
+
/* left-bracket */
|
|
11856
|
+
this.rules[80].opcodes = [];
|
|
11857
|
+
this.rules[80].opcodes[0] = {
|
|
11858
|
+
type: 7,
|
|
11859
|
+
string: [91]
|
|
11860
|
+
}; // TLS
|
|
11861
|
+
|
|
11862
|
+
/* right-bracket */
|
|
11863
|
+
this.rules[81].opcodes = [];
|
|
11864
|
+
this.rules[81].opcodes[0] = {
|
|
11865
|
+
type: 7,
|
|
11866
|
+
string: [93]
|
|
11867
|
+
}; // TLS
|
|
11868
|
+
|
|
11869
|
+
/* left-paren */
|
|
11870
|
+
this.rules[82].opcodes = [];
|
|
11871
|
+
this.rules[82].opcodes[0] = {
|
|
11872
|
+
type: 7,
|
|
11873
|
+
string: [40]
|
|
11874
|
+
}; // TLS
|
|
11875
|
+
|
|
11876
|
+
/* right-paren */
|
|
11877
|
+
this.rules[83].opcodes = [];
|
|
11878
|
+
this.rules[83].opcodes[0] = {
|
|
11879
|
+
type: 7,
|
|
11880
|
+
string: [41]
|
|
11881
|
+
}; // TLS
|
|
11882
|
+
|
|
11883
|
+
/* comma */
|
|
11884
|
+
this.rules[84].opcodes = [];
|
|
11885
|
+
this.rules[84].opcodes[0] = {
|
|
11886
|
+
type: 7,
|
|
11887
|
+
string: [44]
|
|
11888
|
+
}; // TLS
|
|
11889
|
+
|
|
11890
|
+
/* colon */
|
|
11891
|
+
this.rules[85].opcodes = [];
|
|
11892
|
+
this.rules[85].opcodes[0] = {
|
|
11893
|
+
type: 7,
|
|
11894
|
+
string: [58]
|
|
11895
|
+
}; // TLS
|
|
11896
|
+
|
|
11897
|
+
/* dquote */
|
|
11898
|
+
this.rules[86].opcodes = [];
|
|
11899
|
+
this.rules[86].opcodes[0] = {
|
|
11900
|
+
type: 6,
|
|
11901
|
+
string: [34]
|
|
11902
|
+
}; // TBS
|
|
11903
|
+
|
|
11904
|
+
/* squote */
|
|
11905
|
+
this.rules[87].opcodes = [];
|
|
11906
|
+
this.rules[87].opcodes[0] = {
|
|
11907
|
+
type: 6,
|
|
11908
|
+
string: [39]
|
|
11909
|
+
}; // TBS
|
|
11910
|
+
|
|
11911
|
+
/* questionmark */
|
|
11912
|
+
this.rules[88].opcodes = [];
|
|
11913
|
+
this.rules[88].opcodes[0] = {
|
|
11914
|
+
type: 7,
|
|
11915
|
+
string: [63]
|
|
11916
|
+
}; // TLS
|
|
8889
11917
|
|
|
8890
|
-
|
|
8891
|
-
|
|
11918
|
+
/* disjunction */
|
|
11919
|
+
this.rules[89].opcodes = [];
|
|
11920
|
+
this.rules[89].opcodes[0] = {
|
|
11921
|
+
type: 7,
|
|
11922
|
+
string: [124, 124]
|
|
11923
|
+
}; // TLS
|
|
8892
11924
|
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
11925
|
+
/* conjunction */
|
|
11926
|
+
this.rules[90].opcodes = [];
|
|
11927
|
+
this.rules[90].opcodes[0] = {
|
|
11928
|
+
type: 7,
|
|
11929
|
+
string: [38, 38]
|
|
11930
|
+
}; // TLS
|
|
8898
11931
|
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
11932
|
+
// The `toString()` function will display the original grammar file(s) that produced these opcodes.
|
|
11933
|
+
this.toString = function toString() {
|
|
11934
|
+
let str = "";
|
|
11935
|
+
str += "; JSONPath: Query Expressions for JSON\n";
|
|
11936
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535\n";
|
|
11937
|
+
str += "\n";
|
|
11938
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\n";
|
|
11939
|
+
str += "jsonpath-query = root-identifier segments\n";
|
|
11940
|
+
str += "segments = *(S segment)\n";
|
|
11941
|
+
str += "\n";
|
|
11942
|
+
str += "B = %x20 / ; Space\n";
|
|
11943
|
+
str += " %x09 / ; Horizontal tab\n";
|
|
11944
|
+
str += " %x0A / ; Line feed or New line\n";
|
|
11945
|
+
str += " %x0D ; Carriage return\n";
|
|
11946
|
+
str += "S = *B ; optional blank space\n";
|
|
11947
|
+
str += "\n";
|
|
11948
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\n";
|
|
11949
|
+
str += "root-identifier = \"$\"\n";
|
|
11950
|
+
str += "\n";
|
|
11951
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\n";
|
|
11952
|
+
str += "selector = name-selector /\n";
|
|
11953
|
+
str += " wildcard-selector /\n";
|
|
11954
|
+
str += " slice-selector /\n";
|
|
11955
|
+
str += " index-selector /\n";
|
|
11956
|
+
str += " filter-selector\n";
|
|
11957
|
+
str += "\n";
|
|
11958
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\n";
|
|
11959
|
+
str += "name-selector = string-literal\n";
|
|
11960
|
+
str += "\n";
|
|
11961
|
+
str += "string-literal = dquote *double-quoted dquote / ; \"string\", MODIFICATION: surrogate text rule used\n";
|
|
11962
|
+
str += " squote *single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n";
|
|
11963
|
+
str += "\n";
|
|
11964
|
+
str += "double-quoted = unescaped /\n";
|
|
11965
|
+
str += " %x27 / ; '\n";
|
|
11966
|
+
str += " ESC %x22 / ; \\\"\n";
|
|
11967
|
+
str += " ESC escapable\n";
|
|
11968
|
+
str += "\n";
|
|
11969
|
+
str += "single-quoted = unescaped /\n";
|
|
11970
|
+
str += " %x22 / ; \"\n";
|
|
11971
|
+
str += " ESC %x27 / ; \\'\n";
|
|
11972
|
+
str += " ESC escapable\n";
|
|
11973
|
+
str += "\n";
|
|
11974
|
+
str += "ESC = %x5C ; \\ backslash\n";
|
|
11975
|
+
str += "\n";
|
|
11976
|
+
str += "unescaped = %x20-21 / ; see RFC 8259\n";
|
|
11977
|
+
str += " ; omit 0x22 \"\n";
|
|
11978
|
+
str += " %x23-26 /\n";
|
|
11979
|
+
str += " ; omit 0x27 '\n";
|
|
11980
|
+
str += " %x28-5B /\n";
|
|
11981
|
+
str += " ; omit 0x5C \\\n";
|
|
11982
|
+
str += " %x5D-D7FF /\n";
|
|
11983
|
+
str += " ; skip surrogate code points\n";
|
|
11984
|
+
str += " %xE000-10FFFF\n";
|
|
11985
|
+
str += "\n";
|
|
11986
|
+
str += "escapable = %x62 / ; b BS backspace U+0008\n";
|
|
11987
|
+
str += " %x66 / ; f FF form feed U+000C\n";
|
|
11988
|
+
str += " %x6E / ; n LF line feed U+000A\n";
|
|
11989
|
+
str += " %x72 / ; r CR carriage return U+000D\n";
|
|
11990
|
+
str += " %x74 / ; t HT horizontal tab U+0009\n";
|
|
11991
|
+
str += " \"/\" / ; / slash (solidus) U+002F\n";
|
|
11992
|
+
str += " \"\\\" / ; \\ backslash (reverse solidus) U+005C\n";
|
|
11993
|
+
str += " (%x75 hexchar) ; uXXXX U+XXXX\n";
|
|
11994
|
+
str += "\n";
|
|
11995
|
+
str += "hexchar = non-surrogate /\n";
|
|
11996
|
+
str += " (high-surrogate \"\\\" %x75 low-surrogate)\n";
|
|
11997
|
+
str += "non-surrogate = ((DIGIT / \"A\"/\"B\"/\"C\" / \"E\"/\"F\") 3HEXDIG) /\n";
|
|
11998
|
+
str += " (\"D\" %x30-37 2HEXDIG )\n";
|
|
11999
|
+
str += "high-surrogate = \"D\" (\"8\"/\"9\"/\"A\"/\"B\") 2HEXDIG\n";
|
|
12000
|
+
str += "low-surrogate = \"D\" (\"C\"/\"D\"/\"E\"/\"F\") 2HEXDIG\n";
|
|
12001
|
+
str += "\n";
|
|
12002
|
+
str += "HEXDIG = DIGIT / \"A\" / \"B\" / \"C\" / \"D\" / \"E\" / \"F\"\n";
|
|
12003
|
+
str += "\n";
|
|
12004
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\n";
|
|
12005
|
+
str += "wildcard-selector = \"*\"\n";
|
|
12006
|
+
str += "\n";
|
|
12007
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\n";
|
|
12008
|
+
str += "index-selector = int ; decimal integer\n";
|
|
12009
|
+
str += "\n";
|
|
12010
|
+
str += "int = \"0\" /\n";
|
|
12011
|
+
str += " ([\"-\"] DIGIT1 *DIGIT) ; - optional\n";
|
|
12012
|
+
str += "DIGIT1 = %x31-39 ; 1-9 non-zero digit\n";
|
|
12013
|
+
str += "\n";
|
|
12014
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\n";
|
|
12015
|
+
str += "slice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n";
|
|
12016
|
+
str += "\n";
|
|
12017
|
+
str += "start = int ; included in selection\n";
|
|
12018
|
+
str += "end = int ; not included in selection\n";
|
|
12019
|
+
str += "step = int ; default: 1\n";
|
|
12020
|
+
str += "\n";
|
|
12021
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\n";
|
|
12022
|
+
str += "filter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n";
|
|
12023
|
+
str += "\n";
|
|
12024
|
+
str += "logical-expr = logical-or-expr\n";
|
|
12025
|
+
str += "logical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n";
|
|
12026
|
+
str += " ; disjunction\n";
|
|
12027
|
+
str += " ; binds less tightly than conjunction\n";
|
|
12028
|
+
str += "logical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n";
|
|
12029
|
+
str += " ; conjunction\n";
|
|
12030
|
+
str += " ; binds more tightly than disjunction\n";
|
|
12031
|
+
str += "\n";
|
|
12032
|
+
str += "basic-expr = paren-expr /\n";
|
|
12033
|
+
str += " comparison-expr /\n";
|
|
12034
|
+
str += " test-expr\n";
|
|
12035
|
+
str += "\n";
|
|
12036
|
+
str += "paren-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n";
|
|
12037
|
+
str += " ; parenthesized expression\n";
|
|
12038
|
+
str += "logical-not-op = \"!\" ; logical NOT operator\n";
|
|
12039
|
+
str += "\n";
|
|
12040
|
+
str += "test-expr = [logical-not-op S]\n";
|
|
12041
|
+
str += " (filter-query / ; existence/non-existence\n";
|
|
12042
|
+
str += " function-expr) ; LogicalType or NodesType\n";
|
|
12043
|
+
str += "filter-query = rel-query / jsonpath-query\n";
|
|
12044
|
+
str += "rel-query = current-node-identifier segments\n";
|
|
12045
|
+
str += "current-node-identifier = \"@\"\n";
|
|
12046
|
+
str += "\n";
|
|
12047
|
+
str += "comparison-expr = comparable S comparison-op S comparable\n";
|
|
12048
|
+
str += "literal = number / string-literal /\n";
|
|
12049
|
+
str += " true / false / null\n";
|
|
12050
|
+
str += "comparable = singular-query / ; singular query value\n";
|
|
12051
|
+
str += " function-expr / ; ValueType\n";
|
|
12052
|
+
str += " literal\n";
|
|
12053
|
+
str += " ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\n";
|
|
12054
|
+
str += "comparison-op = \"==\" / \"!=\" /\n";
|
|
12055
|
+
str += " \"<=\" / \">=\" /\n";
|
|
12056
|
+
str += " \"<\" / \">\"\n";
|
|
12057
|
+
str += "\n";
|
|
12058
|
+
str += "singular-query = rel-singular-query / abs-singular-query\n";
|
|
12059
|
+
str += "rel-singular-query = current-node-identifier singular-query-segments\n";
|
|
12060
|
+
str += "abs-singular-query = root-identifier singular-query-segments\n";
|
|
12061
|
+
str += "singular-query-segments = *(S (name-segment / index-segment))\n";
|
|
12062
|
+
str += "name-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n";
|
|
12063
|
+
str += " (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\n";
|
|
12064
|
+
str += "index-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n";
|
|
12065
|
+
str += "\n";
|
|
12066
|
+
str += "number = (int / \"-0\") [ frac ] [ exp ] ; decimal number\n";
|
|
12067
|
+
str += "frac = \".\" 1*DIGIT ; decimal fraction\n";
|
|
12068
|
+
str += "exp = \"e\" [ \"-\" / \"+\" ] 1*DIGIT ; decimal exponent\n";
|
|
12069
|
+
str += "true = %x74.72.75.65 ; true\n";
|
|
12070
|
+
str += "false = %x66.61.6c.73.65 ; false\n";
|
|
12071
|
+
str += "null = %x6e.75.6c.6c ; null\n";
|
|
12072
|
+
str += "\n";
|
|
12073
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\n";
|
|
12074
|
+
str += "function-name = function-name-first *function-name-char\n";
|
|
12075
|
+
str += "function-name-first = LCALPHA\n";
|
|
12076
|
+
str += "function-name-char = function-name-first / \"_\" / DIGIT\n";
|
|
12077
|
+
str += "LCALPHA = %x61-7A ; \"a\"..\"z\"\n";
|
|
12078
|
+
str += "\n";
|
|
12079
|
+
str += "function-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n";
|
|
12080
|
+
str += " *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\n";
|
|
12081
|
+
str += "function-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n";
|
|
12082
|
+
str += " filter-query / ; (includes singular-query)\n";
|
|
12083
|
+
str += " function-expr /\n";
|
|
12084
|
+
str += " literal\n";
|
|
12085
|
+
str += "\n";
|
|
12086
|
+
str += "\n";
|
|
12087
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\n";
|
|
12088
|
+
str += "segment = child-segment / descendant-segment\n";
|
|
12089
|
+
str += "\n";
|
|
12090
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\n";
|
|
12091
|
+
str += "child-segment = bracketed-selection /\n";
|
|
12092
|
+
str += " (dot-prefix ; MODIFICATION: surrogate text rule used\n";
|
|
12093
|
+
str += " (wildcard-selector /\n";
|
|
12094
|
+
str += " member-name-shorthand))\n";
|
|
12095
|
+
str += "\n";
|
|
12096
|
+
str += "bracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n";
|
|
12097
|
+
str += " ; MODIFICATION: surrogate text rule used\n";
|
|
12098
|
+
str += "\n";
|
|
12099
|
+
str += "member-name-shorthand = name-first *name-char\n";
|
|
12100
|
+
str += "name-first = ALPHA /\n";
|
|
12101
|
+
str += " \"_\" /\n";
|
|
12102
|
+
str += " %x80-D7FF /\n";
|
|
12103
|
+
str += " ; skip surrogate code points\n";
|
|
12104
|
+
str += " %xE000-10FFFF\n";
|
|
12105
|
+
str += "name-char = name-first / DIGIT\n";
|
|
12106
|
+
str += "\n";
|
|
12107
|
+
str += "DIGIT = %x30-39 ; 0-9\n";
|
|
12108
|
+
str += "ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n";
|
|
12109
|
+
str += "\n";
|
|
12110
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\n";
|
|
12111
|
+
str += "descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n";
|
|
12112
|
+
str += " wildcard-selector /\n";
|
|
12113
|
+
str += " member-name-shorthand)\n";
|
|
12114
|
+
str += "\n";
|
|
12115
|
+
str += "; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\n";
|
|
12116
|
+
str += "normalized-path = root-identifier *(normal-index-segment)\n";
|
|
12117
|
+
str += "normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\n";
|
|
12118
|
+
str += "normal-selector = normal-name-selector / normal-index-selector\n";
|
|
12119
|
+
str += "normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n";
|
|
12120
|
+
str += "normal-single-quoted = normal-unescaped /\n";
|
|
12121
|
+
str += " ESC normal-escapable\n";
|
|
12122
|
+
str += "normal-unescaped = ; omit %x0-1F control codes\n";
|
|
12123
|
+
str += " %x20-26 /\n";
|
|
12124
|
+
str += " ; omit 0x27 '\n";
|
|
12125
|
+
str += " %x28-5B /\n";
|
|
12126
|
+
str += " ; omit 0x5C \\\n";
|
|
12127
|
+
str += " %x5D-D7FF /\n";
|
|
12128
|
+
str += " ; skip surrogate code points\n";
|
|
12129
|
+
str += " %xE000-10FFFF\n";
|
|
12130
|
+
str += "\n";
|
|
12131
|
+
str += "normal-escapable = %x62 / ; b BS backspace U+0008\n";
|
|
12132
|
+
str += " %x66 / ; f FF form feed U+000C\n";
|
|
12133
|
+
str += " %x6E / ; n LF line feed U+000A\n";
|
|
12134
|
+
str += " %x72 / ; r CR carriage return U+000D\n";
|
|
12135
|
+
str += " %x74 / ; t HT horizontal tab U+0009\n";
|
|
12136
|
+
str += " \"'\" / ; ' apostrophe U+0027\n";
|
|
12137
|
+
str += " \"\\\" / ; \\ backslash (reverse solidus) U+005C\n";
|
|
12138
|
+
str += " (%x75 normal-hexchar)\n";
|
|
12139
|
+
str += " ; certain values u00xx U+00XX\n";
|
|
12140
|
+
str += "normal-hexchar = \"0\" \"0\"\n";
|
|
12141
|
+
str += " (\n";
|
|
12142
|
+
str += " (\"0\" %x30-37) / ; \"00\"-\"07\"\n";
|
|
12143
|
+
str += " ; omit U+0008-U+000A BS HT LF\n";
|
|
12144
|
+
str += " (\"0\" %x62) / ; \"0b\"\n";
|
|
12145
|
+
str += " ; omit U+000C-U+000D FF CR\n";
|
|
12146
|
+
str += " (\"0\" %x65-66) / ; \"0e\"-\"0f\"\n";
|
|
12147
|
+
str += " (\"1\" normal-HEXDIG)\n";
|
|
12148
|
+
str += " )\n";
|
|
12149
|
+
str += "normal-HEXDIG = DIGIT / %x61-66 ; \"0\"-\"9\", \"a\"-\"f\"\n";
|
|
12150
|
+
str += "normal-index-selector = \"0\" / (DIGIT1 *DIGIT)\n";
|
|
12151
|
+
str += " ; non-negative decimal integer\n";
|
|
12152
|
+
str += "\n";
|
|
12153
|
+
str += "; Surrogate named rules\n";
|
|
12154
|
+
str += "dot-prefix = \".\"\n";
|
|
12155
|
+
str += "double-dot-prefix = \"..\"\n";
|
|
12156
|
+
str += "left-bracket = \"[\"\n";
|
|
12157
|
+
str += "right-bracket = \"]\"\n";
|
|
12158
|
+
str += "left-paren = \"(\"\n";
|
|
12159
|
+
str += "right-paren = \")\"\n";
|
|
12160
|
+
str += "comma = \",\"\n";
|
|
12161
|
+
str += "colon = \":\"\n";
|
|
12162
|
+
str += "dquote = %x22 ; \"\n";
|
|
12163
|
+
str += "squote = %x27 ; '\n";
|
|
12164
|
+
str += "questionmark = \"?\"\n";
|
|
12165
|
+
str += "disjunction = \"||\"\n";
|
|
12166
|
+
str += "conjunction = \"&&\"\n";
|
|
12167
|
+
return str;
|
|
12168
|
+
};
|
|
8907
12169
|
}
|
|
8908
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ($RefVisitor);
|
|
8909
12170
|
|
|
8910
12171
|
/***/ }),
|
|
8911
12172
|
|
|
@@ -12399,6 +15660,22 @@ function _isPlaceholder(a) {
|
|
|
12399
15660
|
|
|
12400
15661
|
/***/ }),
|
|
12401
15662
|
|
|
15663
|
+
/***/ 41352:
|
|
15664
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
15665
|
+
|
|
15666
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15667
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15668
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15669
|
+
/* harmony export */ });
|
|
15670
|
+
class Expectations extends Array {
|
|
15671
|
+
toString() {
|
|
15672
|
+
return this.map(c => `"${String(c)}"`).join(', ');
|
|
15673
|
+
}
|
|
15674
|
+
}
|
|
15675
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Expectations);
|
|
15676
|
+
|
|
15677
|
+
/***/ }),
|
|
15678
|
+
|
|
12402
15679
|
/***/ 41407:
|
|
12403
15680
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
12404
15681
|
|
|
@@ -12665,7 +15942,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12665
15942
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12666
15943
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12667
15944
|
/* harmony export */ });
|
|
12668
|
-
/* harmony import */ var _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
15945
|
+
/* harmony import */ var _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89627);
|
|
12669
15946
|
|
|
12670
15947
|
class JSONPointerCompileError extends _JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
12671
15948
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPointerCompileError);
|
|
@@ -14373,6 +17650,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14373
17650
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14374
17651
|
/* harmony export */ Path: () => (/* binding */ Path)
|
|
14375
17652
|
/* harmony export */ });
|
|
17653
|
+
/* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61198);
|
|
17654
|
+
/* harmony import */ var _swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84637);
|
|
17655
|
+
|
|
17656
|
+
|
|
17657
|
+
|
|
14376
17658
|
/**
|
|
14377
17659
|
* Possible return values from a visitor function.
|
|
14378
17660
|
* @public
|
|
@@ -14524,6 +17806,43 @@ class Path {
|
|
|
14524
17806
|
return keys;
|
|
14525
17807
|
}
|
|
14526
17808
|
|
|
17809
|
+
/**
|
|
17810
|
+
* Format path as RFC 6901 JSON Pointer or RFC 9535 Normalized JSONPath.
|
|
17811
|
+
*
|
|
17812
|
+
* @param pathFormat - Output format: "jsonpointer" (default) or "jsonpath"
|
|
17813
|
+
* @returns JSONPointer string like "/paths/~1pets/get/responses/200"
|
|
17814
|
+
* or Normalized JSONPath like "$['paths']['/pets']['get']['responses']['200']"
|
|
17815
|
+
*
|
|
17816
|
+
* @example
|
|
17817
|
+
* // JSON Pointer examples:
|
|
17818
|
+
* path.formatPath(); // "" (root)
|
|
17819
|
+
* path.formatPath(); // "/info"
|
|
17820
|
+
* path.formatPath(); // "/paths/~1pets/get"
|
|
17821
|
+
* path.formatPath(); // "/paths/~1users~1{id}/parameters/0"
|
|
17822
|
+
*
|
|
17823
|
+
* @example
|
|
17824
|
+
* // JSONPath examples:
|
|
17825
|
+
* path.formatPath('jsonpath'); // "$" (root)
|
|
17826
|
+
* path.formatPath('jsonpath'); // "$['info']"
|
|
17827
|
+
* path.formatPath('jsonpath'); // "$['paths']['/pets']['get']"
|
|
17828
|
+
* path.formatPath('jsonpath'); // "$['paths']['/users/{id}']['parameters'][0]"
|
|
17829
|
+
*/
|
|
17830
|
+
formatPath(pathFormat = 'jsonpointer') {
|
|
17831
|
+
const parts = this.getPathKeys();
|
|
17832
|
+
|
|
17833
|
+
// Root node
|
|
17834
|
+
if (parts.length === 0) {
|
|
17835
|
+
return pathFormat === 'jsonpath' ? '$' : '';
|
|
17836
|
+
}
|
|
17837
|
+
if (pathFormat === 'jsonpath') {
|
|
17838
|
+
// RFC 9535 Normalized JSONPath
|
|
17839
|
+
return (0,_swaggerexpert_jsonpath__WEBPACK_IMPORTED_MODULE_1__.compile)(parts);
|
|
17840
|
+
}
|
|
17841
|
+
|
|
17842
|
+
// RFC 6901 JSON Pointer
|
|
17843
|
+
return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__.compile)(parts);
|
|
17844
|
+
}
|
|
17845
|
+
|
|
14527
17846
|
/**
|
|
14528
17847
|
* Find the closest ancestor path that satisfies the predicate.
|
|
14529
17848
|
*/
|
|
@@ -17478,6 +20797,51 @@ var init = /*#__PURE__*/(0,_slice_js__WEBPACK_IMPORTED_MODULE_0__["default"])(0,
|
|
|
17478
20797
|
|
|
17479
20798
|
/***/ }),
|
|
17480
20799
|
|
|
20800
|
+
/***/ 54848:
|
|
20801
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
20802
|
+
|
|
20803
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20804
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20805
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20806
|
+
/* harmony export */ });
|
|
20807
|
+
/* harmony import */ var _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23449);
|
|
20808
|
+
|
|
20809
|
+
class CSTOptimizedTranslator extends _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
20810
|
+
collapsibleTypes = ['single-quoted', 'double-quoted', 'normal-single-quoted'];
|
|
20811
|
+
droppableTypes = ['text', 'segments', 'singular-query-segments'];
|
|
20812
|
+
constructor({
|
|
20813
|
+
collapsibleTypes,
|
|
20814
|
+
droppableTypes
|
|
20815
|
+
} = {}) {
|
|
20816
|
+
super();
|
|
20817
|
+
if (Array.isArray(collapsibleTypes)) {
|
|
20818
|
+
this.collapsibleTypes = collapsibleTypes;
|
|
20819
|
+
}
|
|
20820
|
+
if (Array.isArray(droppableTypes)) {
|
|
20821
|
+
this.droppableTypes = droppableTypes;
|
|
20822
|
+
}
|
|
20823
|
+
}
|
|
20824
|
+
getTree() {
|
|
20825
|
+
const options = {
|
|
20826
|
+
optimize: true,
|
|
20827
|
+
collapsibleTypes: this.collapsibleTypes,
|
|
20828
|
+
droppableTypes: this.droppableTypes
|
|
20829
|
+
};
|
|
20830
|
+
const data = {
|
|
20831
|
+
stack: [],
|
|
20832
|
+
root: null,
|
|
20833
|
+
options
|
|
20834
|
+
};
|
|
20835
|
+
this.translate(data);
|
|
20836
|
+
delete data.stack;
|
|
20837
|
+
delete data.options;
|
|
20838
|
+
return data;
|
|
20839
|
+
}
|
|
20840
|
+
}
|
|
20841
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CSTOptimizedTranslator);
|
|
20842
|
+
|
|
20843
|
+
/***/ }),
|
|
20844
|
+
|
|
17481
20845
|
/***/ 54981:
|
|
17482
20846
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
17483
20847
|
|
|
@@ -18914,7 +22278,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18914
22278
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18915
22279
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18916
22280
|
/* harmony export */ });
|
|
18917
|
-
/* harmony import */ var _errors_JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
22281
|
+
/* harmony import */ var _errors_JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(89627);
|
|
18918
22282
|
|
|
18919
22283
|
class EvaluationRealm {
|
|
18920
22284
|
name = '';
|
|
@@ -19832,7 +23196,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19832
23196
|
/* harmony import */ var _evaluate_index_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(89274);
|
|
19833
23197
|
/* harmony import */ var _evaluate_realms_EvaluationRealm_mjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(59408);
|
|
19834
23198
|
/* harmony import */ var _evaluate_realms_compose_mjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(99799);
|
|
19835
|
-
/* harmony import */ var _errors_JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
|
|
23199
|
+
/* harmony import */ var _errors_JSONPointerError_mjs__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(89627);
|
|
19836
23200
|
/* harmony import */ var _errors_JSONPointerParseError_mjs__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(26490);
|
|
19837
23201
|
/* harmony import */ var _errors_JSONPointerCompileError_mjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42144);
|
|
19838
23202
|
/* harmony import */ var _errors_JSONPointerEvaluateError_mjs__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(924);
|
|
@@ -20127,6 +23491,20 @@ class LinkDescription extends _speclynx_apidom_ns_json_schema_2019_09__WEBPACK_I
|
|
|
20127
23491
|
|
|
20128
23492
|
/***/ }),
|
|
20129
23493
|
|
|
23494
|
+
/***/ 62977:
|
|
23495
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
23496
|
+
|
|
23497
|
+
__webpack_require__.r(__webpack_exports__);
|
|
23498
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23499
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
23500
|
+
/* harmony export */ });
|
|
23501
|
+
/* harmony import */ var _JSONPathError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84816);
|
|
23502
|
+
|
|
23503
|
+
class JSONPathCompileError extends _JSONPathError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
23504
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPathCompileError);
|
|
23505
|
+
|
|
23506
|
+
/***/ }),
|
|
23507
|
+
|
|
20130
23508
|
/***/ 63072:
|
|
20131
23509
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
20132
23510
|
|
|
@@ -20845,8 +24223,426 @@ class DefaultVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_3__.BaseAlterna
|
|
|
20845
24223
|
this.element.meta.set('http-status-code', 'default');
|
|
20846
24224
|
}
|
|
20847
24225
|
}
|
|
20848
|
-
}
|
|
20849
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DefaultVisitor);
|
|
24226
|
+
}
|
|
24227
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DefaultVisitor);
|
|
24228
|
+
|
|
24229
|
+
/***/ }),
|
|
24230
|
+
|
|
24231
|
+
/***/ 66090:
|
|
24232
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
24233
|
+
|
|
24234
|
+
__webpack_require__.r(__webpack_exports__);
|
|
24235
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24236
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
24237
|
+
/* harmony export */ transformCSTtoAST: () => (/* binding */ transformCSTtoAST)
|
|
24238
|
+
/* harmony export */ });
|
|
24239
|
+
/* harmony import */ var _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(92639);
|
|
24240
|
+
/* harmony import */ var _decoders_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1257);
|
|
24241
|
+
|
|
24242
|
+
|
|
24243
|
+
const transformCSTtoAST = (node, transformerMap, ctx = {
|
|
24244
|
+
parent: null,
|
|
24245
|
+
path: []
|
|
24246
|
+
}) => {
|
|
24247
|
+
const transformer = transformerMap[node.type];
|
|
24248
|
+
if (!transformer) {
|
|
24249
|
+
throw new _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](`No transformer for CST node type: ${node.type}`);
|
|
24250
|
+
}
|
|
24251
|
+
const nextCtx = {
|
|
24252
|
+
parent: node,
|
|
24253
|
+
path: [...ctx.path, node]
|
|
24254
|
+
};
|
|
24255
|
+
return transformer(node, nextCtx);
|
|
24256
|
+
};
|
|
24257
|
+
const transformers = {
|
|
24258
|
+
/**
|
|
24259
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1
|
|
24260
|
+
*/
|
|
24261
|
+
['jsonpath-query'](node, ctx) {
|
|
24262
|
+
const segments = node.children.find(c => c.type === 'segments');
|
|
24263
|
+
return {
|
|
24264
|
+
type: 'JsonPathQuery',
|
|
24265
|
+
segments: segments ? segments.children.filter(({
|
|
24266
|
+
type
|
|
24267
|
+
}) => type === 'segment').map(segNode => transformCSTtoAST(segNode, transformers, ctx)) : []
|
|
24268
|
+
};
|
|
24269
|
+
},
|
|
24270
|
+
/**
|
|
24271
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.5
|
|
24272
|
+
*/
|
|
24273
|
+
segment(node, ctx) {
|
|
24274
|
+
const child = node.children.find(({
|
|
24275
|
+
type
|
|
24276
|
+
}) => ['child-segment', 'descendant-segment'].includes(type));
|
|
24277
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24278
|
+
},
|
|
24279
|
+
/**
|
|
24280
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.3
|
|
24281
|
+
*/
|
|
24282
|
+
selector(node, ctx) {
|
|
24283
|
+
const child = node.children.find(({
|
|
24284
|
+
type
|
|
24285
|
+
}) => ['name-selector', 'wildcard-selector', 'slice-selector', 'index-selector', 'filter-selector'].includes(type));
|
|
24286
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24287
|
+
},
|
|
24288
|
+
/**
|
|
24289
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1
|
|
24290
|
+
*/
|
|
24291
|
+
['name-selector'](node, ctx) {
|
|
24292
|
+
const stringLiteralCSTNode = node.children.find(({
|
|
24293
|
+
type
|
|
24294
|
+
}) => type === 'string-literal');
|
|
24295
|
+
const stringLiteralASTNode = transformCSTtoAST(stringLiteralCSTNode, transformers, ctx);
|
|
24296
|
+
return {
|
|
24297
|
+
type: 'NameSelector',
|
|
24298
|
+
value: stringLiteralASTNode.value,
|
|
24299
|
+
format: stringLiteralASTNode.format
|
|
24300
|
+
};
|
|
24301
|
+
},
|
|
24302
|
+
['string-literal'](node) {
|
|
24303
|
+
const isSingleQuoted = node.children.find(({
|
|
24304
|
+
type,
|
|
24305
|
+
text
|
|
24306
|
+
}) => type === 'text' && text === "'");
|
|
24307
|
+
const quoted = node.children.find(({
|
|
24308
|
+
type
|
|
24309
|
+
}) => ['double-quoted', 'single-quoted'].includes(type));
|
|
24310
|
+
const decodeString = isSingleQuoted ? _decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeSingleQuotedString : _decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeDoubleQuotedString;
|
|
24311
|
+
return {
|
|
24312
|
+
type: 'StringLiteral',
|
|
24313
|
+
value: quoted ? decodeString(quoted.text) : '',
|
|
24314
|
+
format: isSingleQuoted ? 'single-quoted' : 'double-quoted'
|
|
24315
|
+
};
|
|
24316
|
+
},
|
|
24317
|
+
/**
|
|
24318
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1
|
|
24319
|
+
*/
|
|
24320
|
+
['wildcard-selector']() {
|
|
24321
|
+
return {
|
|
24322
|
+
type: 'WildcardSelector'
|
|
24323
|
+
};
|
|
24324
|
+
},
|
|
24325
|
+
/**
|
|
24326
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1
|
|
24327
|
+
*/
|
|
24328
|
+
['index-selector'](node) {
|
|
24329
|
+
return {
|
|
24330
|
+
type: 'IndexSelector',
|
|
24331
|
+
value: (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeInteger)(node.text)
|
|
24332
|
+
};
|
|
24333
|
+
},
|
|
24334
|
+
/**
|
|
24335
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1
|
|
24336
|
+
*/
|
|
24337
|
+
['slice-selector'](node) {
|
|
24338
|
+
const start = node.children.find(({
|
|
24339
|
+
type
|
|
24340
|
+
}) => type === 'start');
|
|
24341
|
+
const end = node.children.find(({
|
|
24342
|
+
type
|
|
24343
|
+
}) => type === 'end');
|
|
24344
|
+
const step = node.children.find(({
|
|
24345
|
+
type
|
|
24346
|
+
}) => type === 'step');
|
|
24347
|
+
return {
|
|
24348
|
+
type: 'SliceSelector',
|
|
24349
|
+
start: start ? (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeInteger)(start.text) : null,
|
|
24350
|
+
end: end ? (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeInteger)(end.text) : null,
|
|
24351
|
+
step: step ? (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeInteger)(step.text) : null
|
|
24352
|
+
};
|
|
24353
|
+
},
|
|
24354
|
+
/**
|
|
24355
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1
|
|
24356
|
+
*/
|
|
24357
|
+
['filter-selector'](node, ctx) {
|
|
24358
|
+
const child = node.children.find(({
|
|
24359
|
+
type
|
|
24360
|
+
}) => type === 'logical-expr');
|
|
24361
|
+
return {
|
|
24362
|
+
type: 'FilterSelector',
|
|
24363
|
+
expression: transformCSTtoAST(child, transformers, ctx)
|
|
24364
|
+
};
|
|
24365
|
+
},
|
|
24366
|
+
['logical-expr'](node, ctx) {
|
|
24367
|
+
const child = node.children.find(({
|
|
24368
|
+
type
|
|
24369
|
+
}) => type === 'logical-or-expr');
|
|
24370
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24371
|
+
},
|
|
24372
|
+
['logical-or-expr'](node, ctx) {
|
|
24373
|
+
const logicalAndExprs = node.children.filter(({
|
|
24374
|
+
type
|
|
24375
|
+
}) => type === 'logical-and-expr');
|
|
24376
|
+
if (logicalAndExprs.length === 1) {
|
|
24377
|
+
return transformCSTtoAST(logicalAndExprs[0], transformers, ctx);
|
|
24378
|
+
}
|
|
24379
|
+
|
|
24380
|
+
// fold left for left-associativity
|
|
24381
|
+
let left = transformCSTtoAST(logicalAndExprs[0], transformers, ctx);
|
|
24382
|
+
for (let i = 1; i < logicalAndExprs.length; i += 1) {
|
|
24383
|
+
const right = transformCSTtoAST(logicalAndExprs[i], transformers, ctx);
|
|
24384
|
+
left = {
|
|
24385
|
+
type: 'LogicalOrExpr',
|
|
24386
|
+
left,
|
|
24387
|
+
right
|
|
24388
|
+
};
|
|
24389
|
+
}
|
|
24390
|
+
},
|
|
24391
|
+
['logical-and-expr'](node, ctx) {
|
|
24392
|
+
const basicExprs = node.children.filter(({
|
|
24393
|
+
type
|
|
24394
|
+
}) => type === 'basic-expr');
|
|
24395
|
+
if (basicExprs.length === 1) {
|
|
24396
|
+
return transformCSTtoAST(basicExprs[0], transformers, ctx);
|
|
24397
|
+
}
|
|
24398
|
+
let left = transformCSTtoAST(basicExprs[0], transformers, ctx);
|
|
24399
|
+
for (let i = 1; i < basicExprs.length; i += 1) {
|
|
24400
|
+
const right = transformCSTtoAST(basicExprs[i], transformers, ctx);
|
|
24401
|
+
left = {
|
|
24402
|
+
type: 'LogicalAndExpr',
|
|
24403
|
+
left,
|
|
24404
|
+
right
|
|
24405
|
+
};
|
|
24406
|
+
}
|
|
24407
|
+
return left;
|
|
24408
|
+
},
|
|
24409
|
+
['basic-expr'](node, ctx) {
|
|
24410
|
+
const child = node.children.find(({
|
|
24411
|
+
type
|
|
24412
|
+
}) => ['paren-expr', 'comparison-expr', 'test-expr'].includes(type));
|
|
24413
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24414
|
+
},
|
|
24415
|
+
['paren-expr'](node, ctx) {
|
|
24416
|
+
const isNegated = node.children.some(child => child.type === 'logical-not-op');
|
|
24417
|
+
const logicalExprCSTNode = node.children.find(child => child.type === 'logical-expr');
|
|
24418
|
+
const logicalExpressionASTNode = transformCSTtoAST(logicalExprCSTNode, transformers, ctx);
|
|
24419
|
+
if (isNegated) {
|
|
24420
|
+
return {
|
|
24421
|
+
type: 'LogicalNotExpr',
|
|
24422
|
+
expression: logicalExpressionASTNode
|
|
24423
|
+
};
|
|
24424
|
+
}
|
|
24425
|
+
return logicalExpressionASTNode;
|
|
24426
|
+
},
|
|
24427
|
+
['test-expr'](node, ctx) {
|
|
24428
|
+
const isNegated = node.children.some(({
|
|
24429
|
+
type
|
|
24430
|
+
}) => type === 'logical-not-op');
|
|
24431
|
+
const expression = node.children.find(({
|
|
24432
|
+
type
|
|
24433
|
+
}) => ['filter-query', 'function-expr'].includes(type));
|
|
24434
|
+
const testExpr = {
|
|
24435
|
+
type: 'TestExpr',
|
|
24436
|
+
expression: transformCSTtoAST(expression, transformers, ctx)
|
|
24437
|
+
};
|
|
24438
|
+
return isNegated ? {
|
|
24439
|
+
type: 'LogicalNotExpr',
|
|
24440
|
+
expression: testExpr
|
|
24441
|
+
} : testExpr;
|
|
24442
|
+
},
|
|
24443
|
+
['filter-query'](node, ctx) {
|
|
24444
|
+
const child = node.children.find(({
|
|
24445
|
+
type
|
|
24446
|
+
}) => ['rel-query', 'jsonpath-query'].includes(type));
|
|
24447
|
+
return {
|
|
24448
|
+
type: 'FilterQuery',
|
|
24449
|
+
query: transformCSTtoAST(child, transformers, ctx)
|
|
24450
|
+
};
|
|
24451
|
+
},
|
|
24452
|
+
['rel-query'](node, ctx) {
|
|
24453
|
+
const segments = node.children.find(c => c.type === 'segments');
|
|
24454
|
+
return {
|
|
24455
|
+
type: 'RelQuery',
|
|
24456
|
+
segments: segments ? segments.children.filter(n => n.type === 'segment').map(segNode => transformCSTtoAST(segNode, transformers, ctx)) : []
|
|
24457
|
+
};
|
|
24458
|
+
},
|
|
24459
|
+
['comparison-expr'](node, ctx) {
|
|
24460
|
+
const children = node.children.filter(({
|
|
24461
|
+
type
|
|
24462
|
+
}) => ['comparable', 'comparison-op'].includes(type));
|
|
24463
|
+
const [left, op, right] = children;
|
|
24464
|
+
return {
|
|
24465
|
+
type: 'ComparisonExpr',
|
|
24466
|
+
left: transformCSTtoAST(left, transformers, ctx),
|
|
24467
|
+
op: op.text,
|
|
24468
|
+
right: transformCSTtoAST(right, transformers, ctx)
|
|
24469
|
+
};
|
|
24470
|
+
},
|
|
24471
|
+
['literal'](node, ctx) {
|
|
24472
|
+
const child = node.children.find(({
|
|
24473
|
+
type
|
|
24474
|
+
}) => ['number', 'string-literal', 'true', 'false', 'null'].includes(type));
|
|
24475
|
+
if (child.type === 'string-literal') {
|
|
24476
|
+
const stringLiteralASTNode = transformCSTtoAST(child, transformers, ctx);
|
|
24477
|
+
return {
|
|
24478
|
+
type: 'Literal',
|
|
24479
|
+
value: stringLiteralASTNode.value
|
|
24480
|
+
};
|
|
24481
|
+
}
|
|
24482
|
+
return {
|
|
24483
|
+
type: 'Literal',
|
|
24484
|
+
value: (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeJSONValue)(child.text)
|
|
24485
|
+
};
|
|
24486
|
+
},
|
|
24487
|
+
['comparable'](node, ctx) {
|
|
24488
|
+
const child = node.children.find(({
|
|
24489
|
+
type
|
|
24490
|
+
}) => ['singular-query', 'function-expr', 'literal'].includes(type));
|
|
24491
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24492
|
+
},
|
|
24493
|
+
['singular-query'](node, ctx) {
|
|
24494
|
+
const child = node.children.find(({
|
|
24495
|
+
type
|
|
24496
|
+
}) => ['rel-singular-query', 'abs-singular-query'].includes(type));
|
|
24497
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24498
|
+
},
|
|
24499
|
+
['rel-singular-query'](node, ctx) {
|
|
24500
|
+
const segmentsNode = node.children.find(({
|
|
24501
|
+
type
|
|
24502
|
+
}) => type === 'singular-query-segments');
|
|
24503
|
+
const segments = segmentsNode ? segmentsNode.children.filter(({
|
|
24504
|
+
type
|
|
24505
|
+
}) => ['name-segment', 'index-segment'].includes(type)).map(segNode => ({
|
|
24506
|
+
type: 'SingularQuerySegment',
|
|
24507
|
+
selector: transformCSTtoAST(segNode, transformers, ctx)
|
|
24508
|
+
})) : [];
|
|
24509
|
+
return {
|
|
24510
|
+
type: 'RelSingularQuery',
|
|
24511
|
+
segments
|
|
24512
|
+
};
|
|
24513
|
+
},
|
|
24514
|
+
['abs-singular-query'](node, ctx) {
|
|
24515
|
+
const segmentsNode = node.children.find(({
|
|
24516
|
+
type
|
|
24517
|
+
}) => type === 'singular-query-segments');
|
|
24518
|
+
const segments = segmentsNode ? segmentsNode.children.filter(({
|
|
24519
|
+
type
|
|
24520
|
+
}) => ['name-segment', 'index-segment'].includes(type)).map(segNode => ({
|
|
24521
|
+
type: 'SingularQuerySegment',
|
|
24522
|
+
selector: transformCSTtoAST(segNode, transformers, ctx)
|
|
24523
|
+
})) : [];
|
|
24524
|
+
return {
|
|
24525
|
+
type: 'AbsSingularQuery',
|
|
24526
|
+
segments
|
|
24527
|
+
};
|
|
24528
|
+
},
|
|
24529
|
+
['name-segment'](node, ctx) {
|
|
24530
|
+
const child = node.children.find(({
|
|
24531
|
+
type
|
|
24532
|
+
}) => ['name-selector', 'member-name-shorthand'].includes(type));
|
|
24533
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24534
|
+
},
|
|
24535
|
+
['index-segment'](node, ctx) {
|
|
24536
|
+
const child = node.children.find(({
|
|
24537
|
+
type
|
|
24538
|
+
}) => type === 'index-selector');
|
|
24539
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24540
|
+
},
|
|
24541
|
+
/**
|
|
24542
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.4
|
|
24543
|
+
*/
|
|
24544
|
+
['function-expr'](node, ctx) {
|
|
24545
|
+
const name = node.children.find(({
|
|
24546
|
+
type
|
|
24547
|
+
}) => type === 'function-name');
|
|
24548
|
+
const args = node.children.filter(({
|
|
24549
|
+
type
|
|
24550
|
+
}) => type === 'function-argument');
|
|
24551
|
+
return {
|
|
24552
|
+
type: 'FunctionExpr',
|
|
24553
|
+
name: name.text,
|
|
24554
|
+
arguments: args.map(arg => transformCSTtoAST(arg, transformers, ctx))
|
|
24555
|
+
};
|
|
24556
|
+
},
|
|
24557
|
+
['function-argument'](node, ctx) {
|
|
24558
|
+
const child = node.children.find(({
|
|
24559
|
+
type
|
|
24560
|
+
}) => ['logical-expr', 'function-expr', 'filter-query', 'literal'].includes(type));
|
|
24561
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24562
|
+
},
|
|
24563
|
+
/**
|
|
24564
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1
|
|
24565
|
+
*/
|
|
24566
|
+
['child-segment'](node, ctx) {
|
|
24567
|
+
const child = node.children.find(({
|
|
24568
|
+
type
|
|
24569
|
+
}) => ['bracketed-selection', 'wildcard-selector', 'member-name-shorthand'].includes(type));
|
|
24570
|
+
return {
|
|
24571
|
+
type: 'ChildSegment',
|
|
24572
|
+
selector: transformCSTtoAST(child, transformers, ctx)
|
|
24573
|
+
};
|
|
24574
|
+
},
|
|
24575
|
+
['bracketed-selection'](node, ctx) {
|
|
24576
|
+
return {
|
|
24577
|
+
type: 'BracketedSelection',
|
|
24578
|
+
selectors: node.children.filter(({
|
|
24579
|
+
type
|
|
24580
|
+
}) => type === 'selector').map(selectorNode => transformCSTtoAST(selectorNode, transformers, ctx))
|
|
24581
|
+
};
|
|
24582
|
+
},
|
|
24583
|
+
['member-name-shorthand'](node) {
|
|
24584
|
+
return {
|
|
24585
|
+
type: 'NameSelector',
|
|
24586
|
+
value: node.text,
|
|
24587
|
+
format: 'shorthand'
|
|
24588
|
+
};
|
|
24589
|
+
},
|
|
24590
|
+
/**
|
|
24591
|
+
* https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1
|
|
24592
|
+
*/
|
|
24593
|
+
['descendant-segment'](node, ctx) {
|
|
24594
|
+
const child = node.children.find(({
|
|
24595
|
+
type
|
|
24596
|
+
}) => ['bracketed-selection', 'wildcard-selector', 'member-name-shorthand'].includes(type));
|
|
24597
|
+
return {
|
|
24598
|
+
type: 'DescendantSegment',
|
|
24599
|
+
selector: transformCSTtoAST(child, transformers, ctx)
|
|
24600
|
+
};
|
|
24601
|
+
},
|
|
24602
|
+
/**
|
|
24603
|
+
* https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths
|
|
24604
|
+
*/
|
|
24605
|
+
['normalized-path'](node, ctx) {
|
|
24606
|
+
return {
|
|
24607
|
+
type: 'JsonPathQuery',
|
|
24608
|
+
segments: node.children.filter(({
|
|
24609
|
+
type
|
|
24610
|
+
}) => type === 'normal-index-segment').map(segNode => transformCSTtoAST(segNode, transformers, ctx))
|
|
24611
|
+
};
|
|
24612
|
+
},
|
|
24613
|
+
['normal-index-segment'](node, ctx) {
|
|
24614
|
+
const child = node.children.find(({
|
|
24615
|
+
type
|
|
24616
|
+
}) => type === 'normal-selector');
|
|
24617
|
+
return {
|
|
24618
|
+
type: 'ChildSegment',
|
|
24619
|
+
selector: transformCSTtoAST(child, transformers, ctx)
|
|
24620
|
+
};
|
|
24621
|
+
},
|
|
24622
|
+
['normal-selector'](node, ctx) {
|
|
24623
|
+
const child = node.children.find(({
|
|
24624
|
+
type
|
|
24625
|
+
}) => ['normal-name-selector', 'normal-index-selector'].includes(type));
|
|
24626
|
+
return transformCSTtoAST(child, transformers, ctx);
|
|
24627
|
+
},
|
|
24628
|
+
['normal-name-selector'](node) {
|
|
24629
|
+
const child = node.children.find(({
|
|
24630
|
+
type
|
|
24631
|
+
}) => type === 'normal-single-quoted');
|
|
24632
|
+
return {
|
|
24633
|
+
type: 'NameSelector',
|
|
24634
|
+
value: child ? (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeSingleQuotedString)(child.text) : '',
|
|
24635
|
+
format: 'single-quoted'
|
|
24636
|
+
};
|
|
24637
|
+
},
|
|
24638
|
+
['normal-index-selector'](node) {
|
|
24639
|
+
return {
|
|
24640
|
+
type: 'IndexSelector',
|
|
24641
|
+
value: (0,_decoders_mjs__WEBPACK_IMPORTED_MODULE_1__.decodeInteger)(node.text)
|
|
24642
|
+
};
|
|
24643
|
+
}
|
|
24644
|
+
};
|
|
24645
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (transformers);
|
|
20850
24646
|
|
|
20851
24647
|
/***/ }),
|
|
20852
24648
|
|
|
@@ -21358,6 +25154,66 @@ var split = /*#__PURE__*/(0,_invoker_js__WEBPACK_IMPORTED_MODULE_0__["default"])
|
|
|
21358
25154
|
|
|
21359
25155
|
/***/ }),
|
|
21360
25156
|
|
|
25157
|
+
/***/ 67636:
|
|
25158
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25159
|
+
|
|
25160
|
+
__webpack_require__.r(__webpack_exports__);
|
|
25161
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25162
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
25163
|
+
/* harmony export */ });
|
|
25164
|
+
/* harmony import */ var _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23449);
|
|
25165
|
+
|
|
25166
|
+
class XMLTranslator extends _CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
25167
|
+
getTree() {
|
|
25168
|
+
return this.toXml();
|
|
25169
|
+
}
|
|
25170
|
+
}
|
|
25171
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (XMLTranslator);
|
|
25172
|
+
|
|
25173
|
+
/***/ }),
|
|
25174
|
+
|
|
25175
|
+
/***/ 67724:
|
|
25176
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
25177
|
+
|
|
25178
|
+
__webpack_require__.r(__webpack_exports__);
|
|
25179
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25180
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
25181
|
+
/* harmony export */ });
|
|
25182
|
+
/* harmony import */ var apg_lite__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51751);
|
|
25183
|
+
/* harmony import */ var _Expectations_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41352);
|
|
25184
|
+
|
|
25185
|
+
|
|
25186
|
+
class Trace extends apg_lite__WEBPACK_IMPORTED_MODULE_0__.Trace {
|
|
25187
|
+
inferExpectations() {
|
|
25188
|
+
const lines = this.displayTrace().split('\n');
|
|
25189
|
+
const expectations = new Set();
|
|
25190
|
+
let lastMatchedIndex = -1;
|
|
25191
|
+
for (let i = 0; i < lines.length; i++) {
|
|
25192
|
+
const line = lines[i];
|
|
25193
|
+
|
|
25194
|
+
// capture the max match line (first one that ends in a single character match)
|
|
25195
|
+
if (line.includes('M|')) {
|
|
25196
|
+
const textMatch = line.match(/]'(.*)'$/);
|
|
25197
|
+
if (textMatch && textMatch[1]) {
|
|
25198
|
+
lastMatchedIndex = i;
|
|
25199
|
+
}
|
|
25200
|
+
}
|
|
25201
|
+
|
|
25202
|
+
// collect terminal failures after the deepest successful match
|
|
25203
|
+
if (i > lastMatchedIndex) {
|
|
25204
|
+
const terminalFailMatch = line.match(/N\|\[TLS\(([^)]+)\)]/);
|
|
25205
|
+
if (terminalFailMatch) {
|
|
25206
|
+
expectations.add(terminalFailMatch[1]);
|
|
25207
|
+
}
|
|
25208
|
+
}
|
|
25209
|
+
}
|
|
25210
|
+
return new _Expectations_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](...expectations);
|
|
25211
|
+
}
|
|
25212
|
+
}
|
|
25213
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Trace);
|
|
25214
|
+
|
|
25215
|
+
/***/ }),
|
|
25216
|
+
|
|
21361
25217
|
/***/ 67793:
|
|
21362
25218
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21363
25219
|
|
|
@@ -23637,6 +27493,37 @@ class LinkDescriptionVisitor extends _speclynx_apidom_ns_json_schema_2019_09__WE
|
|
|
23637
27493
|
|
|
23638
27494
|
/***/ }),
|
|
23639
27495
|
|
|
27496
|
+
/***/ 74362:
|
|
27497
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
27498
|
+
|
|
27499
|
+
__webpack_require__.r(__webpack_exports__);
|
|
27500
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27501
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
27502
|
+
/* harmony export */ });
|
|
27503
|
+
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8789);
|
|
27504
|
+
|
|
27505
|
+
const test = (jsonPath, {
|
|
27506
|
+
normalized = false
|
|
27507
|
+
} = {}) => {
|
|
27508
|
+
if (typeof jsonPath !== 'string') return false;
|
|
27509
|
+
try {
|
|
27510
|
+
const {
|
|
27511
|
+
result
|
|
27512
|
+
} = (0,_parse_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(jsonPath, {
|
|
27513
|
+
normalized,
|
|
27514
|
+
stats: false,
|
|
27515
|
+
trace: false,
|
|
27516
|
+
translator: null
|
|
27517
|
+
});
|
|
27518
|
+
return result.success;
|
|
27519
|
+
} catch {
|
|
27520
|
+
return false;
|
|
27521
|
+
}
|
|
27522
|
+
};
|
|
27523
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (test);
|
|
27524
|
+
|
|
27525
|
+
/***/ }),
|
|
27526
|
+
|
|
23640
27527
|
/***/ 74367:
|
|
23641
27528
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
23642
27529
|
|
|
@@ -26076,6 +29963,54 @@ class Tag extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["defau
|
|
|
26076
29963
|
}
|
|
26077
29964
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tag);
|
|
26078
29965
|
|
|
29966
|
+
/***/ }),
|
|
29967
|
+
|
|
29968
|
+
/***/ 84637:
|
|
29969
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29970
|
+
|
|
29971
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29972
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29973
|
+
/* harmony export */ ASTTranslator: () => (/* reexport safe */ _parse_translators_ASTTranslator_index_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
29974
|
+
/* harmony export */ CSTOptimizedTranslator: () => (/* reexport safe */ _parse_translators_CSTOptimizedTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
29975
|
+
/* harmony export */ CSTTranslator: () => (/* reexport safe */ _parse_translators_CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
29976
|
+
/* harmony export */ Grammar: () => (/* reexport safe */ _grammar_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
29977
|
+
/* harmony export */ JSONPathCompileError: () => (/* reexport safe */ _errors_JSONPathCompileError_mjs__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
29978
|
+
/* harmony export */ JSONPathError: () => (/* reexport safe */ _errors_JSONPathError_mjs__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
29979
|
+
/* harmony export */ JSONPathParseError: () => (/* reexport safe */ _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
29980
|
+
/* harmony export */ Trace: () => (/* reexport safe */ _parse_trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
29981
|
+
/* harmony export */ XMLTranslator: () => (/* reexport safe */ _parse_translators_XMLTranslator_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
29982
|
+
/* harmony export */ compile: () => (/* reexport safe */ _compile_mjs__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
29983
|
+
/* harmony export */ escape: () => (/* reexport safe */ _escape_mjs__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
29984
|
+
/* harmony export */ parse: () => (/* reexport safe */ _parse_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
29985
|
+
/* harmony export */ test: () => (/* reexport safe */ _test_index_mjs__WEBPACK_IMPORTED_MODULE_7__["default"])
|
|
29986
|
+
/* harmony export */ });
|
|
29987
|
+
/* harmony import */ var _grammar_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28186);
|
|
29988
|
+
/* harmony import */ var _parse_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8789);
|
|
29989
|
+
/* harmony import */ var _parse_translators_CSTTranslator_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23449);
|
|
29990
|
+
/* harmony import */ var _parse_translators_CSTOptimizedTranslator_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54848);
|
|
29991
|
+
/* harmony import */ var _parse_translators_ASTTranslator_index_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(96998);
|
|
29992
|
+
/* harmony import */ var _parse_translators_XMLTranslator_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67636);
|
|
29993
|
+
/* harmony import */ var _parse_trace_Trace_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67724);
|
|
29994
|
+
/* harmony import */ var _test_index_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(74362);
|
|
29995
|
+
/* harmony import */ var _compile_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4766);
|
|
29996
|
+
/* harmony import */ var _escape_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(26938);
|
|
29997
|
+
/* harmony import */ var _errors_JSONPathError_mjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84816);
|
|
29998
|
+
/* harmony import */ var _errors_JSONPathParseError_mjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92639);
|
|
29999
|
+
/* harmony import */ var _errors_JSONPathCompileError_mjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62977);
|
|
30000
|
+
|
|
30001
|
+
|
|
30002
|
+
|
|
30003
|
+
|
|
30004
|
+
|
|
30005
|
+
|
|
30006
|
+
|
|
30007
|
+
|
|
30008
|
+
|
|
30009
|
+
|
|
30010
|
+
|
|
30011
|
+
|
|
30012
|
+
|
|
30013
|
+
|
|
26079
30014
|
/***/ }),
|
|
26080
30015
|
|
|
26081
30016
|
/***/ 84660:
|
|
@@ -26119,6 +30054,56 @@ class AnnotationElement extends _primitives_StringElement_mjs__WEBPACK_IMPORTED_
|
|
|
26119
30054
|
|
|
26120
30055
|
/***/ }),
|
|
26121
30056
|
|
|
30057
|
+
/***/ 84816:
|
|
30058
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
30059
|
+
|
|
30060
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30061
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30062
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
30063
|
+
/* harmony export */ });
|
|
30064
|
+
class JSONPathError extends Error {
|
|
30065
|
+
constructor(message, options = undefined) {
|
|
30066
|
+
super(message, options);
|
|
30067
|
+
this.name = this.constructor.name;
|
|
30068
|
+
if (typeof message === 'string') {
|
|
30069
|
+
this.message = message;
|
|
30070
|
+
}
|
|
30071
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
30072
|
+
Error.captureStackTrace(this, this.constructor);
|
|
30073
|
+
} else {
|
|
30074
|
+
this.stack = new Error(message).stack;
|
|
30075
|
+
}
|
|
30076
|
+
|
|
30077
|
+
/**
|
|
30078
|
+
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
30079
|
+
* Node.js is >= 16.9.0 supports error causes natively.
|
|
30080
|
+
*/
|
|
30081
|
+
if (options != null && typeof options === 'object' && Object.prototype.hasOwnProperty.call(options, 'cause') && !('cause' in this)) {
|
|
30082
|
+
const {
|
|
30083
|
+
cause
|
|
30084
|
+
} = options;
|
|
30085
|
+
this.cause = cause;
|
|
30086
|
+
if (cause instanceof Error && 'stack' in cause) {
|
|
30087
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
30088
|
+
}
|
|
30089
|
+
}
|
|
30090
|
+
|
|
30091
|
+
/**
|
|
30092
|
+
* Allows to assign arbitrary properties to the error object.
|
|
30093
|
+
*/
|
|
30094
|
+
if (options != null && typeof options === 'object') {
|
|
30095
|
+
const {
|
|
30096
|
+
cause,
|
|
30097
|
+
...causelessOptions
|
|
30098
|
+
} = options;
|
|
30099
|
+
Object.assign(this, causelessOptions);
|
|
30100
|
+
}
|
|
30101
|
+
}
|
|
30102
|
+
}
|
|
30103
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPathError);
|
|
30104
|
+
|
|
30105
|
+
/***/ }),
|
|
30106
|
+
|
|
26122
30107
|
/***/ 85012:
|
|
26123
30108
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
26124
30109
|
|
|
@@ -27029,7 +31014,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27029
31014
|
/* harmony import */ var _visitors_open_api_3_0_operation_RequestBodyVisitor_mjs__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(19990);
|
|
27030
31015
|
/* harmony import */ var _visitors_open_api_3_0_operation_CallbacksVisitor_mjs__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(83479);
|
|
27031
31016
|
/* harmony import */ var _visitors_open_api_3_0_operation_SecurityVisitor_mjs__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(32411);
|
|
27032
|
-
/* harmony import */ var _visitors_open_api_3_0_operation_ServersVisitor_mjs__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(
|
|
31017
|
+
/* harmony import */ var _visitors_open_api_3_0_operation_ServersVisitor_mjs__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(12008);
|
|
27033
31018
|
/* harmony import */ var _visitors_open_api_3_0_path_item_index_mjs__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(23911);
|
|
27034
31019
|
/* harmony import */ var _visitors_open_api_3_0_path_item_$RefVisitor_mjs__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(65460);
|
|
27035
31020
|
/* harmony import */ var _visitors_open_api_3_0_path_item_ServersVisitor_mjs__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(50575);
|
|
@@ -27778,20 +31763,46 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27778
31763
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27779
31764
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
27780
31765
|
/* harmony export */ });
|
|
27781
|
-
|
|
27782
|
-
|
|
31766
|
+
class JSONPointerError extends Error {
|
|
31767
|
+
constructor(message, options = undefined) {
|
|
31768
|
+
super(message, options);
|
|
31769
|
+
this.name = this.constructor.name;
|
|
31770
|
+
if (typeof message === 'string') {
|
|
31771
|
+
this.message = message;
|
|
31772
|
+
}
|
|
31773
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
31774
|
+
Error.captureStackTrace(this, this.constructor);
|
|
31775
|
+
} else {
|
|
31776
|
+
this.stack = new Error(message).stack;
|
|
31777
|
+
}
|
|
27783
31778
|
|
|
31779
|
+
/**
|
|
31780
|
+
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
|
31781
|
+
* Node.js is >= 16.9.0 supports error causes natively.
|
|
31782
|
+
*/
|
|
31783
|
+
if (options != null && typeof options === 'object' && Object.prototype.hasOwnProperty.call(options, 'cause') && !('cause' in this)) {
|
|
31784
|
+
const {
|
|
31785
|
+
cause
|
|
31786
|
+
} = options;
|
|
31787
|
+
this.cause = cause;
|
|
31788
|
+
if (cause instanceof Error && 'stack' in cause) {
|
|
31789
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
|
31790
|
+
}
|
|
31791
|
+
}
|
|
27784
31792
|
|
|
27785
|
-
/**
|
|
27786
|
-
|
|
27787
|
-
|
|
27788
|
-
|
|
27789
|
-
|
|
27790
|
-
|
|
27791
|
-
|
|
31793
|
+
/**
|
|
31794
|
+
* Allows to assign arbitrary properties to the error object.
|
|
31795
|
+
*/
|
|
31796
|
+
if (options != null && typeof options === 'object') {
|
|
31797
|
+
const {
|
|
31798
|
+
cause,
|
|
31799
|
+
...causelessOptions
|
|
31800
|
+
} = options;
|
|
31801
|
+
Object.assign(this, causelessOptions);
|
|
31802
|
+
}
|
|
27792
31803
|
}
|
|
27793
31804
|
}
|
|
27794
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
31805
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPointerError);
|
|
27795
31806
|
|
|
27796
31807
|
/***/ }),
|
|
27797
31808
|
|
|
@@ -28208,6 +32219,20 @@ class AllOfVisitor extends _bases_mjs__WEBPACK_IMPORTED_MODULE_1__.AllOfVisitorB
|
|
|
28208
32219
|
|
|
28209
32220
|
/***/ }),
|
|
28210
32221
|
|
|
32222
|
+
/***/ 92639:
|
|
32223
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
32224
|
+
|
|
32225
|
+
__webpack_require__.r(__webpack_exports__);
|
|
32226
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
32227
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
32228
|
+
/* harmony export */ });
|
|
32229
|
+
/* harmony import */ var _JSONPathError_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(84816);
|
|
32230
|
+
|
|
32231
|
+
class JSONPathParseError extends _JSONPathError_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
|
32232
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JSONPathParseError);
|
|
32233
|
+
|
|
32234
|
+
/***/ }),
|
|
32235
|
+
|
|
28211
32236
|
/***/ 92709:
|
|
28212
32237
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
28213
32238
|
|
|
@@ -29497,6 +33522,27 @@ const isSourceMapElement = element => element instanceof _elements_SourceMap_mjs
|
|
|
29497
33522
|
|
|
29498
33523
|
/***/ }),
|
|
29499
33524
|
|
|
33525
|
+
/***/ 96998:
|
|
33526
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
33527
|
+
|
|
33528
|
+
__webpack_require__.r(__webpack_exports__);
|
|
33529
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
33530
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
33531
|
+
/* harmony export */ });
|
|
33532
|
+
/* harmony import */ var _CSTOptimizedTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(54848);
|
|
33533
|
+
/* harmony import */ var _transformers_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66090);
|
|
33534
|
+
|
|
33535
|
+
|
|
33536
|
+
class ASTTranslator extends _CSTOptimizedTranslator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
33537
|
+
getTree() {
|
|
33538
|
+
const cst = super.getTree();
|
|
33539
|
+
return (0,_transformers_mjs__WEBPACK_IMPORTED_MODULE_1__.transformCSTtoAST)(cst.root, _transformers_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
33540
|
+
}
|
|
33541
|
+
}
|
|
33542
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ASTTranslator);
|
|
33543
|
+
|
|
33544
|
+
/***/ }),
|
|
33545
|
+
|
|
29500
33546
|
/***/ 97071:
|
|
29501
33547
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29502
33548
|
|