@swagger-api/apidom-ast 0.73.0 → 0.74.1

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.74.1](https://github.com/swagger-api/apidom/compare/v0.74.0...v0.74.1) (2023-07-28)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-ast
9
+
10
+
11
+
12
+
13
+
14
+ # [0.74.0](https://github.com/swagger-api/apidom/compare/v0.73.0...v0.74.0) (2023-07-24)
15
+
16
+ **Note:** Version bump only for package @swagger-api/apidom-ast
17
+
18
+
19
+
20
+
21
+
6
22
  # [0.73.0](https://github.com/swagger-api/apidom/compare/v0.72.0...v0.73.0) (2023-07-18)
7
23
 
8
24
  **Note:** Version bump only for package @swagger-api/apidom-ast
@@ -3069,72 +3069,67 @@ var trimStart = (0,_isFunction__WEBPACK_IMPORTED_MODULE_2__["default"])(String.p
3069
3069
  /***/ ((__unused_webpack_module, exports) => {
3070
3070
 
3071
3071
  "use strict";
3072
-
3073
- /**
3074
- * @file **unraw - errors.ts** | Error messages used by `unraw`.
3075
- * @author Ian Sanders
3076
- * @copyright 2019 Ian Sanders
3077
- * @license MIT
3078
- */
3079
- Object.defineProperty(exports, "__esModule", ({ value: true }));
3080
- // NOTE: don't construct errors here or they'll have the wrong stack trace.
3081
- // NOTE: don't make custom error class; the JS engines use `SyntaxError`
3082
- /**
3083
- * Keys for possible error messages used by `unraw`.
3084
- * Note: These do _not_ map to actual error object types. All errors thrown
3085
- * are `SyntaxError`.
3086
- */
3087
- // Don't use const enum or JS users won't be able to access the enum values
3088
- var ErrorType;
3089
- (function (ErrorType) {
3090
- /**
3091
- * Thrown when a badly formed Unicode escape sequence is found. Possible
3092
- * reasons include the code being too short (`"\u25"`) or having invalid
3093
- * characters (`"\u2$A5"`).
3094
- */
3095
- ErrorType["MalformedUnicode"] = "MALFORMED_UNICODE";
3096
- /**
3097
- * Thrown when a badly formed hexadecimal escape sequence is found. Possible
3098
- * reasons include the code being too short (`"\x2"`) or having invalid
3099
- * characters (`"\x2$"`).
3100
- */
3101
- ErrorType["MalformedHexadecimal"] = "MALFORMED_HEXADECIMAL";
3102
- /**
3103
- * Thrown when a Unicode code point escape sequence has too high of a code
3104
- * point. The maximum code point allowed is `\u{10FFFF}`, so `\u{110000}` and
3105
- * higher will throw this error.
3106
- */
3107
- ErrorType["CodePointLimit"] = "CODE_POINT_LIMIT";
3108
- /**
3109
- * Thrown when an octal escape sequences is encountered and `allowOctals` is
3110
- * `false`. For example, `unraw("\234", false)`.
3111
- */
3112
- ErrorType["OctalDeprecation"] = "OCTAL_DEPRECATION";
3113
- /**
3114
- * Thrown only when a single backslash is found at the end of a string. For
3115
- * example, `"\\"` or `"test\\x24\\"`.
3116
- */
3117
- ErrorType["EndOfString"] = "END_OF_STRING";
3118
- })(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
3119
- /** Map of error message names to the full text of the message. */
3120
- exports.errorMessages = new Map([
3121
- [ErrorType.MalformedUnicode, "malformed Unicode character escape sequence"],
3122
- [
3123
- ErrorType.MalformedHexadecimal,
3124
- "malformed hexadecimal character escape sequence"
3125
- ],
3126
- [
3127
- ErrorType.CodePointLimit,
3128
- "Unicode codepoint must not be greater than 0x10FFFF in escape sequence"
3129
- ],
3130
- [
3131
- ErrorType.OctalDeprecation,
3132
- '"0"-prefixed octal literals and octal escape sequences are deprecated; ' +
3133
- 'for octal literals use the "0o" prefix instead'
3134
- ],
3135
- [ErrorType.EndOfString, "malformed escape sequence at end of string"]
3136
- ]);
3137
- //# sourceMappingURL=errors.js.map
3072
+
3073
+ // NOTE: don't construct errors here or they'll have the wrong stack trace.
3074
+ // NOTE: don't make custom error class; the JS engines use `SyntaxError`
3075
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3076
+ exports.errorMessages = exports.ErrorType = void 0;
3077
+ /**
3078
+ * Keys for possible error messages used by `unraw`.
3079
+ * Note: These do _not_ map to actual error object types. All errors thrown
3080
+ * are `SyntaxError`.
3081
+ */
3082
+ // Don't use const enum or JS users won't be able to access the enum values
3083
+ var ErrorType;
3084
+ (function (ErrorType) {
3085
+ /**
3086
+ * Thrown when a badly formed Unicode escape sequence is found. Possible
3087
+ * reasons include the code being too short (`"\u25"`) or having invalid
3088
+ * characters (`"\u2$A5"`).
3089
+ */
3090
+ ErrorType["MalformedUnicode"] = "MALFORMED_UNICODE";
3091
+ /**
3092
+ * Thrown when a badly formed hexadecimal escape sequence is found. Possible
3093
+ * reasons include the code being too short (`"\x2"`) or having invalid
3094
+ * characters (`"\x2$"`).
3095
+ */
3096
+ ErrorType["MalformedHexadecimal"] = "MALFORMED_HEXADECIMAL";
3097
+ /**
3098
+ * Thrown when a Unicode code point escape sequence has too high of a code
3099
+ * point. The maximum code point allowed is `\u{10FFFF}`, so `\u{110000}` and
3100
+ * higher will throw this error.
3101
+ */
3102
+ ErrorType["CodePointLimit"] = "CODE_POINT_LIMIT";
3103
+ /**
3104
+ * Thrown when an octal escape sequences is encountered and `allowOctals` is
3105
+ * `false`. For example, `unraw("\234", false)`.
3106
+ */
3107
+ ErrorType["OctalDeprecation"] = "OCTAL_DEPRECATION";
3108
+ /**
3109
+ * Thrown only when a single backslash is found at the end of a string. For
3110
+ * example, `"\\"` or `"test\\x24\\"`.
3111
+ */
3112
+ ErrorType["EndOfString"] = "END_OF_STRING";
3113
+ })(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
3114
+ /** Map of error message names to the full text of the message. */
3115
+ exports.errorMessages = new Map([
3116
+ [ErrorType.MalformedUnicode, "malformed Unicode character escape sequence"],
3117
+ [
3118
+ ErrorType.MalformedHexadecimal,
3119
+ "malformed hexadecimal character escape sequence"
3120
+ ],
3121
+ [
3122
+ ErrorType.CodePointLimit,
3123
+ "Unicode codepoint must not be greater than 0x10FFFF in escape sequence"
3124
+ ],
3125
+ [
3126
+ ErrorType.OctalDeprecation,
3127
+ '"0"-prefixed octal literals and octal escape sequences are deprecated; ' +
3128
+ 'for octal literals use the "0o" prefix instead'
3129
+ ],
3130
+ [ErrorType.EndOfString, "malformed escape sequence at end of string"]
3131
+ ]);
3132
+
3138
3133
 
3139
3134
  /***/ }),
3140
3135
 
@@ -3142,202 +3137,196 @@ exports.errorMessages = new Map([
3142
3137
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
3143
3138
 
3144
3139
  "use strict";
3145
-
3146
- /**
3147
- * @file **unraw** | Convert raw escape sequences to their respective characters
3148
- * (undo `String.raw`).
3149
- * @author Ian Sanders
3150
- * @copyright 2019 Ian Sanders
3151
- * @license MIT
3152
- */
3153
- Object.defineProperty(exports, "__esModule", ({ value: true }));
3154
- const errors_1 = __webpack_require__(2396);
3155
- exports.ErrorType = errors_1.ErrorType;
3156
- exports.errorMessages = errors_1.errorMessages;
3157
- /**
3158
- * Parse a string as a base-16 number. This is more strict than `parseInt` as it
3159
- * will not allow any other characters, including (for example) "+", "-", and
3160
- * ".".
3161
- * @param hex A string containing a hexadecimal number.
3162
- * @returns The parsed integer, or `NaN` if the string is not a valid hex
3163
- * number.
3164
- */
3165
- function parseHexToInt(hex) {
3166
- const isOnlyHexChars = !hex.match(/[^a-f0-9]/i);
3167
- return isOnlyHexChars ? parseInt(hex, 16) : NaN;
3168
- }
3169
- /**
3170
- * Check the validity and length of a hexadecimal code and optionally enforces
3171
- * a specific number of hex digits.
3172
- * @param hex The string to validate and parse.
3173
- * @param errorName The name of the error message to throw a `SyntaxError` with
3174
- * if `hex` is invalid. This is used to index `errorMessages`.
3175
- * @param enforcedLength If provided, will throw an error if `hex` is not
3176
- * exactly this many characters.
3177
- * @returns The parsed hex number as a normal number.
3178
- * @throws {SyntaxError} If the code is not valid.
3179
- */
3180
- function validateAndParseHex(hex, errorName, enforcedLength) {
3181
- const parsedHex = parseHexToInt(hex);
3182
- if (Number.isNaN(parsedHex) ||
3183
- (enforcedLength !== undefined && enforcedLength !== hex.length)) {
3184
- throw new SyntaxError(errors_1.errorMessages.get(errorName));
3185
- }
3186
- return parsedHex;
3187
- }
3188
- /**
3189
- * Parse a two-digit hexadecimal character escape code.
3190
- * @param code The two-digit hexadecimal number that represents the character to
3191
- * output.
3192
- * @returns The single character represented by the code.
3193
- * @throws {SyntaxError} If the code is not valid hex or is not the right
3194
- * length.
3195
- */
3196
- function parseHexadecimalCode(code) {
3197
- const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedHexadecimal, 2);
3198
- return String.fromCharCode(parsedCode);
3199
- }
3200
- /**
3201
- * Parse a four-digit Unicode character escape code.
3202
- * @param code The four-digit unicode number that represents the character to
3203
- * output.
3204
- * @param surrogateCode Optional four-digit unicode surrogate that represents
3205
- * the other half of the character to output.
3206
- * @returns The single character represented by the code.
3207
- * @throws {SyntaxError} If the codes are not valid hex or are not the right
3208
- * length.
3209
- */
3210
- function parseUnicodeCode(code, surrogateCode) {
3211
- const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedUnicode, 4);
3212
- if (surrogateCode !== undefined) {
3213
- const parsedSurrogateCode = validateAndParseHex(surrogateCode, errors_1.ErrorType.MalformedUnicode, 4);
3214
- return String.fromCharCode(parsedCode, parsedSurrogateCode);
3215
- }
3216
- return String.fromCharCode(parsedCode);
3217
- }
3218
- /**
3219
- * Test if the text is surrounded by curly braces (`{}`).
3220
- * @param text Text to check.
3221
- * @returns `true` if the text is in the form `{*}`.
3222
- */
3223
- function isCurlyBraced(text) {
3224
- return text.charAt(0) === "{" && text.charAt(text.length - 1) === "}";
3225
- }
3226
- /**
3227
- * Parse a Unicode code point character escape code.
3228
- * @param codePoint A unicode escape code point, including the surrounding curly
3229
- * braces.
3230
- * @returns The single character represented by the code.
3231
- * @throws {SyntaxError} If the code is not valid hex or does not have the
3232
- * surrounding curly braces.
3233
- */
3234
- function parseUnicodeCodePointCode(codePoint) {
3235
- if (!isCurlyBraced(codePoint)) {
3236
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.MalformedUnicode));
3237
- }
3238
- const withoutBraces = codePoint.slice(1, -1);
3239
- const parsedCode = validateAndParseHex(withoutBraces, errors_1.ErrorType.MalformedUnicode);
3240
- try {
3241
- return String.fromCodePoint(parsedCode);
3242
- }
3243
- catch (err) {
3244
- throw err instanceof RangeError
3245
- ? new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.CodePointLimit))
3246
- : err;
3247
- }
3248
- }
3249
- // Have to give overload that takes boolean for when compiler doesn't know if
3250
- // true or false
3251
- function parseOctalCode(code, error = false) {
3252
- if (error) {
3253
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.OctalDeprecation));
3254
- }
3255
- // The original regex only allows digits so we don't need to have a strict
3256
- // octal parser like hexToInt. Length is not enforced for octals.
3257
- const parsedCode = parseInt(code, 8);
3258
- return String.fromCharCode(parsedCode);
3259
- }
3260
- /**
3261
- * Map of unescaped letters to their corresponding special JS escape characters.
3262
- * Intentionally does not include characters that map to themselves like "\'".
3263
- */
3264
- const singleCharacterEscapes = new Map([
3265
- ["b", "\b"],
3266
- ["f", "\f"],
3267
- ["n", "\n"],
3268
- ["r", "\r"],
3269
- ["t", "\t"],
3270
- ["v", "\v"],
3271
- ["0", "\0"]
3272
- ]);
3273
- /**
3274
- * Parse a single character escape sequence and return the matching character.
3275
- * If none is matched, defaults to `code`.
3276
- * @param code A single character code.
3277
- */
3278
- function parseSingleCharacterCode(code) {
3279
- return singleCharacterEscapes.get(code) || code;
3280
- }
3281
- /**
3282
- * Matches every escape sequence possible, including invalid ones.
3283
- *
3284
- * All capture groups (described below) are unique (only one will match), except
3285
- * for 4, which can only potentially match if 3 does.
3286
- *
3287
- * **Capture Groups:**
3288
- * 0. A single backslash
3289
- * 1. Hexadecimal code
3290
- * 2. Unicode code point code with surrounding curly braces
3291
- * 3. Unicode escape code with surrogate
3292
- * 4. Surrogate code
3293
- * 5. Unicode escape code without surrogate
3294
- * 6. Octal code _NOTE: includes "0"._
3295
- * 7. A single character (will never be \, x, u, or 0-3)
3296
- */
3297
- const escapeMatch = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
3298
- /**
3299
- * Replace raw escape character strings with their escape characters.
3300
- * @param raw A string where escape characters are represented as raw string
3301
- * values like `\'` rather than `'`.
3302
- * @param allowOctals If `true`, will process the now-deprecated octal escape
3303
- * sequences (ie, `\111`).
3304
- * @returns The processed string, with escape characters replaced by their
3305
- * respective actual Unicode characters.
3306
- */
3307
- function unraw(raw, allowOctals = false) {
3308
- return raw.replace(escapeMatch, function (_, backslash, hex, codePoint, unicodeWithSurrogate, surrogate, unicode, octal, singleCharacter) {
3309
- // Compare groups to undefined because empty strings mean different errors
3310
- // Otherwise, `\u` would fail the same as `\` which is wrong.
3311
- if (backslash !== undefined) {
3312
- return "\\";
3313
- }
3314
- if (hex !== undefined) {
3315
- return parseHexadecimalCode(hex);
3316
- }
3317
- if (codePoint !== undefined) {
3318
- return parseUnicodeCodePointCode(codePoint);
3319
- }
3320
- if (unicodeWithSurrogate !== undefined) {
3321
- return parseUnicodeCode(unicodeWithSurrogate, surrogate);
3322
- }
3323
- if (unicode !== undefined) {
3324
- return parseUnicodeCode(unicode);
3325
- }
3326
- if (octal === "0") {
3327
- return "\0";
3328
- }
3329
- if (octal !== undefined) {
3330
- return parseOctalCode(octal, !allowOctals);
3331
- }
3332
- if (singleCharacter !== undefined) {
3333
- return parseSingleCharacterCode(singleCharacter);
3334
- }
3335
- throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.EndOfString));
3336
- });
3337
- }
3338
- exports.unraw = unraw;
3339
- exports["default"] = unraw;
3340
- //# sourceMappingURL=index.js.map
3140
+
3141
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3142
+ exports.unraw = exports.errorMessages = exports.ErrorType = void 0;
3143
+ const errors_1 = __webpack_require__(2396);
3144
+ Object.defineProperty(exports, "ErrorType", ({ enumerable: true, get: function () { return errors_1.ErrorType; } }));
3145
+ Object.defineProperty(exports, "errorMessages", ({ enumerable: true, get: function () { return errors_1.errorMessages; } }));
3146
+ /**
3147
+ * Parse a string as a base-16 number. This is more strict than `parseInt` as it
3148
+ * will not allow any other characters, including (for example) "+", "-", and
3149
+ * ".".
3150
+ * @param hex A string containing a hexadecimal number.
3151
+ * @returns The parsed integer, or `NaN` if the string is not a valid hex
3152
+ * number.
3153
+ */
3154
+ function parseHexToInt(hex) {
3155
+ const isOnlyHexChars = !hex.match(/[^a-f0-9]/i);
3156
+ return isOnlyHexChars ? parseInt(hex, 16) : NaN;
3157
+ }
3158
+ /**
3159
+ * Check the validity and length of a hexadecimal code and optionally enforces
3160
+ * a specific number of hex digits.
3161
+ * @param hex The string to validate and parse.
3162
+ * @param errorName The name of the error message to throw a `SyntaxError` with
3163
+ * if `hex` is invalid. This is used to index `errorMessages`.
3164
+ * @param enforcedLength If provided, will throw an error if `hex` is not
3165
+ * exactly this many characters.
3166
+ * @returns The parsed hex number as a normal number.
3167
+ * @throws {SyntaxError} If the code is not valid.
3168
+ */
3169
+ function validateAndParseHex(hex, errorName, enforcedLength) {
3170
+ const parsedHex = parseHexToInt(hex);
3171
+ if (Number.isNaN(parsedHex) ||
3172
+ (enforcedLength !== undefined && enforcedLength !== hex.length)) {
3173
+ throw new SyntaxError(errors_1.errorMessages.get(errorName));
3174
+ }
3175
+ return parsedHex;
3176
+ }
3177
+ /**
3178
+ * Parse a two-digit hexadecimal character escape code.
3179
+ * @param code The two-digit hexadecimal number that represents the character to
3180
+ * output.
3181
+ * @returns The single character represented by the code.
3182
+ * @throws {SyntaxError} If the code is not valid hex or is not the right
3183
+ * length.
3184
+ */
3185
+ function parseHexadecimalCode(code) {
3186
+ const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedHexadecimal, 2);
3187
+ return String.fromCharCode(parsedCode);
3188
+ }
3189
+ /**
3190
+ * Parse a four-digit Unicode character escape code.
3191
+ * @param code The four-digit unicode number that represents the character to
3192
+ * output.
3193
+ * @param surrogateCode Optional four-digit unicode surrogate that represents
3194
+ * the other half of the character to output.
3195
+ * @returns The single character represented by the code.
3196
+ * @throws {SyntaxError} If the codes are not valid hex or are not the right
3197
+ * length.
3198
+ */
3199
+ function parseUnicodeCode(code, surrogateCode) {
3200
+ const parsedCode = validateAndParseHex(code, errors_1.ErrorType.MalformedUnicode, 4);
3201
+ if (surrogateCode !== undefined) {
3202
+ const parsedSurrogateCode = validateAndParseHex(surrogateCode, errors_1.ErrorType.MalformedUnicode, 4);
3203
+ return String.fromCharCode(parsedCode, parsedSurrogateCode);
3204
+ }
3205
+ return String.fromCharCode(parsedCode);
3206
+ }
3207
+ /**
3208
+ * Test if the text is surrounded by curly braces (`{}`).
3209
+ * @param text Text to check.
3210
+ * @returns `true` if the text is in the form `{*}`.
3211
+ */
3212
+ function isCurlyBraced(text) {
3213
+ return text.charAt(0) === "{" && text.charAt(text.length - 1) === "}";
3214
+ }
3215
+ /**
3216
+ * Parse a Unicode code point character escape code.
3217
+ * @param codePoint A unicode escape code point, including the surrounding curly
3218
+ * braces.
3219
+ * @returns The single character represented by the code.
3220
+ * @throws {SyntaxError} If the code is not valid hex or does not have the
3221
+ * surrounding curly braces.
3222
+ */
3223
+ function parseUnicodeCodePointCode(codePoint) {
3224
+ if (!isCurlyBraced(codePoint)) {
3225
+ throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.MalformedUnicode));
3226
+ }
3227
+ const withoutBraces = codePoint.slice(1, -1);
3228
+ const parsedCode = validateAndParseHex(withoutBraces, errors_1.ErrorType.MalformedUnicode);
3229
+ try {
3230
+ return String.fromCodePoint(parsedCode);
3231
+ }
3232
+ catch (err) {
3233
+ throw err instanceof RangeError
3234
+ ? new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.CodePointLimit))
3235
+ : err;
3236
+ }
3237
+ }
3238
+ // Have to give overload that takes boolean for when compiler doesn't know if
3239
+ // true or false
3240
+ function parseOctalCode(code, error = false) {
3241
+ if (error) {
3242
+ throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.OctalDeprecation));
3243
+ }
3244
+ // The original regex only allows digits so we don't need to have a strict
3245
+ // octal parser like hexToInt. Length is not enforced for octals.
3246
+ const parsedCode = parseInt(code, 8);
3247
+ return String.fromCharCode(parsedCode);
3248
+ }
3249
+ /**
3250
+ * Map of unescaped letters to their corresponding special JS escape characters.
3251
+ * Intentionally does not include characters that map to themselves like "\'".
3252
+ */
3253
+ const singleCharacterEscapes = new Map([
3254
+ ["b", "\b"],
3255
+ ["f", "\f"],
3256
+ ["n", "\n"],
3257
+ ["r", "\r"],
3258
+ ["t", "\t"],
3259
+ ["v", "\v"],
3260
+ ["0", "\0"]
3261
+ ]);
3262
+ /**
3263
+ * Parse a single character escape sequence and return the matching character.
3264
+ * If none is matched, defaults to `code`.
3265
+ * @param code A single character code.
3266
+ */
3267
+ function parseSingleCharacterCode(code) {
3268
+ return singleCharacterEscapes.get(code) || code;
3269
+ }
3270
+ /**
3271
+ * Matches every escape sequence possible, including invalid ones.
3272
+ *
3273
+ * All capture groups (described below) are unique (only one will match), except
3274
+ * for 4, which can only potentially match if 3 does.
3275
+ *
3276
+ * **Capture Groups:**
3277
+ * 0. A single backslash
3278
+ * 1. Hexadecimal code
3279
+ * 2. Unicode code point code with surrounding curly braces
3280
+ * 3. Unicode escape code with surrogate
3281
+ * 4. Surrogate code
3282
+ * 5. Unicode escape code without surrogate
3283
+ * 6. Octal code _NOTE: includes "0"._
3284
+ * 7. A single character (will never be \, x, u, or 0-3)
3285
+ */
3286
+ const escapeMatch = /\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;
3287
+ /**
3288
+ * Replace raw escape character strings with their escape characters.
3289
+ * @param raw A string where escape characters are represented as raw string
3290
+ * values like `\'` rather than `'`.
3291
+ * @param allowOctals If `true`, will process the now-deprecated octal escape
3292
+ * sequences (ie, `\111`).
3293
+ * @returns The processed string, with escape characters replaced by their
3294
+ * respective actual Unicode characters.
3295
+ */
3296
+ function unraw(raw, allowOctals = false) {
3297
+ return raw.replace(escapeMatch, function (_, backslash, hex, codePoint, unicodeWithSurrogate, surrogate, unicode, octal, singleCharacter) {
3298
+ // Compare groups to undefined because empty strings mean different errors
3299
+ // Otherwise, `\u` would fail the same as `\` which is wrong.
3300
+ if (backslash !== undefined) {
3301
+ return "\\";
3302
+ }
3303
+ if (hex !== undefined) {
3304
+ return parseHexadecimalCode(hex);
3305
+ }
3306
+ if (codePoint !== undefined) {
3307
+ return parseUnicodeCodePointCode(codePoint);
3308
+ }
3309
+ if (unicodeWithSurrogate !== undefined) {
3310
+ return parseUnicodeCode(unicodeWithSurrogate, surrogate);
3311
+ }
3312
+ if (unicode !== undefined) {
3313
+ return parseUnicodeCode(unicode);
3314
+ }
3315
+ if (octal === "0") {
3316
+ return "\0";
3317
+ }
3318
+ if (octal !== undefined) {
3319
+ return parseOctalCode(octal, !allowOctals);
3320
+ }
3321
+ if (singleCharacter !== undefined) {
3322
+ return parseSingleCharacterCode(singleCharacter);
3323
+ }
3324
+ throw new SyntaxError(errors_1.errorMessages.get(errors_1.ErrorType.EndOfString));
3325
+ });
3326
+ }
3327
+ exports.unraw = unraw;
3328
+ exports["default"] = unraw;
3329
+
3341
3330
 
3342
3331
  /***/ }),
3343
3332
 
@@ -1,2 +1 @@
1
- /*! For license information please see apidom-ast.browser.min.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomAST=e():t.apidomAST=e()}(self,(()=>(()=>{var t={591:t=>{!function(){"use strict";var e,n,r,o,i,s="properties",c="deepProperties",a="propertyDescriptors",u="staticProperties",l="staticDeepProperties",f="staticPropertyDescriptors",p="configuration",d="deepConfiguration",y="deepProps",g="deepStatics",h="deepConf",m="initializers",v="methods",b="composers",S="compose";function O(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function j(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var w=j.bind(0,(function(t,e){if(e)for(var n=O(e),r=0;r<n.length;r+=1)Object.defineProperty(t,n[r],Object.getOwnPropertyDescriptor(e,n[r]));return t}));function A(t){return"function"==typeof t}function x(t){return t&&"object"==typeof t||A(t)}function E(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var N=j.bind(0,(function t(n,r){if(r===e)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!E(r))return r;for(var o,i,s=O(r),c=0;c<s.length;)o=s[c++],(i=Object.getOwnPropertyDescriptor(r,o)).hasOwnProperty("value")?i.value!==e&&(n[o]=t(E(n[o])||Array.isArray(r[o])?n[o]:{},r[o])):Object.defineProperty(n,o,i);return n}));function P(){return(n=Array.prototype.concat.apply([],arguments).filter((function(t,e,n){return A(t)&&n.indexOf(t)===e}))).length?n:e}function T(t,e){function r(n,r){x(e[n])&&(x(t[n])||(t[n]={}),(r||w)(t[n],e[n]))}function o(r){(n=P(t[r],e[r]))&&(t[r]=n)}return e&&x(e=e[S]||e)&&(r(v),r(s),r(c,N),r(a),r(u),r(l,N),r(f),r(p),r(d,N),o(m),o(b)),t}function M(){return function(t){return n=function t(n){var r,o,i=t[S]||{},u={__proto__:i[v]},l=i[m],f=Array.prototype.slice.apply(arguments),p=i[c];if(p&&N(u,p),(p=i[s])&&w(u,p),(p=i[a])&&Object.defineProperties(u,p),!l||!l.length)return u;for(n===e&&(n={}),i=0;i<l.length;)A(r=l[i++])&&(u=(o=r.call(u,n,{instance:u,stamp:t,args:f}))===e?u:o);return u},(r=t[l])&&N(n,r),(r=t[u])&&w(n,r),(r=t[f])&&Object.defineProperties(n,r),r=A(n[S])?n[S]:M,w(n[S]=function(){return r.apply(this,arguments)},t),n}(Array.prototype.concat.apply([this],arguments).reduce(T,{}))}function k(t){return A(t)&&A(t[S])}var F={};function D(t,i){return function(){return(o={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[S]||r).call(n,o)}}F[v]=D(v,w),F[s]=F.props=D(s,w),F[m]=F.init=D(m,P),F[b]=D(b,P),F[c]=F[y]=D(c,N),F[u]=F.statics=D(u,w),F[l]=F[g]=D(l,N),F[p]=F.conf=D(p,w),F[d]=F[h]=D(d,N),F[a]=D(a,w),F[f]=D(f,w),r=F[S]=w((function(){for(var t,O,j=0,A=[],E=arguments,T=this;j<E.length;)x(t=E[j++])&&A.push(k(t)?t:((o={})[v]=(O=t)[v]||e,r=O.props,o[s]=x((n=O[s])||r)?w({},r,n):e,o[m]=P(O.init,O[m]),o[b]=P(O[b]),r=O[y],o[c]=x((n=O[c])||r)?N({},r,n):e,o[a]=O[a],r=O.statics,o[u]=x((n=O[u])||r)?w({},r,n):e,r=O[g],o[l]=x((n=O[l])||r)?N({},r,n):e,n=O[f],o[f]=x((r=O.name&&{name:{value:O.name}})||n)?w({},n,r):e,r=O.conf,o[p]=x((n=O[p])||r)?w({},r,n):e,r=O[h],o[d]=x((n=O[d])||r)?N({},r,n):e,o));if(t=M.apply(T||i,A),T&&A.unshift(T),Array.isArray(E=t[S][b]))for(j=0;j<E.length;)t=k(T=E[j++]({stamp:t,composables:A}))?T:t;return t}),F),F.create=function(){return this.apply(e,arguments)},(o={})[u]=F,i=M(o),r[S]=r.bind(),r.version="4.3.2","object"!=typeof e?t.exports=r:self.stampit=r}()},396:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(n=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},770:(t,e,n)=>{"use strict";const r=n(396);function o(t,e,n){const o=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(o)||void 0!==n&&n!==t.length)throw new SyntaxError(r.errorMessages.get(e));return o}function i(t,e){const n=o(t,r.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=o(e,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,t)}return String.fromCharCode(n)}r.ErrorType,r.errorMessages;const s=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const c=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function a(t,e=!1){return t.replace(c,(function(t,n,c,a,u,l,f,p,d){if(void 0!==n)return"\\";if(void 0!==c)return function(t){const e=o(t,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(c);if(void 0!==a)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var e;const n=o(t.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(t){throw t instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):t}}(a);if(void 0!==u)return i(u,l);if(void 0!==f)return i(f);if("0"===p)return"\0";if(void 0!==p)return function(t,e=!1){if(e)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(t,8);return String.fromCharCode(n)}(p,!e);if(void 0!==d)return y=d,s.get(y)||y;var y;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}e.S6=a}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BREAK:()=>ar,Error:()=>ir,JsonArray:()=>je,JsonDocument:()=>ne,JsonEscapeSequence:()=>Ne,JsonFalse:()=>Me,JsonKey:()=>xe,JsonNode:()=>i,JsonNull:()=>ke,JsonNumber:()=>Pe,JsonObject:()=>Se,JsonProperty:()=>Oe,JsonString:()=>Ae,JsonStringContent:()=>Ee,JsonTrue:()=>Te,JsonValue:()=>we,Literal:()=>nr,ParseResult:()=>sr,Point:()=>rr,Position:()=>or,YamlAlias:()=>Fe,YamlAnchor:()=>on,YamlCollection:()=>Ce,YamlComment:()=>qe,YamlDirective:()=>Je,YamlDocument:()=>Ye,YamlFailsafeSchema:()=>Hn,YamlJsonSchema:()=>er,YamlKeyValuePair:()=>We,YamlMapping:()=>Xe,YamlNode:()=>De,YamlNodeKind:()=>nn,YamlScalar:()=>Ze,YamlSequence:()=>tn,YamlStream:()=>en,YamlStyle:()=>Ie,YamlStyleGroup:()=>Ue,YamlTag:()=>rn,getNodeType:()=>ur,getVisitFn:()=>cr,isJsonArray:()=>ye,isJsonDocument:()=>ae,isJsonEscapeSequence:()=>me,isJsonFalse:()=>le,isJsonKey:()=>be,isJsonNull:()=>pe,isJsonNumber:()=>de,isJsonObject:()=>ge,isJsonProperty:()=>ve,isJsonString:()=>ue,isJsonStringContent:()=>he,isJsonTrue:()=>fe,isLiteral:()=>oe,isNode:()=>lr,isParseResult:()=>ce,isPoint:()=>se,isPosition:()=>ie,isYamlAlias:()=>Ke,isYamlDirective:()=>Qe,isYamlDocument:()=>$e,isYamlKeyValuePair:()=>Ve,isYamlMapping:()=>Le,isYamlScalar:()=>ze,isYamlSequence:()=>Ge,isYamlStream:()=>Re,isYamlTag:()=>Be,mergeAllVisitors:()=>fr,visit:()=>pr});var t=n(591),e=n.n(t);const o=e()({props:{type:null,position:null,children:[]},init({children:t=[],position:e=null,isMissing:n=!1}={},{stamp:r={}}){this.type=r.type,this.isMissing=n,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const n=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,n)})),t}}}),i=e()(o),s=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function c(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!s(r)){for(var o=0;o<t.length;){if("function"==typeof r[t[o]])return r[t[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const a=function(){return this.xf["@@transducer/init"]()},u=function(t){return this.xf["@@transducer/result"](t)};function l(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function f(t){return function e(n){return 0===arguments.length||l(n)?e:t.apply(this,arguments)}}function p(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return l(n)?e:f((function(e){return t(n,e)}));default:return l(n)&&l(r)?e:l(n)?f((function(e){return t(e,r)})):l(r)?f((function(e){return t(n,e)})):t(n,r)}}}function d(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function y(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1}function g(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const h="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var m=Object.prototype.toString;const v=function(){return"[object Arguments]"===m.call(arguments)?function(t){return"[object Arguments]"===m.call(t)}:function(t){return g("callee",t)}}();var b=!{toString:null}.propertyIsEnumerable("toString"),S=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],O=function(){return arguments.propertyIsEnumerable("length")}(),j=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};const w="function"!=typeof Object.keys||O?f((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=O&&v(t);for(e in t)!g(e,t)||o&&"length"===e||(r[r.length]=e);if(b)for(n=S.length-1;n>=0;)g(e=S[n],t)&&!j(r,e)&&(r[r.length]=e),n-=1;return r})):f((function(t){return Object(t)!==t?[]:Object.keys(t)}));const A=f((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function x(t,e,n,r){var o=d(t);function i(t,e){return E(t,e,n.slice(),r.slice())}return!y((function(t,e){return!y(i,e,t)}),d(e),o)}function E(t,e,n,r){if(h(t,e))return!0;var o,i,s=A(t);if(s!==A(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!h(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!h(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===t)return r[c]===e;c-=1}switch(s){case"Map":return t.size===e.size&&x(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&x(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=w(t);if(a.length!==w(e).length)return!1;var u=n.concat([t]),l=r.concat([e]);for(c=a.length-1;c>=0;){var f=a[c];if(!g(f,e)||!E(e[f],t[f],u,l))return!1;c-=1}return!0}const N=p((function(t,e){return E(t,e,[],[])}));function P(t,e){return function(t,e,n){var r,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(o=t[n])&&1/o===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(o=t[n])&&o!=o)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(N(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function T(t,e){for(var n=0,r=e.length,o=Array(r);n<r;)o[n]=t(e[n]),n+=1;return o}function M(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var k=function(t){return(t<10?"0":"")+t};const F="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+k(t.getUTCMonth()+1)+"-"+k(t.getUTCDate())+"T"+k(t.getUTCHours())+":"+k(t.getUTCMinutes())+":"+k(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function D(t,e,n){for(var r=0,o=n.length;r<o;)e=t(e,n[r]),r+=1;return e}var C=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a,t.prototype["@@transducer/result"]=u,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function q(t){return function(e){return new C(t,e)}}const J=p(c(["fantasy-land/filter","filter"],q,(function(t,e){return n=e,"[object Object]"===Object.prototype.toString.call(n)?D((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},w(e)):function(t,e){for(var n=0,r=e.length,o=[];n<r;)t(e[n])&&(o[o.length]=e[n]),n+=1;return o}(t,e);var n})));const Y=p((function(t,e){return J((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function I(t,e){var n=function(n){var r=e.concat([t]);return P(n,r)?"<Circular>":I(n,r)},r=function(t,e){return T((function(e){return M(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+T(n,t).join(", ")+"))";case"[object Array]":return"["+T(n,t).concat(r(t,Y((function(t){return/^\d+$/.test(t)}),w(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):M(F(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":M(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+r(t,w(t)).join(", ")+"}"}}const U=f((function(t){return I(t,[])}));const _=p((function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var o=n(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=U(t),s=n(i,U(e));return void 0!==s&&s===i?t:e}));var R=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a,t.prototype["@@transducer/result"]=u,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const $=function(t){return function(e){return new R(t,e)}};function L(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,s){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,s,c){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,s,c,a){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,s,c,a,u){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,s,c,a,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function G(t,e,n){return function(){for(var r=[],o=0,i=t,s=0;s<e.length||o<arguments.length;){var c;s<e.length&&(!l(e[s])||o>=arguments.length)?c=e[s]:(c=arguments[o],o+=1),r[s]=c,l(c)||(i-=1),s+=1}return i<=0?n.apply(this,r):L(i,G(t,r,n))}}const V=p((function(t,e){return 1===t?f(e):L(t,G(t,[],e))}));const B=p(c(["fantasy-land/map","map"],$,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return V(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return D((function(n,r){return n[r]=t(e[r]),n}),{},w(e));default:return T(t,e)}}))),z=Number.isInteger||function(t){return t<<0===t};function K(t){return"[object String]"===Object.prototype.toString.call(t)}const Q=p((function(t,e){var n=t<0?e.length+t:t;return K(e)?e.charAt(n):e[n]}));const H=p((function(t,e){if(null!=e)return z(t)?Q(t,e):e[t]}));const W=p((function(t,e){return B(H(t),e)}));function X(t){return function e(n,r,o){switch(arguments.length){case 0:return e;case 1:return l(n)?e:p((function(e,r){return t(n,e,r)}));case 2:return l(n)&&l(r)?e:l(n)?p((function(e,n){return t(e,r,n)})):l(r)?p((function(e,r){return t(n,e,r)})):f((function(e){return t(n,r,e)}));default:return l(n)&&l(r)&&l(o)?e:l(n)&&l(r)?p((function(e,n){return t(e,n,o)})):l(n)&&l(o)?p((function(e,n){return t(e,r,n)})):l(r)&&l(o)?p((function(e,r){return t(n,e,r)})):l(n)?f((function(e){return t(e,r,o)})):l(r)?f((function(e){return t(n,e,o)})):l(o)?f((function(e){return t(n,r,e)})):t(n,r,o)}}}const Z=f((function(t){return!!s(t)||!!t&&("object"==typeof t&&(!K(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var tt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function et(t,e,n){return function(r,o,i){if(Z(i))return t(r,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return e(r,o,i,"fantasy-land/reduce");if(null!=i[tt])return n(r,o,i[tt]());if("function"==typeof i.next)return n(r,o,i);if("function"==typeof i.reduce)return e(r,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function nt(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}const rt=p((function(t,e){return L(t.length,(function(){return t.apply(e,arguments)}))}));function ot(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function it(t,e,n,r){return t["@@transducer/result"](n[r](rt(t["@@transducer/step"],t),e))}const st=et(nt,it,ot);var ct=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function at(t){return new ct(t)}const ut=X((function(t,e,n){return st("function"==typeof t?at(t):t,e,n)}));const lt=f((function(t){return function(){return t}}));const ft=f((function(t){return V(ut(_,0,W("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function pt(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function dt(t,e,n,r){return n[r](t,e)}const yt=et(D,dt,pt);const gt=p((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:yt((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,o=e.length,i=[];for(n=0;n<r;)i[i.length]=t[n],n+=1;for(n=0;n<o;)i[i.length]=e[n],n+=1;return i}(t,B(n,e))}),[],t)}));function ht(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const mt=p((function(t,e){return t&&e}));const vt=p((function(t,e){var n=V(t,e);return V(t,(function(){return D(gt,B(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const bt=f((function(t){return vt(t.length,t)}));const St=p((function(t,e){return ht(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:bt(mt)(t,e)}));const Ot=bt(f((function(t){return!t})));function jt(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function wt(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return s(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const At=X(wt("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)})));const xt=f(wt("tail",At(1,1/0)));function Et(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return L(arguments[0].length,ut(jt,arguments[0],xt(arguments)))}const Nt=f((function(t){return K(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Pt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Et.apply(this,Nt(arguments))}const Tt=p((function(t,e){if(s(t)){if(s(e))return t.concat(e);throw new TypeError(U(e)+" is not an array")}if(K(t)){if(K(e))return t+e;throw new TypeError(U(e)+" is not a string")}if(null!=t&&ht(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&ht(t.concat))return t.concat(e);throw new TypeError(U(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Mt=p((function(t,e){return V(ut(_,0,W("length",e)),(function(){var n=arguments,r=this;return t.apply(r,T((function(t){return t.apply(r,n)}),e))}))}));const kt=f((function(t){return V(t.length,t)}));var Ft=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a,t.prototype["@@transducer/result"]=u,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function Dt(t){return function(e){return new Ft(t,e)}}const Ct=p(c(["dropWhile"],Dt,(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return At(n,1/0,e)})));const qt=f((function(t){return V(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))}));const Jt=p((function(t,e){return t>e}));const Yt=Q(0);var It=function(t,e){switch(arguments.length){case 0:return It;case 1:return function e(n){return 0===arguments.length?e:h(t,n)};default:return h(t,e)}};const Ut=It;function _t(t){return t}const Rt=f(_t);const $t=p(P);const Lt="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var o=arguments[n];if(null!=o)for(var i in o)g(i,o)&&(e[i]=o[i]);n+=1}return e};const Gt=p((function(t,e){return V(t+1,(function(){var n=arguments[t];if(null!=n&&ht(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(U(n)+' does not have a method named "'+e+'"')}))}));const Vt=Gt(1,"join");const Bt=p((function(t,e){return t.map((function(t){for(var n,r=e,o=0;o<t.length;){if(null==r)return;n=t[o],r=z(n)?Q(n,r):r[n],o+=1}return r}))}));const zt=p((function(t,e){return Bt([t],e)[0]}));const Kt=p((function(t,e){return Lt({},t,e)}));const Qt=p((function(t,e){return null==e||e!=e?t:e}));const Ht=X((function(t,e,n){return Qt(t,zt(e,n))}));const Wt=X((function(t,e,n){return n.replace(t,e)}));const Xt=Gt(1,"split");const Zt=V(4,(function(t,e,n,r){return st(t("function"==typeof e?at(e):e),n,r)}));var te="\t\n\v\f\r                 \u2028\u2029\ufeff";const ee=f("function"==typeof String.prototype.trim&&!te.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+te+"]["+te+"]*"),n=new RegExp("["+te+"]["+te+"]*$");return t.replace(e,"").replace(n,"")});const ne=e()(i,{statics:{type:"document"},methods:{get child(){return Yt(this.children)}}}),re=(t,e)=>e?.type===t,oe=re.bind(void 0,"literal"),ie=re.bind(void 0,"position"),se=re.bind(void 0,"point"),ce=re.bind(void 0,"parseResult"),ae=re.bind(void 0,"document"),ue=re.bind(void 0,"string"),le=re.bind(void 0,"false"),fe=re.bind(void 0,"true"),pe=re.bind(void 0,"null"),de=re.bind(void 0,"number"),ye=re.bind(void 0,"array"),ge=re.bind(void 0,"object"),he=re.bind(void 0,"stringContent"),me=re.bind(void 0,"escapeSequence"),ve=re.bind(void 0,"property"),be=re.bind(void 0,"key"),Se=e()(i,{statics:{type:"object"},methods:{get properties(){return this.children.filter(ve)}}}),Oe=e()(i,{statics:{type:"property"},methods:{get key(){return this.children.find(be)},get value(){return this.children.find((t=>le(t)||fe(t)||pe(t)||de(t)||ue(t)||ye(t)||ge(t)))}}}),je=e()(i,{statics:{type:"array"},methods:{get items(){return this.children.filter((t=>le(t)||fe(t)||pe(t)||de(t)||ue(t)||ye(t)||ge))}}}),we=e()(i,{statics:{type:"value"},props:{value:null},init({value:t=null}={}){this.value=t}}),Ae=e()(i,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((t=>he(t)||me(t))).reduce(((t,e)=>t+e.value),"")}}}),xe=e()(Ae,{statics:{type:"key"}}),Ee=e()(we,{statics:{type:"stringContent"}}),Ne=e()(we,{statics:{type:"escapeSequence"}}),Pe=e()(we,{statics:{type:"number"}}),Te=e()(we,{statics:{type:"true"}}),Me=e()(we,{statics:{type:"false"}}),ke=e()(we,{statics:{type:"null"}}),Fe=e()(o,{statics:{type:"alias"},props:{content:null},init({content:t=null}={}){this.content=t}}),De=e()(o,{props:{anchor:null,tag:null,style:null,styleGroup:null},init({anchor:t=null,tag:e=null,style:n=null,styleGroup:r=null}={}){this.anchor=t,this.tag=e,this.style=n,this.styleGroup=r}}),Ce=e()(De,{}),qe=e()(o,{statics:{type:"comment"},props:{content:null},init({content:t=null}={}){this.content=t}}),Je=e()(o,{statics:{type:"directive"},props:{name:null,parameters:null},init({name:t=null,parameters:e={}}={}){this.name=t,this.parameters=Kt({version:null,handle:null,prefix:null},e)}}),Ye=e()(o,{statics:{type:"document"}});let Ie=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),Ue=function(t){return t.Flow="Flow",t.Block="Block",t}({});const _e=e()({props:{styleGroup:null,style:null}}),Re=re.bind(void 0,"stream"),$e=re.bind(void 0,"document"),Le=re.bind(void 0,"mapping"),Ge=re.bind(void 0,"sequence"),Ve=re.bind(void 0,"keyValuePair"),Be=re.bind(void 0,"tag"),ze=re.bind(void 0,"scalar"),Ke=re.bind(void 0,"alias"),Qe=re.bind(void 0,"directive"),He=re.bind(void 0,"comment"),We=e()(o,_e,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((t=>ze(t)||Le(t)||Ge(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>ze(t)||Le(t)||Ge(t)||Ke(t))(e)))[0]},enumerable:!0}}}),Xe=e()(Ce,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(Ve):[]},enumerable:!0}}}),Ze=e()(De,{statics:{type:"scalar"},props:{content:""},init({content:t}={}){this.content=t}}),tn=e()(Ce,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>Ge(t)||Le(t)||ze(t)||Ke(t))):[]},enumerable:!0}}}),en=e()(o,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((t=>$e(t)||He(t))):[]},enumerable:!0}}});let nn=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const rn=e()(o,{statics:{type:"tag"},props:{explicitName:"",kind:null},init({explicitName:t,kind:e}={}){this.explicitName=t,this.kind=e}}),on=e()(o,{statics:{type:"anchor"},props:{name:null},init({name:t=null}={}){this.name=t}});const sn=N("");const cn=V(1,Et(A,Ut("GeneratorFunction")));const an=V(1,Et(A,Ut("AsyncFunction")));const un=ft([Et(A,Ut("Function")),cn,an]);const ln=V(1,Et(A,Ut("Number")));var fn=St(ln,isFinite);var pn=V(1,fn);const dn=un(Number.isFinite)?V(1,rt(Number.isFinite,Number)):pn;var yn=St(dn,Mt(N,[Math.floor,Rt]));var gn=V(1,yn);const hn=un(Number.isInteger)?V(1,rt(Number.isInteger,Number)):gn;const mn=Ot(dn);const vn=V(1,St(ln,Jt(0)));const bn=function(t,e){var n=Number(e);if(n!==e&&(n=0),vn(n))throw new RangeError("repeat count must be non-negative");if(mn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var o=t;n;)o+=t,n-=1;return o+=o.substring(0,r-o.length)};var Sn=kt(bn),On=qt(Gt(1,"repeat"));const jn=un(String.prototype.repeat)?On:Sn;var wn=lt(void 0);const An=N(wn());var xn=Wt(/[\s\uFEFF\xA0]+$/,""),En=Gt(0,"trimEnd");const Nn=un(String.prototype.trimEnd)?En:xn;var Pn=Wt(/^[\s\uFEFF\xA0]+/,""),Tn=Gt(0,"trimStart");const Mn=un(String.prototype.trimStart)?Tn:Pn;const kn=qt($t);const Fn=kt((function(t,e){return Et(Xt(""),Ct(kn(t)),Vt(""))(e)}));const Dn=qt(Tt);var Cn=n(770);const qn=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Jn=t=>{const e=(t=>{const e=t.match(qn),n=Ht("",["groups","indentation"],e);return sn(n)?void 0:parseInt(n,10)})(t);if(hn(e))return jn(" ",e);const n=Ht("",[1],t.split("\n")),r=Ht(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return jn(" ",r)},Yn=t=>{const e=t.match(qn),n=Ht("",["groups","chomping"],e);return sn(n)?void 0:n},In=(t,e)=>An(t)?`${Nn(e)}\n`:"-"===t?Nn(e):e,Un=t=>t.replace(/\r\n/g,"\n"),_n=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,n)=>e?t:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Rn=kt(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),$n=Et(Un,ee,_n,Xt("\n"),B(Mn),Vt("\n")),Ln=Et(Un,ee,Rn("'"),_n,Xt("\n"),B(Mn),Vt("\n")),Gn=Et(Un,ee,Rn('"'),(t=>t.replace(/\\\n\s*/g,"")),_n,Cn.S6,Xt("\n"),B(Mn),Vt("\n")),Vn=e()({methods:{test:t=>t.tag.kind===nn.Scalar&&"string"==typeof t.content,canonicalFormat(t){let e=t.content;const n=t.clone();return t.style===Ie.Plain?e=$n(t.content):t.style===Ie.SingleQuoted?e=Ln(t.content):t.style===Ie.DoubleQuoted?e=Gn(t.content):t.style===Ie.Literal?e=(t=>{const e=Jn(t),n=Yn(t),r=Un(t),o=xt(r.split("\n")),i=Pt(B(Fn(e)),B(Dn("\n"))),s=Zt(i,Tt,"",o);return In(n,s)})(t.content):t.style===Ie.Folded&&(e=(t=>{const e=Jn(t),n=Yn(t),r=Un(t),o=xt(r.split("\n")),i=Pt(B(Fn(e)),B(Dn("\n"))),s=Zt(i,Tt,"",o),c=_n(s);return In(n,c)})(t.content)),n.content=e,n},resolve:t=>t}}),Bn=e()(Vn,{props:{tag:""}}),zn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:map"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===nn.Mapping,resolve:t=>t}}),Kn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:seq"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===nn.Sequence,resolve:t=>t}}),Qn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:str"},init(t,{stamp:e}){this.tag=e.uri},methods:{resolve:t=>t}}),Hn=e()({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(zn()),this.registerTag(Kn()),this.registerTag(Qn())},methods:{toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===nn.Scalar?e=Qn.uri:t.tag.kind===nn.Sequence?e=Kn.uri:t.tag.kind===nn.Mapping&&(e=zn.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e},registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})},registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this},overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this},resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let n=t;t.tag.kind===nn.Scalar&&(n=Vn().canonicalFormat(t));const r=this.tags.find((t=>t?.tag===e));if(void 0===r)throw new Error(`Tag "${e}" couldn't be resolved`);if(!r.test(n))throw new Error(`Node couldn't be resolved against tag "${e}"`);return r.resolve(n)}}}),Wn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:bool"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^(true|false)$/.test(t.content),resolve(t){const e="true"===t.content,n=t.clone();return n.content=e,n}}}),Xn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:float"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content),resolve(t){const e=parseFloat(t.content),n=t.clone();return n.content=e,n}}}),Zn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:int"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)$/.test(t.content),resolve(t){const e=parseInt(t.content,10),n=t.clone();return n.content=e,n}}}),tr=e()(Bn,{statics:{uri:"tag:yaml.org,2002:null"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^null$/.test(t.content),resolve(t){const e=t.clone();return e.content=null,e}}}),er=e()(Hn,{init(){this.registerTag(Wn(),!0),this.registerTag(Xn(),!0),this.registerTag(Zn(),!0),this.registerTag(tr(),!0)},methods:{toSpecificTagName(t){let e=Hn.compose.methods.toSpecificTagName.call(this,t);if("?"===e)if(t.tag.vkind===nn.Sequence)e=Kn.uri;else if(t.tag.kind===nn.Mapping)e=zn.uri;else if(t.tag.kind===nn.Scalar){const n=this.tags.find((e=>e.test(t)));e=n?.tag||"?"}return e}}}),nr=e()(o,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}}),rr=e()({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:t=null,column:e=null,char:n=null}={}){this.row=t,this.column=e,this.char=n}}),or=e()({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),ir=e()(o,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}}),sr=e()(o,{statics:{type:"parseResult"},methods:{get rootNode(){return Yt(this.children)}}}),cr=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},ar={},ur=t=>t?.type,lr=t=>"string"==typeof ur(t),fr=(t,{visitFnGetter:e=cr,nodeTypeGetter:n=ur}={})=>{const r=new Array(t.length);return{enter(o,...i){for(let s=0;s<t.length;s+=1)if(null==r[s]){const c=e(t[s],n(o),!1);if("function"==typeof c){const e=c.call(t[s],o,...i);if(!1===e)r[s]=o;else if(e===ar)r[s]=ar;else if(void 0!==e)return e}}},leave(o,...i){for(let s=0;s<t.length;s+=1)if(null==r[s]){const c=e(t[s],n(o),!0);if("function"==typeof c){const e=c.call(t[s],o,...i);if(e===ar)r[s]=ar;else if(void 0!==e&&!1!==e)return e}}else r[s]===o&&(r[s]=null)}}},pr=(t,e,{keyMap:n=null,state:r={},breakSymbol:o=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,detectCycles:l=!0}={})=>{const f=n||{};let p,d,y=Array.isArray(t),g=[t],h=-1,m=[];const v=[],b=[];let S=t;do{h+=1;const t=h===g.length;let n,O;const j=t&&0!==m.length;if(t){if(n=0===b.length?void 0:v.pop(),O=d,d=b.pop(),j){O=y?O.slice():Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));let t=0;for(let e=0;e<m.length;e+=1){let n=m[e][0];const r=m[e][1];y&&(n-=t),y&&r===i?(O.splice(n,1),t+=1):O[n]=r}}h=p.index,g=p.keys,m=p.edits,y=p.inArray,p=p.prev}else{if(n=d?y?h:g[h]:void 0,O=d?d[n]:S,O===i||void 0===O)continue;d&&v.push(n)}if(b.includes(O))continue;let w;if(!Array.isArray(O)){if(!u(O))throw new Error(`Invalid AST Node: ${JSON.stringify(O)}`);if(l&&b.includes(O)){v.pop();continue}const i=c(e,a(O),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;if(w=i.call(e,O,n,d,v,b),w===o)break;if(w===s){if(!t){v.pop();continue}}else if(void 0!==w&&(m.push([n,w]),!t)){if(!u(w)){v.pop();continue}O=w}}}void 0===w&&j&&m.push([n,O]),t||(p={inArray:y,index:h,keys:g,edits:m,prev:p},y=Array.isArray(O),g=y?O:f[a(O)]||[],h=-1,m=[],d&&b.push(d),d=O)}while(void 0!==p);return 0!==m.length&&([,S]=m[m.length-1]),S};pr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=null,state:r={},breakSymbol:o=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,detectCycles:l=!0}={})=>{const f=n||{};let p,d,y=Array.isArray(t),g=[t],h=-1,m=[];const v=[],b=[];let S=t;do{h+=1;const t=h===g.length;let n,O;const j=t&&0!==m.length;if(t){if(n=0===b.length?void 0:v.pop(),O=d,d=b.pop(),j){O=y?O.slice():Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));let t=0;for(let e=0;e<m.length;e+=1){let n=m[e][0];const r=m[e][1];y&&(n-=t),y&&r===i?(O.splice(n,1),t+=1):O[n]=r}}h=p.index,g=p.keys,m=p.edits,y=p.inArray,p=p.prev}else{if(n=d?y?h:g[h]:void 0,O=d?d[n]:S,O===i||void 0===O)continue;d&&v.push(n)}let w;if(!Array.isArray(O)){if(!u(O))throw new Error(`Invalid AST Node: ${JSON.stringify(O)}`);if(l&&b.includes(O)){v.pop();continue}const i=c(e,a(O),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;if(w=await i.call(e,O,n,d,v,b),w===o)break;if(w===s){if(!t){v.pop();continue}}else if(void 0!==w&&(m.push([n,w]),!t)){if(!u(w)){v.pop();continue}O=w}}}void 0===w&&j&&m.push([n,O]),t||(p={inArray:y,index:h,keys:g,edits:m,prev:p},y=Array.isArray(O),g=y?O:f[a(O)]||[],h=-1,m=[],d&&b.push(d),d=O)}while(void 0!==p);return 0!==m.length&&([,S]=m[m.length-1]),S}})(),r})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomAST=e():t.apidomAST=e()}(self,(()=>(()=>{var t={591:t=>{!function(){"use strict";var e,n,r,o,i,s="properties",c="deepProperties",a="propertyDescriptors",u="staticProperties",l="staticDeepProperties",f="staticPropertyDescriptors",p="configuration",d="deepConfiguration",y="deepProps",g="deepStatics",h="deepConf",m="initializers",v="methods",b="composers",S="compose";function O(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function j(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var w=j.bind(0,(function(t,e){if(e)for(var n=O(e),r=0;r<n.length;r+=1)Object.defineProperty(t,n[r],Object.getOwnPropertyDescriptor(e,n[r]));return t}));function A(t){return"function"==typeof t}function x(t){return t&&"object"==typeof t||A(t)}function E(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var N=j.bind(0,(function t(n,r){if(r===e)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!E(r))return r;for(var o,i,s=O(r),c=0;c<s.length;)o=s[c++],(i=Object.getOwnPropertyDescriptor(r,o)).hasOwnProperty("value")?i.value!==e&&(n[o]=t(E(n[o])||Array.isArray(r[o])?n[o]:{},r[o])):Object.defineProperty(n,o,i);return n}));function P(){return(n=Array.prototype.concat.apply([],arguments).filter((function(t,e,n){return A(t)&&n.indexOf(t)===e}))).length?n:e}function T(t,e){function r(n,r){x(e[n])&&(x(t[n])||(t[n]={}),(r||w)(t[n],e[n]))}function o(r){(n=P(t[r],e[r]))&&(t[r]=n)}return e&&x(e=e[S]||e)&&(r(v),r(s),r(c,N),r(a),r(u),r(l,N),r(f),r(p),r(d,N),o(m),o(b)),t}function M(){return function(t){return n=function t(n){var r,o,i=t[S]||{},u={__proto__:i[v]},l=i[m],f=Array.prototype.slice.apply(arguments),p=i[c];if(p&&N(u,p),(p=i[s])&&w(u,p),(p=i[a])&&Object.defineProperties(u,p),!l||!l.length)return u;for(n===e&&(n={}),i=0;i<l.length;)A(r=l[i++])&&(u=(o=r.call(u,n,{instance:u,stamp:t,args:f}))===e?u:o);return u},(r=t[l])&&N(n,r),(r=t[u])&&w(n,r),(r=t[f])&&Object.defineProperties(n,r),r=A(n[S])?n[S]:M,w(n[S]=function(){return r.apply(this,arguments)},t),n}(Array.prototype.concat.apply([this],arguments).reduce(T,{}))}function k(t){return A(t)&&A(t[S])}var F={};function D(t,i){return function(){return(o={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[S]||r).call(n,o)}}F[v]=D(v,w),F[s]=F.props=D(s,w),F[m]=F.init=D(m,P),F[b]=D(b,P),F[c]=F[y]=D(c,N),F[u]=F.statics=D(u,w),F[l]=F[g]=D(l,N),F[p]=F.conf=D(p,w),F[d]=F[h]=D(d,N),F[a]=D(a,w),F[f]=D(f,w),r=F[S]=w((function(){for(var t,O,j=0,A=[],E=arguments,T=this;j<E.length;)x(t=E[j++])&&A.push(k(t)?t:((o={})[v]=(O=t)[v]||e,r=O.props,o[s]=x((n=O[s])||r)?w({},r,n):e,o[m]=P(O.init,O[m]),o[b]=P(O[b]),r=O[y],o[c]=x((n=O[c])||r)?N({},r,n):e,o[a]=O[a],r=O.statics,o[u]=x((n=O[u])||r)?w({},r,n):e,r=O[g],o[l]=x((n=O[l])||r)?N({},r,n):e,n=O[f],o[f]=x((r=O.name&&{name:{value:O.name}})||n)?w({},n,r):e,r=O.conf,o[p]=x((n=O[p])||r)?w({},r,n):e,r=O[h],o[d]=x((n=O[d])||r)?N({},r,n):e,o));if(t=M.apply(T||i,A),T&&A.unshift(T),Array.isArray(E=t[S][b]))for(j=0;j<E.length;)t=k(T=E[j++]({stamp:t,composables:A}))?T:t;return t}),F),F.create=function(){return this.apply(e,arguments)},(o={})[u]=F,i=M(o),r[S]=r.bind(),r.version="4.3.2","object"!=typeof e?t.exports=r:self.stampit=r}()},396:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0,function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(n=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},770:(t,e,n)=>{"use strict";e.S6=void 0;const r=n(396);function o(t,e,n){const o=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(o)||void 0!==n&&n!==t.length)throw new SyntaxError(r.errorMessages.get(e));return o}function i(t,e){const n=o(t,r.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=o(e,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,t)}return String.fromCharCode(n)}const s=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const c=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function a(t,e=!1){return t.replace(c,(function(t,n,c,a,u,l,f,p,d){if(void 0!==n)return"\\";if(void 0!==c)return function(t){const e=o(t,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(c);if(void 0!==a)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var e;const n=o(t.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(t){throw t instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):t}}(a);if(void 0!==u)return i(u,l);if(void 0!==f)return i(f);if("0"===p)return"\0";if(void 0!==p)return function(t,e=!1){if(e)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(t,8);return String.fromCharCode(n)}(p,!e);if(void 0!==d)return y=d,s.get(y)||y;var y;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}e.S6=a}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BREAK:()=>ar,Error:()=>ir,JsonArray:()=>je,JsonDocument:()=>ne,JsonEscapeSequence:()=>Ne,JsonFalse:()=>Me,JsonKey:()=>xe,JsonNode:()=>i,JsonNull:()=>ke,JsonNumber:()=>Pe,JsonObject:()=>Se,JsonProperty:()=>Oe,JsonString:()=>Ae,JsonStringContent:()=>Ee,JsonTrue:()=>Te,JsonValue:()=>we,Literal:()=>nr,ParseResult:()=>sr,Point:()=>rr,Position:()=>or,YamlAlias:()=>Fe,YamlAnchor:()=>on,YamlCollection:()=>Ce,YamlComment:()=>qe,YamlDirective:()=>Je,YamlDocument:()=>Ye,YamlFailsafeSchema:()=>Hn,YamlJsonSchema:()=>er,YamlKeyValuePair:()=>We,YamlMapping:()=>Xe,YamlNode:()=>De,YamlNodeKind:()=>nn,YamlScalar:()=>Ze,YamlSequence:()=>tn,YamlStream:()=>en,YamlStyle:()=>Ie,YamlStyleGroup:()=>Ue,YamlTag:()=>rn,getNodeType:()=>ur,getVisitFn:()=>cr,isJsonArray:()=>ye,isJsonDocument:()=>ae,isJsonEscapeSequence:()=>me,isJsonFalse:()=>le,isJsonKey:()=>be,isJsonNull:()=>pe,isJsonNumber:()=>de,isJsonObject:()=>ge,isJsonProperty:()=>ve,isJsonString:()=>ue,isJsonStringContent:()=>he,isJsonTrue:()=>fe,isLiteral:()=>oe,isNode:()=>lr,isParseResult:()=>ce,isPoint:()=>se,isPosition:()=>ie,isYamlAlias:()=>Ke,isYamlDirective:()=>Qe,isYamlDocument:()=>$e,isYamlKeyValuePair:()=>Ve,isYamlMapping:()=>Le,isYamlScalar:()=>ze,isYamlSequence:()=>Ge,isYamlStream:()=>Re,isYamlTag:()=>Be,mergeAllVisitors:()=>fr,visit:()=>pr});var t=n(591),e=n.n(t);const o=e()({props:{type:null,position:null,children:[]},init({children:t=[],position:e=null,isMissing:n=!1}={},{stamp:r={}}){this.type=r.type,this.isMissing=n,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const n=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,n)})),t}}}),i=e()(o),s=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function c(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!s(r)){for(var o=0;o<t.length;){if("function"==typeof r[t[o]])return r[t[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const a=function(){return this.xf["@@transducer/init"]()},u=function(t){return this.xf["@@transducer/result"](t)};function l(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function f(t){return function e(n){return 0===arguments.length||l(n)?e:t.apply(this,arguments)}}function p(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return l(n)?e:f((function(e){return t(n,e)}));default:return l(n)&&l(r)?e:l(n)?f((function(e){return t(e,r)})):l(r)?f((function(e){return t(n,e)})):t(n,r)}}}function d(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function y(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1}function g(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const h="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var m=Object.prototype.toString;const v=function(){return"[object Arguments]"===m.call(arguments)?function(t){return"[object Arguments]"===m.call(t)}:function(t){return g("callee",t)}}();var b=!{toString:null}.propertyIsEnumerable("toString"),S=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],O=function(){return arguments.propertyIsEnumerable("length")}(),j=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};const w="function"!=typeof Object.keys||O?f((function(t){if(Object(t)!==t)return[];var e,n,r=[],o=O&&v(t);for(e in t)!g(e,t)||o&&"length"===e||(r[r.length]=e);if(b)for(n=S.length-1;n>=0;)g(e=S[n],t)&&!j(r,e)&&(r[r.length]=e),n-=1;return r})):f((function(t){return Object(t)!==t?[]:Object.keys(t)}));const A=f((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function x(t,e,n,r){var o=d(t);function i(t,e){return E(t,e,n.slice(),r.slice())}return!y((function(t,e){return!y(i,e,t)}),d(e),o)}function E(t,e,n,r){if(h(t,e))return!0;var o,i,s=A(t);if(s!==A(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!h(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!h(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===t)return r[c]===e;c-=1}switch(s){case"Map":return t.size===e.size&&x(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&x(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=w(t);if(a.length!==w(e).length)return!1;var u=n.concat([t]),l=r.concat([e]);for(c=a.length-1;c>=0;){var f=a[c];if(!g(f,e)||!E(e[f],t[f],u,l))return!1;c-=1}return!0}const N=p((function(t,e){return E(t,e,[],[])}));function P(t,e){return function(t,e,n){var r,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(o=t[n])&&1/o===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(o=t[n])&&o!=o)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(N(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function T(t,e){for(var n=0,r=e.length,o=Array(r);n<r;)o[n]=t(e[n]),n+=1;return o}function M(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var k=function(t){return(t<10?"0":"")+t};const F="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+k(t.getUTCMonth()+1)+"-"+k(t.getUTCDate())+"T"+k(t.getUTCHours())+":"+k(t.getUTCMinutes())+":"+k(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function D(t,e,n){for(var r=0,o=n.length;r<o;)e=t(e,n[r]),r+=1;return e}var C=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a,t.prototype["@@transducer/result"]=u,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function q(t){return function(e){return new C(t,e)}}const J=p(c(["fantasy-land/filter","filter"],q,(function(t,e){return n=e,"[object Object]"===Object.prototype.toString.call(n)?D((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},w(e)):function(t,e){for(var n=0,r=e.length,o=[];n<r;)t(e[n])&&(o[o.length]=e[n]),n+=1;return o}(t,e);var n})));const Y=p((function(t,e){return J((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function I(t,e){var n=function(n){var r=e.concat([t]);return P(n,r)?"<Circular>":I(n,r)},r=function(t,e){return T((function(e){return M(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+T(n,t).join(", ")+"))";case"[object Array]":return"["+T(n,t).concat(r(t,Y((function(t){return/^\d+$/.test(t)}),w(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):M(F(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":M(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+r(t,w(t)).join(", ")+"}"}}const U=f((function(t){return I(t,[])}));const _=p((function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var o=n(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=U(t),s=n(i,U(e));return void 0!==s&&s===i?t:e}));var R=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a,t.prototype["@@transducer/result"]=u,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const $=function(t){return function(e){return new R(t,e)}};function L(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,s){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,s,c){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,s,c,a){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,s,c,a,u){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,s,c,a,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function G(t,e,n){return function(){for(var r=[],o=0,i=t,s=0;s<e.length||o<arguments.length;){var c;s<e.length&&(!l(e[s])||o>=arguments.length)?c=e[s]:(c=arguments[o],o+=1),r[s]=c,l(c)||(i-=1),s+=1}return i<=0?n.apply(this,r):L(i,G(t,r,n))}}const V=p((function(t,e){return 1===t?f(e):L(t,G(t,[],e))}));const B=p(c(["fantasy-land/map","map"],$,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return V(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return D((function(n,r){return n[r]=t(e[r]),n}),{},w(e));default:return T(t,e)}}))),z=Number.isInteger||function(t){return t<<0===t};function K(t){return"[object String]"===Object.prototype.toString.call(t)}const Q=p((function(t,e){var n=t<0?e.length+t:t;return K(e)?e.charAt(n):e[n]}));const H=p((function(t,e){if(null!=e)return z(t)?Q(t,e):e[t]}));const W=p((function(t,e){return B(H(t),e)}));function X(t){return function e(n,r,o){switch(arguments.length){case 0:return e;case 1:return l(n)?e:p((function(e,r){return t(n,e,r)}));case 2:return l(n)&&l(r)?e:l(n)?p((function(e,n){return t(e,r,n)})):l(r)?p((function(e,r){return t(n,e,r)})):f((function(e){return t(n,r,e)}));default:return l(n)&&l(r)&&l(o)?e:l(n)&&l(r)?p((function(e,n){return t(e,n,o)})):l(n)&&l(o)?p((function(e,n){return t(e,r,n)})):l(r)&&l(o)?p((function(e,r){return t(n,e,r)})):l(n)?f((function(e){return t(e,r,o)})):l(r)?f((function(e){return t(n,e,o)})):l(o)?f((function(e){return t(n,r,e)})):t(n,r,o)}}}const Z=f((function(t){return!!s(t)||!!t&&("object"==typeof t&&(!K(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var tt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function et(t,e,n){return function(r,o,i){if(Z(i))return t(r,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return e(r,o,i,"fantasy-land/reduce");if(null!=i[tt])return n(r,o,i[tt]());if("function"==typeof i.next)return n(r,o,i);if("function"==typeof i.reduce)return e(r,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function nt(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}const rt=p((function(t,e){return L(t.length,(function(){return t.apply(e,arguments)}))}));function ot(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function it(t,e,n,r){return t["@@transducer/result"](n[r](rt(t["@@transducer/step"],t),e))}const st=et(nt,it,ot);var ct=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function at(t){return new ct(t)}const ut=X((function(t,e,n){return st("function"==typeof t?at(t):t,e,n)}));const lt=f((function(t){return function(){return t}}));const ft=f((function(t){return V(ut(_,0,W("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function pt(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function dt(t,e,n,r){return n[r](t,e)}const yt=et(D,dt,pt);const gt=p((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:yt((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,o=e.length,i=[];for(n=0;n<r;)i[i.length]=t[n],n+=1;for(n=0;n<o;)i[i.length]=e[n],n+=1;return i}(t,B(n,e))}),[],t)}));function ht(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const mt=p((function(t,e){return t&&e}));const vt=p((function(t,e){var n=V(t,e);return V(t,(function(){return D(gt,B(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const bt=f((function(t){return vt(t.length,t)}));const St=p((function(t,e){return ht(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:bt(mt)(t,e)}));const Ot=bt(f((function(t){return!t})));function jt(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function wt(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return s(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const At=X(wt("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)})));const xt=f(wt("tail",At(1,1/0)));function Et(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return L(arguments[0].length,ut(jt,arguments[0],xt(arguments)))}const Nt=f((function(t){return K(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Pt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Et.apply(this,Nt(arguments))}const Tt=p((function(t,e){if(s(t)){if(s(e))return t.concat(e);throw new TypeError(U(e)+" is not an array")}if(K(t)){if(K(e))return t+e;throw new TypeError(U(e)+" is not a string")}if(null!=t&&ht(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&ht(t.concat))return t.concat(e);throw new TypeError(U(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Mt=p((function(t,e){return V(ut(_,0,W("length",e)),(function(){var n=arguments,r=this;return t.apply(r,T((function(t){return t.apply(r,n)}),e))}))}));const kt=f((function(t){return V(t.length,t)}));var Ft=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a,t.prototype["@@transducer/result"]=u,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function Dt(t){return function(e){return new Ft(t,e)}}const Ct=p(c(["dropWhile"],Dt,(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return At(n,1/0,e)})));const qt=f((function(t){return V(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))}));const Jt=p((function(t,e){return t>e}));const Yt=Q(0);var It=function(t,e){switch(arguments.length){case 0:return It;case 1:return function e(n){return 0===arguments.length?e:h(t,n)};default:return h(t,e)}};const Ut=It;function _t(t){return t}const Rt=f(_t);const $t=p(P);const Lt="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var o=arguments[n];if(null!=o)for(var i in o)g(i,o)&&(e[i]=o[i]);n+=1}return e};const Gt=p((function(t,e){return V(t+1,(function(){var n=arguments[t];if(null!=n&&ht(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(U(n)+' does not have a method named "'+e+'"')}))}));const Vt=Gt(1,"join");const Bt=p((function(t,e){return t.map((function(t){for(var n,r=e,o=0;o<t.length;){if(null==r)return;n=t[o],r=z(n)?Q(n,r):r[n],o+=1}return r}))}));const zt=p((function(t,e){return Bt([t],e)[0]}));const Kt=p((function(t,e){return Lt({},t,e)}));const Qt=p((function(t,e){return null==e||e!=e?t:e}));const Ht=X((function(t,e,n){return Qt(t,zt(e,n))}));const Wt=X((function(t,e,n){return n.replace(t,e)}));const Xt=Gt(1,"split");const Zt=V(4,(function(t,e,n,r){return st(t("function"==typeof e?at(e):e),n,r)}));var te="\t\n\v\f\r                 \u2028\u2029\ufeff";const ee=f("function"==typeof String.prototype.trim&&!te.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+te+"]["+te+"]*"),n=new RegExp("["+te+"]["+te+"]*$");return t.replace(e,"").replace(n,"")});const ne=e()(i,{statics:{type:"document"},methods:{get child(){return Yt(this.children)}}}),re=(t,e)=>e?.type===t,oe=re.bind(void 0,"literal"),ie=re.bind(void 0,"position"),se=re.bind(void 0,"point"),ce=re.bind(void 0,"parseResult"),ae=re.bind(void 0,"document"),ue=re.bind(void 0,"string"),le=re.bind(void 0,"false"),fe=re.bind(void 0,"true"),pe=re.bind(void 0,"null"),de=re.bind(void 0,"number"),ye=re.bind(void 0,"array"),ge=re.bind(void 0,"object"),he=re.bind(void 0,"stringContent"),me=re.bind(void 0,"escapeSequence"),ve=re.bind(void 0,"property"),be=re.bind(void 0,"key"),Se=e()(i,{statics:{type:"object"},methods:{get properties(){return this.children.filter(ve)}}}),Oe=e()(i,{statics:{type:"property"},methods:{get key(){return this.children.find(be)},get value(){return this.children.find((t=>le(t)||fe(t)||pe(t)||de(t)||ue(t)||ye(t)||ge(t)))}}}),je=e()(i,{statics:{type:"array"},methods:{get items(){return this.children.filter((t=>le(t)||fe(t)||pe(t)||de(t)||ue(t)||ye(t)||ge))}}}),we=e()(i,{statics:{type:"value"},props:{value:null},init({value:t=null}={}){this.value=t}}),Ae=e()(i,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((t=>he(t)||me(t))).reduce(((t,e)=>t+e.value),"")}}}),xe=e()(Ae,{statics:{type:"key"}}),Ee=e()(we,{statics:{type:"stringContent"}}),Ne=e()(we,{statics:{type:"escapeSequence"}}),Pe=e()(we,{statics:{type:"number"}}),Te=e()(we,{statics:{type:"true"}}),Me=e()(we,{statics:{type:"false"}}),ke=e()(we,{statics:{type:"null"}}),Fe=e()(o,{statics:{type:"alias"},props:{content:null},init({content:t=null}={}){this.content=t}}),De=e()(o,{props:{anchor:null,tag:null,style:null,styleGroup:null},init({anchor:t=null,tag:e=null,style:n=null,styleGroup:r=null}={}){this.anchor=t,this.tag=e,this.style=n,this.styleGroup=r}}),Ce=e()(De,{}),qe=e()(o,{statics:{type:"comment"},props:{content:null},init({content:t=null}={}){this.content=t}}),Je=e()(o,{statics:{type:"directive"},props:{name:null,parameters:null},init({name:t=null,parameters:e={}}={}){this.name=t,this.parameters=Kt({version:null,handle:null,prefix:null},e)}}),Ye=e()(o,{statics:{type:"document"}});let Ie=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),Ue=function(t){return t.Flow="Flow",t.Block="Block",t}({});const _e=e()({props:{styleGroup:null,style:null}}),Re=re.bind(void 0,"stream"),$e=re.bind(void 0,"document"),Le=re.bind(void 0,"mapping"),Ge=re.bind(void 0,"sequence"),Ve=re.bind(void 0,"keyValuePair"),Be=re.bind(void 0,"tag"),ze=re.bind(void 0,"scalar"),Ke=re.bind(void 0,"alias"),Qe=re.bind(void 0,"directive"),He=re.bind(void 0,"comment"),We=e()(o,_e,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((t=>ze(t)||Le(t)||Ge(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>ze(t)||Le(t)||Ge(t)||Ke(t))(e)))[0]},enumerable:!0}}}),Xe=e()(Ce,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(Ve):[]},enumerable:!0}}}),Ze=e()(De,{statics:{type:"scalar"},props:{content:""},init({content:t}={}){this.content=t}}),tn=e()(Ce,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>Ge(t)||Le(t)||ze(t)||Ke(t))):[]},enumerable:!0}}}),en=e()(o,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((t=>$e(t)||He(t))):[]},enumerable:!0}}});let nn=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const rn=e()(o,{statics:{type:"tag"},props:{explicitName:"",kind:null},init({explicitName:t,kind:e}={}){this.explicitName=t,this.kind=e}}),on=e()(o,{statics:{type:"anchor"},props:{name:null},init({name:t=null}={}){this.name=t}});const sn=N("");const cn=V(1,Et(A,Ut("GeneratorFunction")));const an=V(1,Et(A,Ut("AsyncFunction")));const un=ft([Et(A,Ut("Function")),cn,an]);const ln=V(1,Et(A,Ut("Number")));var fn=St(ln,isFinite);var pn=V(1,fn);const dn=un(Number.isFinite)?V(1,rt(Number.isFinite,Number)):pn;var yn=St(dn,Mt(N,[Math.floor,Rt]));var gn=V(1,yn);const hn=un(Number.isInteger)?V(1,rt(Number.isInteger,Number)):gn;const mn=Ot(dn);const vn=V(1,St(ln,Jt(0)));const bn=function(t,e){var n=Number(e);if(n!==e&&(n=0),vn(n))throw new RangeError("repeat count must be non-negative");if(mn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var o=t;n;)o+=t,n-=1;return o+=o.substring(0,r-o.length)};var Sn=kt(bn),On=qt(Gt(1,"repeat"));const jn=un(String.prototype.repeat)?On:Sn;var wn=lt(void 0);const An=N(wn());var xn=Wt(/[\s\uFEFF\xA0]+$/,""),En=Gt(0,"trimEnd");const Nn=un(String.prototype.trimEnd)?En:xn;var Pn=Wt(/^[\s\uFEFF\xA0]+/,""),Tn=Gt(0,"trimStart");const Mn=un(String.prototype.trimStart)?Tn:Pn;const kn=qt($t);const Fn=kt((function(t,e){return Et(Xt(""),Ct(kn(t)),Vt(""))(e)}));const Dn=qt(Tt);var Cn=n(770);const qn=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Jn=t=>{const e=(t=>{const e=t.match(qn),n=Ht("",["groups","indentation"],e);return sn(n)?void 0:parseInt(n,10)})(t);if(hn(e))return jn(" ",e);const n=Ht("",[1],t.split("\n")),r=Ht(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return jn(" ",r)},Yn=t=>{const e=t.match(qn),n=Ht("",["groups","chomping"],e);return sn(n)?void 0:n},In=(t,e)=>An(t)?`${Nn(e)}\n`:"-"===t?Nn(e):e,Un=t=>t.replace(/\r\n/g,"\n"),_n=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,n)=>e?t:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Rn=kt(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),$n=Et(Un,ee,_n,Xt("\n"),B(Mn),Vt("\n")),Ln=Et(Un,ee,Rn("'"),_n,Xt("\n"),B(Mn),Vt("\n")),Gn=Et(Un,ee,Rn('"'),(t=>t.replace(/\\\n\s*/g,"")),_n,Cn.S6,Xt("\n"),B(Mn),Vt("\n")),Vn=e()({methods:{test:t=>t.tag.kind===nn.Scalar&&"string"==typeof t.content,canonicalFormat(t){let e=t.content;const n=t.clone();return t.style===Ie.Plain?e=$n(t.content):t.style===Ie.SingleQuoted?e=Ln(t.content):t.style===Ie.DoubleQuoted?e=Gn(t.content):t.style===Ie.Literal?e=(t=>{const e=Jn(t),n=Yn(t),r=Un(t),o=xt(r.split("\n")),i=Pt(B(Fn(e)),B(Dn("\n"))),s=Zt(i,Tt,"",o);return In(n,s)})(t.content):t.style===Ie.Folded&&(e=(t=>{const e=Jn(t),n=Yn(t),r=Un(t),o=xt(r.split("\n")),i=Pt(B(Fn(e)),B(Dn("\n"))),s=Zt(i,Tt,"",o),c=_n(s);return In(n,c)})(t.content)),n.content=e,n},resolve:t=>t}}),Bn=e()(Vn,{props:{tag:""}}),zn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:map"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===nn.Mapping,resolve:t=>t}}),Kn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:seq"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===nn.Sequence,resolve:t=>t}}),Qn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:str"},init(t,{stamp:e}){this.tag=e.uri},methods:{resolve:t=>t}}),Hn=e()({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(zn()),this.registerTag(Kn()),this.registerTag(Qn())},methods:{toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===nn.Scalar?e=Qn.uri:t.tag.kind===nn.Sequence?e=Kn.uri:t.tag.kind===nn.Mapping&&(e=zn.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e},registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})},registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this},overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this},resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let n=t;t.tag.kind===nn.Scalar&&(n=Vn().canonicalFormat(t));const r=this.tags.find((t=>t?.tag===e));if(void 0===r)throw new Error(`Tag "${e}" couldn't be resolved`);if(!r.test(n))throw new Error(`Node couldn't be resolved against tag "${e}"`);return r.resolve(n)}}}),Wn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:bool"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^(true|false)$/.test(t.content),resolve(t){const e="true"===t.content,n=t.clone();return n.content=e,n}}}),Xn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:float"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content),resolve(t){const e=parseFloat(t.content),n=t.clone();return n.content=e,n}}}),Zn=e()(Bn,{statics:{uri:"tag:yaml.org,2002:int"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)$/.test(t.content),resolve(t){const e=parseInt(t.content,10),n=t.clone();return n.content=e,n}}}),tr=e()(Bn,{statics:{uri:"tag:yaml.org,2002:null"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^null$/.test(t.content),resolve(t){const e=t.clone();return e.content=null,e}}}),er=e()(Hn,{init(){this.registerTag(Wn(),!0),this.registerTag(Xn(),!0),this.registerTag(Zn(),!0),this.registerTag(tr(),!0)},methods:{toSpecificTagName(t){let e=Hn.compose.methods.toSpecificTagName.call(this,t);if("?"===e)if(t.tag.vkind===nn.Sequence)e=Kn.uri;else if(t.tag.kind===nn.Mapping)e=zn.uri;else if(t.tag.kind===nn.Scalar){const n=this.tags.find((e=>e.test(t)));e=n?.tag||"?"}return e}}}),nr=e()(o,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}}),rr=e()({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:t=null,column:e=null,char:n=null}={}){this.row=t,this.column=e,this.char=n}}),or=e()({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),ir=e()(o,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}}),sr=e()(o,{statics:{type:"parseResult"},methods:{get rootNode(){return Yt(this.children)}}}),cr=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},ar={},ur=t=>t?.type,lr=t=>"string"==typeof ur(t),fr=(t,{visitFnGetter:e=cr,nodeTypeGetter:n=ur}={})=>{const r=new Array(t.length);return{enter(o,...i){for(let s=0;s<t.length;s+=1)if(null==r[s]){const c=e(t[s],n(o),!1);if("function"==typeof c){const e=c.call(t[s],o,...i);if(!1===e)r[s]=o;else if(e===ar)r[s]=ar;else if(void 0!==e)return e}}},leave(o,...i){for(let s=0;s<t.length;s+=1)if(null==r[s]){const c=e(t[s],n(o),!0);if("function"==typeof c){const e=c.call(t[s],o,...i);if(e===ar)r[s]=ar;else if(void 0!==e&&!1!==e)return e}}else r[s]===o&&(r[s]=null)}}},pr=(t,e,{keyMap:n=null,state:r={},breakSymbol:o=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,detectCycles:l=!0}={})=>{const f=n||{};let p,d,y=Array.isArray(t),g=[t],h=-1,m=[];const v=[],b=[];let S=t;do{h+=1;const t=h===g.length;let n,O;const j=t&&0!==m.length;if(t){if(n=0===b.length?void 0:v.pop(),O=d,d=b.pop(),j){O=y?O.slice():Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));let t=0;for(let e=0;e<m.length;e+=1){let n=m[e][0];const r=m[e][1];y&&(n-=t),y&&r===i?(O.splice(n,1),t+=1):O[n]=r}}h=p.index,g=p.keys,m=p.edits,y=p.inArray,p=p.prev}else{if(n=d?y?h:g[h]:void 0,O=d?d[n]:S,O===i||void 0===O)continue;d&&v.push(n)}if(b.includes(O))continue;let w;if(!Array.isArray(O)){if(!u(O))throw new Error(`Invalid AST Node: ${JSON.stringify(O)}`);if(l&&b.includes(O)){v.pop();continue}const i=c(e,a(O),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;if(w=i.call(e,O,n,d,v,b),w===o)break;if(w===s){if(!t){v.pop();continue}}else if(void 0!==w&&(m.push([n,w]),!t)){if(!u(w)){v.pop();continue}O=w}}}void 0===w&&j&&m.push([n,O]),t||(p={inArray:y,index:h,keys:g,edits:m,prev:p},y=Array.isArray(O),g=y?O:f[a(O)]||[],h=-1,m=[],d&&b.push(d),d=O)}while(void 0!==p);return 0!==m.length&&([,S]=m[m.length-1]),S};pr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=null,state:r={},breakSymbol:o=ar,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,visitFnGetter:c=cr,nodeTypeGetter:a=ur,nodePredicate:u=lr,detectCycles:l=!0}={})=>{const f=n||{};let p,d,y=Array.isArray(t),g=[t],h=-1,m=[];const v=[],b=[];let S=t;do{h+=1;const t=h===g.length;let n,O;const j=t&&0!==m.length;if(t){if(n=0===b.length?void 0:v.pop(),O=d,d=b.pop(),j){O=y?O.slice():Object.create(Object.getPrototypeOf(O),Object.getOwnPropertyDescriptors(O));let t=0;for(let e=0;e<m.length;e+=1){let n=m[e][0];const r=m[e][1];y&&(n-=t),y&&r===i?(O.splice(n,1),t+=1):O[n]=r}}h=p.index,g=p.keys,m=p.edits,y=p.inArray,p=p.prev}else{if(n=d?y?h:g[h]:void 0,O=d?d[n]:S,O===i||void 0===O)continue;d&&v.push(n)}let w;if(!Array.isArray(O)){if(!u(O))throw new Error(`Invalid AST Node: ${JSON.stringify(O)}`);if(l&&b.includes(O)){v.pop();continue}const i=c(e,a(O),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;if(w=await i.call(e,O,n,d,v,b),w===o)break;if(w===s){if(!t){v.pop();continue}}else if(void 0!==w&&(m.push([n,w]),!t)){if(!u(w)){v.pop();continue}O=w}}}void 0===w&&j&&m.push([n,O]),t||(p={inArray:y,index:h,keys:g,edits:m,prev:p},y=Array.isArray(O),g=y?O:f[a(O)]||[],h=-1,m=[],d&&b.push(d),d=O)}while(void 0!==p);return 0!==m.length&&([,S]=m[m.length-1]),S}})(),r})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-ast",
3
- "version": "0.73.0",
3
+ "version": "0.74.1",
4
4
  "description": "Tools necessary for parsing stage of ApiDOM, specifically for syntactic analysis.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -46,7 +46,7 @@
46
46
  "ramda": "~0.29.0",
47
47
  "ramda-adjunct": "^4.0.0",
48
48
  "stampit": "^4.3.2",
49
- "unraw": "^2.0.1"
49
+ "unraw": "^3.0.0"
50
50
  },
51
51
  "files": [
52
52
  "cjs/",
@@ -58,5 +58,5 @@
58
58
  "README.md",
59
59
  "CHANGELOG.md"
60
60
  ],
61
- "gitHead": "621e8d41a7cb0e2836e789492a1f8e704063c54c"
61
+ "gitHead": "97cdddd7e7a596b04951cac588a91dd90809c7fa"
62
62
  }
@@ -1,6 +0,0 @@
1
- /**
2
- * @file **unraw - errors.ts** | Error messages used by `unraw`.
3
- * @author Ian Sanders
4
- * @copyright 2019 Ian Sanders
5
- * @license MIT
6
- */